#include <functional>
#include <string>
#include <vector>
Go to the source code of this file.
◆ DECLARE_SNIPPET
#define DECLARE_SNIPPET |
( |
|
TYPE, |
|
|
|
NUM_PARAMS |
|
) |
| |
Value:private: \
static TYPE *s_Instance; \
public: \
static const TYPE *getInstance() \
{ \
if(s_Instance == NULL) \
{ \
s_Instance = new TYPE; \
} \
return s_Instance; \
} \
◆ IMPLEMENT_SNIPPET
#define IMPLEMENT_SNIPPET |
( |
|
TYPE | ) |
TYPE *TYPE::s_Instance = NULL |
◆ SET_DERIVED_PARAMS
#define SET_DERIVED_PARAMS |
( |
|
... | ) |
virtual DerivedParamVec getDerivedParams() const override{ return __VA_ARGS__; } |
◆ SET_PARAM_NAMES
#define SET_PARAM_NAMES |
( |
|
... | ) |
virtual StringVec getParamNames() const override{ return __VA_ARGS__; } |