SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
| 宏定义 | 枚举
SGObject.h 文件参考

浏览源代码.

class  CMap< K, T >
 the class CMap, a map based on the hash-table. w: http://en.wikipedia.org/wiki/Hash_table 更多...
 
singleton  DynArray< T >
 Template Dynamic array class that creates an array that can be used like a list or an array. 更多...
 
class  SGStringList< T >
 template class SGStringList 更多...
 
class  CSGObject
 Class SGObject is the base class of all shogun objects. 更多...
 

宏定义

#define SG_REF(x)
 
#define SG_UNREF(x)
 
#define SG_UNREF_NO_NULL(x)
 
#define VA_NARGS_IMPL(_1, _2, _3, _4, _5, N,...)   N
 
#define VA_NARGS(...)   VA_NARGS_IMPL(__VA_ARGS__, 5, 4, 3, 2, 1)
 
#define VARARG_IMPL2(base, count,...)   base##count(__VA_ARGS__)
 
#define VARARG_IMPL(base, count,...)   VARARG_IMPL2(base, count, __VA_ARGS__)
 
#define VARARG(base,...)   VARARG_IMPL(base, VA_NARGS(__VA_ARGS__), __VA_ARGS__)
 
#define SG_ADD4(param, name, description, ms_available)
 
#define SG_ADD5(param, name, description, ms_available, gradient_available)
 
#define SG_ADD(...)   VARARG(SG_ADD, __VA_ARGS__)
 

枚举

enum  EModelSelectionAvailability { MS_NOT_AVAILABLE =0, MS_AVAILABLE =1 }
 
enum  EGradientAvailability { GRADIENT_NOT_AVAILABLE =0, GRADIENT_AVAILABLE =1 }
 

宏定义说明

#define SG_ADD (   ...)    VARARG(SG_ADD, __VA_ARGS__)

在文件 SGObject.h81 行定义.

#define SG_ADD4 (   param,
  name,
  description,
  ms_available 
)
值:
{\
m_parameters->add(param, name, description);\
if (ms_available)\
m_model_selection_parameters->add(param, name, description);\
}

在文件 SGObject.h67 行定义.

#define SG_ADD5 (   param,
  name,
  description,
  ms_available,
  gradient_available 
)
值:
{\
m_parameters->add(param, name, description);\
if (ms_available)\
m_model_selection_parameters->add(param, name, description);\
if (gradient_available)\
m_gradient_parameters->add(param, name, description);\
}

在文件 SGObject.h73 行定义.

#define SG_REF (   x)

在文件 SGObject.h51 行定义.

#define SG_UNREF (   x)

在文件 SGObject.h52 行定义.

#define SG_UNREF_NO_NULL (   x)

在文件 SGObject.h53 行定义.

#define VA_NARGS (   ...)    VA_NARGS_IMPL(__VA_ARGS__, 5, 4, 3, 2, 1)

在文件 SGObject.h61 行定义.

#define VA_NARGS_IMPL (   _1,
  _2,
  _3,
  _4,
  _5,
  N,
  ... 
)    N

在文件 SGObject.h60 行定义.

#define VARARG (   base,
  ... 
)    VARARG_IMPL(base, VA_NARGS(__VA_ARGS__), __VA_ARGS__)

在文件 SGObject.h65 行定义.

#define VARARG_IMPL (   base,
  count,
  ... 
)    VARARG_IMPL2(base, count, __VA_ARGS__)

在文件 SGObject.h64 行定义.

#define VARARG_IMPL2 (   base,
  count,
  ... 
)    base##count(__VA_ARGS__)

在文件 SGObject.h63 行定义.


SHOGUN 机器学习工具包 - 项目文档