#include <CondIter.h>
Public Member Functions | |
virtual void | clear () |
CondIter (bool cacheIt=false) | |
DataT const * | next () |
void | reset () |
void | rewind () |
~CondIter () | |
Protected Member Functions | |
virtual bool | load (cond::DbSession &sess, std::string const &itoken) |
Private Attributes | |
std::vector< cond::PayloadRef < DataT > > | cache |
cond::PayloadRef< DataT > | data |
bool | initialized |
size_t | n |
bool | useCache |
Definition at line 13 of file CondIter.h.
Definition at line 35 of file CondIter.h.
: initialized(false), useCache(cacheIt),n(0){}
Definition at line 36 of file CondIter.h.
{}
virtual void CondIter< DataT >::clear | ( | void | ) | [inline, virtual] |
virtual bool CondIter< DataT >::load | ( | cond::DbSession & | sess, |
std::string const & | itoken | ||
) | [inline, protected, virtual] |
Implements CondBasicIter.
Definition at line 16 of file CondIter.h.
DataT const* CondIter< DataT >::next | ( | void | ) | [inline] |
Obtain the pointer to an object T. If it is the last T the method returns a null pointer.
Definition at line 52 of file CondIter.h.
void CondIter< DataT >::reset | ( | void | ) | [inline] |
Definition at line 39 of file CondIter.h.
Referenced by CondIter< T >::clear(), and CondIter< T >::rewind().
{ initialized=false; data.clear();}
void CondIter< DataT >::rewind | ( | ) | [inline] |
Definition at line 41 of file CondIter.h.
{ reset();}
std::vector<cond::PayloadRef<DataT> > CondIter< DataT >::cache [private] |
Definition at line 29 of file CondIter.h.
Referenced by CondIter< T >::clear(), CondIter< T >::load(), and CondIter< T >::next().
cond::PayloadRef<DataT> CondIter< DataT >::data [private] |
Definition at line 28 of file CondIter.h.
Referenced by CondIter< T >::load(), CondIter< T >::next(), and CondIter< T >::reset().
bool CondIter< DataT >::initialized [private] |
Definition at line 26 of file CondIter.h.
Referenced by CondIter< T >::next(), and CondIter< T >::reset().
Definition at line 30 of file CondIter.h.
Referenced by CondIter< T >::load(), and CondIter< T >::next().
Definition at line 27 of file CondIter.h.
Referenced by CondIter< T >::load(), and CondIter< T >::next().