The class DummyFeatures implements features that only know the number of feature objects (but don't actually contain any).
This is used in the CCustomKernel.
Definition at line 23 of file DummyFeatures.h.
Public Member Functions | |
CDummyFeatures () | |
CDummyFeatures (int32_t num) | |
CDummyFeatures (const CDummyFeatures &orig) | |
virtual | ~CDummyFeatures () |
virtual int32_t | get_num_vectors () const |
virtual int32_t | get_size () |
virtual CFeatures * | duplicate () const |
EFeatureType | get_feature_type () |
virtual EFeatureClass | get_feature_class () |
virtual const char * | get_name () const |
Protected Attributes | |
int32_t | num_vectors |
CDummyFeatures | ( | ) |
default constructor
Definition at line 6 of file DummyFeatures.cpp.
CDummyFeatures | ( | int32_t | num | ) |
constructor
num | number of feature vectors |
Definition at line 12 of file DummyFeatures.cpp.
CDummyFeatures | ( | const CDummyFeatures & | orig | ) |
copy constructor
Definition at line 17 of file DummyFeatures.cpp.
~CDummyFeatures | ( | ) | [virtual] |
destructor
Definition at line 23 of file DummyFeatures.cpp.
CFeatures * duplicate | ( | ) | const [virtual] |
EFeatureClass get_feature_class | ( | ) | [virtual] |
EFeatureType get_feature_type | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | const [virtual] |
int32_t get_num_vectors | ( | ) | const [virtual] |
get number of feature vectors
Implements CFeatures.
Definition at line 27 of file DummyFeatures.cpp.
int32_t get_size | ( | ) | [virtual] |
get size of features (always 1)
Implements CFeatures.
Definition at line 32 of file DummyFeatures.cpp.
int32_t num_vectors [protected] |
number of feature vectors
Definition at line 64 of file DummyFeatures.h.