IBR-DTNSuite 0.6

dtn::routing::EpidemicControlMessage Class Reference

#include <EpidemicControlMessage.h>

Collaboration diagram for dtn::routing::EpidemicControlMessage:

List of all members.

Public Types

enum  MessageType { ECM_QUERY_SUMMARY_VECTOR = 0, ECM_RESPONSE = 1 }
enum  MessageFlags { ECM_CONTAINS_SUMMARY_VECTOR = 1 << 0, ECM_CONTAINS_PURGE_VECTOR = 1 << 1 }

Public Member Functions

 EpidemicControlMessage ()
virtual ~EpidemicControlMessage ()
void setPurgeVector (const SummaryVector &vector)
void setSummaryVector (const SummaryVector &vector)
const SummaryVectorgetSummaryVector () const
const SummaryVectorgetPurgeVector () const

Public Attributes

enum
dtn::routing::EpidemicControlMessage::MessageType 
type
char flags

Friends

std::ostream & operator<< (std::ostream &, const EpidemicControlMessage &)
std::istream & operator>> (std::istream &, EpidemicControlMessage &)

Detailed Description

Definition at line 20 of file EpidemicControlMessage.h.


Member Enumeration Documentation

Enumerator:
ECM_CONTAINS_SUMMARY_VECTOR 
ECM_CONTAINS_PURGE_VECTOR 

Definition at line 29 of file EpidemicControlMessage.h.

Enumerator:
ECM_QUERY_SUMMARY_VECTOR 
ECM_RESPONSE 

Definition at line 23 of file EpidemicControlMessage.h.


Constructor & Destructor Documentation

dtn::routing::EpidemicControlMessage::EpidemicControlMessage ( )

Definition at line 14 of file EpidemicControlMessage.cpp.

dtn::routing::EpidemicControlMessage::~EpidemicControlMessage ( ) [virtual]

Definition at line 19 of file EpidemicControlMessage.cpp.


Member Function Documentation

const SummaryVector & dtn::routing::EpidemicControlMessage::getPurgeVector ( ) const

Definition at line 40 of file EpidemicControlMessage.cpp.

const SummaryVector & dtn::routing::EpidemicControlMessage::getSummaryVector ( ) const

Definition at line 29 of file EpidemicControlMessage.cpp.

void dtn::routing::EpidemicControlMessage::setPurgeVector ( const SummaryVector vector)

Definition at line 34 of file EpidemicControlMessage.cpp.

References ECM_CONTAINS_PURGE_VECTOR, and flags.

void dtn::routing::EpidemicControlMessage::setSummaryVector ( const SummaryVector vector)

Definition at line 23 of file EpidemicControlMessage.cpp.

References ECM_CONTAINS_SUMMARY_VECTOR, and flags.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const EpidemicControlMessage ecm 
) [friend]

Definition at line 45 of file EpidemicControlMessage.cpp.

std::istream& operator>> ( std::istream &  stream,
EpidemicControlMessage ecm 
) [friend]

Definition at line 71 of file EpidemicControlMessage.cpp.


Member Data Documentation


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