Defines a list of features. More...
Public Member Functions | |
| MTKBase_FeatureList () | |
| Constructor. | |
| MTKBase_FeatureList (std::initializer_list< MTKBase_Feature > theList) | |
| Constructor. | |
| void | Append (const MTKBase_Feature &theFeature) |
| Adds a feature to the list. | |
| void | Append (const MTKBase_FeatureList &theFeatureList) |
| Adds features to the list. | |
| const MTKBase_Feature & | Feature (size_t theIndex) const |
| Access specified element. | |
| MTKBase_Feature & | Feature (size_t theIndex) |
| Access specified element. | |
| const MTKBase_Feature & | operator[] (size_t theIndex) const |
| MTKBase_Feature & | operator[] (size_t theIndex) |
| size_t | Size () const |
| Returns the number of elements in the list. | |
| bool | IsEmpty () const |
Defines a list of features.
Features can be added using Append() and retrieved using Feature() or operator[]. The number of added features can be retrieved by Size().
| cadex::MTKBase_FeatureList::MTKBase_FeatureList | ( | ) |
Constructor.
Creates an empty list.
| cadex::MTKBase_FeatureList::MTKBase_FeatureList | ( | std::initializer_list< MTKBase_Feature > | theList | ) |
Constructor.
Creates a list specified by given features.
| MTKBase_Feature & cadex::MTKBase_FeatureList::Feature | ( | size_t | theIndex | ) |
| const MTKBase_Feature & cadex::MTKBase_FeatureList::Feature | ( | size_t | theIndex | ) | const |
|
inline |
Returns true if the list empty.