BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Protected Member Functions | List of all members
BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess > Class Template Reference

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

Inheritance diagram for BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >:
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstForwardFilterIterator< Predicate, IteratorRandomAccess > BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >

Public Types

Typedefs
typedef
IteratorRandomAccess::container_type 
Container
 
typedef
IteratorRandomAccess::value_type 
value_type
 
typedef
IteratorRandomAccess::difference_type 
difference_type
 
typedef
IteratorRandomAccess::pointer 
pointer
 
typedef
IteratorRandomAccess::reference 
reference
 
typedef
ConstRandomAccessFilterIterator
< Predicate,
IteratorRandomAccess
Base
 
- Public Types inherited from BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >
typedef
IteratorRandomAccess::difference_type 
difference_type
 
typedef
IteratorRandomAccess::value_type 
value_type
 
typedef
IteratorRandomAccess::container_type 
Container
 
typedef
IteratorRandomAccess::value_type 
DataType
 
typedef
IteratorRandomAccess::difference_type 
Position
 
typedef
IteratorRandomAccess::traits_type 
Traits
 
typedef
IteratorRandomAccess::pointer 
pointer
 
typedef
IteratorRandomAccess::reference 
reference
 
typedef
std::random_access_iterator_tag 
iterator_category
 
typedef
ConstBidirectionalFilterIterator
< Predicate,
IteratorRandomAccess
Base
 
- Public Types inherited from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >
typedef
IteratorRandomAccess::container_type 
Container
 
typedef
IteratorRandomAccess::value_type 
DataType
 
typedef
IteratorRandomAccess::difference_type 
Position
 
typedef
IteratorRandomAccess::traits_type 
Traits
 
typedef
IteratorRandomAccess::value_type 
value_type
 
typedef
IteratorRandomAccess::difference_type 
difference_type
 
typedef
IteratorRandomAccess::pointer 
pointer
 
typedef
IteratorRandomAccess::reference 
reference
 
typedef
std::bidirectional_iterator_tag 
iterator_category
 
typedef
ConstForwardFilterIterator
< Predicate,
IteratorRandomAccess
Base
 
- Public Types inherited from BALL::ConstForwardFilterIterator< Predicate, IteratorRandomAccess >
typedef
IteratorRandomAccess::container_type 
Container
 
typedef
IteratorRandomAccess::value_type 
DataType
 
typedef
IteratorRandomAccess::difference_type 
Position
 
typedef
IteratorRandomAccess::traits_type 
Traits
 
typedef
IteratorRandomAccess::value_type 
value_type
 
typedef
IteratorRandomAccess::difference_type 
difference_type
 
typedef
IteratorRandomAccess::pointer 
pointer
 
typedef
IteratorRandomAccess::reference 
reference
 
typedef std::forward_iterator_tag iterator_category
 
typedef BaseFilterIterator
< Predicate,
IteratorRandomAccess
Base
 
- Public Types inherited from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >
typedef
IteratorRandomAccess::container_type 
Container
 
typedef
IteratorRandomAccess::value_type 
DataType
 
typedef
IteratorRandomAccess::difference_type 
Position
 
typedef
IteratorRandomAccess::traits_type 
Traits
 
typedef
IteratorRandomAccess::value_type 
value_type
 
typedef
IteratorRandomAccess::difference_type 
difference_type
 
typedef
IteratorRandomAccess::pointer 
pointer
 
typedef
IteratorRandomAccess::reference 
reference
 
typedef std::input_iterator_tag iterator_category
 

Public Member Functions

Constructors and Destructors
 RandomAccessFilterIterator ()
 
 RandomAccessFilterIterator (Predicate p, IteratorRandomAccess it)
 
 RandomAccessFilterIterator (const RandomAccessFilterIterator &iterator)
 
 ~RandomAccessFilterIterator ()
 
Dereferenciation
reference operator[] (Index index) const
 
reference operator* () const
 
pointer operator-> () const
 
- Public Member Functions inherited from BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >
 ConstRandomAccessFilterIterator ()
 
 ConstRandomAccessFilterIterator (Predicate p, IteratorRandomAccess it)
 
 ConstRandomAccessFilterIterator (const ConstRandomAccessFilterIterator &iterator)
 
 ~ConstRandomAccessFilterIterator ()
 
bool operator+ () const
 
bool operator- () const
 
bool operator< (const ConstRandomAccessFilterIterator &iterator) const
 
bool operator<= (const ConstRandomAccessFilterIterator &iterator) const
 
bool operator>= (const ConstRandomAccessFilterIterator &iterator) const
 
bool operator> (const ConstRandomAccessFilterIterator &iterator) const
 
const DataTypeoperator[] (Index index) const
 
ConstRandomAccessFilterIteratoroperator+= (Distance distance)
 
ConstRandomAccessFilterIteratoroperator-= (Distance distance)
 
ConstRandomAccessFilterIterator operator+ (Distance distance) const
 
ConstRandomAccessFilterIterator operator- (Distance distance) const
 
Distance operator- (const ConstRandomAccessFilterIterator &iterator) const
 
- Public Member Functions inherited from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >
void setIterator (const IteratorRandomAccess &iterator)
 Set the internal iterator. More...
 
 ConstBidirectionalFilterIterator ()
 
 ConstBidirectionalFilterIterator (Predicate p, IteratorRandomAccessit)
 
 ConstBidirectionalFilterIterator (const ConstBidirectionalFilterIterator &iterator)
 
 ~ConstBidirectionalFilterIterator ()
 
void toBegin ()
 
bool isBegin () const
 Check whether the iterator points to the item at the beginning of the container. More...
 
void toEnd ()
 
bool isEnd () const
 Check whether the iterator points to the position after the last item of the container. More...
 
void toRBegin ()
 
bool isRBegin () const
 Test whether the iterator points to the "reverse" first element of the container. More...
 
void toREnd ()
 
bool isREnd () const
 Test wheter the iterator points to the position before the first element. More...
 
ConstBidirectionalFilterIteratoroperator++ ()
 
ConstBidirectionalFilterIterator operator++ (int)
 
ConstBidirectionalFilterIteratoroperator-- ()
 
ConstBidirectionalFilterIterator operator-- (int)
 
- Public Member Functions inherited from BALL::ConstForwardFilterIterator< Predicate, IteratorRandomAccess >
void setIterator (const IteratorRandomAccess &iterator)
 Set the internal iterator. More...
 
const IteratorRandomAccessgetIterator () const
 Get a constant reference to the internal iterator. More...
 
IteratorRandomAccessgetIterator ()
 Get a constant reference to the internal iterator. More...
 
 ConstForwardFilterIterator ()
 Default constructor. More...
 
 ConstForwardFilterIterator (Predicate p, IteratorRandomAccessit)
 
 ConstForwardFilterIterator (const ConstForwardFilterIterator &iterator)
 Copy constructor. More...
 
 ~ConstForwardFilterIterator ()
 
ConstForwardFilterIteratoroperator= (const ConstForwardFilterIterator &iterator)
 
void swap (ConstForwardFilterIterator &iterator)
 
void toBegin ()
 
bool isBegin () const
 Check whether the iterator points to the first item of the container. More...
 
void toEnd ()
 
bool isEnd () const
 Check whether the iterator points behind the last item of the container. More...
 
ConstForwardFilterIteratoroperator++ ()
 
ConstForwardFilterIterator operator++ (int)
 
- Public Member Functions inherited from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >
 BaseFilterIterator ()
 Default constructor. More...
 
 BaseFilterIterator (Predicate p, IteratorRandomAccessit)
 Default constructor. More...
 
 BaseFilterIterator (const BaseFilterIterator &iterator)
 Copy constructor. More...
 
 ~BaseFilterIterator ()
 Destructor. More...
 
BaseFilterIteratoroperator= (const BaseFilterIterator &iterator)
 
void swap (BaseFilterIterator &iterator)
 Swap two iterators. More...
 
void invalidate ()
 Invalidate the iterator. More...
 
void setTraits (const Traits &traits)
 Set the traits. More...
 
const TraitsgetTraits () const
 Get a constant reference to the traits of this iterator. More...
 
TraitsgetTraits ()
 Get a constant reference to the traits of this iterator. More...
 
void setPredicate (const Predicate &predicate)
 Set the predicates. More...
 
const Predicate & getPredicate () const
 Get a constant reference to the traits of this iterator. More...
 
Predicate & getPredicate ()
 Get a constant reference to the traits of this iterator. More...
 
const ContainergetContainer () const
 Get a constant pointer to the container of this iterator. More...
 
 operator const Position & () const
 
reference operator* () const
 Convert an iterator to its Datatype by returning a reference to the current data. More...
 
pointer operator-> () const
 Return a pointer to the current data. More...
 
bool operator== (const BaseFilterIterator &iterator) const
 Equality operator. More...
 
bool operator== (const IteratorRandomAccess &iterator) const
 Equality operator. More...
 
bool operator!= (const BaseFilterIterator &iterator) const
 Inequality operator. More...
 
bool operator!= (const IteratorRandomAccess &iterator) const
 Inequality operator. More...
 
bool isSingular () const
 
bool isValid () const
 
bool operator+ () const
 Validity predicate. More...
 
bool operator- () const
 Invalidity predicate. More...
 

Static Public Member Functions

Assignment
static RandomAccessFilterIterator begin (const Container &container)
 
static RandomAccessFilterIterator end (const Container &container)
 
static RandomAccessFilterIterator rbegin (const Container &container)
 
static RandomAccessFilterIterator rend (const Container &container)
 
- Static Public Member Functions inherited from BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >
static
ConstRandomAccessFilterIterator 
begin (const Container &container)
 
static
ConstRandomAccessFilterIterator 
end (const Container &container)
 
static
ConstRandomAccessFilterIterator 
rbegin (const Container &container)
 
static
ConstRandomAccessFilterIterator 
rend (const Container &container)
 

Protected Member Functions

 RandomAccessFilterIterator (const Container &container)
 
- Protected Member Functions inherited from BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >
 ConstRandomAccessFilterIterator (const Container &container)
 
- Protected Member Functions inherited from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >
 ConstBidirectionalFilterIterator (const Container &container)
 Construct an iterator bound to a specific container. More...
 
- Protected Member Functions inherited from BALL::ConstForwardFilterIterator< Predicate, IteratorRandomAccess >
 ConstForwardFilterIterator (const Container &container)
 
- Protected Member Functions inherited from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >
 BaseFilterIterator (const Container &container)
 

Additional Inherited Members

- Public Attributes inherited from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >
Predicate predicate_
 The instance of the iterator and the predicate. More...
 
IteratorRandomAccess iterator_
 

Detailed Description

template<class Predicate, class IteratorRandomAccess>
class BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >

Random Access Iterator Class

Definition at line 453 of file randomAccessFilterIterator.h.

Member Typedef Documentation

template<class Predicate , class IteratorRandomAccess >
typedef ConstRandomAccessFilterIterator<Predicate, IteratorRandomAccess> BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Base

Definition at line 473 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
typedef IteratorRandomAccess::container_type BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Container

Definition at line 463 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
typedef IteratorRandomAccess::difference_type BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::difference_type

Definition at line 467 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
typedef IteratorRandomAccess::pointer BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::pointer

Definition at line 469 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
typedef IteratorRandomAccess::reference BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::reference

Definition at line 471 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
typedef IteratorRandomAccess::value_type BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::value_type

Definition at line 465 of file randomAccessFilterIterator.h.

Constructor & Destructor Documentation

template<class Predicate , class IteratorRandomAccess >
BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::RandomAccessFilterIterator ( )
inline

Definition at line 481 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::RandomAccessFilterIterator ( Predicate  p,
IteratorRandomAccess  it 
)
inline

Definition at line 484 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::RandomAccessFilterIterator ( const RandomAccessFilterIterator< Predicate, IteratorRandomAccess > &  iterator)
inline

Definition at line 490 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::~RandomAccessFilterIterator ( )
inline

Definition at line 496 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::RandomAccessFilterIterator ( const Container container)
inlineprotected

Definition at line 542 of file randomAccessFilterIterator.h.

Member Function Documentation

template<class Predicate , class IteratorRandomAccess >
RandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::begin ( const Container container)
static

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

Exceptions
Exception::InvalidIteratorif the iterator is invalid

Definition at line 552 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
RandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::end ( const Container container)
static

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

Exceptions
Exception::InvalidIteratorif the iterator is invalid

Definition at line 561 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
reference BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator* ( ) const
inline

Definition at line 507 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
pointer BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator-> ( ) const
inline

Definition at line 509 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
reference BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator[] ( Index  index) const
inline

Random access operator.

Exceptions
Exception::InvalidIteratorif the iterator is invalid

Definition at line 505 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
RandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::rbegin ( const Container container)
static

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

Exceptions
Exception::InvalidIteratorif the iterator is invalid

Definition at line 570 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
RandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >::rend ( const Container container)
static

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

Exceptions
Exception::InvalidIteratorif the iterator is invalid

Definition at line 579 of file randomAccessFilterIterator.h.