IBR-DTNSuite  0.12
dtn::data::BundleID Class Reference

#include <BundleID.h>

Inheritance diagram for dtn::data::BundleID:
Inheritance graph
Collaboration diagram for dtn::data::BundleID:
Collaboration graph

Public Member Functions

 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)
 
BundleIDoperator= (const BundleID &id)
 
std::string toString () const
 
virtual dtn::data::Length getPayloadLength () const
 
virtual void setPayloadLength (const dtn::data::Length &value)
 
virtual bool isFragment () const
 
virtual void setFragment (bool val)
 
void addTo (ibrcommon::BloomFilter &bf) const
 
bool isIn (const ibrcommon::BloomFilter &bf) const
 
size_t raw (unsigned char *data, size_t len) const
 

Public Attributes

dtn::data::EID source
 
dtn::data::Timestamp timestamp
 
dtn::data::Number sequencenumber
 
dtn::data::Number fragmentoffset
 

Friends

std::ostream & operator<< (std::ostream &stream, const BundleID &obj)
 
std::istream & operator>> (std::istream &stream, BundleID &obj)
 

Detailed Description

Definition at line 33 of file BundleID.h.

Constructor & Destructor Documentation

dtn::data::BundleID::BundleID ( )

Definition at line 37 of file BundleID.cpp.

dtn::data::BundleID::~BundleID ( )
virtual

Definition at line 48 of file BundleID.cpp.

dtn::data::BundleID::BundleID ( const BundleID id)

Definition at line 42 of file BundleID.cpp.

Member Function Documentation

void dtn::data::BundleID::addTo ( ibrcommon::BloomFilter bf) const

Add this BundleID to the BloomFilter

Definition at line 132 of file BundleID.cpp.

References ibrcommon::BloomFilter::insert(), and raw().

Here is the call graph for this function:

bool dtn::data::BundleID::isIn ( const ibrcommon::BloomFilter bf) const

Check if this BundleID is part of the BloomFilter

Definition at line 139 of file BundleID.cpp.

References ibrcommon::BloomFilter::contains(), and raw().

Referenced by dtn::storage::MetaStorage::find(), and dtn::routing::NodeHandshakeExtension::processHandshake().

Here is the call graph for this function:

bool dtn::data::BundleID::operator!= ( const BundleID other) const

Definition at line 91 of file BundleID.cpp.

bool dtn::data::BundleID::operator< ( const BundleID other) const

Definition at line 63 of file BundleID.cpp.

References fragmentoffset, getPayloadLength(), isFragment(), sequencenumber, source, and timestamp.

Here is the call graph for this function:

BundleID & dtn::data::BundleID::operator= ( const BundleID id)

Definition at line 52 of file BundleID.cpp.

References fragmentoffset, getPayloadLength(), isFragment(), sequencenumber, setFragment(), setPayloadLength(), source, and timestamp.

Here is the call graph for this function:

bool dtn::data::BundleID::operator== ( const BundleID other) const

Definition at line 96 of file BundleID.cpp.

References fragmentoffset, getPayloadLength(), isFragment(), sequencenumber, source, and timestamp.

Here is the call graph for this function:

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

Definition at line 86 of file BundleID.cpp.

size_t dtn::data::BundleID::raw ( unsigned char *  data,
size_t  len 
) const

Generate a RAW data array of the BundleID

Definition at line 146 of file BundleID.cpp.

References fragmentoffset, dtn::data::SDNV< E >::get(), getPayloadLength(), dtn::data::EID::getString(), GUINT64_TO_BE, isFragment(), sequencenumber, source, and timestamp.

Referenced by addTo(), and isIn().

Here is the call graph for this function:

void dtn::data::BundleID::setFragment ( bool  val)
virtual
void dtn::data::BundleID::setPayloadLength ( const dtn::data::Length value)
virtual

Definition at line 117 of file BundleID.cpp.

Referenced by operator=(), and dtn::data::operator>>().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const BundleID obj 
)
friend

Definition at line 206 of file BundleID.cpp.

std::istream& operator>> ( std::istream &  stream,
BundleID obj 
)
friend

Definition at line 225 of file BundleID.cpp.

Member Data Documentation

dtn::data::EID dtn::data::BundleID::source

Definition at line 53 of file BundleID.h.

Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::data::Dictionary::add(), dtn::data::Bundle::allEIDsInCBHE(), dtn::security::BundleAuthenticationBlock::auth(), dtn::daemon::CapsuleWorker::callbackBundleReceived(), dtn::daemon::EchoWorker::callbackBundleReceived(), dtn::daemon::Debugger::callbackBundleReceived(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::api::OrderedStreamHandler::get(), dtn::security::MutableSerializer::getLength(), dtn::data::DefaultSerializer::getLength(), dtn::security::SecurityBlock::getSecuritySource(), dtn::data::DefaultSerializer::isCompressable(), main(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutableSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::data::operator<<(), operator=(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::Registration::processIncomingBundle(), dtn::api::OrderedStreamHandler::put(), dtn::api::EventConnection::raiseEvent(), dtn::core::BundleCore::raiseEvent(), raw(), BundleStream::received(), dtn::storage::BundleStorage::rejectCustody(), dtn::security::PayloadIntegrityBlock::sign(), toString(), dtn::api::Registration::underflow(), dtn::data::CustodySignalBlock::write(), and dtn::data::StatusReportBlock::write().


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