SHOGUN
v1.1.0
|
Template Set class.
Lazy implementation of a set. Set grows and shrinks dynamically and can be conveniently iterated through via the [] operator.
Public Member Functions | |
CSet (bool traceable=true) | |
~CSet () | |
void | add (T e) |
void | remove (T e) |
bool | contains (T e) |
int32_t | index_of (T e) |
int32_t | get_num_elements () const |
T | get_element (int32_t index) const |
T * | get_element_ptr (int32_t index) |
T | operator[] (int32_t index) const |
T * | get_array () |
virtual const char * | get_name () const |
![]() | |
CSGObject () | |
CSGObject (const CSGObject &orig) | |
virtual | ~CSGObject () |
virtual bool | is_generic (EPrimitiveType *generic) const |
template<class T > | |
void | set_generic () |
void | unset_generic () |
virtual void | print_serializable (const char *prefix="") |
virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
void | set_global_io (SGIO *io) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_global_version () |
SGVector< char * > | get_modelsel_names () |
char * | get_modsel_param_descr (const char *param_name) |
index_t | get_modsel_param_index (const char *param_name) |
Protected Attributes | |
DynArray< T > * | array |
Additional Inherited Members | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
virtual void | load_serializable_pre () throw (ShogunException) |
virtual void | load_serializable_post () throw (ShogunException) |
virtual void | save_serializable_pre () throw (ShogunException) |
virtual void | save_serializable_post () throw (ShogunException) |
void add | ( | T | e | ) |
bool contains | ( | T | e | ) |
T get_element | ( | int32_t | index | ) | const |
T* get_element_ptr | ( | int32_t | index | ) |
|
virtual |
int32_t get_num_elements | ( | ) | const |
int32_t index_of | ( | T | e | ) |
T operator[] | ( | int32_t | index | ) | const |
void remove | ( | T | e | ) |
|
protected |