BALL::RandomAccessIterator< Container, DataType, Position, Traits > Class Template Reference

#include <BALL/CONCEPT/randomAccessIterator.h>

Inheritance diagram for BALL::RandomAccessIterator< Container, DataType, Position, Traits >:
BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > BALL::ConstForwardIterator< Container, DataType, Position, Traits > BALL::BaseIterator< Container, DataType, Position, Traits >

List of all members.


Public Types

Typedefs
typedef DataType & reference
typedef DataType * pointer
typedef
ConstRandomAccessIterator
< Container, DataType,
Position, Traits > 
Base

Public Member Functions

Constructors and Destructors
BALL_INLINE RandomAccessIterator ()
BALL_INLINE RandomAccessIterator (const RandomAccessIterator &iterator)
BALL_INLINE ~RandomAccessIterator ()
Dereferenciation
BALL_INLINE reference operator[] (Index index) const throw (Exception::InvalidIterator)
BALL_INLINE reference operator* () const
 

Convert an iterator to its Datatype by returning a reference to the current data.


BALL_INLINE pointer operator-> () const
 

Return a pointer to the current data.



Static Public Member Functions

Assignment
static RandomAccessIterator begin (const Container &container) throw (Exception::InvalidIterator)
static RandomAccessIterator end (const Container &container) throw (Exception::InvalidIterator)
static RandomAccessIterator rbegin (const Container &container) throw (Exception::InvalidIterator)
static RandomAccessIterator rend (const Container &container) throw (Exception::InvalidIterator)

Protected Member Functions

BALL_INLINE RandomAccessIterator (const Container &container)

Detailed Description

template<typename Container, typename DataType, typename Position, typename Traits>
class BALL::RandomAccessIterator< Container, DataType, Position, Traits >

Random Access Iterator Class


Member Typedef Documentation

template<typename Container , typename DataType , typename Position , typename Traits >
typedef ConstRandomAccessIterator<Container, DataType, Position, Traits> BALL::RandomAccessIterator< Container, DataType, Position, Traits >::Base
template<typename Container , typename DataType , typename Position , typename Traits >
typedef DataType* BALL::RandomAccessIterator< Container, DataType, Position, Traits >::pointer
template<typename Container , typename DataType , typename Position , typename Traits >
typedef DataType& BALL::RandomAccessIterator< Container, DataType, Position, Traits >::reference

Constructor & Destructor Documentation

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE BALL::RandomAccessIterator< Container, DataType, Position, Traits >::RandomAccessIterator (  )  [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE BALL::RandomAccessIterator< Container, DataType, Position, Traits >::RandomAccessIterator ( const RandomAccessIterator< Container, DataType, Position, Traits > &  iterator  )  [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE BALL::RandomAccessIterator< Container, DataType, Position, Traits >::~RandomAccessIterator (  )  [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE BALL::RandomAccessIterator< Container, DataType, Position, Traits >::RandomAccessIterator ( const Container &  container  )  [inline, protected]

Member Function Documentation

template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::begin ( const Container &  container  )  throw (Exception::InvalidIterator) [inline, static]
template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::end ( const Container &  container  )  throw (Exception::InvalidIterator) [inline, static]

Return a RandomAccessIterator for a given container. It points behind the last element of the container.

Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.

References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toEnd().

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE reference BALL::RandomAccessIterator< Container, DataType, Position, Traits >::operator* (  )  const [inline]

Convert an iterator to its Datatype by returning a reference to the current data.

Reimplemented from BALL::BaseIterator< Container, DataType, Position, Traits >.

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE pointer BALL::RandomAccessIterator< Container, DataType, Position, Traits >::operator-> (  )  const [inline]

Return a pointer to the current data.

Reimplemented from BALL::BaseIterator< Container, DataType, Position, Traits >.

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE reference BALL::RandomAccessIterator< Container, DataType, Position, Traits >::operator[] ( Index  index  )  const throw (Exception::InvalidIterator) [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::rbegin ( const Container &  container  )  throw (Exception::InvalidIterator) [inline, static]
template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::rend ( const Container &  container  )  throw (Exception::InvalidIterator) [inline, static]