ITS
ForwardingAlgorithmResponse Class Reference

#include <ForwardingAlgorithmResponse.h>

Collaboration diagram for ForwardingAlgorithmResponse:
[legend]

Public Member Functions

 ForwardingAlgorithmResponse ()
 ForwardingAlgorithmResponse ForwardingAlgorithmResponse constructor. More...
 
 ForwardingAlgorithmResponse (const ForwardingAlgorithmResponse &macAddress)
 ForwardingAlgorithmResponse ForwardingAlgorithmResponse copy constructor. More...
 
 ForwardingAlgorithmResponse (uchar *macAddr)
 ForwardingAlgorithmResponse ForwardingAlgorithmResponse initialization constructor. More...
 
 ForwardingAlgorithmResponse (int integer)
 ForwardingAlgorithmResponse ForwardingAlgorithmResponse initialization constructor. More...
 
uchar * macAddr ()
 macAddr MAC address getter. More...
 
int integer () const
 integer Integer getter. More...
 
ForwardingAlgorithmResponse_PR present () const
 present Type of response getter. More...
 
void setMacAddr (uchar *m)
 setMacAddr MAC address setter. More...
 
void setInteger (int n)
 setInteger Integer setter. More...
 
void setPresent (ForwardingAlgorithmResponse_PR p)
 setPresent Set the type of response More...
 
bool operator== (const ForwardingAlgorithmResponse &macAddress) const
 operator== ForwardingAlgorithmResponse comparison operator More...
 
bool operator!= (const ForwardingAlgorithmResponse &macAddress) const
 operator!= ForwardingAlgorithmResponse comparison operator. More...
 
ForwardingAlgorithmResponseoperator= (ForwardingAlgorithmResponse macAddress)
 operator= ForwardingAlgorithmResponse affectation operator. More...
 
bool isMacAddr ()
 isMacAddr Look if the ForwardingAlgorithmResponse is a MAC address. More...
 
bool isInteger ()
 isInteger Look if the ForwardingAlgorithmResponse is an integer. More...
 

Private Attributes

ForwardingAlgorithmResponse_PR m_present
 Type of the ForwardingAlgorithmResponse. More...
 
ForwardingAlgorithmResponseMacAddress_u choice
 

Detailed Description

Definition at line 31 of file ForwardingAlgorithmResponse.h.

Constructor & Destructor Documentation

◆ ForwardingAlgorithmResponse() [1/4]

◆ ForwardingAlgorithmResponse() [2/4]

ForwardingAlgorithmResponse::ForwardingAlgorithmResponse ( const ForwardingAlgorithmResponse macAddress)

ForwardingAlgorithmResponse ForwardingAlgorithmResponse copy constructor.

Parameters
macAddressThe ForwardingAlgorithmResponse to copy.

Definition at line 11 of file ForwardingAlgorithmResponse.cpp.

References choice, ForwardingAlgorithmResponseMacAddress_u::integer, m_present, MAC_ADDR_SIZE, ForwardingAlgorithmResponseMacAddress_u::macAddr, and present().

Here is the call graph for this function:

◆ ForwardingAlgorithmResponse() [3/4]

ForwardingAlgorithmResponse::ForwardingAlgorithmResponse ( uchar *  macAddr)

ForwardingAlgorithmResponse ForwardingAlgorithmResponse initialization constructor.

Parameters
macAddrThe MAC address value.

Definition at line 19 of file ForwardingAlgorithmResponse.cpp.

References choice, ForwardingAlgorithmResponse_PR_ForwardingAlgorithmResponseMacAddress, ForwardingAlgorithmResponseMacAddress_u::integer, m_present, MAC_ADDR_SIZE, ForwardingAlgorithmResponseMacAddress_u::macAddr, and macAddr().

Here is the call graph for this function:

◆ ForwardingAlgorithmResponse() [4/4]

ForwardingAlgorithmResponse::ForwardingAlgorithmResponse ( int  integer)

ForwardingAlgorithmResponse ForwardingAlgorithmResponse initialization constructor.

Parameters
integerThe integer value.

Definition at line 27 of file ForwardingAlgorithmResponse.cpp.

References choice, ForwardingAlgorithmResponse_PR_Integer, ForwardingAlgorithmResponseMacAddress_u::integer, integer(), m_present, MAC_ADDR_SIZE, and ForwardingAlgorithmResponseMacAddress_u::macAddr.

Here is the call graph for this function:

Member Function Documentation

◆ integer()

int ForwardingAlgorithmResponse::integer ( ) const
inline

integer Integer getter.

Returns
The integer.

Definition at line 66 of file ForwardingAlgorithmResponse.h.

References choice, and ForwardingAlgorithmResponseMacAddress_u::integer.

Referenced by GeoNet::checkBCFPB(), GeoNet::checkUCFPB(), GeoNet::flushUCFPB(), ForwardingAlgorithmResponse(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGBC(), and GeoNet::sendGUC().

Here is the caller graph for this function:

◆ isInteger()

bool ForwardingAlgorithmResponse::isInteger ( )
inline

isInteger Look if the ForwardingAlgorithmResponse is an integer.

Returns
True if the ForwardingAlgorithmResponse is an integer.

Definition at line 123 of file ForwardingAlgorithmResponse.h.

References ForwardingAlgorithmResponse_PR_Integer, and m_present.

Referenced by GeoNet::checkBCFPB(), GeoNet::checkUCFPB(), GeoNet::flushUCFPB(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGBC(), and GeoNet::sendGUC().

Here is the caller graph for this function:

◆ isMacAddr()

bool ForwardingAlgorithmResponse::isMacAddr ( )
inline

isMacAddr Look if the ForwardingAlgorithmResponse is a MAC address.

Returns
True if the ForwardingAlgorithmResponse is a MAC address.

Definition at line 118 of file ForwardingAlgorithmResponse.h.

References ForwardingAlgorithmResponse_PR_ForwardingAlgorithmResponseMacAddress, and m_present.

Referenced by GeoNet::checkBCFPB(), GeoNet::checkUCFPB(), GeoNet::flushUCFPB(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGBC(), and GeoNet::sendGUC().

Here is the caller graph for this function:

◆ macAddr()

uchar* ForwardingAlgorithmResponse::macAddr ( )
inline

macAddr MAC address getter.

Returns
The MAC address.

Definition at line 61 of file ForwardingAlgorithmResponse.h.

References choice, and ForwardingAlgorithmResponseMacAddress_u::macAddr.

Referenced by GeoNet::checkBCFPB(), GeoNet::checkUCFPB(), GeoNet::flushUCFPB(), ForwardingAlgorithmResponse(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGBC(), and GeoNet::sendGUC().

Here is the caller graph for this function:

◆ operator!=()

bool ForwardingAlgorithmResponse::operator!= ( const ForwardingAlgorithmResponse macAddress) const

operator!= ForwardingAlgorithmResponse comparison operator.

Parameters
macAddressThe ForwardingAlgorithmResponse to compare.
Returns
False if they are equals.

Definition at line 57 of file ForwardingAlgorithmResponse.cpp.

◆ operator=()

ForwardingAlgorithmResponse & ForwardingAlgorithmResponse::operator= ( ForwardingAlgorithmResponse  macAddress)

operator= ForwardingAlgorithmResponse affectation operator.

Parameters
macAddressThe ForwardingAlgorithmResponse to affect.
Returns
The affected ForwardingAlgorithmResponse.

Definition at line 62 of file ForwardingAlgorithmResponse.cpp.

References choice, m_present, MAC_ADDR_SIZE, ForwardingAlgorithmResponseMacAddress_u::macAddr, and present().

Here is the call graph for this function:

◆ operator==()

bool ForwardingAlgorithmResponse::operator== ( const ForwardingAlgorithmResponse macAddress) const

operator== ForwardingAlgorithmResponse comparison operator

Parameters
macAddressThe ForwardingAlgorithmResponse to compare.
Returns
True if they are equals.

Definition at line 35 of file ForwardingAlgorithmResponse.cpp.

References choice, ForwardingAlgorithmResponse_PR_ForwardingAlgorithmResponseMacAddress, ForwardingAlgorithmResponse_PR_Integer, ForwardingAlgorithmResponse_PR_NOTHING, ForwardingAlgorithmResponseMacAddress_u::integer, MAC_ADDR_SIZE, ForwardingAlgorithmResponseMacAddress_u::macAddr, and present().

Here is the call graph for this function:

◆ present()

ForwardingAlgorithmResponse_PR ForwardingAlgorithmResponse::present ( ) const
inline

present Type of response getter.

Returns
The type of response.

Definition at line 71 of file ForwardingAlgorithmResponse.h.

References m_present.

Referenced by ForwardingAlgorithmResponse(), operator=(), and operator==().

Here is the caller graph for this function:

◆ setInteger()

void ForwardingAlgorithmResponse::setInteger ( int  n)
inline

setInteger Integer setter.

Parameters
nThe new integer.

Definition at line 85 of file ForwardingAlgorithmResponse.h.

References choice, and ForwardingAlgorithmResponseMacAddress_u::integer.

Referenced by GeoNet::advancedForwarding(), GeoNet::CBFUnicast(), GeoNet::contentionBasedForwardingAlgorithm(), GeoNet::greedy(), and GeoNet::simpleForwardingAlgorithm().

Here is the caller graph for this function:

◆ setMacAddr()

void ForwardingAlgorithmResponse::setMacAddr ( uchar *  m)
inline

setMacAddr MAC address setter.

Parameters
mThe new MAC address.

Definition at line 80 of file ForwardingAlgorithmResponse.h.

References choice, MAC_ADDR_SIZE, and ForwardingAlgorithmResponseMacAddress_u::macAddr.

Referenced by GeoNet::advancedForwarding(), GeoNet::contentionBasedForwardingAlgorithm(), GeoNet::greedy(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGUC(), and GeoNet::simpleForwardingAlgorithm().

Here is the caller graph for this function:

◆ setPresent()

void ForwardingAlgorithmResponse::setPresent ( ForwardingAlgorithmResponse_PR  p)
inline

setPresent Set the type of response

Parameters
pThe new type.

Definition at line 90 of file ForwardingAlgorithmResponse.h.

References m_present.

Referenced by GeoNet::advancedForwarding(), GeoNet::CBFUnicast(), GeoNet::contentionBasedForwardingAlgorithm(), GeoNet::greedy(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGUC(), and GeoNet::simpleForwardingAlgorithm().

Here is the caller graph for this function:

Member Data Documentation

◆ choice

◆ m_present

ForwardingAlgorithmResponse_PR ForwardingAlgorithmResponse::m_present
private

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