IBR-DTNSuite
0.8
|
#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.
Definition at line 16 of file BundleList.cpp.
dtn::data::BundleList::~BundleList | ( | ) | [virtual] |
Definition at line 20 of file BundleList.cpp.
void dtn::data::BundleList::add | ( | const dtn::data::MetaBundle & | bundle | ) | [virtual] |
Definition at line 23 of file BundleList.cpp.
References _bundles.
Referenced by dtn::storage::SimpleBundleStorage::iterateDataStorage(), dtn::storage::MemoryBundleStorage::store(), dtn::storage::SimpleBundleStorage::store(), and dtn::api::Registration::underflow().
void dtn::data::BundleList::clear | ( | ) | [virtual] |
Reimplemented in dtn::storage::SimpleBundleStorage, dtn::storage::MemoryBundleStorage, and dtn::routing::BundleSummary.
Definition at line 47 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 56 of file BundleList.cpp.
virtual void dtn::data::BundleList::eventBundleExpired | ( | const ExpiringBundle & | ) | [inline, protected, virtual] |
Reimplemented in dtn::storage::SimpleBundleStorage, dtn::storage::MemoryBundleStorage, 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 66 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::core::FragmentManager::raiseEvent(), dtn::storage::MemoryBundleStorage::raiseEvent(), dtn::storage::SimpleBundleStorage::raiseEvent(), dtn::routing::BaseRouter::raiseEvent(), and dtn::api::Registration::underflow().
size_t dtn::data::BundleList::getVersion | ( | ) | const |
Definition at line 107 of file BundleList.cpp.
bool dtn::data::BundleList::operator== | ( | const size_t | version | ) | const |
Definition at line 102 of file BundleList.cpp.
void dtn::data::BundleList::remove | ( | const dtn::data::MetaBundle & | bundle | ) | [virtual] |
Definition at line 35 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::storage::SimpleBundleStorage::clear(), expire(), remove(), and dtn::storage::SimpleBundleStorage::SimpleBundleStorage().