|
OMNeT++ API 6.1
Discrete Event Simulation Library
|
|
16 #ifndef __OMNETPP_COWNEDOBJECT_H
17 #define __OMNETPP_COWNEDOBJECT_H
22 #include "simkerneldefs.h"
23 #include "cnamedobject.h"
24 #include "cexception.h"
29 class cNoncopyableOwnedObject;
36 namespace internal {
class Void; }
123 static long totalObjectCount;
124 static long liveObjectCount;
127 cOwnedObject(
const char *name,
bool namepooling, internal::Void *dummy);
132 virtual void removeFromOwnershipTree();
135 static void setOwningContext(
cSoftOwner *list);
150 explicit cOwnedObject(
const char *name,
bool namepooling=
true);
180 virtual void parsimPack(
cCommBuffer *buffer)
const override;
185 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
267 class SIM_API cStaticFlag
272 static bool insideMain();
273 static bool isExiting();
274 static void setExiting();
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
static long getLiveObjectCount()
Definition: cownedobject.h:225
Utility class, to make it impossible to call the operator= and copy constructor of any class derived ...
Definition: cobject.h:415
Simulation manager class.
Definition: csimulation.h:64
static long getTotalObjectCount()
Definition: cownedobject.h:217
static void resetObjectCounters()
Definition: cownedobject.h:231
Internal class, used as a base class for modules and channels. It is not intended for subclassing out...
Definition: csoftowner.h:33
cNoncopyableOwnedObject(const char *name=nullptr, bool namepooling=true)
Definition: cownedobject.h:254
virtual cObject * getOwner() const override
Definition: cownedobject.h:193
virtual bool isOwnedObject() const override
Definition: cownedobject.h:198
The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities...
Definition: cmessage.h:95
Extends cObject with a name string. Also includes a "flags" member, with bits open for use by subclas...
Definition: cnamedobject.h:34
Base class for cOwnedObject-based classes that do not wish to support assignment and duplication.
Definition: cownedobject.h:242
Thrown when the simulation kernel or other components detect a runtime error.
Definition: cexception.h:286
A subclass of cMessage to represent packets, frames, datagrams, application messages,...
Definition: cpacket.h:52
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
A cObject that keeps track of its owner. It serves as base class for many classes in the OMNeT++ libr...
Definition: cownedobject.h:105