IBR-DTNSuite
0.12
|
#include <Bundle.h>
Classes | |
class | block_elem |
class | NoSuchBlockFoundException |
Public Member Functions | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | find (block_t blocktype) |
const_iterator | find (block_t blocktype) const |
iterator | find (const Block &block) |
const_iterator | find (const Block &block) const |
Bundle (bool zero_timestamp=false) | |
virtual | ~Bundle () |
bool | operator== (const BundleID &other) const |
bool | operator== (const MetaBundle &other) const |
bool | operator== (const Bundle &other) const |
bool | operator!= (const Bundle &other) const |
bool | operator< (const Bundle &other) const |
bool | operator> (const Bundle &other) const |
template<class T > | |
T & | find () |
template<class T > | |
const T & | find () const |
template<class T > | |
T & | push_front () |
template<class T > | |
T & | push_back () |
template<class T > | |
T & | insert (iterator before) |
dtn::data::PayloadBlock & | push_front (ibrcommon::BLOB::Reference &ref) |
dtn::data::PayloadBlock & | push_back (ibrcommon::BLOB::Reference &ref) |
dtn::data::PayloadBlock & | insert (iterator before, ibrcommon::BLOB::Reference &ref) |
dtn::data::Block & | push_front (ExtensionBlock::Factory &factory) |
dtn::data::Block & | push_back (ExtensionBlock::Factory &factory) |
dtn::data::Block & | insert (iterator before, ExtensionBlock::Factory &factory) |
void | erase (iterator it) |
void | erase (iterator begin, iterator end) |
void | remove (const Block &block) |
void | clear () |
Size | size () const |
bool | allEIDsInCBHE () const |
dtn::data::Length | getPayloadLength () const |
Public Member Functions inherited from dtn::data::PrimaryBlock | |
PrimaryBlock (bool zero_timestamp=false) | |
virtual | ~PrimaryBlock () |
void | set (FLAGS flag, bool value) |
bool | get (FLAGS flag) const |
PRIORITY | getPriority () const |
void | setPriority (PRIORITY p) |
bool | isFragment () const |
void | setFragment (bool val) |
void | relabel (bool zero_timestamp=false) |
bool | operator== (const PrimaryBlock &other) const |
bool | operator!= (const PrimaryBlock &other) const |
bool | operator< (const PrimaryBlock &other) const |
bool | operator> (const PrimaryBlock &other) const |
Public Member Functions inherited from dtn::data::BundleID | |
BundleID () | |
virtual | ~BundleID () |
bool | operator!= (const BundleID &other) const |
bool | operator== (const BundleID &other) const |
bool | operator< (const BundleID &other) const |
bool | operator> (const BundleID &other) const |
BundleID (const BundleID &id) | |
BundleID & | operator= (const BundleID &id) |
std::string | toString () const |
virtual void | setPayloadLength (const dtn::data::Length &value) |
void | addTo (ibrcommon::BloomFilter &bf) const |
bool | isIn (const ibrcommon::BloomFilter &bf) const |
size_t | raw (unsigned char *data, size_t len) const |
Friends | |
class | BundleBuilder |
Additional Inherited Members | |
Public Attributes inherited from dtn::data::PrimaryBlock | |
Bitset< FLAGS > | procflags |
Number | lifetime |
Number | appdatalength |
EID | destination |
EID | reportto |
EID | custodian |
typedef std::list<block_elem> dtn::data::Bundle::block_list |
typedef block_list::const_iterator dtn::data::Bundle::const_iterator |
typedef block_list::iterator dtn::data::Bundle::iterator |
dtn::data::Bundle::Bundle | ( | bool | zero_timestamp = false ) |
Definition at line 33 of file Bundle.cpp.
References dtn::data::BundleID::timestamp.
|
virtual |
Definition at line 44 of file Bundle.cpp.
References clear().
bool dtn::data::Bundle::allEIDsInCBHE | ( | ) | const |
Definition at line 263 of file Bundle.cpp.
References begin(), dtn::data::Block::BLOCK_CONTAINS_EIDS, dtn::data::PrimaryBlock::custodian, dtn::data::PrimaryBlock::destination, end(), dtn::data::EID::isCompressable(), dtn::data::PrimaryBlock::reportto, and dtn::data::BundleID::source.
Bundle::iterator dtn::data::Bundle::begin | ( | ) |
Definition at line 49 of file Bundle.cpp.
Referenced by dtn::data::Dictionary::add(), allEIDsInCBHE(), dtn::daemon::Debugger::callbackBundleReceived(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::ExtensionSecurityBlock::decrypt(), dtn::security::PayloadConfidentialBlock::encrypt(), find(), dtn::data::BundleBuilder::insert(), dtn::data::DefaultSerializer::isCompressable(), dtn::security::SecurityBlock::isCorrelatorPresent(), dtn::api::PlainSerializer::operator<<(), dtn::security::StrictSerializer::operator<<(), dtn::api::NativeSerializer::operator<<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::core::BundleCore::processBlocks(), remove(), dtn::api::ExtendedApiHandler::run(), dtn::storage::SQLiteBundleStorage::store(), dtn::security::PayloadIntegrityBlock::strip(), dtn::security::BundleAuthenticationBlock::strip(), and dtn::security::PayloadIntegrityBlock::verify().
Bundle::const_iterator dtn::data::Bundle::begin | ( | ) | const |
Definition at line 59 of file Bundle.cpp.
void dtn::data::Bundle::clear | ( | ) |
Definition at line 139 of file Bundle.cpp.
Referenced by dtn::data::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::core::FragmentManager::split(), and ~Bundle().
Bundle::iterator dtn::data::Bundle::end | ( | ) |
Definition at line 54 of file Bundle.cpp.
Referenced by dtn::data::Dictionary::add(), allEIDsInCBHE(), dtn::daemon::Debugger::callbackBundleReceived(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::data::CompressedPayloadBlock::compress(), dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::ExtensionSecurityBlock::decrypt(), dtn::security::PayloadConfidentialBlock::encrypt(), erase(), dtn::data::CompressedPayloadBlock::extract(), find(), dtn::data::BundleBuilder::insert(), insert(), dtn::data::DefaultSerializer::isCompressable(), dtn::security::SecurityBlock::isCorrelatorPresent(), dtn::api::PlainSerializer::operator<<(), dtn::security::StrictSerializer::operator<<(), dtn::api::NativeSerializer::operator<<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::core::BundleCore::processBlocks(), push_back(), push_front(), remove(), dtn::api::ExtendedApiHandler::run(), dtn::storage::SQLiteBundleStorage::store(), dtn::security::PayloadIntegrityBlock::strip(), dtn::security::BundleAuthenticationBlock::strip(), and dtn::security::PayloadIntegrityBlock::verify().
Bundle::const_iterator dtn::data::Bundle::end | ( | ) | const |
Definition at line 64 of file Bundle.cpp.
void dtn::data::Bundle::erase | ( | iterator | it) |
Definition at line 127 of file Bundle.cpp.
References end(), dtn::data::Block::LAST_BLOCK, and size().
Referenced by dtn::data::CompressedPayloadBlock::compress(), dtn::security::SecurityBlock::encryptBlock(), dtn::data::CompressedPayloadBlock::extract(), remove(), dtn::api::ExtendedApiHandler::run(), dtn::security::PayloadIntegrityBlock::strip(), and dtn::security::BundleAuthenticationBlock::strip().
void dtn::data::Bundle::erase | ( | Bundle::iterator | b, |
Bundle::iterator | e | ||
) |
Definition at line 112 of file Bundle.cpp.
References end(), dtn::data::Block::LAST_BLOCK, and size().
Bundle::iterator dtn::data::Bundle::find | ( | block_t | blocktype) |
Definition at line 307 of file Bundle.cpp.
References begin(), and end().
Referenced by BundleStreamBuf::__underflow(), dtn::daemon::CapsuleWorker::callbackBundleReceived(), dtn::daemon::EchoWorker::callbackBundleReceived(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::data::CompressedPayloadBlock::compress(), dtn::utils::Utils::decapsule(), dtn::security::SecurityBlock::decryptBlock(), dtn::security::PayloadConfidentialBlock::decryptPayload(), dtn::utils::Utils::encapsule(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::data::CompressedPayloadBlock::extract(), dtn::storage::SimpleBundleStorage::get(), dtn::utils::Clock::getExpireTime(), dtn::utils::Clock::isExpired(), main(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::Registration::processIncomingBundle(), dtn::core::BundleCore::raiseEvent(), dtn::routing::BaseRouter::raiseEvent(), BundleStreamBuf::received(), BundleStream::received(), dtn::api::ExtendedApiHandler::run(), dtn::security::PayloadIntegrityBlock::sign(), and dtn::api::BundleStreamBuf::underflow().
Bundle::const_iterator dtn::data::Bundle::find | ( | block_t | blocktype) | const |
Definition at line 302 of file Bundle.cpp.
References begin(), and end().
Bundle::iterator dtn::data::Bundle::find | ( | const Block & | block) |
Definition at line 312 of file Bundle.cpp.
References begin(), and end().
Bundle::const_iterator dtn::data::Bundle::find | ( | const Block & | block) | const |
Definition at line 322 of file Bundle.cpp.
References begin(), and end().
T & dtn::data::Bundle::find | ( | ) |
const T & dtn::data::Bundle::find | ( | ) | const |
|
virtual |
Reimplemented from dtn::data::BundleID.
Definition at line 292 of file Bundle.cpp.
References dtn::data::PayloadBlock::getLength().
T & dtn::data::Bundle::insert | ( | iterator | before) |
Definition at line 200 of file Bundle.h.
References end(), dtn::data::Block::LAST_BLOCK, and size().
Referenced by dtn::data::CompressedPayloadBlock::compress(), dtn::security::SecurityBlock::decryptBlock(), dtn::security::SecurityBlock::encryptBlock(), dtn::data::CompressedPayloadBlock::extract(), dtn::storage::MemoryBundleStorage::getDistinctDestinations(), dtn::data::BundleBuilder::insert(), and dtn::data::operator<<().
dtn::data::PayloadBlock & dtn::data::Bundle::insert | ( | iterator | before, |
ibrcommon::BLOB::Reference & | ref | ||
) |
Definition at line 144 of file Bundle.cpp.
References end(), dtn::data::Block::LAST_BLOCK, and size().
Block & dtn::data::Bundle::insert | ( | iterator | before, |
ExtensionBlock::Factory & | factory | ||
) |
Definition at line 238 of file Bundle.cpp.
References dtn::data::ExtensionBlock::Factory::create(), end(), dtn::data::Block::LAST_BLOCK, and size().
bool dtn::data::Bundle::operator!= | ( | const Bundle & | other) | const |
Definition at line 79 of file Bundle.cpp.
bool dtn::data::Bundle::operator< | ( | const Bundle & | other) | const |
Definition at line 89 of file Bundle.cpp.
bool dtn::data::Bundle::operator== | ( | const BundleID & | other) | const |
Definition at line 69 of file Bundle.cpp.
bool dtn::data::Bundle::operator== | ( | const MetaBundle & | other) | const |
Definition at line 74 of file Bundle.cpp.
bool dtn::data::Bundle::operator== | ( | const Bundle & | other) | const |
Definition at line 84 of file Bundle.cpp.
bool dtn::data::Bundle::operator> | ( | const Bundle & | other) | const |
Definition at line 94 of file Bundle.cpp.
T & dtn::data::Bundle::push_back | ( | ) |
Definition at line 180 of file Bundle.h.
References end(), dtn::data::Block::LAST_BLOCK, and size().
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::security::BundleAuthenticationBlock::auth(), dtn::utils::Utils::decapsule(), dtn::utils::Utils::encapsule(), dtn::storage::SQLiteBundleStorage::get(), dtn::data::BundleBuilder::insert(), main(), dtn::data::operator<<(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::storage::BundleStorage::rejectCustody(), dtn::core::FragmentManager::split(), and StreamBundle::StreamBundle().
dtn::data::PayloadBlock & dtn::data::Bundle::push_back | ( | ibrcommon::BLOB::Reference & | ref) |
Definition at line 184 of file Bundle.cpp.
References end(), dtn::data::Block::LAST_BLOCK, and size().
dtn::data::Block & dtn::data::Bundle::push_back | ( | ExtensionBlock::Factory & | factory) |
Definition at line 220 of file Bundle.cpp.
References dtn::data::ExtensionBlock::Factory::create(), end(), dtn::data::Block::LAST_BLOCK, and size().
T & dtn::data::Bundle::push_front | ( | ) |
Definition at line 161 of file Bundle.h.
References end(), dtn::data::Block::LAST_BLOCK, and size().
Referenced by dtn::security::BundleAuthenticationBlock::auth(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::data::CompressedPayloadBlock::compress(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::data::BundleBuilder::insert(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::Registration::processIncomingBundle(), and dtn::security::PayloadIntegrityBlock::sign().
dtn::data::PayloadBlock & dtn::data::Bundle::push_front | ( | ibrcommon::BLOB::Reference & | ref) |
Definition at line 166 of file Bundle.cpp.
References end(), dtn::data::Block::LAST_BLOCK, and size().
dtn::data::Block & dtn::data::Bundle::push_front | ( | ExtensionBlock::Factory & | factory) |
Definition at line 203 of file Bundle.cpp.
References dtn::data::ExtensionBlock::Factory::create(), end(), dtn::data::Block::LAST_BLOCK, and size().
void dtn::data::Bundle::remove | ( | const Block & | block) |
Definition at line 99 of file Bundle.cpp.
References begin(), end(), and erase().
Referenced by dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::SecurityBlock::decryptBlock(), and dtn::data::CompressedPayloadBlock::extract().
Size dtn::data::Bundle::size | ( | ) | const |
Definition at line 258 of file Bundle.cpp.
Referenced by erase(), insert(), dtn::api::PlainSerializer::operator<<(), push_back(), push_front(), and dtn::api::ExtendedApiHandler::run().
|
friend |