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

Go to the source code of this file.

Classes

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

Macros

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

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 81 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 67 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 73 of file SGObject.h.

#define SG_REF (   x)

Definition at line 51 of file SGObject.h.

#define SG_UNREF (   x)

Definition at line 52 of file SGObject.h.

#define SG_UNREF_NO_NULL (   x)

Definition at line 53 of file SGObject.h.

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

Definition at line 61 of file SGObject.h.

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

Definition at line 60 of file SGObject.h.

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

Definition at line 65 of file SGObject.h.

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

Definition at line 64 of file SGObject.h.

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

Definition at line 63 of file SGObject.h.


SHOGUN Machine Learning Toolbox - Documentation