4#ifndef _3608ae00_0c4a_4bb2_a439_7094206b302f
5#define _3608ae00_0c4a_4bb2_a439_7094206b302f
35 virtual ~ConstIterator() =
default;
59 typename T::value_type
const &
item()
const
65 std::size_t
end()
const
135 typename T::value_type &
item()
Read-only iterator to a container.
Definition Iterator.h:19
std::size_t end() const
Return the end value.
Definition Iterator.h:65
std::vector< sSLICE_POS > const & container() const
Definition Iterator.h:38
bool first() const
Test if the index is 0.
Definition Iterator.h:88
T _container
Container being iterated.
Definition Iterator.h:110
bool last() const
Test if the index is equal to end-1.
Definition Iterator.h:94
ConstIterator & reset()
Reset the iterator to the start of the container.
Definition Iterator.h:71
T::value_type const & item() const
Return the current item.
Definition Iterator.h:59
void setContainer(T const &container)
Set the container, reset the counter.
Definition Iterator.h:44
ConstIterator & operator++()
Move to the next element.
Definition Iterator.h:81
T Container
Type of the container iterated on.
Definition Iterator.h:22
Counter _counter
Current position in the container.
Definition Iterator.h:107
ConstIterator(T const &container={})
Create an iterator at the beginning of a container.
Definition Iterator.h:25
bool done() const
Test if the index is equal to end.
Definition Iterator.h:100
std::size_t index() const
Return the current index.
Definition Iterator.h:53
Counter from 0 (included) to end (excluded).
Definition Counter.h:14
Iterator(T const &container={})
Create an iterator at the beginning of a container.
Definition Iterator.h:123
T::value_type & item()
Return the current item.
Definition Iterator.h:135
Top-level namespace of the msl library.
Definition acceleration.h:17