ADTF
IRandomAccessIterator< T >abstract

Random access iterator interface. More...

Inheritance diagram for IRandomAccessIterator< T >:
[legend]

Public Member Functions

virtual T * Forward (size_t i_nIncrement) const =0
 Increment iterator by n - may be used with mutable member iterators. More...
 
virtual T * Backward (size_t i_nDecrement) const =0
 Decrement iterator by n - may be used with mutable member iterators. More...
 
- Public Member Functions inherited from IBidirectionalIterator< T >
virtual T * Previous () const =0
 Decrement iterator by one - may be used with mutable member iterators. More...
 
- Public Member Functions inherited from IForwardIterator< T >
virtual T * Next () const =0
 Increment iterator by one - may be used with mutable member iterators. More...
 

Protected Member Functions

 ~IRandomAccessIterator ()=default
 Default destructor.
 
- Protected Member Functions inherited from IBidirectionalIterator< T >
 ~IBidirectionalIterator ()=default
 Default destructor.
 
- Protected Member Functions inherited from IForwardIterator< T >
 ~IForwardIterator ()=default
 Default destructor.
 

Detailed Description

template<typename T>
class adtf::ucom::ant::IRandomAccessIterator< T >

Random access iterator interface.

Additionally providing methods Forward(size_t) and Backward(size_t) for POD random access iterator types.

Template Parameters
TValue type of the container the iterator operates on

Definition at line 354 of file iterator_intf.h.

Member Function Documentation

◆ Backward()

virtual T* Backward ( size_t  i_nDecrement) const
pure virtual

Decrement iterator by n - may be used with mutable member iterators.

Parameters
[in]i_nDecrementAmount of decrements the iterator must go backward
Returns
Pointer to value of the container sequence the iterator points to after decrementing

◆ Forward()

virtual T* Forward ( size_t  i_nIncrement) const
pure virtual

Increment iterator by n - may be used with mutable member iterators.

Parameters
[in]i_nIncrementAmount of increments the iterator must go forward
Returns
Pointer to value of the container sequence the iterator points to after incrementing