Basic implementation of a features container. More...
#include <CFeaturesContainer.h>
Public Member Functions | |
void | RemoveFeature (int featureIndex) |
Remove feature at selected index. More... | |
imeas::INumericValue & | GetFeatureRef (int index) |
Get access to stored feature. More... | |
virtual void | ResetFeatures () |
Remove all features from this container. More... | |
virtual bool | AddFeature (const imeas::INumericValue *featurePtr, bool *isFullPtr=NULL) |
Add new feature to the set of features. More... | |
virtual int | GetFeaturesCount () const |
Get number of stored features. More... | |
virtual const imeas::INumericValue & | GetFeature (int index) const |
Get access to single feature. More... | |
Basic implementation of a features container.
Definition at line 18 of file CFeaturesContainer.h.
|
virtual |
Add new feature to the set of features.
featurePtr | instance of feature object. Please note, that the container takes controll over this object, so you cannot destroy this object manually. It cannot be NULL. |
isFullPtr | Optional parameter pointing at flag idicating that container is full. This flag will be set to true, if this container is full and it will not collect additional features. In other case the flag will be not changed. |
Implements iipr::IFeaturesConsumer.
|
virtual |
Get access to single feature.
Implements iipr::IFeaturesProvider.
imeas::INumericValue& iipr::CFeaturesContainer::GetFeatureRef | ( | int | index | ) |
Get access to stored feature.
|
virtual |
Get number of stored features.
Implements iipr::IFeaturesProvider.
void iipr::CFeaturesContainer::RemoveFeature | ( | int | featureIndex | ) |
Remove feature at selected index.
The following elements will be shift, size of this container will be decreased.
|
virtual |
Remove all features from this container.
Implements iipr::IFeaturesConsumer.
© 2007-2017 Witold Gantzke and Kirill Lepskiy