dtn::BlockInfoVec Class Reference

#include <BlockInfo.h>

Inheritance diagram for dtn::BlockInfoVec:

oasys::SerializableVector< _Type > oasys::SerializableObject List of all members.

Detailed Description

Class for a vector of BlockInfo structures.

Definition at line 92 of file BlockInfo.h.

Public Member Functions

const BlockInfofind_block (u_int8_t type) const
 Find the block for the given type.
bool has_block (u_int8_t type) const
 Check if an entry exists in the vector for the given block type.


Member Function Documentation

const BlockInfo * dtn::BlockInfoVec::find_block ( u_int8_t  type  )  const

Find the block for the given type.

Returns:
the block or NULL if not found

Definition at line 140 of file BlockInfo.cc.

References end.

Referenced by has_block(), and dtnsim::SimConvergenceLayer::send_bundle().

bool dtn::BlockInfoVec::has_block ( u_int8_t  type  )  const [inline]

Check if an entry exists in the vector for the given block type.

Definition at line 104 of file BlockInfo.h.

References find_block().

Referenced by dtn::BundleProtocol::prepare_blocks().


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