dbTimeSeriesReverseIterator Class Template Reference

#include <timeseries.h>

List of all members.


Detailed Description

template<class T>
class dbTimeSeriesReverseIterator< T >

Time series reverse iterator.

Public Member Functions

void start (dbTimeSeriesProcessor< T > *processor, oid_t oid, time_t from, time_t till)
 Start iteration through elements belonging to the specified range.
bool current (T &elem)
 Get current iterator element.
bool next ()
 Move iterator position to next element.
void reset ()
 Reset iterator to the initial state.
 dbTimeSeriesReverseIterator ()
 Iterator costructor.

Private Attributes

dbCursor< dbTimeSeriesBlock< T > > blocks
int pos
int last
time_t from

Constructor & Destructor Documentation

dbTimeSeriesReverseIterator (  )  [inline]

Iterator costructor.

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


Member Function Documentation

void 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)

bool current ( T &  elem  )  [inline]

Get current iterator element.

Returns:
true if there is current element, false otherwise

bool next (  )  [inline]

Move iterator position to next element.

Returns:
true if next element exists, false otherwise

void reset (  )  [inline]

Reset iterator to the initial state.


Member Data Documentation

int pos [private]

int last [private]

time_t from [private]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild