The Sparta Modeling Framework
|
ParameterTemplate providing factory implementation for each data type. More...
#include <MetaTreeNode.hpp>
Public Member Functions | |
template<typename T > | |
ParameterTemplate (const std::string &name, const T &def_val, const std::string &docstring) | |
Create the template. Specify the type of def_val explicitly when invoking this function. | |
ParameterTemplate (const std::string &name, const char *def_val, const std::string &docstring) | |
ParameterTemplate (const ParameterTemplate &)=default | |
ParameterTemplate (ParameterTemplate &&)=default | |
ParameterTemplate & | operator= (const ParameterTemplate &)=default |
ParameterBase * | create () const |
Crete an instance of the parameter base on this template using "new". | |
ParameterTemplate providing factory implementation for each data type.
Example
* new ParameterTemplate("paramfoo", (const std::string&)"default", "test parameter"); *
Definition at line 30 of file MetaTreeNode.hpp.
|
inline |
Create the template. Specify the type of def_val explicitly when invoking this function.
Definition at line 80 of file MetaTreeNode.hpp.
|
inline |
Definition at line 84 of file MetaTreeNode.hpp.
|
inline |
Crete an instance of the parameter base on this template using "new".
Definition at line 97 of file MetaTreeNode.hpp.