dtn::BundleMapping Class Reference

Structure stored in a list along with each bundle to keep a "backpointer" to any bundle lists that the bundle is queued on to make searching the lists more efficient. More...

#include <BundleMappings.h>

List of all members.

Public Member Functions

 BundleMapping ()
 BundleMapping (BundleList *list, const BundleList::iterator &position)
BundleListlist () const
const BundleList::iteratorposition () const

Protected Attributes

BundleListlist_
 Pointer to the list on which the bundle is held.
BundleList::iterator position_
 Position of the bundle on that list.


Detailed Description

Structure stored in a list along with each bundle to keep a "backpointer" to any bundle lists that the bundle is queued on to make searching the lists more efficient.

Relies on the fact that BundleList::iterator remains valid through insertions and removals to other parts of the list.

Definition at line 34 of file BundleMappings.h.


Constructor & Destructor Documentation

dtn::BundleMapping::BundleMapping (  )  [inline]

Definition at line 36 of file BundleMappings.h.

dtn::BundleMapping::BundleMapping ( BundleList list,
const BundleList::iterator position 
) [inline]

Definition at line 38 of file BundleMappings.h.


Member Function Documentation

BundleList* dtn::BundleMapping::list (  )  const [inline]

Definition at line 41 of file BundleMappings.h.

References list_.

const BundleList::iterator& dtn::BundleMapping::position (  )  const [inline]

Definition at line 42 of file BundleMappings.h.

References position_.


Member Data Documentation

Pointer to the list on which the bundle is held.

Definition at line 46 of file BundleMappings.h.

Referenced by list().

Position of the bundle on that list.

Definition at line 49 of file BundleMappings.h.

Referenced by position().


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

Generated on Fri Jan 30 09:27:03 2009 for DTN Reference Implementation by  doxygen 1.5.8