#include <Bundle.h>
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::PayloadBlock & | push_front (ibrcommon::BLOB::Reference &ref) |
| dtn::data::PayloadBlock & | push_back (ibrcommon::BLOB::Reference &ref) |
| dtn::data::PayloadBlock & | insert (const dtn::data::Block &before, ibrcommon::BLOB::Reference &ref) |
| dtn::data::Block & | push_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 |
Definition at line 32 of file Bundle.h.
| 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().
| 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().
| const T & dtn::data::Bundle::getBlock | ( | ) | const [inline] |
Definition at line 133 of file Bundle.h.
References dtn::data::Bundle::BlockList::get().
| T & dtn::data::Bundle::getBlock | ( | ) | [inline] |
Definition at line 127 of file Bundle.h.
References dtn::data::Bundle::BlockList::get().
Referenced by dtn::daemon::EchoWorker::callbackBundleReceived(), dtn::api::Bundle::getData(), dtn::data::operator<<(), dtn::core::BundleCore::raiseEvent(), and dtn::routing::EpidemicRoutingExtension::run().
| const std::list<const T*> dtn::data::Bundle::getBlocks | ( | ) | const [inline] |
| const std::list< const T * > dtn::data::Bundle::getBlocks | ( | ) | const [inline] |
Definition at line 156 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::getList().
| std::map< char, ExtensionBlockFactory * > & dtn::data::Bundle::getExtensionBlockFactories | ( | ) | [static] |
Definition at line 19 of file Bundle.cpp.
Referenced by dtn::data::ExtensionBlockFactory::ExtensionBlockFactory(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::SeparateDeserializer::readBlock(), and dtn::data::ExtensionBlockFactory::~ExtensionBlockFactory().
| 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().
| T & dtn::data::Bundle::insert | ( | const dtn::data::Block & | before | ) | [inline] |
Definition at line 302 of file Bundle.h.
References dtn::data::Bundle::BlockList::insert().
| bool dtn::data::Bundle::operator!= | ( | const Bundle & | other | ) | const |
Definition at line 136 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
| bool dtn::data::Bundle::operator< | ( | const Bundle & | other | ) | const |
Definition at line 146 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
| bool dtn::data::Bundle::operator== | ( | const Bundle & | other | ) | const |
Definition at line 141 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
| bool dtn::data::Bundle::operator> | ( | const Bundle & | other | ) | const |
Definition at line 151 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
| 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().
| 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().
| T & dtn::data::Bundle::push_back | ( | ) | [inline] |
Definition at line 292 of file Bundle.h.
References dtn::data::Bundle::BlockList::push_back().
Referenced by dtn::core::BundleStorage::acceptCustody(), dtn::api::BLOBBundle::BLOBBundle(), dtn::data::BundleMerger::Container::Container(), dtn::api::FileBundle::FileBundle(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::SeparateDeserializer::readBlock(), and dtn::core::BundleStorage::rejectCustody().
| 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().
| T & dtn::data::Bundle::push_front | ( | ) | [inline] |
Definition at line 282 of file Bundle.h.
References dtn::data::Bundle::BlockList::push_front().
| 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().
| string dtn::data::Bundle::toString | ( | ) | const |
Reimplemented from dtn::data::PrimaryBlock.
Definition at line 206 of file Bundle.cpp.
Referenced by dtn::daemon::DevNull::callbackBundleReceived(), dtn::daemon::Debugger::callbackBundleReceived(), dtn::core::SQLiteBundleStorage::get(), dtn::routing::BaseRouter::raiseEvent(), dtn::core::BundleCore::raiseEvent(), dtn::core::SimpleBundleStorage::store(), dtn::net::BundleReceivedEvent::toString(), and dtn::core::BundleGeneratedEvent::toString().
friend class DefaultDeserializer [friend] |
Reimplemented from dtn::data::PrimaryBlock.
friend class DefaultSerializer [friend] |
Reimplemented from dtn::data::PrimaryBlock.
1.6.3