BALL
1.4.79
|
#include <BALL/CONCEPT/randomAccessIterator.h>
Public Types | |
Typedefs | |
typedef std::random_access_iterator_tag | iterator_category |
typedef ConstBidirectionalIterator < Container, DataType, Position, Traits > | Base |
Public Types inherited from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef ConstForwardIterator < Container, DataType, Position, Traits > | Base |
Public Types inherited from BALL::ConstForwardIterator< Container, DataType, Position, Traits > | |
typedef std::forward_iterator_tag | iterator_category |
typedef BaseIterator < Container, DataType, Position, Traits > | Base |
Public Types inherited from BALL::BaseIterator< Container, DataType, Position, Traits > | |
typedef DataType | value_type |
typedef Position | difference_type |
typedef const DataType * | pointer |
typedef const DataType & | reference |
typedef std::input_iterator_tag | iterator_category |
Protected Member Functions | |
ConstRandomAccessIterator (const Container &container) | |
Protected Member Functions inherited from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | ConstBidirectionalIterator (const Container &container) |
Construct an iterator bound to a specific container. More... | |
Protected Member Functions inherited from BALL::ConstForwardIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | ConstForwardIterator (const Container &container) |
Protected Member Functions inherited from BALL::BaseIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | BaseIterator (const Container &container) |
Assignment | |
ConstRandomAccessIterator & | operator+= (Distance distance) |
ConstRandomAccessIterator & | operator-= (Distance distance) |
ConstRandomAccessIterator | operator+ (Distance distance) const |
ConstRandomAccessIterator | operator- (Distance distance) const |
Distance | operator- (const ConstRandomAccessIterator &iterator) const |
static ConstRandomAccessIterator | begin (const Container &container) |
static ConstRandomAccessIterator | end (const Container &container) |
static ConstRandomAccessIterator | rbegin (const Container &container) |
static ConstRandomAccessIterator | rend (const Container &container) |
Additional Inherited Members | |
Static Public Member Functions inherited from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > | |
static ConstBidirectionalIterator | begin (const Container &container) |
static ConstBidirectionalIterator | end (const Container &container) |
static ConstBidirectionalIterator | rbegin (const Container &container) |
static ConstBidirectionalIterator | rend (const Container &container) |
Static Public Member Functions inherited from BALL::ConstForwardIterator< Container, DataType, Position, Traits > | |
static ConstForwardIterator | begin (const Container &container) |
static ConstForwardIterator | end (const Container &container) |
Definition at line 24 of file randomAccessIterator.h.
typedef ConstBidirectionalIterator<Container, DataType, Position, Traits> BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::Base |
Definition at line 36 of file randomAccessIterator.h.
typedef std::random_access_iterator_tag BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::iterator_category |
Definition at line 34 of file randomAccessIterator.h.
|
inline |
Definition at line 44 of file randomAccessIterator.h.
|
inline |
Definition at line 47 of file randomAccessIterator.h.
|
inline |
Definition at line 53 of file randomAccessIterator.h.
|
inlineprotected |
Definition at line 178 of file randomAccessIterator.h.
|
static |
Return a ConstRandomAccessIterator for a given container. It points to the first element.
Exception::InvalidIterator |
Definition at line 371 of file randomAccessIterator.h.
|
static |
Return a Const RandomAccessIterator for a given container. It points behind the last element of the container.
Exception::InvalidIterator |
Definition at line 380 of file randomAccessIterator.h.
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+ | ( | Distance | distance | ) | const |
Return an iterator. It points to the element with the given distance from the element of this iterator.
Exception::InvalidIterator |
Definition at line 264 of file randomAccessIterator.h.
|
inline |
Definition at line 124 of file randomAccessIterator.h.
ConstRandomAccessIterator< Container, DataType, Position, Traits > & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+= | ( | Distance | distance | ) |
Advance iterator a given distance.
Exception::InvalidIterator |
Definition at line 224 of file randomAccessIterator.h.
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- | ( | Distance | distance | ) | const |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
Exception::InvalidIterator |
Definition at line 272 of file randomAccessIterator.h.
Distance BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
|
inline |
Definition at line 127 of file randomAccessIterator.h.
ConstRandomAccessIterator< Container, DataType, Position, Traits > & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator-= | ( | Distance | distance | ) |
Advance iterator a given distance in reverse direction.
Exception::InvalidIterator |
Definition at line 240 of file randomAccessIterator.h.
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator< | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const |
Lesser operator. Returns true if both iterators have the same container and the element of this iterator resides before the elemen of the given iterator.
InvalidIterator | if one of the iterators is not valid |
IncompatibleIterators | if the iterators show to different containers. |
Definition at line 280 of file randomAccessIterator.h.
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator<= | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const |
Lesser or equal operator. Returns true if both iterators have the same container and the element of this iterator resides before the elemen of the given iterator or both iterators point to the same element.
InvalidIterator | if one of the iterators is not valid |
IncompatibleIterators | if the iterators show to different containers. |
Definition at line 300 of file randomAccessIterator.h.
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator> | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const |
Greater operator. Returns true if both iterators have the same container and the element of this iterator resides after the elemen of the given iterator.
InvalidIterator | if one of the iterators is not valid |
IncompatibleIterators | if the iterators show to different containers. |
Definition at line 339 of file randomAccessIterator.h.
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator>= | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const |
Greater or equal operator. Returns true if both iterators have the same container and the element of this iterator resides after the elemen of the given iterator or both iterators point to the same element.
InvalidIterator | if one of the iterators is not valid |
IncompatibleIterators | if the iterators show to different containers. |
Definition at line 319 of file randomAccessIterator.h.
const DataType & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator[] | ( | Index | index | ) | const |
Random access operator.
Exception::InvalidIterator |
Definition at line 359 of file randomAccessIterator.h.
|
static |
Return a Const RandomAccessIterator for a given container. It points at the last element of the container.
Exception::InvalidIterator |
Definition at line 389 of file randomAccessIterator.h.
|
static |
Return a Const RandomAccessIterator for a given container. It points before the first element.
Exception::InvalidIterator |
Definition at line 398 of file randomAccessIterator.h.