IBR-DTNSuite  0.8
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
dtn::data::BlockgetBlock (int index)
const dtn::data::BlockgetBlock (int index) 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_front (dtn::data::ExtensionBlock::Factory &factory)
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
size_t blockCount () 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

Definition at line 18 of file Bundle.cpp.

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

Definition at line 28 of file Bundle.cpp.

References clearBlocks().

Here is the call graph for this function:


Member Function Documentation

Definition at line 271 of file Bundle.cpp.

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

Referenced by dtn::api::ExtendedApiHandler::run().

Here is the call graph for this function:

const dtn::data::Block & dtn::data::Bundle::getBlock ( int  index) const

Definition at line 176 of file Bundle.cpp.

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

Here is the call graph for this function:

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

Definition at line 149 of file Bundle.h.

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

Here is the call graph for this function:

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

Definition at line 155 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

Definition at line 191 of file Bundle.cpp.

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

Here is the call graph for this function:

Definition at line 254 of file Bundle.cpp.

References dtn::data::ExtensionBlock::Factory::create(), and 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 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 156 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:

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

Definition at line 161 of file Bundle.cpp.

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

Here is the call graph for this function:

Definition at line 217 of file Bundle.cpp.

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

Here is the call graph for this function:

Definition at line 204 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: