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

#include <BALL/CONCEPT/bidirectionalIterator.h>

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

List of all members.

Public Types

Typedefs

typedef
std::bidirectional_iterator_tag 
iterator_category
typedef ConstForwardIterator
< Container, DataType,
Position, Traits > 
Base
typedef
std::bidirectional_iterator_tag 
iterator_category
typedef ConstForwardIterator
< Container, DataType,
Position, Traits > 
Base

Public Member Functions

Constructors and destructor.

BALL_INLINE ConstBidirectionalIterator ()
BALL_INLINE ConstBidirectionalIterator (const ConstBidirectionalIterator &iterator)
BALL_INLINE ~ConstBidirectionalIterator ()
 ConstBidirectionalIterator ()
 ConstBidirectionalIterator (const ConstBidirectionalIterator &iterator)
 ~ConstBidirectionalIterator ()

Protected Member Functions

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

Iterator methods



BALL_INLINE void toBegin ()
BALL_INLINE bool isBegin () const
 Check whether the iterator points to the item at the beginning of the container.
void toEnd ()
BALL_INLINE bool isEnd () const
 Check whether the iterator points to the position after the last item of the container.
void toRBegin ()
BALL_INLINE bool isRBegin () const
 Test whether the iterator points to the "reverse" first element of the container.
void toREnd ()
BALL_INLINE bool isREnd () const
 Test wheter the iterator points to the position before the first element.
BALL_INLINE
ConstBidirectionalIterator
operator++ ()
BALL_INLINE
ConstBidirectionalIterator 
operator++ (int)
BALL_INLINE
ConstBidirectionalIterator
operator-- ()
BALL_INLINE
ConstBidirectionalIterator 
operator-- (int)
void toBegin ()
bool isBegin () const
 Check whether the iterator points to the item at the beginning of the container.
void toEnd ()
bool isEnd () const
 Check whether the iterator points to the position after the last item of the container.
void toRBegin ()
bool isRBegin () const
 Test whether the iterator points to the "reverse" first element of the container.
void toREnd ()
bool isREnd () const
 Test wheter the iterator points to the position before the first element.
ConstBidirectionalIteratoroperator++ ()
ConstBidirectionalIterator operator++ (int)
ConstBidirectionalIteratoroperator-- ()
ConstBidirectionalIterator operator-- (int)
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 ConstBidirectionalIterator begin (const Container &container)
static ConstBidirectionalIterator end (const Container &container)
static ConstBidirectionalIterator rbegin (const Container &container)
static ConstBidirectionalIterator rend (const Container &container)

Detailed Description

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

Constant Bidirectional Iterator.

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


Member Typedef Documentation

template<typename Container, typename DataType, typename Position, typename Traits>
typedef ConstForwardIterator<Container, DataType, Position, Traits> BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::Base
template<typename Container, typename DataType, typename Position, typename Traits>
typedef ConstForwardIterator<Container, DataType, Position, Traits> BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::Base
template<typename Container, typename DataType, typename Position, typename Traits>
typedef std::bidirectional_iterator_tag BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::iterator_category
template<typename Container, typename DataType, typename Position, typename Traits>
typedef std::bidirectional_iterator_tag BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::iterator_category

Constructor & Destructor Documentation

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

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

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

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

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

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

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

Construct an iterator bound to a specific container.

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

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

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

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

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

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

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

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

Construct an iterator bound to a specific container.

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


Member Function Documentation

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

Check whether the iterator points to the item at the beginning of the container.

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

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

template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE bool BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::isBegin (  )  const [inline]

Check whether the iterator points to the item at the beginning of the container.

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

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

template<typename Container, typename DataType, typename Position, typename Traits>
bool BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::isEnd (  )  const [inline]

Check whether the iterator points to the position after the last item of the container.

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

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

template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE bool BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::isEnd (  )  const [inline]

Check whether the iterator points to the position after the last item of the container.

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

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

template<typename Container, typename DataType, typename Position, typename Traits>
bool BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::isRBegin (  )  const [inline]

Test whether the iterator points to the "reverse" first element of the container.

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

template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE bool BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::isRBegin (  )  const [inline]

Test whether the iterator points to the "reverse" first element of the container.

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

template<typename Container, typename DataType, typename Position, typename Traits>
bool BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::isREnd (  )  const [inline]

Test wheter the iterator points to the position before the first element.

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

template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE bool BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::isREnd (  )  const [inline]

Test wheter the iterator points to the position before the first element.

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

template<typename Container, typename DataType, typename Position, typename Traits>
ConstBidirectionalIterator BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator++ ( int   ) 
template<typename Container, typename DataType, typename Position, typename Traits>
ConstBidirectionalIterator& BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator++ (  ) 
template<typename Container , typename DataType , typename Position , typename Traits >
ConstBidirectionalIterator< Container, DataType, Position, Traits > BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator++ ( int   )  [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstBidirectionalIterator< Container, DataType, Position, Traits > & BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator++ (  )  [inline]
template<typename Container, typename DataType, typename Position, typename Traits>
ConstBidirectionalIterator BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator-- ( int   ) 
template<typename Container, typename DataType, typename Position, typename Traits>
ConstBidirectionalIterator& BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator-- (  ) 
template<typename Container , typename DataType , typename Position , typename Traits >
ConstBidirectionalIterator< Container, DataType, Position, Traits > BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator-- ( int   )  [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstBidirectionalIterator< Container, DataType, Position, Traits > & BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::operator-- (  )  [inline]
template<typename Container, typename DataType, typename Position, typename Traits>
static ConstBidirectionalIterator BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::rbegin ( const Container &  container  )  [static]
template<typename Container, typename DataType , typename Position , typename Traits >
ConstBidirectionalIterator< Container, DataType, Position, Traits > BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::rbegin ( const Container &  container  )  [inline, static]
template<typename Container, typename DataType, typename Position, typename Traits>
static ConstBidirectionalIterator BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::rend ( const Container &  container  )  [static]
template<typename Container, typename DataType , typename Position , typename Traits >
ConstBidirectionalIterator< Container, DataType, Position, Traits > BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::rend ( const Container &  container  )  [inline, static]
template<typename Container, typename DataType, typename Position, typename Traits>
void BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toBegin (  ) 

Move the iterator to the beginning of the container

Exceptions:
Exception::SingularIterator if the iterator is singular

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

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

Move the iterator to the beginning of the container

Exceptions:
Exception::Precondition 

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

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

template<typename Container, typename DataType, typename Position, typename Traits>
void BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toEnd (  ) 

Move the iterator to the position after the last item of the container

Exceptions:
Exception::SingularIterator if the iterator is singular

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

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

Move the iterator to the position after the last item of the container

Exceptions:
Exception::Precondition 

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

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

template<typename Container, typename DataType, typename Position, typename Traits>
void BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toRBegin (  ) 

Move the iterator to the "reverse" beginning of the container

Exceptions:
Exception::SingularIterator if the iterator is singular
template<typename Container , typename DataType , typename Position , typename Traits >
void BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toRBegin (  )  [inline]

Move the iterator to the "reverse" beginning of the container

Exceptions:
Exception::Precondition 

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

template<typename Container, typename DataType, typename Position, typename Traits>
void BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toREnd (  ) 

Move the iterator to the position before the first element

Exceptions:
Exception::SingularIterator if the iterator is singular
template<typename Container , typename DataType , typename Position , typename Traits >
void BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toREnd (  )  [inline]

Move the iterator to the position before the first element

Exceptions:
Exception::Precondition 

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

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