Defines a monotonic vector container type.
More...
#include <monotonic_vector.h>
template<core::Numerical TYPE>
class hgps::MonotonicVector< TYPE >
Defines a monotonic vector container type.
- Template Parameters
-
TYPE | The type of the elements |
◆ ConstIteratorType
template<core::Numerical TYPE>
Read-only element iterator.
◆ IteratorType
template<core::Numerical TYPE>
◆ MonotonicVector()
template<core::Numerical TYPE>
Initialises a new instance of the MonotonicVector class.
- Parameters
-
values | The monotonic values |
- Exceptions
-
std::invalid_argument | if the values are not strict monotonic. |
◆ at()
template<core::Numerical TYPE>
Gets a specified element with bounds checking.
- Parameters
-
- Returns
- Reference to the requested element.
◆ begin() [1/2]
template<core::Numerical TYPE>
Gets an read-only iterator to the beginning of the elements.
- Returns
- Iterator to the first element
◆ begin() [2/2]
template<core::Numerical TYPE>
Gets an iterator to the beginning of the elements.
- Returns
- Iterator to the first element
◆ cbegin()
template<core::Numerical TYPE>
Gets an read-only iterator to the beginning of the elements.
- Returns
- Iterator to the first element
◆ cend()
template<core::Numerical TYPE>
Gets an read-only iterator to the element following the element of the vector.
- Returns
- Iterator to the element following the last element.
◆ end() [1/2]
template<core::Numerical TYPE>
Gets an read-only iterator to the element following the element of the vector.
- Returns
- Iterator to the element following the last element.
◆ end() [2/2]
template<core::Numerical TYPE>
Gets an iterator to the element following the element of the vector.
- Returns
- Iterator to the element following the last element.
◆ operator[]() [1/2]
template<core::Numerical TYPE>
Gets a specified element with bounds checking.
- Parameters
-
- Returns
- Reference to the requested element.
◆ operator[]() [2/2]
template<core::Numerical TYPE>
Gets a specified read-only element with bounds checking.
- Parameters
-
- Returns
- Reference to the requested element.
◆ size()
template<core::Numerical TYPE>
Gets the number of elements.
- Returns
- NUmber of elements
The documentation for this class was generated from the following file: