#include <ProphetLinkList.h>
Definition at line 26 of file ProphetLinkList.h.
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::Link * | find (const char *remote_eid) const |
Given remote_eid, return pointer to prophet object. | |
const LinkRef & | find_ref (const prophet::Link *link) const |
Given prophet object, return dtn::LinkRef&. | |
const LinkRef & | find_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 |
typedef std::list<ProphetLink*> dtn::ProphetLinkList::List [protected] |
Definition at line 75 of file ProphetLinkList.h.
typedef List::iterator dtn::ProphetLinkList::iterator [protected] |
Definition at line 76 of file ProphetLinkList.h.
typedef List::const_iterator dtn::ProphetLinkList::const_iterator [protected] |
Definition at line 77 of file ProphetLinkList.h.
dtn::ProphetLinkList::ProphetLinkList | ( | ) |
dtn::ProphetLinkList::~ProphetLinkList | ( | ) |
void dtn::ProphetLinkList::add | ( | const LinkRef & | l | ) |
Add a mapping between DTN LinkRef and prophet::Link*.
Definition at line 37 of file ProphetLinkList.cc.
Referenced by dtn::ProphetBundleCore::add().
void dtn::ProphetLinkList::del | ( | const LinkRef & | l | ) |
Remove mapping between DTN LinkRef and prophet::Link*.
Definition at line 48 of file ProphetLinkList.cc.
Referenced by dtn::ProphetBundleCore::del().
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 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().
const LinkRef & dtn::ProphetLinkList::find_ref | ( | const char * | remote_eid | ) | const |
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().
bool dtn::ProphetLinkList::empty | ( | ) | const [inline] |
size_t dtn::ProphetLinkList::size | ( | ) | const [inline] |
List dtn::ProphetLinkList::list_ [protected] |
LinkRef dtn::ProphetLinkList::NULL_LINK [static, protected] |