In-memory representation of list of bundle offer entries from a Bundle TLV sent by WAIT_RIB or OFFER. More...
#include <BundleTLVEntryList.h>
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. | |
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.
| 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.
| 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.
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] |
Add entry to back of list.
Implements prophet::BundleEntryList< BundleOfferEntry >.
Definition at line 265 of file BundleTLVEntryList.h.
References prophet::BundleTLVEntry::creation_ts(), prophet::BundleEntryList< BundleOfferEntry >::find(), prophet::BundleEntryList< BundleOfferEntry >::list_, prophet::BundleTLVEntry::seqno(), and prophet::BundleTLVEntry::sid().
1.6.3