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

#include <indata.h>

Collaboration diagram for InDataDiffIterator:
Collaboration graph
[legend]

Public Member Functions

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

Protected Attributes

const InDataID
 
int Index
 
int DiffWidth
 

Detailed Description

Input iterator for InData returning the difference of succeeding data elements.

Author
Jan Benda
Version
1.2

Constructor & Destructor Documentation

InDataDiffIterator ( void  )
inline

Constructs an empty invalid iterator for an InData.

InDataDiffIterator ( int  dw)
inline

Constructs an empty invalid iterator with width dw.

InDataDiffIterator ( const InData id,
int  index,
int  dw 
)
inline

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

InDataDiffIterator ( const InDataIterator p,
int  dw 
)
inline

Constructs an iterator from an InDataIterator.

InDataDiffIterator ( const InDataDiffIterator p)
inline

Copy constructor.

~InDataDiffIterator ( void  )
inline

Destructor.

Member Function Documentation

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

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

References InDataDiffIterator::ID, and InDataDiffIterator::Index.

bool operator!= ( const InDataDiffIterator p) const
inline

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

References InDataDiffIterator::ID, and InDataDiffIterator::Index.

bool operator< ( const InDataDiffIterator p) const
inline

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

References InDataDiffIterator::ID, and InDataDiffIterator::Index.

bool operator> ( const InDataDiffIterator p) const
inline

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

References InDataDiffIterator::ID, and InDataDiffIterator::Index.

bool operator<= ( const InDataDiffIterator p) const
inline

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

References InDataDiffIterator::ID, and InDataDiffIterator::Index.

bool operator>= ( const InDataDiffIterator p) const
inline

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

References InDataDiffIterator::ID, and InDataDiffIterator::Index.

bool operator! ( void  ) const
inline

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

const InDataDiffIterator& operator++ ( void  )
inline

Increments the iterator to the next element.

const InDataDiffIterator& operator-- ( void  )
inline

Decrements the iterator to the previous element.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

const InDataDiffIterator& operator+= ( double  time)
inline

Increments the iterator by an equivalent of time time seconds.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

const InDataDiffIterator& operator-= ( double  time)
inline

Decrements the iterator by an equivalent of time time seconds.

InDataDiffIterator operator+ ( unsigned int  incr) const
inline

Adds incr to the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator+ ( signed int  incr) const
inline

Adds incr to the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator+ ( unsigned long  incr) const
inline

Adds incr to the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator+ ( signed long  incr) const
inline

Adds incr to the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator+ ( double  time) const
inline

Adds the equivalent of time time secondsr to the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator- ( unsigned int  decr) const
inline

Subtracts decr from the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator- ( signed int  decr) const
inline

Subtracts decr from the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator- ( unsigned long  decr) const
inline

Subtracts decr from the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator- ( signed long  decr) const
inline

Subtracts decr from the iterator.

References InDataDiffIterator::Index.

InDataDiffIterator operator- ( double  time) const
inline

Subtracts the equivalent of time time seconds from the iterator.

References InDataDiffIterator::Index.

int operator- ( const InDataDiffIterator p) const
inline

Returns the number of elements between the two iterators.

References InDataDiffIterator::ID, and InDataDiffIterator::Index.

double operator* ( void  ) const
inline

Returns the difference of the data element where the iterator points to and the by DiffWidth preceeding data element.

double operator[] ( int  n) const
inline

Returns the difference of the data element where the iterator + n points to and the by DiffWidth preceeding data element.

Member Data Documentation

const InData* ID
protected
int Index
protected
int DiffWidth
protected

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