FreePOOMA  2.4.1
Public Types | Public Member Functions
IntervalIterator Class Reference

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

#include <IntervalIterator.h>

List of all members.

Public Types

typedef IntervalIterator This_t
typedef Interval< 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

 IntervalIterator (const Domain_t &d, int initial_pos=0)
 IntervalIterator (const This_t &it)
 IntervalIterator ()
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 Interval<1>, returning ints when dereferenced.


Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

References done(), and PAssert.

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

References done(), and PAssert.

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

References PAssert.

bool IntervalIterator::done ( ) const [inline]

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

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

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