#include <pydtn/FlatStore.h>


Public Member Functions | |
| FlatStoreItr (FlatStore &store, FlatStore::BundleList::iterator itr) | |
| Constructor. | |
| virtual | ~FlatStoreItr () |
| 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 144 of file FlatStore.h.
| FlatStoreItr::FlatStoreItr | ( | FlatStore & | store, | |
| FlatStore::BundleList::iterator | itr | |||
| ) |
Constructor.
| store | The store into which this is an iterator | |
| itr | The internal iterator from store |
Definition at line 211 of file FlatStore.cc.
| bool FlatStoreItr::operator== | ( | const DTN::BundlePointerRepr & | b | ) | [virtual] |
Equality operator.
| b | Another iterator |
Implements DTN::BundlePointerRepr.
Definition at line 224 of file FlatStore.cc.
References DTN::BundlePointerRepr::bundle().
| DTN::BundlePointerRepr * FlatStoreItr::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 230 of file FlatStore.cc.
References FlatStore::end(), FlatStoreItr(), and FlatStore::upper_bound().
| DTN::BundlePointerRepr * FlatStoreItr::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 241 of file FlatStore.cc.
References FlatStoreItr().
| DTN::Bundle * FlatStoreItr::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 247 of file FlatStore.cc.
1.5.4