Adapter for begin and end iterators - usable as return and parameter value in interfaces. More...
#include <iterator_intf.h>
Public Types | |
typedef T | value_type |
value type | |
typedef iterator_adapter< value_type, IteratorType > | self_type |
self type | |
typedef IteratorType< const value_type > | const_iterator |
const iterator type | |
typedef std::conditional< std::is_const< value_type >::value, const_iterator, IteratorType< value_type > >::type | iterator |
iterator type | |
Public Member Functions | |
iterator | begin () const |
Get iterator to the beginning of the container sequence (STL compliant) | |
iterator | end () const |
Get iterator to the end of the container sequence (STL compliant) | |
const_iterator | cbegin () const |
Get const iterator to the beginning of the container sequence (STL compliant) | |
const_iterator | cend () const |
Get const iterator to the end of the container sequence (STL compliant) | |
Static Private Member Functions | |
template<typename IteratorInterfaceType> | |
static self_type | create (IteratorInterfaceType &o_oIterator) |
Create the adapter by assigning iterator interface to begin and end iterators. | |
Private Attributes | |
iterator | m_oBegin |
iterator to the beginning of the containers sequence | |
iterator | m_oEnd |
iterator to past the last element of the container sequence | |
Adapter for begin and end iterators - usable as return and parameter value in interfaces.
T | Value type of the container both end and begin iterators operate on |
IteratorType | Actual type of the iterator - must be POD type |
Definition at line 189 of file iterator_intf.h.
typedef IteratorType<const value_type> const_iterator |
const iterator type
Definition at line 194 of file iterator_intf.h.
typedef std::conditional<std::is_const<value_type>::value,const_iterator,IteratorType<value_type>>::type iterator |
iterator type
Definition at line 198 of file iterator_intf.h.
typedef iterator_adapter<value_type, IteratorType> self_type |
self type
Definition at line 193 of file iterator_intf.h.
typedef T value_type |
value type
Definition at line 192 of file iterator_intf.h.
|
inline |
Get iterator to the beginning of the container sequence (STL compliant)
Definition at line 204 of file iterator_intf.h.
Referenced by iterator_adapter< T, pointer_iterator >::cbegin(), and iterator_adapter< value_type, IteratorType >::cbegin().
|
inline |
Get const iterator to the beginning of the container sequence (STL compliant)
Definition at line 216 of file iterator_intf.h.
|
inline |
Get const iterator to the end of the container sequence (STL compliant)
Definition at line 222 of file iterator_intf.h.
|
inlinestaticprivate |
Create the adapter by assigning iterator interface to begin and end iterators.
IteratorInterfaceType | Iterator interface used to traverse the container sequence. Must correspond to the IteratorType of this class template. |
[in] | o_oIterator | Instance of the iterator interface used to traverse the container |
self_type
Definition at line 236 of file iterator_intf.h.
|
inline |
Get iterator to the end of the container sequence (STL compliant)
Definition at line 210 of file iterator_intf.h.
Referenced by iterator_adapter< T, pointer_iterator >::cend(), and iterator_adapter< value_type, IteratorType >::cend().
|
private |
iterator to the beginning of the containers sequence
Definition at line 246 of file iterator_intf.h.
Referenced by iterator_adapter< T, pointer_iterator >::create(), and iterator_adapter< value_type, IteratorType >::create().
|
private |
iterator to past the last element of the container sequence
Definition at line 247 of file iterator_intf.h.
Referenced by iterator_adapter< T, pointer_iterator >::create(), and iterator_adapter< value_type, IteratorType >::create().