IBR-DTNSuite  0.12
dtn::data::BundleSetImpl Class Referenceabstract

#include <BundleSetImpl.h>

Inheritance diagram for dtn::data::BundleSetImpl:
Inheritance graph
Collaboration diagram for dtn::data::BundleSetImpl:
Collaboration graph

Classes

class  ExpiringBundle
 

Public Member Functions

virtual ~BundleSetImpl ()=0
 
virtual refcnt_ptr< BundleSetImplcopy () const =0
 
virtual void assign (const refcnt_ptr< BundleSetImpl > &)=0
 
virtual void add (const dtn::data::MetaBundle &bundle)=0 throw ()
 
virtual void clear ()=0 throw ()
 
virtual bool has (const dtn::data::BundleID &bundle) const =0 throw ()
 
virtual void expire (const Timestamp timestamp)=0
 
virtual Size size () const =0 throw ()
 
virtual Length getLength () const =0 throw ()
 
virtual const
ibrcommon::BloomFilter
getBloomFilter () const =0 throw ()
 
virtual std::set
< dtn::data::MetaBundle
getNotIn (const ibrcommon::BloomFilter &filter) const =0 throw ()
 
virtual void sync () throw ()
 
virtual std::ostream & serialize (std::ostream &stream) const =0
 
virtual std::istream & deserialize (std::istream &stream)=0
 

Detailed Description

Definition at line 35 of file BundleSetImpl.h.

Constructor & Destructor Documentation

dtn::data::BundleSetImpl::~BundleSetImpl ( )
pure virtual
Parameters
bf_sizeInitial size fo the bloom-filter.

Definition at line 32 of file BundleSetImpl.cpp.

Member Function Documentation

virtual void dtn::data::BundleSetImpl::add ( const dtn::data::MetaBundle bundle)
throw (
)
pure virtual
virtual void dtn::data::BundleSetImpl::assign ( const refcnt_ptr< BundleSetImpl > &  )
pure virtual

clears the bundle-set and copy all entries from the given one into this bundle-set

Implemented in dtn::data::MemoryBundleSet.

virtual void dtn::data::BundleSetImpl::clear ( )
throw (
)
pure virtual
virtual refcnt_ptr<BundleSetImpl> dtn::data::BundleSetImpl::copy ( ) const
pure virtual

copies the current bundle-set into a new temporary one

Implemented in dtn::storage::SQLiteBundleSet, and dtn::data::MemoryBundleSet.

virtual std::istream& dtn::data::BundleSetImpl::deserialize ( std::istream &  stream)
pure virtual
virtual void dtn::data::BundleSetImpl::expire ( const Timestamp  timestamp)
pure virtual
virtual const ibrcommon::BloomFilter& dtn::data::BundleSetImpl::getBloomFilter ( ) const
throw (
)
pure virtual
virtual Length dtn::data::BundleSetImpl::getLength ( ) const
throw (
)
pure virtual

Returns the data length of the serialized BundleSet

Implemented in dtn::storage::SQLiteBundleSet, and dtn::data::MemoryBundleSet.

virtual std::set<dtn::data::MetaBundle> dtn::data::BundleSetImpl::getNotIn ( const ibrcommon::BloomFilter filter) const
throw (
)
pure virtual
virtual bool dtn::data::BundleSetImpl::has ( const dtn::data::BundleID bundle) const
throw (
)
pure virtual
virtual std::ostream& dtn::data::BundleSetImpl::serialize ( std::ostream &  stream) const
pure virtual
virtual Size dtn::data::BundleSetImpl::size ( ) const
throw (
)
pure virtual

Returns the number of elements in this set

Implemented in dtn::storage::SQLiteBundleSet, and dtn::data::MemoryBundleSet.

virtual void dtn::data::BundleSetImpl::sync ( )
throw (
)
inlinevirtual

Synchronize the bundle-set with the persistent set on the disk.

Reimplemented in dtn::data::MemoryBundleSet.

Definition at line 77 of file BundleSetImpl.h.


The documentation for this class was generated from the following files: