IBR-DTNSuite
0.10
|
#include <BundleSet.h>
Classes | |
class | Listener |
Public Member Functions | |
BundleSet (Listener *listener=NULL, Length bf_size=1024) | |
virtual | ~BundleSet () |
virtual void | add (const dtn::data::MetaBundle &bundle) throw () |
virtual void | clear () throw () |
virtual bool | has (const dtn::data::BundleID &bundle) const throw () |
virtual void | expire (const Timestamp timestamp) throw () |
virtual Size | size () const throw () |
Length | getLength () const throw () |
const ibrcommon::BloomFilter & | getBloomFilter () const throw () |
std::set< dtn::data::MetaBundle > | getNotIn (ibrcommon::BloomFilter &filter) const throw () |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const BundleSet &obj) |
std::istream & | operator>> (std::istream &stream, BundleSet &obj) |
Definition at line 20 of file BundleSet.h.
dtn::data::BundleSet::BundleSet | ( | BundleSet::Listener * | listener = NULL , |
Length | bf_size = 1024 |
||
) |
bf_size | Initial size fo the bloom-filter. |
Definition at line 18 of file BundleSet.cpp.
|
virtual |
Definition at line 23 of file BundleSet.cpp.
|
virtual |
Definition at line 27 of file BundleSet.cpp.
Referenced by dtn::routing::BaseRouter::filterKnown(), dtn::routing::BaseRouter::setKnown(), and dtn::routing::BaseRouter::setPurged().
|
virtual |
Definition at line 39 of file BundleSet.cpp.
References ibrcommon::BloomFilter::clear().
Referenced by dtn::data::operator>>().
|
virtual |
Definition at line 67 of file BundleSet.cpp.
const ibrcommon::BloomFilter & dtn::data::BundleSet::getBloomFilter | ( | ) | const throw () |
Definition at line 107 of file BundleSet.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::processHandshake().
Length dtn::data::BundleSet::getLength | ( | ) | const throw () |
Returns the data length of the serialized BundleSet
Definition at line 163 of file BundleSet.cpp.
References ibrcommon::BloomFilter::size().
Referenced by dtn::routing::BloomFilterSummaryVector::getLength(), and dtn::routing::BloomFilterPurgeVector::getLength().
std::set< dtn::data::MetaBundle > dtn::data::BundleSet::getNotIn | ( | ibrcommon::BloomFilter & | filter | ) | const throw () |
Definition at line 112 of file BundleSet.cpp.
|
virtual |
Definition at line 47 of file BundleSet.cpp.
References dtn::data::MetaBundle::mockUp().
Referenced by dtn::routing::BaseRouter::filterKnown(), dtn::routing::BaseRouter::isKnown(), and dtn::routing::BaseRouter::isPurged().
|
virtual |
Returns the number of elements in this set
Definition at line 62 of file BundleSet.cpp.
|
friend |
Definition at line 168 of file BundleSet.cpp.
|
friend |
Definition at line 179 of file BundleSet.cpp.