Hide menu
Loading...
Searching...
No Matches
cadex::MTKBase_DoubleList Class Reference

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
 

Detailed Description

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().

Constructor & Destructor Documentation

◆ MTKBase_DoubleList() [1/2]

cadex::MTKBase_DoubleList::MTKBase_DoubleList ( )

Constructor.

Creates an empty list.

◆ MTKBase_DoubleList() [2/2]

cadex::MTKBase_DoubleList::MTKBase_DoubleList ( std::initializer_list< double > theList)

Constructor.

Creates a list specified by given values.

Member Function Documentation

◆ IsEmpty()

bool cadex::MTKBase_DoubleList::IsEmpty ( ) const
inline

Returns true if the list empty.

See also
Size()

◆ Value() [1/2]

double & cadex::MTKBase_DoubleList::Value ( size_t theIndex)

Access specified element.

Returns a reference to the value at specified location pos.

theIndex must be in the range [0, Size()-1]. Otherwise the result is undefined.

See also
Size()

◆ Value() [2/2]

double cadex::MTKBase_DoubleList::Value ( size_t theIndex) const

Access specified element.

Returns the value at specified location pos.

theIndex must be in the range [0, Size()-1]. Otherwise the result is undefined.

See also
Size()