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

Mutable bidirectional iterator. More...

#include <BALL/CONCEPT/bidirectionalIterator.h>

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

List of all members.

Public Types

Typedefs

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

Public Member Functions

Constructors and Destructor

BALL_INLINE BidirectionalIterator ()
 Default constructor.
BALL_INLINE BidirectionalIterator (const BidirectionalIterator &iterator)
 Copy constructor.
BALL_INLINE ~BidirectionalIterator ()
 Destructor.
 BidirectionalIterator ()
 Default constructor.
 BidirectionalIterator (const BidirectionalIterator &iterator)
 Copy constructor.
 ~BidirectionalIterator ()
 Destructor.

Protected Member Functions

BALL_INLINE BidirectionalIterator (const Container &container)
 Construct an iterator bound to a specific container.
 BidirectionalIterator (const Container &container)
 Construct an iterator bound to a specific container.

Iterator methods



BALL_INLINE reference operator* () const
 Dereferentiation.
BALL_INLINE pointer operator-> () const
 Pointer dereferentiation.
BALL_INLINE BidirectionalIteratoroperator++ ()
BALL_INLINE BidirectionalIterator operator++ (int)
BALL_INLINE BidirectionalIteratoroperator-- ()
BALL_INLINE BidirectionalIterator operator-- (int)
reference operator* () const
 Dereferentiation.
pointer operator-> () const
 Pointer dereferentiation.
BidirectionalIteratoroperator++ ()
BidirectionalIterator operator++ (int)
BidirectionalIteratoroperator-- ()
BidirectionalIterator operator-- (int)
static BidirectionalIterator begin (const Container &container)
static BidirectionalIterator end (const Container &container)
static BidirectionalIterator rbegin (const Container &container)
static BidirectionalIterator rend (const Container &container)
static BidirectionalIterator begin (const Container &container)
static BidirectionalIterator end (const Container &container)
static BidirectionalIterator rbegin (const Container &container)
static BidirectionalIterator rend (const Container &container)

Detailed Description

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

Mutable bidirectional iterator.

Definition at line 258 of file CONCEPT/bidirectionalIterator.h.


Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 280 of file CONCEPT/bidirectionalIterator.h.

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

Copy constructor.

Definition at line 283 of file CONCEPT/bidirectionalIterator.h.

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

Destructor.

Definition at line 290 of file CONCEPT/bidirectionalIterator.h.

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

Construct an iterator bound to a specific container.

Definition at line 432 of file CONCEPT/bidirectionalIterator.h.

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

Default constructor.

Definition at line 296 of file MATHS/LINALG/bidirectionalIterator.h.

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

Copy constructor.

Definition at line 299 of file MATHS/LINALG/bidirectionalIterator.h.

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

Destructor.

Definition at line 305 of file MATHS/LINALG/bidirectionalIterator.h.

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

Construct an iterator bound to a specific container.


Member Function Documentation

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

Return an iterator pointing to the first item of the container

Exceptions:
Exception::Precondition 

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

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

Return an iterator pointing to the first item of the container

Exceptions:
Exception::Precondition 

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

Definition at line 393 of file CONCEPT/bidirectionalIterator.h.

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

Return an iterator pointing to the position after the last element

Exceptions:
Exception::Precondition 

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

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

Return an iterator pointing to the position after the last element

Exceptions:
Exception::Precondition 

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

Definition at line 403 of file CONCEPT/bidirectionalIterator.h.

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

Dereferentiation.

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

Definition at line 314 of file MATHS/LINALG/bidirectionalIterator.h.

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

Dereferentiation.

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

Definition at line 299 of file CONCEPT/bidirectionalIterator.h.

template<typename Container, typename DataType, typename Position, typename Traits>
BidirectionalIterator BALL::BidirectionalIterator< Container, DataType, Position, Traits >::operator++ ( int   ) 

Postfix increment operator

Exceptions:
Exception::Precondition 

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

template<typename Container, typename DataType, typename Position, typename Traits>
BidirectionalIterator& BALL::BidirectionalIterator< Container, DataType, Position, Traits >::operator++ (  ) 
template<typename Container , typename DataType , typename Position , typename Traits >
BidirectionalIterator< Container, DataType, Position, Traits > BALL::BidirectionalIterator< Container, DataType, Position, Traits >::operator++ ( int   )  [inline]

Postfix increment operator

Exceptions:
Exception::Precondition 

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

Definition at line 364 of file CONCEPT/bidirectionalIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
BidirectionalIterator< Container, DataType, Position, Traits > & BALL::BidirectionalIterator< Container, DataType, Position, Traits >::operator++ (  )  [inline]
template<typename Container, typename DataType, typename Position, typename Traits>
BidirectionalIterator BALL::BidirectionalIterator< Container, DataType, Position, Traits >::operator-- ( int   ) 

Postfix decrement operator

Exceptions:
Exception::Precondition 

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

template<typename Container, typename DataType, typename Position, typename Traits>
BidirectionalIterator& BALL::BidirectionalIterator< Container, DataType, Position, Traits >::operator-- (  ) 
template<typename Container , typename DataType , typename Position , typename Traits >
BidirectionalIterator< Container, DataType, Position, Traits > BALL::BidirectionalIterator< Container, DataType, Position, Traits >::operator-- ( int   )  [inline]

Postfix decrement operator

Exceptions:
Exception::Precondition 

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

Definition at line 383 of file CONCEPT/bidirectionalIterator.h.

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

Pointer dereferentiation.

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

Definition at line 317 of file MATHS/LINALG/bidirectionalIterator.h.

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

Pointer dereferentiation.

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

Definition at line 302 of file CONCEPT/bidirectionalIterator.h.

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

Return an iterator pointing to the last element.

Exceptions:
Exception::Precondition 

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

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

Return an iterator pointing to the last element.

Exceptions:
Exception::Precondition 

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

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

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

Return an iterator pointing to the positon before the first element

Exceptions:
Exception::Precondition 

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

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

Return an iterator pointing to the positon before the first element

Exceptions:
Exception::Precondition 

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

Definition at line 423 of file CONCEPT/bidirectionalIterator.h.

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