IPv6ControlInfo Class Reference

#include <IPv6ControlInfo.h>

List of all members.

Public Member Functions

 IPv6ControlInfo ()
virtual ~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]

00030 : IPv6ControlInfo_Base() {dgram=NULL;}

IPv6ControlInfo::~IPv6ControlInfo (  )  [virtual]

00022 {
00023     delete dgram;
00024 }

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

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


Member Function Documentation

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

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

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

Referenced by IPv6::decapsulate().

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

IPv6Datagram * IPv6ControlInfo::removeOrigDatagram (  )  [virtual]

Referenced by ICMPv6::sendErrorMessage().

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


Member Data Documentation


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

Generated on Fri Mar 20 18:51:19 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5