dtn::ProphetLinkList Class Reference

#include <ProphetLinkList.h>

List of all members.

Public Member Functions

 ProphetLinkList ()
 Constructor.
 ~ProphetLinkList ()
 Destructor.
void add (const LinkRef &l)
 Add a mapping between DTN LinkRef and prophet::Link*.
void del (const LinkRef &l)
 Remove mapping between DTN LinkRef and prophet::Link*.
const prophet::Linkfind (const char *remote_eid) const
 Given remote_eid, return pointer to prophet object.
const LinkReffind_ref (const prophet::Link *link) const
 Given prophet object, return dtn::LinkRef&.
const LinkReffind_ref (const char *remote_eid) const
 Given remote_eid, return dtn::LinkRef&.
void clear ()
 Remove all items from list and clean up memory.
bool empty () const
 Accessors.
size_t size () const
 Accessors.

Protected Types

typedef std::list< ProphetLink * > List
typedef List::iterator iterator
typedef List::const_iterator const_iterator

Protected Member Functions

bool find (const char *remote_eid, iterator &i)
 Internal find utility method.

Protected Attributes

List list_
 collection of ProphetLink's

Static Protected Attributes

static LinkRef NULL_LINK


Detailed Description

Definition at line 26 of file ProphetLinkList.h.


Member Typedef Documentation

typedef List::const_iterator dtn::ProphetLinkList::const_iterator [protected]

Definition at line 77 of file ProphetLinkList.h.

typedef List::iterator dtn::ProphetLinkList::iterator [protected]

Definition at line 76 of file ProphetLinkList.h.

typedef std::list<ProphetLink*> dtn::ProphetLinkList::List [protected]

Definition at line 75 of file ProphetLinkList.h.


Constructor & Destructor Documentation

dtn::ProphetLinkList::ProphetLinkList (  ) 

Constructor.

Definition at line 28 of file ProphetLinkList.cc.

dtn::ProphetLinkList::~ProphetLinkList (  ) 

Destructor.

Definition at line 31 of file ProphetLinkList.cc.

References clear().


Member Function Documentation

void dtn::ProphetLinkList::add ( const LinkRef l  ) 

Add a mapping between DTN LinkRef and prophet::Link*.

Definition at line 37 of file ProphetLinkList.cc.

References find(), and list_.

Referenced by dtn::ProphetBundleCore::add().

void dtn::ProphetLinkList::clear (  ) 

Remove all items from list and clean up memory.

Definition at line 86 of file ProphetLinkList.cc.

References list_.

Referenced by dtn::ProphetBundleCore::shutdown(), and ~ProphetLinkList().

void dtn::ProphetLinkList::del ( const LinkRef l  ) 

Remove mapping between DTN LinkRef and prophet::Link*.

Definition at line 48 of file ProphetLinkList.cc.

References find(), and list_.

Referenced by dtn::ProphetBundleCore::del().

bool dtn::ProphetLinkList::empty (  )  const [inline]

Accessors.

Definition at line 70 of file ProphetLinkList.h.

References list_.

bool dtn::ProphetLinkList::find ( const char *  remote_eid,
iterator i 
) [protected]

Internal find utility method.

Definition at line 96 of file ProphetLinkList.cc.

References list_.

const prophet::Link * dtn::ProphetLinkList::find ( const char *  remote_eid  )  const

Given remote_eid, return pointer to prophet object.

Definition at line 59 of file ProphetLinkList.cc.

References find().

Referenced by add(), del(), find(), find_ref(), and dtn::ProphetBundleCore::get_link().

const LinkRef & dtn::ProphetLinkList::find_ref ( const char *  remote_eid  )  const

Given remote_eid, return dtn::LinkRef&.

Definition at line 76 of file ProphetLinkList.cc.

References find(), and NULL_LINK.

const LinkRef & dtn::ProphetLinkList::find_ref ( const prophet::Link link  )  const

Given prophet object, return dtn::LinkRef&.

Definition at line 69 of file ProphetLinkList.cc.

References NULL_LINK, and prophet::Link::remote_eid().

Referenced by dtn::ProphetBundleCore::get_link(), and dtn::ProphetBundleCore::should_fwd().

size_t dtn::ProphetLinkList::size (  )  const [inline]

Accessors.

Definition at line 71 of file ProphetLinkList.h.

References list_.


Member Data Documentation

collection of ProphetLink's

Definition at line 84 of file ProphetLinkList.h.

Referenced by add(), clear(), del(), empty(), find(), and size().

Definition at line 85 of file ProphetLinkList.h.

Referenced by find_ref().


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

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