IBR-DTNSuite
0.8
|
#include <BundleID.h>
Public Member Functions | |
BundleID (const dtn::data::EID source=dtn::data::EID(), const size_t timestamp=0, const size_t sequencenumber=0, const bool fragment=false, const size_t offset=0) | |
BundleID (const dtn::data::Bundle &b) | |
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 |
string | toString () const |
size_t | getTimestamp () const |
Public Attributes | |
dtn::data::EID | source |
size_t | timestamp |
size_t | sequencenumber |
bool | fragment |
size_t | offset |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const BundleID &obj) |
std::istream & | operator>> (std::istream &stream, BundleID &obj) |
Definition at line 18 of file BundleID.h.
dtn::data::BundleID::BundleID | ( | const dtn::data::EID | source = dtn::data::EID() , |
const size_t | timestamp = 0 , |
||
const size_t | sequencenumber = 0 , |
||
const bool | fragment = false , |
||
const size_t | offset = 0 |
||
) |
Definition at line 17 of file BundleID.cpp.
dtn::data::BundleID::BundleID | ( | const dtn::data::Bundle & | b | ) |
Definition at line 22 of file BundleID.cpp.
dtn::data::BundleID::~BundleID | ( | ) | [virtual] |
Definition at line 28 of file BundleID.cpp.
size_t dtn::data::BundleID::getTimestamp | ( | ) | const |
Definition at line 77 of file BundleID.cpp.
References timestamp.
bool dtn::data::BundleID::operator!= | ( | const BundleID & | other | ) | const |
Definition at line 57 of file BundleID.cpp.
bool dtn::data::BundleID::operator< | ( | const BundleID & | other | ) | const |
Definition at line 32 of file BundleID.cpp.
References fragment, offset, sequencenumber, source, and timestamp.
bool dtn::data::BundleID::operator== | ( | const BundleID & | other | ) | const |
Definition at line 62 of file BundleID.cpp.
References fragment, offset, sequencenumber, source, and timestamp.
bool dtn::data::BundleID::operator> | ( | const BundleID & | other | ) | const |
Definition at line 52 of file BundleID.cpp.
string dtn::data::BundleID::toString | ( | ) | const |
Definition at line 82 of file BundleID.cpp.
References fragment, dtn::data::EID::getString(), offset, sequencenumber, source, and timestamp.
Referenced by dtn::storage::SimpleBundleStorage::clear(), dtn::core::FragmentManager::componentRun(), dtn::storage::SimpleBundleStorage::eventBundleExpired(), dtn::routing::NeighborRoutingExtension::notify(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::routing::ProphetRoutingExtension::processHandshake(), dtn::core::EventDebugger::raiseEvent(), dtn::storage::SimpleBundleStorage::remove(), dtn::core::BundlePurgeEvent::toString(), dtn::routing::RequeueBundleEvent::toString(), dtn::net::TransferCompletedEvent::toString(), dtn::core::BundleExpiredEvent::toString(), dtn::net::TransferAbortedEvent::toString(), and dtn::api::Registration::underflow().
std::ostream& operator<< | ( | std::ostream & | stream, |
const BundleID & | obj | ||
) | [friend] |
Definition at line 97 of file BundleID.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
BundleID & | obj | ||
) | [friend] |
Definition at line 109 of file BundleID.cpp.
Definition at line 40 of file BundleID.h.
Referenced by operator<(), operator==(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), dtn::core::FragmentManager::raiseEvent(), dtn::api::ApiServer::raiseEvent(), dtn::core::BundleCore::raiseEvent(), and toString().
size_t dtn::data::BundleID::offset |
Definition at line 41 of file BundleID.h.
Referenced by dtn::core::FragmentManager::componentRun(), operator<(), dtn::data::operator<<(), operator==(), dtn::data::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), dtn::data::CustodySignalBlock::setMatch(), and toString().
Definition at line 38 of file BundleID.h.
Referenced by operator<(), dtn::data::operator<<(), operator==(), dtn::data::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), dtn::data::CustodySignalBlock::setMatch(), and toString().
Definition at line 36 of file BundleID.h.
Referenced by dtn::api::OrderedStreamHandler::get(), operator<(), dtn::data::operator<<(), operator==(), dtn::data::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), dtn::routing::FloodRoutingExtension::run(), dtn::routing::StaticRoutingExtension::run(), dtn::routing::EpidemicRoutingExtension::run(), dtn::data::CustodySignalBlock::setMatch(), toString(), and dtn::api::Registration::underflow().
Definition at line 37 of file BundleID.h.
Referenced by getTimestamp(), operator<(), dtn::data::operator<<(), operator==(), dtn::data::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), dtn::data::CustodySignalBlock::setMatch(), and toString().