Template Class Ordered
Defined in File Ordered.hpp
Inheritance Relationships
Derived Types
public navtk::utils::OrderedRing< aspn_xtensor::MeasurementImu, aspn_xtensor::TypeTimestamp >(Template Class OrderedRing)public navtk::utils::OrderedRing< navtk::inertial::ImuErrors, aspn_xtensor::TypeTimestamp >(Template Class OrderedRing)public navtk::utils::OrderedRing< aspn_xtensor::MeasurementPositionVelocityAttitude, aspn_xtensor::TypeTimestamp >(Template Class OrderedRing)public navtk::utils::OrderedDeque< Data, Compare, SortIterator, SortCompare >(Template Class OrderedDeque)public navtk::utils::OrderedRing< Data, Compare, SortIterator, SortCompare >(Template Class OrderedRing)
Class Documentation
Ordered is a type of sequence container adaptor designed to keep elements in order.
Elements are ordered in the container on insertion. Ordered is optimized for insertion at the back of the container (similar to a queue). Ordered can be instantiated with different underlying containers. The underlying container may be any of the standard container class templates or some other specifically designed container class. The container shall be accessible through random access iterators and support the following operations: empty() size() front() back() pop_back() erase()
Subclassed by navtk::utils::OrderedRing< aspn_xtensor::MeasurementImu, aspn_xtensor::TypeTimestamp >, navtk::utils::OrderedRing< navtk::inertial::ImuErrors, aspn_xtensor::TypeTimestamp >, navtk::utils::OrderedRing< aspn_xtensor::MeasurementPositionVelocityAttitude, aspn_xtensor::TypeTimestamp >, navtk::utils::OrderedDeque< Data, Compare, SortIterator, SortCompare >, navtk::utils::OrderedRing< Data, Compare, SortIterator, SortCompare >
Public Types
Type of elements stored in the container.
Type of container
iterator
Type of container
const_iterator
Type of container
reverse_iterator
Type of container
const_reverse_iterator
Type of pair of container
const_iterator
Type of pair of container
const_reverse_iterator
Public Functions
- Returns
Number of elements in the container
- Returns
trueif the container is empty
- Returns
trueif the container is full
Pops an element from the front of the container.
Pops an element from the back of the container.
- Returns
The element at the front of the container (by const reference)
- Returns
The element at the back of the container (by const reference)
Erases elements in the range [first, last)
- Parameters
first – the first element to erase
last – one past the last element to erase
- Returns
The element after the last element erased
- Returns
Iterator to the element at the beginning of the container
- Returns
Iterator to the element at the end of the container
- Returns
Reverse iterator to the element at the reverse beginning of the container
- Returns
Reverse iterator to the element at the reverse end of the container
- Returns
Constant iterator to the element at the beginning of the container
- Returns
Constant iterator to the element at the end of the container
- Returns
Constant reverse iterator to the element at the reverse beginning of the container
- Returns
Constant reverse iterator to the element at the reverse end of the container
- Returns
Constant iterator to the element at the beginning of the container
- Returns
Constant iterator to the element at the end of the container
- Returns
Constant reverse iterator to the element at the reverse beginning of the container
- Returns
Constant reverse iterator to the element at the reverse end of the container
Inserts data in the container.
- Parameters
data – to insert
Gets elements in the range [t0, t1].
- Parameters
t0 – beginning of range
t1 – end of range
- Returns
Pair of constant iterators representing the first element in the specified range and one past the last element in the range, [first,last).
Gets the nearest elements to
t.- Parameters
t – element
- Returns
Pair of iterators representing the nearest elements to
t. Iftis before all elements then return will be {end, begin}; iftis after all elements return will be {end - 1, end}. If t is exactly matched, both iterators will be to the last such element that matchedt. Finally, iftis between two elements then the return will be the elements before and aftert.
Protected Functions
Protected constructor can only be called from derived classes.
- Parameters
capacity – size (number of elements) limit of underlying storage
initial_capacity – size (number of elements) to pre-allocate
Copy constructor.
Defaulted.
Copy assignment.
Defaulted.
- Returns
*this
Move constructor.
Defaulted.
Move assignment.
Defaulted.
- Returns
*this