dtn::BlockInfoVec Class Reference

Class for a vector of BlockInfo structures. More...

#include <BlockInfo.h>

List of all members.

Public Member Functions

 BlockInfoVec ()
 Default constructor.
BlockInfoappend_block (BlockProcessor *owner, const BlockInfo *source=NULL)
 Append a block using the given processor and optional source block.
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.
Dictionarydict ()
 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.

Detailed Description

Class for a vector of BlockInfo structures.

Definition at line 129 of file BlockInfo.h.


Constructor & Destructor Documentation

dtn::BlockInfoVec::BlockInfoVec (  ) 

Default constructor.

Definition at line 184 of file BlockInfo.cc.


Member Function Documentation

BlockInfo * dtn::BlockInfoVec::append_block ( BlockProcessor owner,
const BlockInfo source = NULL 
)

Append a block using the given processor and optional source block.

Returns:
the newly allocated block -- note that this pointer may be invalidated with a future call that changes the vector.

Definition at line 194 of file BlockInfo.cc.

Referenced by dtn::BlockProcessor::prepare().

Dictionary* dtn::BlockInfoVec::dict (  )  [inline]
u_int32_t dtn::BlockInfoVec::error_debug (  )  const [inline]

Definition at line 169 of file BlockInfo.h.

References error_debug_.

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]

Definition at line 168 of file BlockInfo.h.

References error_minor_.

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 202 of file BlockInfo.cc.

References end.

Referenced by has_block(), 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().

dtn::BlockInfoVec::NO_ASSIGN_COPY ( BlockInfoVec   )  [protected]

Disable the copy constructor and assignment operator.

void dtn::BlockInfoVec::set_error_debug ( u_int32_t  e  )  [inline]

Definition at line 177 of file BlockInfo.h.

References error_debug_.

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]

Definition at line 176 of file BlockInfo.h.

References error_minor_.


Member Data Documentation

Dictionary for this vector of BlockInfo structures.

Definition at line 190 of file BlockInfo.h.

Referenced by dict().

u_int32_t dtn::BlockInfoVec::error_debug_ [protected]

Definition at line 185 of file BlockInfo.h.

Referenced by error_debug(), and set_error_debug().

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]

Definition at line 184 of file BlockInfo.h.

Referenced by error_minor(), and set_error_minor().


The documentation for this class was generated from the following files:
Generated on Sun Nov 21 13:21:04 2010 for DTN Reference Implementation by  doxygen 1.6.3