IBR-DTNSuite  0.8
dtn::data::BundleList Class Reference

#include <BundleList.h>

Inheritance diagram for dtn::data::BundleList:

List of all members.

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

Detailed Description

Definition at line 18 of file BundleList.h.


Constructor & Destructor Documentation

Definition at line 16 of file BundleList.cpp.

Definition at line 20 of file BundleList.cpp.


Member Function Documentation

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]
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().

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.


Member Data Documentation


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