API Documentation
FunctionSet.h
1 // FunctionSet.h
3 //
5 
6 namespace nkDebug
7 {
13  class FunctionSet final
14  {
15  public :
16 
17  // Constructor, destructor
21  FunctionSet () noexcept ;
26 
27  // Pool management
35  std::function<void ()> registerFunction (const char* name, std::function<void ()> func) ;
40  TestFunction* getTestFunction (unsigned int index) const ;
47  nkMemory::BufferCast<TestFunction*> getTestFunctions (nkMemory::StringView filter = "") const ;
51  unsigned int getSetSize () const ;
52  } ;
53 }
nkDebug::FunctionSet::getTestFunction
TestFunction * getTestFunction(unsigned int index) const
nkDebug::FunctionSet::FunctionSet
FunctionSet() noexcept
nkDebug::FunctionSet::getTestFunctions
nkMemory::BufferCast< TestFunction * > getTestFunctions(nkMemory::StringView filter="") const
nkDebug::FunctionSet
A function set holding testing functions.
Definition: FunctionSet.h:14
nkDebug::FunctionSet::registerFunction
std::function< void()> registerFunction(const char *name, std::function< void()> func)
nkDebug::FunctionSet::getSetSize
unsigned int getSetSize() const
nkDebug::TestFunction
Encapsulates a function registered for testing.
Definition: TestFunction.h:12
nkDebug
Encompasses all API of component NilkinsDebug.
Definition: LogManager.h:7
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7