Relacs  0.9.8
Public Member Functions | Protected Attributes | Friends | List of all members
InDataIterator Class Reference

#include <indata.h>

Collaboration diagram for InDataIterator:
Collaboration graph
[legend]

Public Member Functions

 InDataIterator (void)
 
 InDataIterator (const InData &id, int index)
 
 InDataIterator (const InDataIterator &p)
 
 ~InDataIterator (void)
 
InDataIterator & operator= (const InDataIterator &p)
 
bool operator== (const InDataIterator &p) const
 
bool operator!= (const InDataIterator &p) const
 
bool operator< (const InDataIterator &p) const
 
bool operator> (const InDataIterator &p) const
 
bool operator<= (const InDataIterator &p) const
 
bool operator>= (const InDataIterator &p) const
 
bool operator! (void) const
 
const InDataIterator & operator++ (void)
 
const InDataIterator & operator-- (void)
 
const InDataIterator & operator+= (unsigned int incr)
 
const InDataIterator & operator+= (signed int incr)
 
const InDataIterator & operator+= (unsigned long incr)
 
const InDataIterator & operator+= (signed long incr)
 
const InDataIterator & operator+= (double time)
 
const InDataIterator & operator-= (unsigned int decr)
 
const InDataIterator & operator-= (signed int decr)
 
const InDataIterator & operator-= (unsigned long decr)
 
const InDataIterator & operator-= (signed long decr)
 
const InDataIterator & operator-= (double time)
 
InDataIterator operator+ (unsigned int incr) const
 
InDataIterator operator+ (signed int incr) const
 
InDataIterator operator+ (unsigned long incr) const
 
InDataIterator operator+ (signed long incr) const
 
InDataIterator operator+ (double time) const
 
InDataIterator operator- (unsigned int decr) const
 
InDataIterator operator- (signed int decr) const
 
InDataIterator operator- (unsigned long decr) const
 
InDataIterator operator- (signed long decr) const
 
InDataIterator operator- (double time) const
 
int operator- (const InDataIterator &p) const
 
double operator* (void) const
 
double operator[] (int n) const
 

Protected Attributes

const InData * ID
 
int Index
 

Friends

class InDataDiffIterator
 
class InDataTimeIterator
 

Detailed Description

Input iterator for the data elements of an InData.

Author
Jan Benda
Version
1.2

Constructor & Destructor Documentation

InDataIterator ( void  )
inline

Constructs an empty invalid iterator for an InData.

InDataIterator ( const InData &  id,
int  index 
)
inline

Constructs a valid iterator for an InData id pointing to element index.

InDataIterator ( const InDataIterator &  p)
inline

Copy constructor.

~InDataIterator ( void  )
inline

Destructor.

Member Function Documentation

InDataIterator & operator= ( const InDataIterator &  p)

Assigns p to this.

References InDataIterator::ID, and InDataIterator::Index.

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

Returns true if both iterators point to the same element of the same instance of an InData.

References InDataIterator::ID, and InDataIterator::Index.

bool operator!= ( const InDataIterator &  p) const
inline

Returns true if the iterators do not point to the same element of the same instance of an InData.

References InDataIterator::ID, and InDataIterator::Index.

bool operator< ( const InDataIterator &  p) const
inline

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

References InDataIterator::ID, and InDataIterator::Index.

bool operator> ( const InDataIterator &  p) const
inline

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

References InDataIterator::ID, and InDataIterator::Index.

bool operator<= ( const InDataIterator &  p) const
inline

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

References InDataIterator::ID, and InDataIterator::Index.

bool operator>= ( const InDataIterator &  p) const
inline

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

References InDataIterator::ID, and InDataIterator::Index.

bool operator! ( void  ) const
inline

Returns true if this is a valid iterator, i.e. it points to an existing element.

const InDataIterator& operator++ ( void  )
inline

Increments the iterator to the next element.

const InDataIterator& operator-- ( void  )
inline

Decrements the iterator to the previous element.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

const InDataIterator& operator+= ( double  time)
inline

Increments the iterator by an equivalent of time time seconds.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

const InDataIterator& operator-= ( double  time)
inline

Decrements the iterator by an equivalent of time time seconds.

InDataIterator operator+ ( unsigned int  incr) const
inline

Adds incr to the iterator.

References InDataIterator::Index.

InDataIterator operator+ ( signed int  incr) const
inline

Adds incr to the iterator.

References InDataIterator::Index.

InDataIterator operator+ ( unsigned long  incr) const
inline

Adds incr to the iterator.

References InDataIterator::Index.

InDataIterator operator+ ( signed long  incr) const
inline

Adds incr to the iterator.

References InDataIterator::Index.

InDataIterator operator+ ( double  time) const
inline

Adds the equivalent of time time secondsr to the iterator.

References InDataIterator::Index.

InDataIterator operator- ( unsigned int  decr) const
inline

Subtracts decr from the iterator.

References InDataIterator::Index.

InDataIterator operator- ( signed int  decr) const
inline

Subtracts decr from the iterator.

References InDataIterator::Index.

InDataIterator operator- ( unsigned long  decr) const
inline

Subtracts decr from the iterator.

References InDataIterator::Index.

InDataIterator operator- ( signed long  decr) const
inline

Subtracts decr from the iterator.

References InDataIterator::Index.

InDataIterator operator- ( double  time) const
inline

Subtracts the equivalent of time time seconds from the iterator.

References InDataIterator::Index.

int operator- ( const InDataIterator &  p) const
inline

Returns the number of elements between the two iterators.

References InDataIterator::ID, and InDataIterator::Index.

double operator* ( void  ) const
inline

Returns the value of the data element where the iterator points to.

double operator[] ( int  n) const
inline

Returns the value of the data element where the iterator + n points to.

Friends And Related Function Documentation

friend class InDataDiffIterator
friend
friend class InDataTimeIterator
friend

Member Data Documentation

const InData* ID
protected
int Index
protected

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