Specs
Beautiful C++ Test Framework
|
#include <SpecVariableCollection.h>
Public Member Functions | |
SpecVariableCollection (ISpecGroup *group=nullptr) | |
~SpecVariableCollection () override | |
void | set (const char *name, IVoidPointer *variable, bool destructable=true) override |
bool | exists (const char *name) const override |
IVoidPointer * | get (const char *name) const override |
bool | is_destructable (const char *name) const override |
void | set_destructable (const char *name, bool destructable=true) override |
void | foreach_variable (ForEachVariableFn *fn) const override |
void | clear () override |
void | unset (const char *name) override |
Public Member Functions inherited from SpecsCpp::ISpecVariableCollection | |
virtual | ~ISpecVariableCollection ()=default |
virtual void | set (const char *name, IVoidPointer *, bool destructable=true)=0 |
virtual void | unset (const char *name)=0 |
virtual bool | is_destructable (const char *name) const =0 |
virtual void | set_destructable (const char *name, bool destructable=true)=0 |
virtual bool | exists (const char *name) const =0 |
virtual IVoidPointer * | get (const char *name) const =0 |
virtual void | foreach_variable (ForEachVariableFn *) const =0 |
virtual void | clear ()=0 |
void | foreach (std::function< void(IVoidPointer *)> fn) const |
Additional Inherited Members | |
Public Types inherited from SpecsCpp::ISpecVariableCollection | |
using | ForEachVariableFn = IFunctionPointer< void(IVoidPointer *)> |
Definition at line 8 of file SpecVariableCollection.h.
|
inline |
Definition at line 14 of file SpecVariableCollection.h.
|
inlineoverride |
Definition at line 16 of file SpecVariableCollection.h.
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 50 of file SpecVariableCollection.h.
Referenced by ~SpecVariableCollection().
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 23 of file SpecVariableCollection.h.
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 46 of file SpecVariableCollection.h.
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 29 of file SpecVariableCollection.h.
Referenced by is_destructable(), and set_destructable().
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 36 of file SpecVariableCollection.h.
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 18 of file SpecVariableCollection.h.
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 41 of file SpecVariableCollection.h.
|
inlineoverridevirtual |
Implements SpecsCpp::ISpecVariableCollection.
Definition at line 55 of file SpecVariableCollection.h.