CFeaturesContainer.h
Go to the documentation of this file.
1 #ifndef iipr_CFeaturesContainer_included
2 #define iipr_CFeaturesContainer_included
3 
4 
5 #include "istd/TPointerVector.h"
6 
9 
10 
11 namespace iipr
12 {
13 
14 
19  virtual public IFeaturesConsumer,
20  virtual public imeas::INumericValueProvider
21 {
22 public:
27  void RemoveFeature(int featureIndex);
32 
33  // reimplemented (iipr::IFeaturesConsumer)
34  virtual void ResetFeatures();
35  virtual bool AddFeature(const imeas::INumericValue* featurePtr, bool* isFullPtr = NULL);
36 
37  // reimplemented (imeas::INumericValueProvider)
38  virtual int GetValuesCount() const;
39  virtual const imeas::INumericValue& GetNumericValue(int index) const;
40 
41 private:
43 
44  FeaturesList m_featuresList;
45 };
46 
47 
48 } // namespace iipr
49 
50 
51 #endif // !iipr_CFeaturesContainer_included
52 
virtual const imeas::INumericValue & GetNumericValue(int index) const
Returns a single numeric value from the list.
void RemoveFeature(int featureIndex)
Remove feature at selected index.
virtual int GetValuesCount() const
Get number of numeric values in the list.
virtual void ResetFeatures()
Remove all features from this container.
Basic implementation of a features container.
Provide access to the list of the numeric values.
General parameter set containing list of numeric values.
Definition: INumericValue.h:19
#define NULL
imeas::INumericValue & GetFeatureRef(int index)
Get access to stored feature.
virtual bool AddFeature(const imeas::INumericValue *featurePtr, bool *isFullPtr=NULL)
Add new feature to the set of features.
Common interface for a features container consuming feature objects.

© 2007-2011 Witold Gantzke and Kirill Lepskiy