IBR-DTNSuite  0.10
dtn::routing::SchedulingBundleIndex Class Reference

#include <SchedulingBundleIndex.h>

Inheritance diagram for dtn::routing::SchedulingBundleIndex:
Inheritance graph
Collaboration diagram for dtn::routing::SchedulingBundleIndex:
Collaboration graph

Public Member Functions

 SchedulingBundleIndex ()
 
virtual ~SchedulingBundleIndex ()
 
virtual void add (const dtn::data::MetaBundle &b)
 
virtual void remove (const dtn::data::BundleID &id)
 
virtual void get (const dtn::storage::BundleSelector &cb, dtn::storage::BundleResult &result) throw (dtn::storage::NoBundleFoundException, dtn::storage::BundleSelectorException)
 
virtual const std::set
< dtn::data::EID
getDistinctDestinations ()
 
- Public Member Functions inherited from dtn::storage::BundleIndex
 BundleIndex ()
 
virtual ~BundleIndex ()=0
 
- Public Member Functions inherited from dtn::storage::BundleSeeker
virtual ~BundleSeeker ()
 

Additional Inherited Members

- Public Types inherited from dtn::storage::BundleSeeker
typedef std::set< dtn::data::EIDeid_set
 

Detailed Description

Definition at line 18 of file SchedulingBundleIndex.h.

Constructor & Destructor Documentation

dtn::routing::SchedulingBundleIndex::SchedulingBundleIndex ( )

Definition at line 14 of file SchedulingBundleIndex.cpp.

dtn::routing::SchedulingBundleIndex::~SchedulingBundleIndex ( )
virtual

Definition at line 18 of file SchedulingBundleIndex.cpp.

Member Function Documentation

void dtn::routing::SchedulingBundleIndex::add ( const dtn::data::MetaBundle b)
virtual

Implements dtn::storage::BundleIndex.

Definition at line 22 of file SchedulingBundleIndex.cpp.

void dtn::routing::SchedulingBundleIndex::get ( const dtn::storage::BundleSelector cb,
dtn::storage::BundleResult result 
) throw (dtn::storage::NoBundleFoundException, dtn::storage::BundleSelectorException)
virtual

Query the database for a number of bundles. The bundles are selected with the BundleSelector class which is to implement by the user of this method.

Parameters
cbThe instance of the callback filter class.
Returns
A list of bundles.

Implements dtn::storage::BundleSeeker.

Definition at line 39 of file SchedulingBundleIndex.cpp.

const std::set< dtn::data::EID > dtn::routing::SchedulingBundleIndex::getDistinctDestinations ( )
virtual

Return a set of distinct destinations for all bundles in the storage.

Returns

Implements dtn::storage::BundleSeeker.

Definition at line 59 of file SchedulingBundleIndex.cpp.

void dtn::routing::SchedulingBundleIndex::remove ( const dtn::data::BundleID id)
virtual

Implements dtn::storage::BundleIndex.

Definition at line 27 of file SchedulingBundleIndex.cpp.


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