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

#include <Dictionary.h>

List of all members.

Public Member Functions

 Dictionary ()
 Dictionary (const dtn::data::Bundle &bundle)
 Dictionary (const Dictionary &d)
Dictionaryoperator= (const Dictionary &d)
virtual ~Dictionary ()
void add (const EID &eid)
void add (const list< EID > &eids)
EID get (size_t scheme, size_t ssp)
void clear ()
size_t getSize () const
pair< size_t, size_t > getRef (const EID &eid) const

Friends

std::ostream & operator<< (std::ostream &stream, const dtn::data::Dictionary &obj)
std::istream & operator>> (std::istream &stream, dtn::data::Dictionary &obj)

Detailed Description

Definition at line 26 of file Dictionary.h.


Constructor & Destructor Documentation

create a empty dictionary

Definition at line 23 of file Dictionary.cpp.

copy constructor

Definition at line 48 of file Dictionary.cpp.

destructor

Definition at line 62 of file Dictionary.cpp.


Member Function Documentation

void dtn::data::Dictionary::add ( const EID eid)

add a eid to the dictionary

Definition at line 121 of file Dictionary.cpp.

References dtn::data::EID::getScheme(), and dtn::data::EID::getSSP().

Referenced by dtn::data::DefaultSerializer::rebuildDictionary().

Here is the call graph for this function:

void dtn::data::Dictionary::add ( const list< EID > &  eids)

add a list of eids to the dictionary

Definition at line 127 of file Dictionary.cpp.

clear the dictionary

Definition at line 153 of file Dictionary.cpp.

Referenced by dtn::data::DefaultSerializer::rebuildDictionary().

EID dtn::data::Dictionary::get ( size_t  scheme,
size_t  ssp 
)

return the eid for the reference [scheme,ssp]

Definition at line 138 of file Dictionary.cpp.

Referenced by dtn::data::DefaultDeserializer::operator>>().

pair< size_t, size_t > dtn::data::Dictionary::getRef ( const EID eid) const

returns the references of the given eid

Definition at line 163 of file Dictionary.cpp.

References dtn::data::EID::getScheme(), and dtn::data::EID::getSSP().

Referenced by dtn::data::DefaultSerializer::getLength(), dtn::security::StrictSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), and dtn::data::DefaultSerializer::serialize().

Here is the call graph for this function:

returns the size of the bytearray

Definition at line 158 of file Dictionary.cpp.

Referenced by dtn::data::DefaultSerializer::getLength(), dtn::data::DefaultSerializer::operator<<(), and dtn::data::operator<<().

Dictionary & dtn::data::Dictionary::operator= ( const Dictionary d)

assign operator

Definition at line 56 of file Dictionary.cpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const dtn::data::Dictionary obj 
) [friend]

Definition at line 170 of file Dictionary.cpp.

std::istream& operator>> ( std::istream &  stream,
dtn::data::Dictionary obj 
) [friend]

Definition at line 179 of file Dictionary.cpp.


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