#include <pydtn/PersistentStore.h>


Public Member Functions | |
| PersistentStoreItr (PersistentStore &store, PersistentStore::BundleList::iterator itr) | |
| Constructor. | |
| virtual | ~PersistentStoreItr () |
| Virtual destructor. | |
| virtual bool | operator== (const DTN::BundlePointerRepr &b) |
| Equality operator. | |
| virtual DTN::BundlePointerRepr * | next () |
| Get the next iterator for the store. | |
| virtual DTN::BundlePointerRepr * | clone () |
| Copy an iterator. | |
| virtual DTN::Bundle * | bundle () const |
| Retrieve the actual stored DTN::Bundle. | |
Definition at line 179 of file PersistentStore.h.
| PersistentStoreItr::PersistentStoreItr | ( | PersistentStore & | store, | |
| PersistentStore::BundleList::iterator | itr | |||
| ) |
Constructor.
| store | The store into which this is an iterator | |
| itr | The internal iterator from store |
Definition at line 247 of file PersistentStore.cc.
| bool PersistentStoreItr::operator== | ( | const DTN::BundlePointerRepr & | b | ) | [virtual] |
Equality operator.
| b | Another iterator |
Implements DTN::BundlePointerRepr.
Definition at line 261 of file PersistentStore.cc.
| DTN::BundlePointerRepr * PersistentStoreItr::next | ( | ) | [virtual] |
Get the next iterator for the store.
A new pointer is created, with the caller taking responsibility for the memory management.
NULL if there is none Implements DTN::BundlePointerRepr.
Definition at line 267 of file PersistentStore.cc.
References PersistentStore::end(), PersistentStoreItr(), and PersistentStore::upper_bound().
| DTN::BundlePointerRepr * PersistentStoreItr::clone | ( | ) | [virtual] |
Copy an iterator.
A new pointer is created, with the caller taking responsibility for the memory management.
Implements DTN::BundlePointerRepr.
Definition at line 278 of file PersistentStore.cc.
References PersistentStoreItr().
| DTN::Bundle * PersistentStoreItr::bundle | ( | ) | const [virtual] |
Retrieve the actual stored DTN::Bundle.
Note that if you have not tested the DTN::BundlePointer that owns this DTN::BundlePointerRepr for validity, the returned pointer might not be valid.
Let me repeat that: You must test the encompassing DTN::BundlePointer for validity or you are very likely to get a segmentation fault at some point.
Implements DTN::BundlePointerRepr.
Definition at line 284 of file PersistentStore.cc.
1.5.4