#include <BlockInfo.h>
Definition at line 129 of file BlockInfo.h.
Public Member Functions | |
BlockInfoVec () | |
Default constructor. | |
BlockInfo * | append_block (BlockProcessor *owner, const BlockInfo *source=NULL) |
Append a block using the given processor and optional source block. | |
const BlockInfo * | find_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. | |
Dictionary * | dict () |
Return the dictionary. | |
u_int32_t | error_major () const |
Error values stored by processing routines -- accessors. | |
u_int32_t | error_minor () const |
u_int32_t | error_debug () const |
void | set_error_major (u_int32_t e) |
Error values stored by processing routines -- mutating accessors. | |
void | set_error_minor (u_int32_t e) |
void | set_error_debug (u_int32_t e) |
Protected Member Functions | |
NO_ASSIGN_COPY (BlockInfoVec) | |
Disable the copy constructor and assignment operator. | |
Protected Attributes | |
u_int32_t | error_major_ |
Error values stored by processing routines. | |
u_int32_t | error_minor_ |
u_int32_t | error_debug_ |
Dictionary | dict_ |
Dictionary for this vector of BlockInfo structures. |
dtn::BlockInfoVec::BlockInfoVec | ( | ) |
BlockInfo * dtn::BlockInfoVec::append_block | ( | BlockProcessor * | owner, | |
const BlockInfo * | source = NULL | |||
) |
Append a block using the given processor and optional source block.
Definition at line 195 of file BlockInfo.cc.
Referenced by dtn::BundleProtocol::consume(), and dtn::BlockProcessor::prepare().
const BlockInfo * dtn::BlockInfoVec::find_block | ( | u_int8_t | type | ) | const |
Find the block for the given type.
Definition at line 203 of file BlockInfo.cc.
References end.
Referenced by has_block(), dtn::BundleProtocol::prepare_blocks(), dtnsim::SimLink::start_next_bundle(), dtn::FragmentManager::try_to_convert_to_fragment(), and dtn::FragmentManager::try_to_reactively_fragment().
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 156 of file BlockInfo.h.
References find_block().
Referenced by dtn::BundleProtocol::prepare_blocks().
Dictionary* dtn::BlockInfoVec::dict | ( | ) | [inline] |
Return the dictionary.
Definition at line 161 of file BlockInfo.h.
References dict_.
Referenced by dtn::PrimaryBlockProcessor::consume(), dtn::BlockProcessor::consume_preamble(), dtn::BlockProcessor::generate_preamble(), dtn::PrimaryBlockProcessor::generate_primary(), and dtn::PrimaryBlockProcessor::prepare().
u_int32_t dtn::BlockInfoVec::error_major | ( | ) | const [inline] |
Error values stored by processing routines -- accessors.
Definition at line 167 of file BlockInfo.h.
References error_major_.
u_int32_t dtn::BlockInfoVec::error_minor | ( | ) | const [inline] |
u_int32_t dtn::BlockInfoVec::error_debug | ( | ) | const [inline] |
void dtn::BlockInfoVec::set_error_major | ( | u_int32_t | e | ) | [inline] |
Error values stored by processing routines -- mutating accessors.
Definition at line 175 of file BlockInfo.h.
References error_major_.
void dtn::BlockInfoVec::set_error_minor | ( | u_int32_t | e | ) | [inline] |
void dtn::BlockInfoVec::set_error_debug | ( | u_int32_t | e | ) | [inline] |
dtn::BlockInfoVec::NO_ASSIGN_COPY | ( | BlockInfoVec | ) | [protected] |
Disable the copy constructor and assignment operator.
u_int32_t dtn::BlockInfoVec::error_major_ [protected] |
Error values stored by processing routines.
Definition at line 183 of file BlockInfo.h.
Referenced by error_major(), and set_error_major().
u_int32_t dtn::BlockInfoVec::error_minor_ [protected] |
u_int32_t dtn::BlockInfoVec::error_debug_ [protected] |
Dictionary dtn::BlockInfoVec::dict_ [protected] |
Dictionary for this vector of BlockInfo structures.
Definition at line 190 of file BlockInfo.h.
Referenced by dict().