MIRA
|
Wraps an STL conform container around a range of values within another container. More...
#include <utils/IteratorRangeContainer.h>
Public Types | |
typedef Iterator | iterator |
typedef Iterator::reference | reference |
Public Member Functions | |
IteratorRangeContainer () | |
Default constructor. More... | |
IteratorRangeContainer (const Iterator &begin, const Iterator &end) | |
Constructor taking two iterators that define the range. More... | |
iterator | begin () const |
Returns an iterator to the first element of the range. More... | |
iterator | end () const |
Returns an iterator to the end of the range. More... | |
reference | front () const |
Returns the first element in the range. More... | |
reference | back () const |
Returns the last element in the range. More... | |
std::size_t | size () const |
Returns the number of elements in the given range. More... | |
Wraps an STL conform container around a range of values within another container.
The Range is given by two iterators. Hence, this container can act as a view to a portion of another container.
typedef Iterator iterator |
typedef Iterator::reference reference |
|
inline |
Default constructor.
|
inline |
Constructor taking two iterators that define the range.
|
inline |
Returns an iterator to the first element of the range.
|
inline |
Returns an iterator to the end of the range.
|
inline |
Returns the first element in the range.
|
inline |
Returns the last element in the range.
|
inline |
Returns the number of elements in the given range.