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

#include <BundleID.h>

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

List of all members.

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)

Detailed Description

Definition at line 18 of file BundleID.h.


Constructor & Destructor Documentation

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.

Definition at line 22 of file BundleID.cpp.

Definition at line 28 of file BundleID.cpp.


Member Function Documentation

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.


Friends And Related Function Documentation

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.


Member Data Documentation


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