36 #ifndef WRAPPED_OBJECT_ARRAY_H__
37 #define WRAPPED_OBJECT_ARRAY_H__
93 virtual const char*
get_name()
const {
return "WrappedObjectArray"; }
95 #define APPEND_WRAPPED_TEMPLATE(META_TYPE, SG_TYPE) \
101 bool append_wrapped_##META_TYPE(SG_TYPE data, const char* data_name="") \
103 return this->append_wrapped(data, data_name); \
115 #endif // WRAPPED_OBJECT_ARRAY_H__
Specialization of CDynamicObjectArray that adds methods to append wrapped elements to make them seria...
#define APPEND_WRAPPED_TEMPLATE(META_TYPE, SG_TYPE)
bool append_wrapped(SGMatrix< T > data, const char *data_name="")
virtual const char * get_name() const
Simple wrapper class that allows to store any Shogun basic parameter (i.e. float64_t, int64_t, char, etc) in a CSGObject, and therefore to make it serializable. Using a template argument that is not a Shogun parameter will cause a compile error when trying to register the passed value as a parameter in the constructors.
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
all of classes and functions are contained in the shogun namespace
bool append_wrapped(T data, const char *data_name="")
Simple wrapper class that allows to store any Shogun SGMatrix in a CSGObject, and therefore to mak...
bool append_wrapped(SGVector< T > data, const char *data_name="")
bool append_element(CSGObject *e)
Simple wrapper class that allows to store any Shogun SGVector in a CSGObject, and therefore to mak...