#include <BlockInfo.h>
Definition at line 110 of file BlockInfo.h.
Public Member Functions | |
virtual | ~LinkBlockSet () |
Destructor that clears the set. | |
BlockInfoVec * | create_blocks (Link *link) |
Create a new BlockInfoVec for the given link. | |
BlockInfoVec * | find_blocks (Link *link) |
Find the BlockInfoVec for the given link. | |
void | delete_blocks (Link *link) |
Remove the BlockInfoVec for the given link. | |
Protected Types | |
typedef std::vector< Entry > | Vector |
typedef std::vector< Entry >::iterator | iterator |
Protected Attributes | |
Vector | entries_ |
Classes | |
struct | Entry |
Struct to hold a block list and a link pointer. More... |
typedef std::vector<Entry> dtn::LinkBlockSet::Vector [protected] |
Definition at line 151 of file BlockInfo.h.
typedef std::vector<Entry>::iterator dtn::LinkBlockSet::iterator [protected] |
Definition at line 152 of file BlockInfo.h.
dtn::LinkBlockSet::~LinkBlockSet | ( | ) | [virtual] |
BlockInfoVec * dtn::LinkBlockSet::create_blocks | ( | Link * | link | ) |
Create a new BlockInfoVec for the given link.
Definition at line 173 of file BlockInfo.cc.
References ASSERT, entries_, and find_blocks().
Referenced by dtn::BundleProtocol::prepare_blocks().
BlockInfoVec * dtn::LinkBlockSet::find_blocks | ( | Link * | link | ) |
Find the BlockInfoVec for the given link.
Definition at line 183 of file BlockInfo.cc.
References entries_.
Referenced by create_blocks(), dtn::BundleDaemon::handle_bundle_transmitted(), dtn::StreamConvergenceLayer::Connection::handle_send_bundle(), dtn::UDPConvergenceLayer::Sender::send_bundle(), dtnsim::SimConvergenceLayer::send_bundle(), dtn::NullConvergenceLayer::send_bundle(), and dtn::BundleActions::send_bundle().
void dtn::LinkBlockSet::delete_blocks | ( | Link * | link | ) |
Remove the BlockInfoVec for the given link.
Definition at line 198 of file BlockInfo.cc.
References entries_.
Referenced by dtn::BundleDaemon::handle_bundle_transmit_failed(), and dtn::BundleDaemon::handle_bundle_transmitted().
Vector dtn::LinkBlockSet::entries_ [protected] |
Definition at line 153 of file BlockInfo.h.
Referenced by create_blocks(), delete_blocks(), find_blocks(), and ~LinkBlockSet().