prophet::BundleOfferList Class Reference

In-memory representation of list of bundle offer entries from a Bundle TLV sent by WAIT_RIB or OFFER. More...

#include <BundleTLVEntryList.h>

Inheritance diagram for prophet::BundleOfferList:

prophet::BundleEntryList< BundleOfferEntry >

List of all members.

Public Member Functions

 BundleOfferList ()
 Constructor.
virtual ~BundleOfferList ()
 Destructor.
bool add_offer (const Bundle *b, u_int16_t sid)
 Convenience method to add Bundle to the list; return whether successful.
bool add_offer (u_int32_t cts, u_int32_t seq, u_int16_t sid, bool custody, bool ack)
 Convenience wrapper around base class's add_entry.

Protected Member Functions

virtual bool push_back (BundleOfferEntry *b)
 Add entry to back of list.


Detailed Description

In-memory representation of list of bundle offer entries from a Bundle TLV sent by WAIT_RIB or OFFER.

Definition at line 222 of file BundleTLVEntryList.h.


Constructor & Destructor Documentation

prophet::BundleOfferList::BundleOfferList (  )  [inline]

Constructor.

Definition at line 228 of file BundleTLVEntryList.h.

virtual prophet::BundleOfferList::~BundleOfferList (  )  [inline, virtual]

Destructor.

Definition at line 234 of file BundleTLVEntryList.h.


Member Function Documentation

bool prophet::BundleOfferList::add_offer ( u_int32_t  cts,
u_int32_t  seq,
u_int16_t  sid,
bool  custody,
bool  ack 
) [inline]

Convenience wrapper around base class's add_entry.

Definition at line 255 of file BundleTLVEntryList.h.

References prophet::BundleEntryList< BundleOfferEntry >::add_entry(), and prophet::BundleTLVEntry::OFFER.

bool prophet::BundleOfferList::add_offer ( const Bundle b,
u_int16_t  sid 
) [inline]

Convenience method to add Bundle to the list; return whether successful.

Definition at line 240 of file BundleTLVEntryList.h.

References prophet::Bundle::creation_ts(), prophet::Bundle::custody_requested(), and prophet::Bundle::sequence_num().

Referenced by prophet::OfferTLV::deserialize(), and prophet::BundleOffer::get_bundle_offer().

virtual bool prophet::BundleOfferList::push_back ( BundleOfferEntry bo  )  [inline, protected, virtual]


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

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