IBR-DTNSuite
0.8
|
#include <SummaryVector.h>
Public Member Functions | |
SummaryVector (const std::set< dtn::data::MetaBundle > &list) | |
SummaryVector () | |
virtual | ~SummaryVector () |
virtual void | commit () |
virtual bool | contains (const dtn::data::BundleID &id) const |
virtual void | add (const dtn::data::BundleID &id) |
virtual void | remove (const dtn::data::BundleID &id) |
virtual void | clear () |
virtual void | add (const std::set< dtn::data::MetaBundle > &list) |
size_t | getLength () const |
const ibrcommon::BloomFilter & | getBloomFilter () const |
std::set< dtn::data::BundleID > | getNotIn (ibrcommon::BloomFilter &filter) const |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const SummaryVector &obj) |
std::istream & | operator>> (std::istream &stream, SummaryVector &obj) |
Definition at line 22 of file SummaryVector.h.
dtn::routing::SummaryVector::SummaryVector | ( | const std::set< dtn::data::MetaBundle > & | list | ) |
Definition at line 16 of file SummaryVector.cpp.
References add().
Definition at line 22 of file SummaryVector.cpp.
dtn::routing::SummaryVector::~SummaryVector | ( | ) | [virtual] |
Definition at line 27 of file SummaryVector.cpp.
void dtn::routing::SummaryVector::add | ( | const dtn::data::BundleID & | id | ) | [virtual] |
Definition at line 61 of file SummaryVector.cpp.
References ibrcommon::BloomFilter::insert().
Referenced by dtn::routing::BundleSummary::add(), add(), and SummaryVector().
void dtn::routing::SummaryVector::add | ( | const std::set< dtn::data::MetaBundle > & | list | ) | [virtual] |
Definition at line 48 of file SummaryVector.cpp.
References add().
void dtn::routing::SummaryVector::clear | ( | ) | [virtual] |
Definition at line 72 of file SummaryVector.cpp.
References ibrcommon::BloomFilter::clear().
Referenced by dtn::routing::BundleSummary::clear(), and dtn::routing::operator>>().
void dtn::routing::SummaryVector::commit | ( | ) | [virtual] |
Definition at line 31 of file SummaryVector.cpp.
References ibrcommon::BloomFilter::clear(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, ibrcommon::BloomFilter::insert(), ibrcommon::TimeMeasurement::start(), and ibrcommon::TimeMeasurement::stop().
Referenced by dtn::routing::BundleSummary::eventCommitExpired().
bool dtn::routing::SummaryVector::contains | ( | const dtn::data::BundleID & | id | ) | const [virtual] |
Definition at line 56 of file SummaryVector.cpp.
References ibrcommon::BloomFilter::contains().
Referenced by dtn::routing::BundleSummary::contains().
const ibrcommon::BloomFilter & dtn::routing::SummaryVector::getBloomFilter | ( | ) | const |
Definition at line 78 of file SummaryVector.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::processHandshake().
size_t dtn::routing::SummaryVector::getLength | ( | ) | const |
Definition at line 102 of file SummaryVector.cpp.
References ibrcommon::BloomFilter::size().
Referenced by dtn::routing::BloomFilterSummaryVector::getLength(), and dtn::routing::BloomFilterPurgeVector::getLength().
std::set< dtn::data::BundleID > dtn::routing::SummaryVector::getNotIn | ( | ibrcommon::BloomFilter & | filter | ) | const |
Definition at line 83 of file SummaryVector.cpp.
References ibrcommon::BloomFilter::contains().
void dtn::routing::SummaryVector::remove | ( | const dtn::data::BundleID & | id | ) | [virtual] |
Definition at line 67 of file SummaryVector.cpp.
Referenced by dtn::routing::BundleSummary::eventBundleExpired(), and dtn::routing::BundleSummary::remove().
std::ostream& operator<< | ( | std::ostream & | stream, |
const SummaryVector & | obj | ||
) | [friend] |
Definition at line 107 of file SummaryVector.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
SummaryVector & | obj | ||
) | [friend] |
Definition at line 118 of file SummaryVector.cpp.