OverSim
LookupResponse Class Reference

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

#include <CommonMessages_m.h>

Inheritance diagram for LookupResponse:
BaseResponseMessage BaseRpcMessage BaseOverlayMessage OverSimMessage OverSimMessage_Base

Public Member Functions

 LookupResponse (const char *name=NULL, int kind=0)
 LookupResponse (const LookupResponse &other)
virtual ~LookupResponse ()
LookupResponseoperator= (const LookupResponse &other)
virtual LookupResponsedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual OverlayKeygetKey ()
virtual const OverlayKeygetKey () const
virtual void setKey (const OverlayKey &key)
virtual int getHopCount () const
virtual void setHopCount (int hopCount)
virtual bool getIsValid () const
virtual void setIsValid (bool isValid)
virtual void setSiblingsArraySize (unsigned int size)
virtual unsigned int getSiblingsArraySize () const
virtual NodeHandlegetSiblings (unsigned int k)
virtual const NodeHandlegetSiblings (unsigned int k) const
virtual void setSiblings (unsigned int k, const NodeHandle &siblings)
- 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 LookupResponse &)
- 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

OverlayKey key_var
int hopCount_var
bool isValid_var
NodeHandlesiblings_var
unsigned int siblings_arraysize
- 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 LookupResponse &other)

Detailed Description

Class generated from common/CommonMessages.msg by opp_msgc.

packet LookupResponse extends BaseResponseMessage
{
    OverlayKey key;        
    int hopCount = 0;      
    bool isValid;          
    NodeHandle siblings[]; 
}

Definition at line 1710 of file CommonMessages_m.h.

Constructor & Destructor Documentation

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

Referenced by dup().

LookupResponse::LookupResponse ( const LookupResponse other)
virtual LookupResponse::~LookupResponse ( )
virtual

Member Function Documentation

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

Reimplemented from BaseResponseMessage.

Definition at line 1731 of file CommonMessages_m.h.

{return new LookupResponse(*this);}
virtual int LookupResponse::getHopCount ( ) const
virtual
virtual const OverlayKey& LookupResponse::getKey ( ) const
inlinevirtual

Definition at line 1737 of file CommonMessages_m.h.

Referenced by getKey().

{return const_cast<LookupResponse*>(this)->getKey();}
virtual const NodeHandle& LookupResponse::getSiblings ( unsigned int  k) const
inlinevirtual

Definition at line 1746 of file CommonMessages_m.h.

Referenced by getSiblings().

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

Reimplemented from BaseResponseMessage.

Referenced by doPacking().

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

Reimplemented from BaseResponseMessage.

Referenced by doUnpacking().

virtual void LookupResponse::setHopCount ( int  hopCount)
virtual
virtual void LookupResponse::setIsValid ( bool  isValid)
virtual
virtual void LookupResponse::setKey ( const OverlayKey key)
virtual
virtual void LookupResponse::setSiblings ( unsigned int  k,
const NodeHandle siblings 
)
virtual
virtual void LookupResponse::setSiblingsArraySize ( unsigned int  size)
virtual

Member Data Documentation

int LookupResponse::hopCount_var
protected

Definition at line 1714 of file CommonMessages_m.h.

bool LookupResponse::isValid_var
protected

Definition at line 1715 of file CommonMessages_m.h.

OverlayKey LookupResponse::key_var
protected

Definition at line 1713 of file CommonMessages_m.h.

unsigned int LookupResponse::siblings_arraysize
protected

Definition at line 1717 of file CommonMessages_m.h.

NodeHandle* LookupResponse::siblings_var
protected

Definition at line 1716 of file CommonMessages_m.h.


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