Classes | Public Member Functions | Static Public Member Functions | Friends

dtn::data::Bundle Class Reference

#include <Bundle.h>

Inherits dtn::data::PrimaryBlock.

Collaboration diagram for dtn::data::Bundle:
Collaboration graph
[legend]

List of all members.

Classes

class  BlockList
class  NoSuchBlockFoundException

Public Member Functions

 Bundle ()
virtual ~Bundle ()
bool operator== (const Bundle &other) const
bool operator!= (const Bundle &other) const
bool operator< (const Bundle &other) const
bool operator> (const Bundle &other) const
const std::list< const
dtn::data::Block * > 
getBlocks () const
template<class T >
T & getBlock ()
template<class T >
const T & getBlock () const
template<class T >
const std::list< const T * > getBlocks () const
template<class T >
T & push_front ()
template<class T >
T & push_back ()
template<class T >
T & insert (const dtn::data::Block &before)
dtn::data::PayloadBlockpush_front (ibrcommon::BLOB::Reference &ref)
dtn::data::PayloadBlockpush_back (ibrcommon::BLOB::Reference &ref)
dtn::data::PayloadBlockinsert (const dtn::data::Block &before, ibrcommon::BLOB::Reference &ref)
dtn::data::Blockpush_back (dtn::data::ExtensionBlockFactory &factory)
void remove (const dtn::data::Block &block)
void clearBlocks ()
string toString () const

Static Public Member Functions

static std::map< char,
ExtensionBlockFactory * > & 
getExtensionBlockFactories ()

Friends

class DefaultSerializer
class DefaultDeserializer

Detailed Description

Definition at line 32 of file Bundle.h.


Constructor & Destructor Documentation

dtn::data::Bundle::Bundle (  ) 

Definition at line 25 of file Bundle.cpp.

dtn::data::Bundle::~Bundle (  )  [virtual]

Definition at line 29 of file Bundle.cpp.

References clearBlocks().

Here is the call graph for this function:


Member Function Documentation

void dtn::data::Bundle::clearBlocks (  ) 

Definition at line 166 of file Bundle.cpp.

References dtn::data::Bundle::BlockList::clear().

Referenced by dtn::data::BundleMerger::Container::Container(), and ~Bundle().

Here is the call graph for this function:

template<class T >
T & dtn::data::Bundle::getBlock (  ) 
template<class T >
const T & dtn::data::Bundle::getBlock (  )  const

Definition at line 133 of file Bundle.h.

References dtn::data::Bundle::BlockList::get().

Here is the call graph for this function:

template<class T >
const std::list<const T*> dtn::data::Bundle::getBlocks (  )  const
const std::list< const T * > dtn::data::Bundle::getBlocks (  )  const

Definition at line 156 of file Bundle.cpp.

References dtn::data::Bundle::BlockList::getList().

Here is the call graph for this function:

std::map< char, ExtensionBlockFactory * > & dtn::data::Bundle::getExtensionBlockFactories (  )  [static]
template<class T >
T & dtn::data::Bundle::insert ( const dtn::data::Block before  ) 

Definition at line 302 of file Bundle.h.

References dtn::data::Bundle::BlockList::insert().

Here is the call graph for this function:

dtn::data::PayloadBlock & dtn::data::Bundle::insert ( const dtn::data::Block before,
ibrcommon::BLOB::Reference ref 
)

Definition at line 171 of file Bundle.cpp.

References dtn::data::Bundle::BlockList::insert().

Here is the call graph for this function:

bool dtn::data::Bundle::operator!= ( const Bundle other  )  const

Definition at line 136 of file Bundle.cpp.

References dtn::data::PrimaryBlock::PrimaryBlock().

Here is the call graph for this function:

bool dtn::data::Bundle::operator< ( const Bundle other  )  const

Definition at line 146 of file Bundle.cpp.

References dtn::data::PrimaryBlock::PrimaryBlock().

Here is the call graph for this function:

bool dtn::data::Bundle::operator== ( const Bundle other  )  const

Definition at line 141 of file Bundle.cpp.

References dtn::data::PrimaryBlock::PrimaryBlock().

Here is the call graph for this function:

bool dtn::data::Bundle::operator> ( const Bundle other  )  const

Definition at line 151 of file Bundle.cpp.

References dtn::data::PrimaryBlock::PrimaryBlock().

Here is the call graph for this function:

template<class T >
T & dtn::data::Bundle::push_back (  ) 
dtn::data::Block & dtn::data::Bundle::push_back ( dtn::data::ExtensionBlockFactory factory  ) 

Definition at line 198 of file Bundle.cpp.

References dtn::data::ExtensionBlockFactory::create(), and dtn::data::Bundle::BlockList::push_back().

Here is the call graph for this function:

dtn::data::PayloadBlock & dtn::data::Bundle::push_back ( ibrcommon::BLOB::Reference ref  ) 

Definition at line 189 of file Bundle.cpp.

References dtn::data::Bundle::BlockList::push_back().

Here is the call graph for this function:

template<class T >
T & dtn::data::Bundle::push_front (  ) 

Definition at line 282 of file Bundle.h.

References dtn::data::Bundle::BlockList::push_front().

Here is the call graph for this function:

dtn::data::PayloadBlock & dtn::data::Bundle::push_front ( ibrcommon::BLOB::Reference ref  ) 

Definition at line 180 of file Bundle.cpp.

References dtn::data::Bundle::BlockList::push_front().

Here is the call graph for this function:

void dtn::data::Bundle::remove ( const dtn::data::Block block  ) 

Definition at line 161 of file Bundle.cpp.

References dtn::data::Bundle::BlockList::remove().

Referenced by dtn::data::DefaultDeserializer::operator>>(), and dtn::data::SeparateDeserializer::readBlock().

Here is the call graph for this function:

string dtn::data::Bundle::toString (  )  const

Friends And Related Function Documentation

friend class DefaultDeserializer [friend]

Reimplemented from dtn::data::PrimaryBlock.

Definition at line 35 of file Bundle.h.

friend class DefaultSerializer [friend]

Reimplemented from dtn::data::PrimaryBlock.

Definition at line 34 of file Bundle.h.


The documentation for this class was generated from the following files: