IBR-DTNSuite 0.6

dtn::data::Bundle Class Reference

#include <Bundle.h>

Inheritance diagram for dtn::data::Bundle:
Collaboration diagram for dtn::data::Bundle:

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::ExtensionBlock::Factory &factory)
dtn::data::Blockinsert (dtn::data::ExtensionBlock::Factory &factory, const dtn::data::Block &before)
void remove (const dtn::data::Block &block)
void clearBlocks ()
string toString () const

Friends

class DefaultSerializer
class DefaultDeserializer
class dtn::security::StrictSerializer
class dtn::security::MutualSerializer

Detailed Description

Definition at line 39 of file Bundle.h.


Constructor & Destructor Documentation

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

Definition at line 18 of file Bundle.cpp.

References dtn::data::PrimaryBlock::_timestamp.

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

Definition at line 28 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 165 of file Bundle.cpp.

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

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

Here is the call graph for this function:

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

Definition at line 143 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
Block & dtn::data::Bundle::insert ( dtn::data::ExtensionBlock::Factory factory,
const dtn::data::Block before 
)

Definition at line 221 of file Bundle.cpp.

References dtn::data::ExtensionBlock::Factory::create(), and dtn::data::Bundle::BlockList::insert().

Here is the call graph for this function:

template<class T >
T & dtn::data::Bundle::insert ( const dtn::data::Block before)
dtn::data::PayloadBlock & dtn::data::Bundle::insert ( const dtn::data::Block before,
ibrcommon::BLOB::Reference ref 
)

Definition at line 170 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 135 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 145 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 140 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 150 of file Bundle.cpp.

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

Here is the call graph for this function:

dtn::data::Block & dtn::data::Bundle::push_back ( dtn::data::ExtensionBlock::Factory factory)

Definition at line 209 of file Bundle.cpp.

References dtn::data::ExtensionBlock::Factory::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 196 of file Bundle.cpp.

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

Here is the call graph for this function:

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

Definition at line 183 of file Bundle.cpp.

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

Here is the call graph for this function:


Friends And Related Function Documentation

friend class DefaultDeserializer [friend]

Reimplemented from dtn::data::PrimaryBlock.

Definition at line 42 of file Bundle.h.

friend class DefaultSerializer [friend]

Reimplemented from dtn::data::PrimaryBlock.

Definition at line 41 of file Bundle.h.

friend class dtn::security::MutualSerializer [friend]

Definition at line 44 of file Bundle.h.

friend class dtn::security::StrictSerializer [friend]

Definition at line 43 of file Bundle.h.


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