SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Enumerations
SGObject.h File Reference

Go to the source code of this file.

Classes

class  CSGObject
 Class SGObject is the base class of all shogun objects. More...

Macros

#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__)

Enumerations

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

Macro Definition Documentation

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

Definition at line 67 of file SGObject.h.

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

Definition at line 53 of file SGObject.h.

#define SG_ADD5 (   param,
  name,
  description,
  ms_available,
  gradient_available 
)
Value:
{\
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);\
}

Definition at line 59 of file SGObject.h.

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

Definition at line 47 of file SGObject.h.

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

Definition at line 46 of file SGObject.h.

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

Definition at line 51 of file SGObject.h.

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

Definition at line 50 of file SGObject.h.

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

Definition at line 49 of file SGObject.h.


SHOGUN Machine Learning Toolbox - Documentation