dtn::BundleMappings Class Reference

Class to define the set of mappings. More...

#include <BundleMappings.h>

List of all members.

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.

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.


Member Function Documentation

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

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


The documentation for this class was generated from the following files:
Generated on Sun Nov 21 11:41:01 2010 for DTN Reference Implementation by  doxygen 1.6.3