Defines a list of double values. More...
Public Member Functions | |
| MTKBase_DoubleList () | |
| Constructor. | |
| MTKBase_DoubleList (std::initializer_list< double > theList) | |
| Constructor. | |
| void | Append (double theValue) |
| Adds a value to the list. | |
| double | Value (size_t theIndex) const |
| Access specified element. | |
| double & | Value (size_t theIndex) |
| Access specified element. | |
| double | operator[] (size_t theIndex) const |
| double & | operator[] (size_t theIndex) |
| size_t | Size () const |
| Returns the number of elements in the list. | |
| bool | IsEmpty () const |
Defines a list of double values.
Values can be added using Append() and retrieved using Value() or operator[]. The number of added values can be retrieved by Size().
| cadex::MTKBase_DoubleList::MTKBase_DoubleList | ( | ) |
Constructor.
Creates an empty list.
| cadex::MTKBase_DoubleList::MTKBase_DoubleList | ( | std::initializer_list< double > | theList | ) |
Constructor.
Creates a list specified by given values.
|
inline |
Returns true if the list empty.
| double & cadex::MTKBase_DoubleList::Value | ( | size_t | theIndex | ) |