INET Framework for OMNeT++/OMNEST
inet::HomeAddressOption_Base Class Reference

Class generated from inet/networklayer/xmipv6/MobilityHeader.msg:173 by nedtool. More...

#include <MobilityHeader_m.h>

Inheritance diagram for inet::HomeAddressOption_Base:
inet::IPv6DestinationOptionsHeader inet::IPv6ExtensionHeader inet::HomeAddressOption

Public Member Functions

virtual ~HomeAddressOption_Base ()
 
virtual HomeAddressOption_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual IPv6AddressgetHomeAddress ()
 
virtual const IPv6AddressgetHomeAddress () const
 
virtual void setHomeAddress (const IPv6Address &homeAddress)
 
- Public Member Functions inherited from inet::IPv6DestinationOptionsHeader
 IPv6DestinationOptionsHeader ()
 
 IPv6DestinationOptionsHeader (const IPv6DestinationOptionsHeader &other)
 
virtual ~IPv6DestinationOptionsHeader ()
 
IPv6DestinationOptionsHeaderoperator= (const IPv6DestinationOptionsHeader &other)
 
virtual TLVOptionsgetTlvOptions ()
 
virtual const TLVOptionsgetTlvOptions () const
 
virtual void setTlvOptions (const TLVOptions &tlvOptions)
 
- Public Member Functions inherited from inet::IPv6ExtensionHeader
 IPv6ExtensionHeader ()
 
 IPv6ExtensionHeader (const IPv6ExtensionHeader &other)
 
virtual ~IPv6ExtensionHeader ()
 
IPv6ExtensionHeaderoperator= (const IPv6ExtensionHeader &other)
 
virtual short getExtensionType () const
 
virtual void setExtensionType (short extensionType)
 
virtual short getByteLength () const
 
virtual void setByteLength (short byteLength)
 

Protected Member Functions

bool operator== (const HomeAddressOption_Base &)
 
 HomeAddressOption_Base ()
 
 HomeAddressOption_Base (const HomeAddressOption_Base &other)
 
HomeAddressOption_Baseoperator= (const HomeAddressOption_Base &other)
 
- Protected Member Functions inherited from inet::IPv6DestinationOptionsHeader
bool operator== (const IPv6DestinationOptionsHeader &)
 
- Protected Member Functions inherited from inet::IPv6ExtensionHeader
bool operator== (const IPv6ExtensionHeader &)
 

Protected Attributes

IPv6Address homeAddress
 
- Protected Attributes inherited from inet::IPv6DestinationOptionsHeader
TLVOptions tlvOptions
 
- Protected Attributes inherited from inet::IPv6ExtensionHeader
short extensionType
 
short byteLength
 

Private Member Functions

void copy (const HomeAddressOption_Base &other)
 

Detailed Description

Class generated from inet/networklayer/xmipv6/MobilityHeader.msg:173 by nedtool.

///////////////////////////////////////////
// 17.10.07 - CB
///////////////////////////////////////////
packet HomeAddressOption extends IPv6DestinationOptionsHeader
{
    @customize(true);
    IPv6Address homeAddress;
}

HomeAddressOption_Base is only useful if it gets subclassed, and HomeAddressOption is derived from it. The minimum code to be written for HomeAddressOption is the following:

class INET_API HomeAddressOption : public HomeAddressOption_Base
{
  private:
    void copy(const HomeAddressOption& other) { ... }
  public:
    HomeAddressOption() : HomeAddressOption_Base() {}
    HomeAddressOption(const HomeAddressOption& other) : HomeAddressOption_Base(other) {copy(other);}
    HomeAddressOption& operator=(const HomeAddressOption& other) {if (this==&other) return *this; HomeAddressOption_Base::operator=(other); copy(other); return *this;}
    // ADD CODE HERE to redefine and implement pure virtual functions from HomeAddressOption_Base
};

Constructor & Destructor Documentation

inet::HomeAddressOption_Base::HomeAddressOption_Base ( )
protected
inet::HomeAddressOption_Base::HomeAddressOption_Base ( const HomeAddressOption_Base other)
protected
virtual inet::HomeAddressOption_Base::~HomeAddressOption_Base ( )
virtual

Member Function Documentation

void inet::HomeAddressOption_Base::copy ( const HomeAddressOption_Base other)
private
virtual HomeAddressOption_Base* inet::HomeAddressOption_Base::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::IPv6DestinationOptionsHeader.

Reimplemented in inet::HomeAddressOption.

599 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class HomeAddressOption");}
virtual IPv6Address& inet::HomeAddressOption_Base::getHomeAddress ( )
virtual
virtual const IPv6Address& inet::HomeAddressOption_Base::getHomeAddress ( ) const
inlinevirtual

Referenced by getHomeAddress().

605 {return const_cast<HomeAddressOption_Base*>(this)->getHomeAddress();}
virtual IPv6Address & getHomeAddress()
HomeAddressOption_Base& inet::HomeAddressOption_Base::operator= ( const HomeAddressOption_Base other)
protected
bool inet::HomeAddressOption_Base::operator== ( const HomeAddressOption_Base )
protected
virtual void inet::HomeAddressOption_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::HomeAddressOption_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::HomeAddressOption_Base::setHomeAddress ( const IPv6Address homeAddress)
virtual

Member Data Documentation

IPv6Address inet::HomeAddressOption_Base::homeAddress
protected

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