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

#include <API.h>

Inheritance diagram for SpecsCpp::ISpecRunnerCollection:
SpecsCpp::SpecRunnerCollection

Public Types

using ForEachRunnerFn = IFunctionPointer< void(const char *, ISpecRunner *)>
 

Public Member Functions

virtual ~ISpecRunnerCollection ()=default
 
virtual void add (const char *, ISpecRunner *)=0
 
virtual bool has (const char *name) const =0
 
virtual ISpecRunnerget (const char *name) const =0
 
virtual void foreach_runner (ForEachRunnerFn *) const =0
 
void foreach_runner (std::function< void(const char *, ISpecRunner *)> fn) const
 

Detailed Description

Definition at line 494 of file API.h.

Member Typedef Documentation

◆ ForEachRunnerFn

using SpecsCpp::ISpecRunnerCollection::ForEachRunnerFn = IFunctionPointer<void(const char*, ISpecRunner*)>

Definition at line 495 of file API.h.

Constructor & Destructor Documentation

◆ ~ISpecRunnerCollection()

virtual SpecsCpp::ISpecRunnerCollection::~ISpecRunnerCollection ( )
virtualdefault

Member Function Documentation

◆ add()

virtual void SpecsCpp::ISpecRunnerCollection::add ( const char *  ,
ISpecRunner  
)
pure virtual

◆ foreach_runner() [1/2]

virtual void SpecsCpp::ISpecRunnerCollection::foreach_runner ( ForEachRunnerFn ) const
pure virtual

Implemented in SpecsCpp::SpecRunnerCollection.

Referenced by foreach_runner().

◆ foreach_runner() [2/2]

void SpecsCpp::ISpecRunnerCollection::foreach_runner ( std::function< void(const char *, ISpecRunner *)>  fn) const
inline

Definition at line 503 of file API.h.

503 {
504 auto callback = unique_function_pointer(fn);
505 this->foreach_runner(callback.get());
506 }
virtual void foreach_runner(ForEachRunnerFn *) const =0

◆ get()

virtual ISpecRunner * SpecsCpp::ISpecRunnerCollection::get ( const char *  name) const
pure virtual

◆ has()

virtual bool SpecsCpp::ISpecRunnerCollection::has ( const char *  name) const
pure virtual

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