#include <timeseries.h>
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. | |
| dbTimeSeriesIterator () | |
| Iterator costructor. | |
Private Attributes | |
| dbCursor< dbTimeSeriesBlock< T > > | blocks |
| int | pos |
| int | first |
| time_t | till |
| dbTimeSeriesIterator | ( | ) | [inline] |
| void start | ( | dbTimeSeriesProcessor< T > * | processor, | |
| oid_t | oid, | |||
| time_t | from, | |||
| time_t | till | |||
| ) | [inline] |
Start iteration through elements belonging to the specified range.
| 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.
true if there is current element, false otherwise | bool next | ( | ) | [inline] |
Move iterator position to next element.
true if next element exists, false otherwise | void reset | ( | ) | [inline] |
Reset iterator to the initial state.
dbCursor< dbTimeSeriesBlock<T> > blocks [private] |
int pos [private] |
int first [private] |
time_t till [private] |