Public Member Functions | Public Attributes

SGParamInfo Class Reference

Detailed Description

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.

Definition at line 26 of file ParameterMap.h.

List of all members.

Public Member Functions

 SGParamInfo ()
 SGParamInfo (const char *name, EContainerType ctype, EStructType stype, EPrimitiveType ptype)
virtual ~SGParamInfo ()
void print_param_info ()
SGParamInfoduplicate () const
bool operator== (const SGParamInfo &other) const
bool operator< (const SGParamInfo &other) const
bool operator> (const SGParamInfo &other) const

Public Attributes

char * m_name
EContainerType m_ctype
EStructType m_stype
EPrimitiveType m_ptype

Constructor & Destructor Documentation

SGParamInfo (  ) 


Definition at line 16 of file ParameterMap.cpp.

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


name name of parameter, is copied
ctype container type of parameter
stype struct type of parameter
ptype primitive type of parameter

Definition at line 21 of file ParameterMap.cpp.

~SGParamInfo (  )  [virtual]


Definition at line 35 of file ParameterMap.cpp.

Member Function Documentation

SGParamInfo * duplicate (  )  const
an identical copy

Definition at line 56 of file ParameterMap.cpp.

bool operator< ( const SGParamInfo other  )  const

operator for comparison (by string m_name)

Definition at line 79 of file ParameterMap.cpp.

bool operator== ( const SGParamInfo other  )  const

operator for comparison, true iff all attributes are equal

Definition at line 69 of file ParameterMap.cpp.

bool operator> ( const SGParamInfo other  )  const

operator for comparison (by string m_name)

Definition at line 84 of file ParameterMap.cpp.

void print_param_info (  ) 

prints all parameter values

Definition at line 40 of file ParameterMap.cpp.

Member Data Documentation

EContainerType m_ctype

container type

Definition at line 67 of file ParameterMap.h.

char* m_name


Definition at line 65 of file ParameterMap.h.

EPrimitiveType m_ptype

primitive type

Definition at line 71 of file ParameterMap.h.

EStructType m_stype

struct type

Definition at line 69 of file ParameterMap.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation