IBR-DTNSuite
0.8
|
#include <BundleSummary.h>
Public Member Functions | |
BundleSummary () | |
virtual | ~BundleSummary () |
void | add (const dtn::data::MetaBundle bundle) |
void | remove (const dtn::data::MetaBundle bundle) |
void | clear () |
bool | contains (const dtn::data::BundleID &bundle) const |
const SummaryVector & | getSummaryVector () const |
Protected Member Functions | |
void | eventBundleExpired (const ExpiringBundle &) |
void | eventCommitExpired () |
Definition at line 19 of file BundleSummary.h.
Definition at line 14 of file BundleSummary.cpp.
dtn::routing::BundleSummary::~BundleSummary | ( | ) | [virtual] |
Definition at line 18 of file BundleSummary.cpp.
void dtn::routing::BundleSummary::add | ( | const dtn::data::MetaBundle | bundle | ) |
Definition at line 22 of file BundleSummary.cpp.
References dtn::routing::SummaryVector::add().
Referenced by dtn::routing::BaseRouter::addPurgedBundle(), dtn::routing::BaseRouter::filterKnown(), dtn::routing::BaseRouter::raiseEvent(), and dtn::routing::BaseRouter::setKnown().
void dtn::routing::BundleSummary::clear | ( | ) | [virtual] |
Reimplemented from dtn::data::BundleList.
Definition at line 34 of file BundleSummary.cpp.
References dtn::routing::SummaryVector::clear().
bool dtn::routing::BundleSummary::contains | ( | const dtn::data::BundleID & | bundle | ) | const [virtual] |
Reimplemented from dtn::data::BundleList.
Definition at line 50 of file BundleSummary.cpp.
References dtn::routing::SummaryVector::contains().
Referenced by dtn::routing::BaseRouter::filterKnown(), and dtn::routing::BaseRouter::isKnown().
void dtn::routing::BundleSummary::eventBundleExpired | ( | const ExpiringBundle & | bundle | ) | [protected, virtual] |
Reimplemented from dtn::data::BundleList.
Definition at line 40 of file BundleSummary.cpp.
References dtn::data::BundleList::ExpiringBundle::bundle, and dtn::routing::SummaryVector::remove().
void dtn::routing::BundleSummary::eventCommitExpired | ( | ) | [protected, virtual] |
Reimplemented from dtn::data::BundleList.
Definition at line 45 of file BundleSummary.cpp.
References dtn::routing::SummaryVector::commit().
const SummaryVector & dtn::routing::BundleSummary::getSummaryVector | ( | ) | const |
Definition at line 62 of file BundleSummary.cpp.
Referenced by dtn::routing::BaseRouter::getPurgedBundles(), and dtn::routing::BaseRouter::getSummaryVector().
void dtn::routing::BundleSummary::remove | ( | const dtn::data::MetaBundle | bundle | ) |
Definition at line 28 of file BundleSummary.cpp.
References dtn::routing::SummaryVector::remove().