SHOGUN  v3.2.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数 | Public 属性
SGParamInfo类 参考

详细描述

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.h28 行定义.

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
 
SGParamInfoduplicate () 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
 

构造及析构函数说明

constructor

在文件 ParameterMap.cpp19 行定义.

SGParamInfo ( const char *  name,
EContainerType  ctype,
EStructType  stype,
EPrimitiveType  ptype,
int32_t  param_version 
)

constructor

参数
namename of parameter, is copied
ctypecontainer type of parameter
stypestruct type of parameter
ptypeprimitive type of parameter
param_versionversion of parameter

在文件 ParameterMap.cpp39 行定义.

SGParamInfo ( const TParameter param,
int32_t  param_version 
)

constructor to create from a TParameter instance

参数
paramTParameter instance to use
param_versionversion of parameter

在文件 ParameterMap.cpp51 行定义.

SGParamInfo ( const SGParamInfo orig)

copy constructor

参数
origelement to copy from

在文件 ParameterMap.cpp28 行定义.

~SGParamInfo ( )
virtual

destructor

在文件 ParameterMap.cpp63 行定义.

成员函数说明

SGParamInfo * duplicate ( ) const
返回
an identical copy

在文件 ParameterMap.cpp106 行定义.

bool is_empty ( ) const
返回
true iff this was constructed using the std constructor (empty parameter used to say that it appeared here first time

在文件 ParameterMap.cpp183 行定义.

bool operator!= ( const SGParamInfo other) const

operator for comparison, false iff all attributes are equal

在文件 ParameterMap.cpp129 行定义.

bool operator< ( const SGParamInfo other) const

operator for comparison (by string m_name, if equal by others)

在文件 ParameterMap.cpp134 行定义.

bool operator== ( const SGParamInfo other) const

operator for comparison, true iff all attributes are equal

在文件 ParameterMap.cpp111 行定义.

bool operator> ( const SGParamInfo other) const

operator for comparison (by string m_name, if equal by others)

在文件 ParameterMap.cpp178 行定义.

void print_param_info ( const char *  prefix = "") const

prints all parameter values

在文件 ParameterMap.cpp99 行定义.

char * to_string ( ) const
返回
string representation, caller has to clean up

在文件 ParameterMap.cpp68 行定义.

类成员变量说明

EContainerType m_ctype

container type

在文件 ParameterMap.h90 行定义.

char* m_name

name

在文件 ParameterMap.h87 行定义.

int32_t m_param_version

version of the parameter

在文件 ParameterMap.h99 行定义.

EPrimitiveType m_ptype

primitive type

在文件 ParameterMap.h96 行定义.

EStructType m_stype

struct type

在文件 ParameterMap.h93 行定义.


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation