Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecsCpp::ILocalSpecExceptionHandlerCollection Struct Referenceabstract

#include <API.h>

Inheritance diagram for SpecsCpp::ILocalSpecExceptionHandlerCollection:
SpecsCpp::LocalSpecExceptionHandlerCollection

Public Types

using ForEachExceptionHandlerFn = IFunctionPointer< void(ILocalSpecExceptionHandler *)>
 

Public Member Functions

virtual ~ILocalSpecExceptionHandlerCollection ()=default
 
virtual void register_exception_handler (ILocalSpecExceptionHandler *)=0
 
virtual void foreach_exception_handler (ForEachExceptionHandlerFn *) const =0
 
void foreach (std::function< void(ILocalSpecExceptionHandler *)> fn) const
 

Detailed Description

Definition at line 393 of file API.h.

Member Typedef Documentation

◆ ForEachExceptionHandlerFn

Constructor & Destructor Documentation

◆ ~ILocalSpecExceptionHandlerCollection()

virtual SpecsCpp::ILocalSpecExceptionHandlerCollection::~ILocalSpecExceptionHandlerCollection ( )
virtualdefault

Member Function Documentation

◆ foreach()

void SpecsCpp::ILocalSpecExceptionHandlerCollection::foreach ( std::function< void(ILocalSpecExceptionHandler *)>  fn) const
inline

Definition at line 400 of file API.h.

400 {
401 auto callback = unique_function_pointer(fn);
402 this->foreach_exception_handler(callback.get());
403 }
virtual void foreach_exception_handler(ForEachExceptionHandlerFn *) const =0

◆ foreach_exception_handler()

virtual void SpecsCpp::ILocalSpecExceptionHandlerCollection::foreach_exception_handler ( ForEachExceptionHandlerFn ) const
pure virtual

◆ register_exception_handler()

virtual void SpecsCpp::ILocalSpecExceptionHandlerCollection::register_exception_handler ( ILocalSpecExceptionHandler )
pure virtual

The documentation for this struct was generated from the following file: