Main Page | Class Hierarchy | Class List | File List | Class Members

dbTimeSeriesIterator< T > Class Template Reference

#include <timeseries.h>

List of all members.

Public Member Functions

void start (dbTimeSeriesProcessor< T > *processor, oid_t oid, time_t from, time_t till)
bool current (T &elem)
bool next ()
void reset ()
 dbTimeSeriesIterator ()


Detailed Description

template<class T>
class dbTimeSeriesIterator< T >

Time series forward iterator


Constructor & Destructor Documentation

template<class T>
dbTimeSeriesIterator< T >::dbTimeSeriesIterator  )  [inline]
 

Iterator costructor. If current() or next() method will always return false if them are invoked prior to start()


Member Function Documentation

template<class T>
bool dbTimeSeriesIterator< T >::current T &  elem  )  [inline]
 

Get current iterator element

Returns:
true if there is current element, false otherwise

template<class T>
bool dbTimeSeriesIterator< T >::next  )  [inline]
 

Move iterator position to next element.

Returns:
true if next element exists, false otherwise

template<class T>
void dbTimeSeriesIterator< T >::reset  )  [inline]
 

Reset iterator to the initial state

template<class T>
void dbTimeSeriesIterator< T >::start dbTimeSeriesProcessor< T > *  processor,
oid_t  oid,
time_t  from,
time_t  till
[inline]
 

Start iteration through elements belonging to the specified range.

Parameters:
processor pointer to time series processor
oid time series identifer (OID of the object associated with this time series)
from inclusive low bound for element timestamp (set 0 to disable this criteria)
till inclusive high bound for element timestamp (set INFINITE_TIME to disable this criteria)


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 23:14:30 2005 for GigaBASE by doxygen 1.3.5