Relacs Numerics Library  0.9.8
Public Member Functions | Protected Attributes | List of all members
LinearRangeIterator Class Reference

#include <linearrange.h>

Public Member Functions

 LinearRangeIterator (void)
 
 LinearRangeIterator (double offset, double stepsize, long index)
 
 LinearRangeIterator (const LinearRange &r, long index)
 
 LinearRangeIterator (const LinearRangeIterator &p)
 
 ~LinearRangeIterator (void)
 
LinearRangeIteratoroperator= (const LinearRangeIterator &p)
 
bool operator== (const LinearRangeIterator &p) const
 
bool operator!= (const LinearRangeIterator &p) const
 
bool operator< (const LinearRangeIterator &p) const
 
bool operator> (const LinearRangeIterator &p) const
 
bool operator<= (const LinearRangeIterator &p) const
 
bool operator>= (const LinearRangeIterator &p) const
 
const LinearRangeIteratoroperator++ (void)
 
const LinearRangeIteratoroperator-- (void)
 
const LinearRangeIteratoroperator+= (unsigned int incr)
 
const LinearRangeIteratoroperator+= (signed int incr)
 
const LinearRangeIteratoroperator+= (unsigned long incr)
 
const LinearRangeIteratoroperator+= (signed long incr)
 
const LinearRangeIteratoroperator-= (unsigned int decr)
 
const LinearRangeIteratoroperator-= (signed int decr)
 
const LinearRangeIteratoroperator-= (unsigned long decr)
 
const LinearRangeIteratoroperator-= (signed long decr)
 
LinearRangeIterator operator+ (unsigned int incr) const
 
LinearRangeIterator operator+ (signed int incr) const
 
LinearRangeIterator operator+ (unsigned long incr) const
 
LinearRangeIterator operator+ (signed long incr) const
 
LinearRangeIterator operator- (unsigned int decr) const
 
LinearRangeIterator operator- (signed int decr) const
 
LinearRangeIterator operator- (unsigned long decr) const
 
LinearRangeIterator operator- (signed long decr) const
 
int operator- (const LinearRangeIterator &p) const
 
double operator* (void) const
 
double operator[] (long n) const
 

Protected Attributes

int Index
 
double Offset
 
double Stepsize
 

Detailed Description

Iterator for a LinearRange.

Author
Jan Benda

Constructor & Destructor Documentation

LinearRangeIterator ( void  )
inline

Constructs an empty invalid iterator for a Range.

LinearRangeIterator ( double  offset,
double  stepsize,
long  index 
)
inline

Constructs a valid iterator for a range with offset offset and stepsize stepsize pointing to element index.

LinearRangeIterator ( const LinearRange r,
long  index 
)
inline

Constructs a valid iterator for a Range r pointing to element index.

Copy constructor.

~LinearRangeIterator ( void  )
inline

Destructor.

Member Function Documentation

LinearRangeIterator & operator= ( const LinearRangeIterator p)
bool operator== ( const LinearRangeIterator p) const
inline

Returns true if both iterators point to the same element of the same instance of a Range.

References LinearRangeIterator::Index, LinearRangeIterator::Offset, and LinearRangeIterator::Stepsize.

bool operator!= ( const LinearRangeIterator p) const
inline

Returns true if the iterators do not point to the same element of the same instance of a Range.

References LinearRangeIterator::Index, LinearRangeIterator::Offset, and LinearRangeIterator::Stepsize.

bool operator< ( const LinearRangeIterator p) const
inline

Returns true if this points to an element preceeding the element where points to.

References LinearRangeIterator::Index, LinearRangeIterator::Offset, and LinearRangeIterator::Stepsize.

bool operator> ( const LinearRangeIterator p) const
inline

Returns true if this points to an element succeeding the element where p points to.

References LinearRangeIterator::Index, LinearRangeIterator::Offset, and LinearRangeIterator::Stepsize.

bool operator<= ( const LinearRangeIterator p) const
inline

Returns true if this points to an element preceeding or equaling the element where this points to.

References LinearRangeIterator::Index, LinearRangeIterator::Offset, and LinearRangeIterator::Stepsize.

bool operator>= ( const LinearRangeIterator p) const
inline

Returns true if this points to an element succeeding or preceeding the element where this points to.

References LinearRangeIterator::Index, LinearRangeIterator::Offset, and LinearRangeIterator::Stepsize.

const LinearRangeIterator& operator++ ( void  )
inline

Increments the iterator to the next element.

const LinearRangeIterator& operator-- ( void  )
inline

Decrements the iterator to the previous element.

const LinearRangeIterator& operator+= ( unsigned int  incr)
inline

Increments the iterator by incr.

const LinearRangeIterator& operator+= ( signed int  incr)
inline

Increments the iterator by incr.

const LinearRangeIterator& operator+= ( unsigned long  incr)
inline

Increments the iterator by incr.

const LinearRangeIterator& operator+= ( signed long  incr)
inline

Increments the iterator by incr.

const LinearRangeIterator& operator-= ( unsigned int  decr)
inline

Decrements the iterator by decr.

const LinearRangeIterator& operator-= ( signed int  decr)
inline

Decrements the iterator by decr.

const LinearRangeIterator& operator-= ( unsigned long  decr)
inline

Decrements the iterator by decr.

const LinearRangeIterator& operator-= ( signed long  decr)
inline

Decrements the iterator by decr.

LinearRangeIterator operator+ ( unsigned int  incr) const
inline

Adds incr to the iterator.

References LinearRangeIterator::Index.

LinearRangeIterator operator+ ( signed int  incr) const
inline

Adds incr to the iterator.

References LinearRangeIterator::Index.

LinearRangeIterator operator+ ( unsigned long  incr) const
inline

Adds incr to the iterator.

References LinearRangeIterator::Index.

LinearRangeIterator operator+ ( signed long  incr) const
inline

Adds incr to the iterator.

References LinearRangeIterator::Index.

LinearRangeIterator operator- ( unsigned int  decr) const
inline

Subtracts decr from the iterator.

References LinearRangeIterator::Index.

LinearRangeIterator operator- ( signed int  decr) const
inline

Subtracts decr from the iterator.

References LinearRangeIterator::Index.

LinearRangeIterator operator- ( unsigned long  decr) const
inline

Subtracts decr from the iterator.

References LinearRangeIterator::Index.

LinearRangeIterator operator- ( signed long  decr) const
inline

Subtracts decr from the iterator.

References LinearRangeIterator::Index.

int operator- ( const LinearRangeIterator p) const
inline

Returns the number of elements between the two iterators.

References LinearRangeIterator::Index, LinearRangeIterator::Offset, and LinearRangeIterator::Stepsize.

double operator* ( void  ) const
inline

Returns the value of the range where the iterator points to.

double operator[] ( long  n) const
inline

Returns the value of the range where the iterator + n points to.

Member Data Documentation

int Index
protected
double Offset
protected
double Stepsize
protected

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