|
IBR-DTNSuite 0.6
|
#include <BundleList.h>

Classes | |
| class | ExpiringBundle |
Public Member Functions | |
| BundleList () | |
| virtual | ~BundleList () |
| virtual void | add (const dtn::data::MetaBundle &bundle) |
| virtual void | remove (const dtn::data::MetaBundle &bundle) |
| virtual void | clear () |
| virtual bool | contains (const dtn::data::BundleID &bundle) const |
| void | expire (const size_t timestamp) |
| bool | operator== (const size_t version) const |
| size_t | getVersion () const |
Protected Member Functions | |
| virtual void | eventBundleExpired (const ExpiringBundle &) |
| virtual void | eventCommitExpired () |
Protected Attributes | |
| std::set< ExpiringBundle > | _bundles |
Definition at line 18 of file BundleList.h.
| dtn::data::BundleList::BundleList | ( | ) |
Definition at line 16 of file BundleList.cpp.
| dtn::data::BundleList::~BundleList | ( | ) | [virtual] |
Definition at line 19 of file BundleList.cpp.
| void dtn::data::BundleList::add | ( | const dtn::data::MetaBundle & | bundle | ) | [virtual] |
Definition at line 22 of file BundleList.cpp.
References _bundles.
Referenced by dtn::core::SimpleBundleStorage::iterateDataStorage(), dtn::core::SimpleBundleStorage::store(), and dtn::core::MemoryBundleStorage::store().
| void dtn::data::BundleList::clear | ( | ) | [virtual] |
Reimplemented in dtn::core::MemoryBundleStorage, dtn::core::SimpleBundleStorage, and dtn::routing::BundleSummary.
Definition at line 46 of file BundleList.cpp.
References _bundles.
| bool dtn::data::BundleList::contains | ( | const dtn::data::BundleID & | bundle | ) | const [virtual] |
Reimplemented in dtn::routing::BundleSummary.
Definition at line 55 of file BundleList.cpp.
| virtual void dtn::data::BundleList::eventBundleExpired | ( | const ExpiringBundle & | ) | [inline, protected, virtual] |
Reimplemented in dtn::core::MemoryBundleStorage, dtn::core::SimpleBundleStorage, and dtn::routing::BundleSummary.
Definition at line 50 of file BundleList.h.
Referenced by expire().
| virtual void dtn::data::BundleList::eventCommitExpired | ( | ) | [inline, protected, virtual] |
Reimplemented in dtn::routing::BundleSummary.
Definition at line 51 of file BundleList.h.
Referenced by expire().
| void dtn::data::BundleList::expire | ( | const size_t | timestamp | ) |
Definition at line 65 of file BundleList.cpp.
References _bundles, dtn::data::BundleList::ExpiringBundle::bundle, eventBundleExpired(), eventCommitExpired(), dtn::data::BundleList::ExpiringBundle::expiretime, and dtn::utils::Clock::quality.
Referenced by dtn::routing::BaseRouter::raiseEvent(), dtn::core::SimpleBundleStorage::raiseEvent(), dtn::core::MemoryBundleStorage::raiseEvent(), and dtn::routing::EpidemicRoutingExtension::run().

| size_t dtn::data::BundleList::getVersion | ( | ) | const |
Definition at line 106 of file BundleList.cpp.
| bool dtn::data::BundleList::operator== | ( | const size_t | version | ) | const |
Definition at line 101 of file BundleList.cpp.
| void dtn::data::BundleList::remove | ( | const dtn::data::MetaBundle & | bundle | ) | [virtual] |
Definition at line 34 of file BundleList.cpp.
References _bundles.
std::set<ExpiringBundle> dtn::data::BundleList::_bundles [protected] |
Definition at line 51 of file BundleList.h.
Referenced by add(), clear(), dtn::core::SimpleBundleStorage::clear(), expire(), remove(), and dtn::core::SimpleBundleStorage::SimpleBundleStorage().