BALL::ConstForwardFilterIterator< Predicate, IteratorForward > Class Template Reference

#include <BALL/MATHS/LINALG/forwardFilterIterator.h>

Inheritance diagram for BALL::ConstForwardFilterIterator< Predicate, IteratorForward >:
BALL::BaseFilterIterator< Predicate, IteratorForward >

List of all members.


Public Types

Typedefs
typedef
IteratorForward::container_type 
Container
typedef IteratorForward::value_type DataType
typedef
IteratorForward::difference_type 
Position
typedef
IteratorForward::traits_type 
Traits
typedef IteratorForward::value_type value_type
typedef
IteratorForward::difference_type 
difference_type
typedef IteratorForward::pointer pointer
typedef IteratorForward::reference reference
typedef std::forward_iterator_tag iterator_category
typedef BaseFilterIterator
< Predicate, IteratorForward
Base

Public Member Functions

void setIterator (const IteratorForward &iterator) throw ()
 

Set the internal iterator.


const IteratorForwardgetIterator () const throw ()
 

Get a constant reference to the internal iterator.


IteratorForwardgetIterator () throw ()
 

Get a constant reference to the internal iterator.


Constructors and Destructors
 ConstForwardFilterIterator () throw ()
 

Default constructor.


 ConstForwardFilterIterator (Predicate p, IteratorForward it) throw ()
 ConstForwardFilterIterator (const ConstForwardFilterIterator &iterator) throw ()
 

Copy constructor.


 ~ConstForwardFilterIterator () throw ()
Assignment
ConstForwardFilterIteratoroperator= (const ConstForwardFilterIterator &iterator) throw ()
void swap (ConstForwardFilterIterator &iterator) throw ()

Protected Member Functions

template<typename Container >
 ConstForwardFilterIterator (const Container &container) throw ()

Iterator methods

void toBegin () throw (Exception::SingularIterator)
 

Move the iterator to the item at the beginning of the container.


bool isBegin () const throw ()
 

Check whether the iterator points to the first item of the container.


void toEnd () throw (Exception::SingularIterator)
 

Move the iterator behind the last item of the container.


bool isEnd () const throw ()
 

Check whether the iterator points behind the last item of the container.


ConstForwardFilterIteratoroperator++ () throw (Exception::InvalidIterator)
 

Increment operator.


ConstForwardFilterIterator operator++ (int) throw (Exception::InvalidIterator)
 

Postfix increment operator.


static ConstForwardFilterIterator begin (const Container &container) throw (Exception::Precondition)
 

Return an iterator pointing to the beginning of the container.


static ConstForwardFilterIterator end (const Container &container) throw (Exception::Precondition)
 

Return an iterator pointing at the end of the container.



Detailed Description

template<class Predicate, class IteratorForward>
class BALL::ConstForwardFilterIterator< Predicate, IteratorForward >

Generic non-mutable forward iterator

Definition at line 18 of file forwardFilterIterator.h.


Member Typedef Documentation

template<class Predicate, class IteratorForward>
typedef BaseFilterIterator<Predicate, IteratorForward> BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Base
template<class Predicate, class IteratorForward>
typedef IteratorForward::container_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Container
template<class Predicate, class IteratorForward>
typedef IteratorForward::value_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::DataType
template<class Predicate, class IteratorForward>
typedef IteratorForward::difference_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::difference_type
template<class Predicate, class IteratorForward>
typedef std::forward_iterator_tag BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::iterator_category
template<class Predicate, class IteratorForward>
typedef IteratorForward::pointer BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::pointer
template<class Predicate, class IteratorForward>
typedef IteratorForward::difference_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Position
template<class Predicate, class IteratorForward>
typedef IteratorForward::reference BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::reference
template<class Predicate, class IteratorForward>
typedef IteratorForward::traits_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Traits
template<class Predicate, class IteratorForward>
typedef IteratorForward::value_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::value_type

Constructor & Destructor Documentation

template<class Predicate, class IteratorForward>
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator (  )  throw () [inline]

Default constructor.

Definition at line 55 of file forwardFilterIterator.h.

template<class Predicate, class IteratorForward>
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator ( Predicate  p,
IteratorForward  it 
) throw () [inline]

Definition at line 58 of file forwardFilterIterator.h.

template<class Predicate, class IteratorForward>
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator ( const ConstForwardFilterIterator< Predicate, IteratorForward > &  iterator  )  throw () [inline]

Copy constructor.

Definition at line 66 of file forwardFilterIterator.h.

template<class Predicate, class IteratorForward>
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::~ConstForwardFilterIterator (  )  throw () [inline]

Definition at line 72 of file forwardFilterIterator.h.

template<class Predicate, class IteratorForward>
template<typename Container >
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator ( const Container container  )  throw () [inline, protected]

Definition at line 167 of file forwardFilterIterator.h.


Member Function Documentation

template<class Predicate , class IteratorForward >
ConstForwardFilterIterator< Predicate, IteratorForward > BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::begin ( const Container container  )  throw (Exception::Precondition) [inline, static]
template<class Predicate , class IteratorForward >
ConstForwardFilterIterator< Predicate, IteratorForward > BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::end ( const Container container  )  throw (Exception::Precondition) [inline, static]
template<class Predicate, class IteratorForward>
IteratorForward& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::getIterator (  )  throw () [inline]

Get a constant reference to the internal iterator.

Definition at line 107 of file forwardFilterIterator.h.

template<class Predicate, class IteratorForward>
const IteratorForward& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::getIterator (  )  const throw () [inline]

Get a constant reference to the internal iterator.

Definition at line 104 of file forwardFilterIterator.h.

template<class Predicate , class IteratorForward >
bool BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::isBegin (  )  const throw () [inline]
template<class Predicate , class IteratorForward >
bool BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::isEnd (  )  const throw () [inline]
template<class Predicate, class IteratorForward>
ConstForwardFilterIterator BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator++ ( int   )  throw (Exception::InvalidIterator) [inline]
template<class Predicate, class IteratorForward>
ConstForwardFilterIterator& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator++ (  )  throw (Exception::InvalidIterator) [inline]
template<class Predicate, class IteratorForward>
ConstForwardFilterIterator& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator= ( const ConstForwardFilterIterator< Predicate, IteratorForward > &  iterator  )  throw () [inline]

Definition at line 80 of file forwardFilterIterator.h.

template<class Predicate, class IteratorForward>
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::setIterator ( const IteratorForward iterator  )  throw () [inline]
template<class Predicate, class IteratorForward>
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::swap ( ConstForwardFilterIterator< Predicate, IteratorForward > &  iterator  )  throw () [inline]

Definition at line 87 of file forwardFilterIterator.h.

template<class Predicate , class IteratorForward >
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::toBegin (  )  throw (Exception::SingularIterator) [inline]
template<class Predicate , class IteratorForward >
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::toEnd (  )  throw (Exception::SingularIterator) [inline]

Generated on Tue Dec 7 19:12:48 2010 for BALL by  doxygen 1.5.9