Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

IPControlInfo Class Reference

#include <IPControlInfo.h>

Inheritance diagram for IPControlInfo:

IPControlInfo_Base List of all members.

Public Member Functions

 IPControlInfo ()
 ~IPControlInfo ()
 IPControlInfo (const IPControlInfo &other)
IPControlInfooperator= (const IPControlInfo &other)
virtual void setOrigDatagram (IPDatagram *d)
virtual IPDatagramremoveOrigDatagram ()

Protected Attributes

IPDatagramdgram

Constructor & Destructor Documentation

IPControlInfo::IPControlInfo  )  [inline]
 

00031 : IPControlInfo_Base() {dgram=NULL;}

IPControlInfo::~IPControlInfo  ) 
 

00023 {
00024     delete dgram;
00025 }

IPControlInfo::IPControlInfo const IPControlInfo other  )  [inline]
 

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


Member Function Documentation

IPControlInfo& IPControlInfo::operator= const IPControlInfo other  )  [inline]
 

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

IPDatagram * IPControlInfo::removeOrigDatagram  )  [virtual]
 

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

void IPControlInfo::setOrigDatagram IPDatagram d  )  [virtual]
 

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


Member Data Documentation

IPDatagram* IPControlInfo::dgram [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 18:22:24 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.0