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

#include <BALL/CONCEPT/randomAccessIterator.h>

Inheritance diagram for BALL::RandomAccessIterator< Container, DataType, Position, Traits >:
Inheritance graph
[legend]

List of all members.

Public Types

Typedefs

typedef DataType & reference
typedef DataType * pointer
typedef
ConstRandomAccessIterator
< Container, DataType,
Position, Traits > 
Base
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 ()
 RandomAccessIterator ()
 RandomAccessIterator (const RandomAccessIterator &iterator)
 ~RandomAccessIterator ()
Dereferenciation

BALL_INLINE reference operator[] (Index index) const
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.
reference operator[] (Index index) const
reference operator* () const
 Convert an iterator to its Datatype by returning a reference to the current data.
pointer operator-> () const
 Return a pointer to the current data.

Static Public Member Functions

Assignment

static RandomAccessIterator begin (const Container &container)
static RandomAccessIterator end (const Container &container)
static RandomAccessIterator rbegin (const Container &container)
static RandomAccessIterator rend (const Container &container)
static RandomAccessIterator begin (const Container &container)
static RandomAccessIterator end (const Container &container)
static RandomAccessIterator rbegin (const Container &container)
static RandomAccessIterator rend (const Container &container)

Protected Member Functions

BALL_INLINE RandomAccessIterator (const Container &container)
 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

Definition at line 413 of file CONCEPT/randomAccessIterator.h.


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 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 >::pointer
template<typename Container , typename DataType , typename Position , typename Traits >
typedef DataType& BALL::RandomAccessIterator< Container, DataType, Position, Traits >::reference
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]

Definition at line 434 of file CONCEPT/randomAccessIterator.h.

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]

Definition at line 437 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE BALL::RandomAccessIterator< Container, DataType, Position, Traits >::~RandomAccessIterator (  )  [inline]

Definition at line 443 of file CONCEPT/randomAccessIterator.h.

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

Definition at line 489 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
BALL::RandomAccessIterator< Container, DataType, Position, Traits >::RandomAccessIterator (  )  [inline]

Definition at line 449 of file MATHS/LINALG/randomAccessIterator.h.

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

Definition at line 452 of file MATHS/LINALG/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
BALL::RandomAccessIterator< Container, DataType, Position, Traits >::~RandomAccessIterator (  )  [inline]

Definition at line 458 of file MATHS/LINALG/randomAccessIterator.h.

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

Definition at line 504 of file MATHS/LINALG/randomAccessIterator.h.


Member Function Documentation

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

Return a RandomAccessIterator for a given container. It points at the first element.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

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

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

Return a RandomAccessIterator for a given container. It points at the first element.

Exceptions:
Exception::InvalidIterator 

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

Definition at line 499 of file CONCEPT/randomAccessIterator.h.

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

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

Exceptions:
Exception::InvalidIterator if the iterator is invalid

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

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

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

Exceptions:
Exception::InvalidIterator 

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

Definition at line 508 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
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 >.

Definition at line 469 of file MATHS/LINALG/randomAccessIterator.h.

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 >.

Definition at line 454 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
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 >.

Definition at line 471 of file MATHS/LINALG/randomAccessIterator.h.

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 >.

Definition at line 456 of file CONCEPT/randomAccessIterator.h.

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

Random access operator.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

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

Definition at line 467 of file MATHS/LINALG/randomAccessIterator.h.

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

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

Exceptions:
Exception::InvalidIterator if the iterator is invalid

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

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

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

Exceptions:
Exception::InvalidIterator 

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

Definition at line 517 of file CONCEPT/randomAccessIterator.h.

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

Return a RandomAccessIterator for a given container. It points before the first element.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

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

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

Return a RandomAccessIterator for a given container. It points before the first element.

Exceptions:
Exception::InvalidIterator 

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

Definition at line 526 of file CONCEPT/randomAccessIterator.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3