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

#include <eventdata.h>

Inheritance diagram for EventIterator:
Inheritance graph
[legend]
Collaboration diagram for EventIterator:
Collaboration graph
[legend]

Public Member Functions

 EventIterator (void)
 
 EventIterator (const EventData &ed, int index)
 
 EventIterator (const EventIterator &p)
 
 ~EventIterator (void)
 
EventIteratoroperator= (const EventIterator &p)
 
bool operator== (const EventIterator &p) const
 
bool operator!= (const EventIterator &p) const
 
bool operator< (const EventIterator &p) const
 
bool operator> (const EventIterator &p) const
 
bool operator<= (const EventIterator &p) const
 
bool operator>= (const EventIterator &p) const
 
bool operator! (void) const
 
const EventIteratoroperator++ (void)
 
const EventIteratoroperator-- (void)
 
const EventIteratoroperator+= (unsigned int incr)
 
const EventIteratoroperator+= (signed int incr)
 
const EventIteratoroperator+= (unsigned long incr)
 
const EventIteratoroperator+= (signed long incr)
 
const EventIteratoroperator+= (double time)
 
const EventIteratoroperator-= (unsigned int decr)
 
const EventIteratoroperator-= (signed int decr)
 
const EventIteratoroperator-= (unsigned long decr)
 
const EventIteratoroperator-= (signed long decr)
 
const EventIteratoroperator-= (double time)
 
EventIterator operator+ (unsigned int incr) const
 
EventIterator operator+ (signed int incr) const
 
EventIterator operator+ (unsigned long incr) const
 
EventIterator operator+ (signed long incr) const
 
EventIterator operator+ (double time) const
 
EventIterator operator- (unsigned int decr) const
 
EventIterator operator- (signed int decr) const
 
EventIterator operator- (unsigned long decr) const
 
EventIterator operator- (signed long decr) const
 
EventIterator operator- (double time) const
 
int operator- (const EventIterator &p) const
 
double operator* (void) const
 
double operator[] (int n) const
 
int index (void) const
 
double time (void) const
 
const EventDataevents (void) const
 

Protected Attributes

int Index
 
const EventDataED
 

Detailed Description

Iterator for EventData returning the event time.

Author
Jan Benda
Version
1.2

Constructor & Destructor Documentation

EventIterator ( void  )
inline

Constructs an empty invalid iterator for an EventData.

EventIterator ( const EventData ed,
int  index 
)
inline

Constructs an valid iterator for an EventData ed pointing to element index.

EventIterator ( const EventIterator p)
inline

Copy constructor.

~EventIterator ( void  )
inline

Destructor.

Member Function Documentation

EventIterator & operator= ( const EventIterator p)

Assigns p to this.

References EventIterator::ED, and EventIterator::Index.

bool operator== ( const EventIterator p) const
inline

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

References EventIterator::ED, and EventIterator::Index.

bool operator!= ( const EventIterator p) const
inline

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

References EventIterator::ED, and EventIterator::Index.

bool operator< ( const EventIterator p) const
inline

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

References EventIterator::ED, and EventIterator::Index.

bool operator> ( const EventIterator p) const
inline

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

References EventIterator::ED, and EventIterator::Index.

bool operator<= ( const EventIterator p) const
inline

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

References EventIterator::ED, and EventIterator::Index.

bool operator>= ( const EventIterator p) const
inline

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

References EventIterator::ED, and EventIterator::Index.

bool operator! ( void  ) const
inline

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

const EventIterator& operator++ ( void  )
inline

Increments the iterator to the next element.

const EventIterator& operator-- ( void  )
inline

Decrements the iterator to the previous element.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

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

Increments the iterator by incr.

const EventIterator& operator+= ( double  time)
inline

Sets the iterator to the element following the time of the event where the iterator is currrently pointing to plus time seconds.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

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

Decrements the iterator by decr.

const EventIterator& operator-= ( double  time)
inline

Sets the iterator to the element following the time of the event where the iterator is currrently pointing to minus time seconds.

EventIterator operator+ ( unsigned int  incr) const
inline

Adds incr to the iterator.

References EventIterator::Index.

EventIterator operator+ ( signed int  incr) const
inline

Adds incr to the iterator.

References EventIterator::Index.

EventIterator operator+ ( unsigned long  incr) const
inline

Adds incr to the iterator.

References EventIterator::Index.

EventIterator operator+ ( signed long  incr) const
inline

Adds incr to the iterator.

References EventIterator::Index.

EventIterator operator+ ( double  time) const
inline

Returns an iterator pointing to the element following the time of the event where the iterator is currrently pointing to plus time seconds.

References EventIterator::Index.

EventIterator operator- ( unsigned int  decr) const
inline

Subtracts decr from the iterator.

References EventIterator::Index.

EventIterator operator- ( signed int  decr) const
inline

Subtracts decr from the iterator.

References EventIterator::Index.

EventIterator operator- ( unsigned long  decr) const
inline

Subtracts decr from the iterator.

References EventIterator::Index.

EventIterator operator- ( signed long  decr) const
inline

Subtracts decr from the iterator.

References EventIterator::Index.

EventIterator operator- ( double  time) const
inline

Returns an iterator pointing to the element following the time of the event where the iterator is currrently pointing to minus time seconds.

References EventIterator::Index.

int operator- ( const EventIterator p) const
inline

Returns the number of elements between the two iterators.

References EventIterator::ED, and EventIterator::Index.

double operator* ( void  ) const
inline

Returns the time of the event where the iterator points to.

double operator[] ( int  n) const
inline

Returns the time of the event where the iterator + n points to.

int index ( void  ) const
inline

Returns the index of the element where the iterator points to.

double time ( void  ) const
inline

The time in seconds of the current event relative to time zero.

const EventData& events ( void  ) const
inline

The event data where the iterator points in.

Member Data Documentation

int Index
protected
const EventData* ED
protected

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