SHOGUN
4.1.0
|
Class that holds informations about a certain parameter of an CSGObject. Contains name, type, etc. This is used for mapping types that have changed in different versions of shogun. Instances of this class may be compared to each other. Ordering is based on name, equalness is based on all attributes.
在文件 ParameterMap.h 第 32 行定义.
Public 成员函数 | |
SGParamInfo () | |
SGParamInfo (const char *name, EContainerType ctype, EStructType stype, EPrimitiveType ptype, int32_t param_version) | |
SGParamInfo (const TParameter *param, int32_t param_version) | |
SGParamInfo (const SGParamInfo &orig) | |
virtual | ~SGParamInfo () |
void | print_param_info (const char *prefix="") const |
char * | to_string () const |
SGParamInfo * | duplicate () const |
bool | operator== (const SGParamInfo &other) const |
bool | operator!= (const SGParamInfo &other) const |
bool | operator< (const SGParamInfo &other) const |
bool | operator> (const SGParamInfo &other) const |
bool | is_empty () const |
Public 属性 | |
char * | m_name |
EContainerType | m_ctype |
EStructType | m_stype |
EPrimitiveType | m_ptype |
int32_t | m_param_version |
SGParamInfo | ( | ) |
constructor
在文件 ParameterMap.cpp 第 26 行定义.
SGParamInfo | ( | const char * | name, |
EContainerType | ctype, | ||
EStructType | stype, | ||
EPrimitiveType | ptype, | ||
int32_t | param_version | ||
) |
constructor
name | name of parameter, is copied |
ctype | container type of parameter |
stype | struct type of parameter |
ptype | primitive type of parameter |
param_version | version of parameter |
在文件 ParameterMap.cpp 第 46 行定义.
SGParamInfo | ( | const TParameter * | param, |
int32_t | param_version | ||
) |
constructor to create from a TParameter instance
param | TParameter instance to use |
param_version | version of parameter |
在文件 ParameterMap.cpp 第 58 行定义.
SGParamInfo | ( | const SGParamInfo & | orig | ) |
|
virtual |
destructor
在文件 ParameterMap.cpp 第 70 行定义.
SGParamInfo * duplicate | ( | ) | const |
在文件 ParameterMap.cpp 第 113 行定义.
bool is_empty | ( | ) | const |
在文件 ParameterMap.cpp 第 190 行定义.
bool operator!= | ( | const SGParamInfo & | other | ) | const |
operator for comparison, false iff all attributes are equal
在文件 ParameterMap.cpp 第 136 行定义.
bool operator< | ( | const SGParamInfo & | other | ) | const |
operator for comparison (by string m_name, if equal by others)
在文件 ParameterMap.cpp 第 141 行定义.
bool operator== | ( | const SGParamInfo & | other | ) | const |
operator for comparison, true iff all attributes are equal
在文件 ParameterMap.cpp 第 118 行定义.
bool operator> | ( | const SGParamInfo & | other | ) | const |
operator for comparison (by string m_name, if equal by others)
在文件 ParameterMap.cpp 第 185 行定义.
void print_param_info | ( | const char * | prefix = "" | ) | const |
prints all parameter values
在文件 ParameterMap.cpp 第 106 行定义.
char * to_string | ( | ) | const |
在文件 ParameterMap.cpp 第 75 行定义.
EContainerType m_ctype |
container type
在文件 ParameterMap.h 第 94 行定义.
char* m_name |
name
在文件 ParameterMap.h 第 91 行定义.
int32_t m_param_version |
version of the parameter
在文件 ParameterMap.h 第 103 行定义.
EPrimitiveType m_ptype |
primitive type
在文件 ParameterMap.h 第 100 行定义.
EStructType m_stype |
struct type
在文件 ParameterMap.h 第 97 行定义.