IPv6ControlInfo Class Reference

#include <IPv6ControlInfo.h>

Inheritance diagram for IPv6ControlInfo:

IPv6ControlInfo_Base List of all members.

Public Member Functions

 IPv6ControlInfo ()
 ~IPv6ControlInfo ()
 IPv6ControlInfo (const IPv6ControlInfo &other)
IPv6ControlInfooperator= (const IPv6ControlInfo &other)
virtual void setOrigDatagram (IPv6Datagram *d)
virtual IPv6DatagramremoveOrigDatagram ()

Protected Attributes

IPv6Datagramdgram

Constructor & Destructor Documentation

IPv6ControlInfo::IPv6ControlInfo (  )  [inline]

00031 : IPv6ControlInfo_Base() {dgram=NULL;}

IPv6ControlInfo::~IPv6ControlInfo (  ) 

00023 {
00024     delete dgram;
00025 }

IPv6ControlInfo::IPv6ControlInfo ( const IPv6ControlInfo other  )  [inline]

00033 : IPv6ControlInfo_Base() {dgram=NULL; operator=(other);}


Member Function Documentation

IPv6ControlInfo& IPv6ControlInfo::operator= ( const IPv6ControlInfo other  )  [inline]

00034 {IPv6ControlInfo_Base::operator=(other); return *this;}

IPv6Datagram * IPv6ControlInfo::removeOrigDatagram (  )  [virtual]

00034 {
00035     if (!dgram)
00036         opp_error("IPv6ControlInfo::removeOrigDatagram(): no datagram attached "
00037                   "(already removed, or maybe this IPv6ControlInfo does not come "
00038                   "from the IPv6 module?)");
00039     IPv6Datagram *ret = dgram;
00040     dgram = NULL;
00041     return ret;
00042 }

void IPv6ControlInfo::setOrigDatagram ( IPv6Datagram d  )  [virtual]

00027 {
00028     if (dgram)
00029         opp_error("IPv6ControlInfo::setOrigDatagram(): a datagram is already attached");
00030     dgram = d;
00031 }


Member Data Documentation

IPv6Datagram* IPv6ControlInfo::dgram [protected]


The documentation for this class was generated from the following files:
Generated on Wed Apr 4 13:20:21 2007 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.7