SHOGUN
v2.0.0
|
template class SGSparseVector
Definition at line 35 of file SGSparseVector.h.
Public Member Functions | |
SGSparseVector () | |
SGSparseVector (SGSparseVectorEntry< T > *feats, index_t num_entries, bool ref_counting=true) | |
SGSparseVector (index_t num_entries, bool ref_counting=true) | |
SGSparseVector (const SGSparseVector &orig) | |
virtual | ~SGSparseVector () |
int32_t | ref_count () |
Public Attributes | |
index_t | num_feat_entries |
SGSparseVectorEntry< T > * | features |
Protected Member Functions | |
virtual void | copy_data (const SGReferencedData &orig) |
virtual void | init_data () |
virtual void | free_data () |
void | copy_refcount (const SGReferencedData &orig) |
int32_t | ref () |
int32_t | unref () |
SGSparseVector | ( | ) |
default constructor
Definition at line 39 of file SGSparseVector.h.
SGSparseVector | ( | SGSparseVectorEntry< T > * | feats, |
index_t | num_entries, | ||
bool | ref_counting = true |
||
) |
constructor for setting params
Definition at line 45 of file SGSparseVector.h.
SGSparseVector | ( | index_t | num_entries, |
bool | ref_counting = true |
||
) |
constructor to create new vector in memory
Definition at line 53 of file SGSparseVector.h.
SGSparseVector | ( | const SGSparseVector< T > & | orig | ) |
copy constructor
Definition at line 61 of file SGSparseVector.h.
virtual ~SGSparseVector | ( | ) | [virtual] |
Definition at line 67 of file SGSparseVector.h.
virtual void copy_data | ( | const SGReferencedData & | orig | ) | [protected, virtual] |
needs to be overridden to copy data
Implements SGReferencedData.
Definition at line 74 of file SGSparseVector.h.
void copy_refcount | ( | const SGReferencedData & | orig | ) | [protected, inherited] |
copy refcount
Definition at line 102 of file SGReferencedData.h.
virtual void free_data | ( | ) | [protected, virtual] |
needs to be overridden to free data
Implements SGReferencedData.
Definition at line 86 of file SGSparseVector.h.
virtual void init_data | ( | ) | [protected, virtual] |
needs to be overridden to initialize empty data
Implements SGReferencedData.
Definition at line 80 of file SGSparseVector.h.
int32_t ref | ( | ) | [protected, inherited] |
increase reference counter
Definition at line 111 of file SGReferencedData.h.
int32_t ref_count | ( | ) | [inherited] |
int32_t unref | ( | ) | [protected, inherited] |
decrement reference counter and deallocate object if refcount is zero before or after decrementing it
Definition at line 136 of file SGReferencedData.h.
features
Definition at line 97 of file SGSparseVector.h.
number of feature entries
Definition at line 94 of file SGSparseVector.h.