OverSim
DiscoveryResponse Class Reference

Class generated from common/DiscoveryMode.msg by opp_msgc. More...

#include <DiscoveryMode_m.h>

Inheritance diagram for DiscoveryResponse:
BaseResponseMessage BaseRpcMessage BaseOverlayMessage OverSimMessage OverSimMessage_Base

Public Member Functions

 DiscoveryResponse (const char *name=NULL, int kind=0)
 DiscoveryResponse (const DiscoveryResponse &other)
virtual ~DiscoveryResponse ()
DiscoveryResponseoperator= (const DiscoveryResponse &other)
virtual DiscoveryResponsedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual void setNodesArraySize (unsigned int size)
virtual unsigned int getNodesArraySize () const
virtual TransportAddressgetNodes (unsigned int k)
virtual const TransportAddressgetNodes (unsigned int k) const
virtual void setNodes (unsigned int k, const TransportAddress &nodes)
virtual int getMaxIndex () const
virtual void setMaxIndex (int maxIndex)
- Public Member Functions inherited from BaseResponseMessage
 BaseResponseMessage (const char *name=NULL, int kind=0)
 BaseResponseMessage (const BaseResponseMessage &other)
virtual ~BaseResponseMessage ()
BaseResponseMessageoperator= (const BaseResponseMessage &other)
virtual int getCallHopCount () const
virtual void setCallHopCount (int callHopCount)
virtual void setNcsInfoArraySize (unsigned int size)
virtual unsigned int getNcsInfoArraySize () const
virtual double getNcsInfo (unsigned int k) const
virtual void setNcsInfo (unsigned int k, double ncsInfo)
- Public Member Functions inherited from BaseRpcMessage
 BaseRpcMessage (const char *name=NULL, int kind=0)
 BaseRpcMessage (const BaseRpcMessage &other)
virtual ~BaseRpcMessage ()
BaseRpcMessageoperator= (const BaseRpcMessage &other)
virtual unsigned int getNonce () const
virtual void setNonce (unsigned int nonce)
virtual NodeHandlegetSrcNode ()
virtual const NodeHandlegetSrcNode () const
virtual void setSrcNode (const NodeHandle &srcNode)
virtual void setAuthBlockArraySize (uint8_t size)
virtual uint8_t getAuthBlockArraySize () const
virtual AuthBlockgetAuthBlock (uint8_t k)
virtual const AuthBlockgetAuthBlock (uint8_t k) const
virtual void setAuthBlock (uint8_t k, const AuthBlock &authBlock)
- Public Member Functions inherited from BaseOverlayMessage
 BaseOverlayMessage (const char *name=NULL, int kind=0)
 BaseOverlayMessage (const BaseOverlayMessage &other)
virtual ~BaseOverlayMessage ()
BaseOverlayMessageoperator= (const BaseOverlayMessage &other)
virtual int getType () const
virtual void setType (int type)
virtual int getStatType () const
virtual void setStatType (int statType)
- Public Member Functions inherited from OverSimMessage
 OverSimMessage (const char *name=NULL, int kind=0)
 OverSimMessage (const OverSimMessage &other)
OverSimMessageoperator= (const OverSimMessage &other)
- Public Member Functions inherited from OverSimMessage_Base
virtual ~OverSimMessage_Base ()

Protected Member Functions

bool operator== (const DiscoveryResponse &)
- Protected Member Functions inherited from BaseResponseMessage
bool operator== (const BaseResponseMessage &)
- Protected Member Functions inherited from BaseRpcMessage
bool operator== (const BaseRpcMessage &)
- Protected Member Functions inherited from BaseOverlayMessage
bool operator== (const BaseOverlayMessage &)

Protected Attributes

TransportAddressnodes_var
unsigned int nodes_arraysize
int maxIndex_var
- Protected Attributes inherited from BaseResponseMessage
int callHopCount_var
double * ncsInfo_var
unsigned int ncsInfo_arraysize
- Protected Attributes inherited from BaseRpcMessage
unsigned int nonce_var
NodeHandle srcNode_var
AuthBlockauthBlock_var
uint8_t authBlock_arraysize
- Protected Attributes inherited from BaseOverlayMessage
int type_var
int statType_var

Private Member Functions

void copy (const DiscoveryResponse &other)

Detailed Description

Class generated from common/DiscoveryMode.msg by opp_msgc.

packet DiscoveryResponse extends BaseResponseMessage {
    TransportAddress nodes[];
    int maxIndex = -1;
}

Definition at line 91 of file DiscoveryMode_m.h.

Constructor & Destructor Documentation

DiscoveryResponse::DiscoveryResponse ( const char *  name = NULL,
int  kind = 0 
)

Referenced by dup().

DiscoveryResponse::DiscoveryResponse ( const DiscoveryResponse other)
virtual DiscoveryResponse::~DiscoveryResponse ( )
virtual

Member Function Documentation

void DiscoveryResponse::copy ( const DiscoveryResponse other)
private
virtual DiscoveryResponse* DiscoveryResponse::dup ( ) const
inlinevirtual

Reimplemented from BaseResponseMessage.

Definition at line 110 of file DiscoveryMode_m.h.

{return new DiscoveryResponse(*this);}
virtual int DiscoveryResponse::getMaxIndex ( ) const
virtual
virtual TransportAddress& DiscoveryResponse::getNodes ( unsigned int  k)
virtual
virtual const TransportAddress& DiscoveryResponse::getNodes ( unsigned int  k) const
inlinevirtual

Definition at line 118 of file DiscoveryMode_m.h.

Referenced by getNodes().

{return const_cast<DiscoveryResponse*>(this)->getNodes(k);}
virtual unsigned int DiscoveryResponse::getNodesArraySize ( ) const
virtual
DiscoveryResponse& DiscoveryResponse::operator= ( const DiscoveryResponse other)
bool DiscoveryResponse::operator== ( const DiscoveryResponse )
protected
virtual void DiscoveryResponse::parsimPack ( cCommBuffer *  b)
virtual

Reimplemented from BaseResponseMessage.

Referenced by doPacking().

virtual void DiscoveryResponse::parsimUnpack ( cCommBuffer *  b)
virtual

Reimplemented from BaseResponseMessage.

Referenced by doUnpacking().

virtual void DiscoveryResponse::setMaxIndex ( int  maxIndex)
virtual
virtual void DiscoveryResponse::setNodes ( unsigned int  k,
const TransportAddress nodes 
)
virtual
virtual void DiscoveryResponse::setNodesArraySize ( unsigned int  size)
virtual

Member Data Documentation

int DiscoveryResponse::maxIndex_var
protected

Definition at line 96 of file DiscoveryMode_m.h.

unsigned int DiscoveryResponse::nodes_arraysize
protected

Definition at line 95 of file DiscoveryMode_m.h.

TransportAddress* DiscoveryResponse::nodes_var
protected

Definition at line 94 of file DiscoveryMode_m.h.


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