Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

RandomAccessIterator< Container, DataType, Position, Traits > Class Template Reference
[Iterators]

Random Access Iterator Class. More...

#include <randomAccessIterator.h>

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
 RandomAccessIterator (const RandomAccessIterator &iterator) throw ()
Dereferenciation
reference operator[] (Index index) const throw (Exception::InvalidIterator)
reference operator * () const throw ()
pointer operator-> () const throw ()

Static Public Member Functions

Assignment
RandomAccessIterator begin (const Container &container) throw (Exception::InvalidIterator)
 Return a RandomAccessIterator for a given container.
RandomAccessIterator end (const Container &container) throw (Exception::InvalidIterator)
 Return a RandomAccessIterator for a given container.
RandomAccessIterator rbegin (const Container &container) throw (Exception::InvalidIterator)
 Return a RandomAccessIterator for a given container.
RandomAccessIterator rend (const Container &container) throw (Exception::InvalidIterator)
 Return a RandomAccessIterator for a given container.

Protected Member Functions

 RandomAccessIterator (const Container &container) throw ()


Detailed Description

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

Random Access Iterator Class.


Member Function Documentation

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

Return a RandomAccessIterator for a given container.

It points at the first element.

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

Return a RandomAccessIterator for a given container.

It points behind the last element of the container.

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

Return a RandomAccessIterator for a given container.

It points at the last element of the container.

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

Return a RandomAccessIterator for a given container.

It points before the first element.