Public Member Functions | List of all members
iipr::CFeaturesContainer Class Reference

Basic implementation of a features container. More...

#include <CFeaturesContainer.h>

Inheritance diagram for iipr::CFeaturesContainer:
iipr::IFeaturesConsumer iipr::IFeaturesProvider istd::IChangeable istd::IChangeable istd::IPolymorphic istd::IPolymorphic

Public Member Functions

void RemoveFeature (int featureIndex)
 Remove feature at selected index. More...
imeas::INumericValueGetFeatureRef (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
GetFeature (int index) const
 Get access to single feature. More...

Detailed Description

Basic implementation of a features container.

Definition at line 18 of file CFeaturesContainer.h.

Member Function Documentation

virtual bool iipr::CFeaturesContainer::AddFeature ( const imeas::INumericValue featurePtr,
bool *  isFullPtr = NULL 

Add new feature to the set of features.

featurePtrinstance of feature object. Please note, that the container takes controll over this object, so you cannot destroy this object manually. It cannot be NULL.
isFullPtrOptional 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.
true if the pushed feature is valid for this container and was inserted correctly.

Implements iipr::IFeaturesConsumer.

virtual const imeas::INumericValue& iipr::CFeaturesContainer::GetFeature ( int  index) const

Get access to single feature.

Implements iipr::IFeaturesProvider.

imeas::INumericValue& iipr::CFeaturesContainer::GetFeatureRef ( int  index)

Get access to stored feature.

virtual int iipr::CFeaturesContainer::GetFeaturesCount ( ) const

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 void iipr::CFeaturesContainer::ResetFeatures ( )

Remove all features from this container.

Implements iipr::IFeaturesConsumer.

The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy