dtn::LinkBlockSet Class Reference

#include <BlockInfo.h>

List of all members.


Detailed Description

A set of BlockInfoVecs, one for each outgoing link.

Definition at line 110 of file BlockInfo.h.

Public Member Functions

virtual ~LinkBlockSet ()
 Destructor that clears the set.
BlockInfoVeccreate_blocks (Link *link)
 Create a new BlockInfoVec for the given link.
BlockInfoVecfind_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< EntryVector
typedef std::vector< Entry
>::iterator 
iterator

Protected Attributes

Vector entries_

Classes

struct  Entry
 Struct to hold a block list and a link pointer. More...


Member Typedef Documentation

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.


Constructor & Destructor Documentation

dtn::LinkBlockSet::~LinkBlockSet (  )  [virtual]

Destructor that clears the set.

Definition at line 160 of file BlockInfo.cc.

References entries_.


Member Function Documentation

BlockInfoVec * dtn::LinkBlockSet::create_blocks ( Link link  ) 

Create a new BlockInfoVec for the given link.

Returns:
Pointer to the new BlockInfoVec

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.

Returns:
Pointer to the BlockInfoVec or NULL if not found

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().


Member Data Documentation

Vector dtn::LinkBlockSet::entries_ [protected]

Definition at line 153 of file BlockInfo.h.

Referenced by create_blocks(), delete_blocks(), find_blocks(), and ~LinkBlockSet().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 16:56:56 2007 for DTN Reference Implementation by  doxygen 1.5.1