Relacs DAQ Library  0.9.8
Public Member Functions | Protected Attributes | List of all members
InDataTimeIterator Class Reference

#include <indata.h>

Collaboration diagram for InDataTimeIterator:
Collaboration graph
[legend]

Public Member Functions

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

Protected Attributes

const InDataID
 
int Index
 

Detailed Description

Input iterator for the time of an InData.

Author
Jan Benda
Version
1.0

Constructor & Destructor Documentation

InDataTimeIterator ( void  )
inline

Constructs an empty invalid iterator for an InData.

InDataTimeIterator ( const InData id,
int  index 
)
inline

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

InDataTimeIterator ( const InDataIterator p)
inline

Constructs a valid iterator from p.

InDataTimeIterator ( const InDataTimeIterator p)
inline

Copy constructor.

~InDataTimeIterator ( void  )
inline

Destructor.

Member Function Documentation

InDataTimeIterator & operator= ( const InDataTimeIterator p)

Assigns p to this.

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

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

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

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

bool operator!= ( const InDataTimeIterator p) const
inline

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

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

bool operator< ( const InDataTimeIterator p) const
inline

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

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

bool operator> ( const InDataTimeIterator p) const
inline

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

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

bool operator<= ( const InDataTimeIterator p) const
inline

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

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

bool operator>= ( const InDataTimeIterator p) const
inline

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

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

bool operator! ( void  ) const
inline

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

const InDataTimeIterator& operator++ ( void  )
inline

Increments the iterator to the next element.

const InDataTimeIterator& operator-- ( void  )
inline

Decrements the iterator to the previous element.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

const InDataTimeIterator& operator+= ( double  time)
inline

Increments the iterator by an equivalent of time time seconds.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

const InDataTimeIterator& operator-= ( double  time)
inline

Decrements the iterator by an equivalent of time time seconds.

InDataTimeIterator operator+ ( unsigned int  incr) const
inline

Adds incr to the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator+ ( signed int  incr) const
inline

Adds incr to the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator+ ( unsigned long  incr) const
inline

Adds incr to the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator+ ( signed long  incr) const
inline

Adds incr to the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator+ ( double  time) const
inline

Adds the equivalent of time time secondsr to the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator- ( unsigned int  decr) const
inline

Subtracts decr from the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator- ( signed int  decr) const
inline

Subtracts decr from the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator- ( unsigned long  decr) const
inline

Subtracts decr from the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator- ( signed long  decr) const
inline

Subtracts decr from the iterator.

References InDataTimeIterator::Index.

InDataTimeIterator operator- ( double  time) const
inline

Subtracts the equivalent of time time seconds from the iterator.

References InDataTimeIterator::Index.

int operator- ( const InDataTimeIterator p) const
inline

Returns the number of elements between the two iterators.

References InDataTimeIterator::ID, and InDataTimeIterator::Index.

double operator* ( void  ) const
inline

Returns the time associated with the data element where the iterator points to.

double operator[] ( int  n) const
inline

Returns the time associated with the data element where the iterator + n points to.

Member Data Documentation

const InData* ID
protected
int Index
protected

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