dtn::BundleMappings Class Reference

#include <BundleMappings.h>

List of all members.


Detailed Description

Class to define the set of mappings.

Currently the code just uses a vector to store the mappings to make it compact in memory and because the number of queues for each bundle is likely small.

Definition at line 59 of file BundleMappings.h.


Public Member Functions

iterator find (const BundleList *list)
 Return an iterator at the mapping to the given list, or end() if the mapping is not present.
bool contains (const BundleList *list)
 Syntactic sugar for finding whether or not a mapping exists for the given list.

Member Function Documentation

BundleMappings::iterator dtn::BundleMappings::find ( const BundleList list  ) 

Return an iterator at the mapping to the given list, or end() if the mapping is not present.

Definition at line 28 of file BundleMappings.cc.

References end.

Referenced by contains(), dtn::BundleList::del_bundle(), and dtn::BundleList::erase().

bool dtn::BundleMappings::contains ( const BundleList list  )  [inline]

Syntactic sugar for finding whether or not a mapping exists for the given list.

Definition at line 71 of file BundleMappings.h.

References end, and find().

Referenced by dtn::Bundle::is_queued_on().


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

Generated on Mon Jul 21 14:12:20 2008 for DTN Reference Implementation by  doxygen 1.5.6