FreePOOMA  2.4.1
Public Types | Public Member Functions
RangeIterator Class Reference

A random access iterator class that iterates through all of the points of an Range<1>, returning ints when dereferenced. More...

#include <RangeIterator.h>

List of all members.

Public Types

typedef RangeIterator This_t
typedef Range< 1 > Domain_t
typedef ptrdiff_t Value_t
typedef
std::random_access_iterator_tag 
iterator_category
typedef ptrdiff_t value_type
typedef ptrdiff_t difference_type
typedef const ptrdiff_t * pointer
typedef const ptrdiff_t & reference

Public Member Functions

 RangeIterator (const Domain_t &d, int initial_pos=0)
 RangeIterator (const This_t &it)
 RangeIterator ()
const Value_toperator* () const
const Value_toperator-> () const
bool operator== (const This_t &i) const
bool operator!= (const This_t &i) const
bool operator< (const This_t &i) const
bool operator<= (const This_t &i) const
bool operator> (const This_t &i) const
bool operator>= (const This_t &i) const
Value_t operator[] (int n) const
This_t operator+ (int n) const
This_t operator- (int n) const
ptrdiff_t operator- (const This_t &it) const
bool done () const
This_toperator= (const This_t &it)
This_toperator++ ()
This_toperator-- ()
This_t operator++ (int)
This_t operator-- (int)
This_t operator+= (int n)
This_t operator-= (int n)

Detailed Description

A random access iterator class that iterates through all of the points of an Range<1>, returning ints when dereferenced.


Member Typedef Documentation

typedef ptrdiff_t RangeIterator::Value_t
typedef std::random_access_iterator_tag RangeIterator::iterator_category
typedef ptrdiff_t RangeIterator::value_type
typedef ptrdiff_t RangeIterator::difference_type
typedef const ptrdiff_t* RangeIterator::pointer
typedef const ptrdiff_t& RangeIterator::reference

Constructor & Destructor Documentation

RangeIterator::RangeIterator ( const Domain_t d,
int  initial_pos = 0 
) [inline]
RangeIterator::RangeIterator ( const This_t it) [inline]

Member Function Documentation

const Value_t& RangeIterator::operator* ( ) const [inline]

References done(), and PAssert.

const Value_t* RangeIterator::operator-> ( ) const [inline]

References done(), and PAssert.

bool RangeIterator::operator== ( const This_t i) const [inline]
bool RangeIterator::operator!= ( const This_t i) const [inline]
bool RangeIterator::operator< ( const This_t i) const [inline]
bool RangeIterator::operator<= ( const This_t i) const [inline]
bool RangeIterator::operator> ( const This_t i) const [inline]
bool RangeIterator::operator>= ( const This_t i) const [inline]
Value_t RangeIterator::operator[] ( int  n) const [inline]
This_t RangeIterator::operator+ ( int  n) const [inline]
This_t RangeIterator::operator- ( int  n) const [inline]
ptrdiff_t RangeIterator::operator- ( const This_t it) const [inline]

References PAssert.

bool RangeIterator::done ( ) const [inline]

References Domain< Dim, DT >::size().

Referenced by operator*(), and operator->().

This_t& RangeIterator::operator= ( const This_t it) [inline]
This_t& RangeIterator::operator++ ( ) [inline]
This_t& RangeIterator::operator-- ( ) [inline]
This_t RangeIterator::operator++ ( int  ) [inline]
This_t RangeIterator::operator-- ( int  ) [inline]
This_t RangeIterator::operator+= ( int  n) [inline]
This_t RangeIterator::operator-= ( int  n) [inline]

The documentation for this class was generated from the following file: