OMNeT++ API 6.1
Discrete Event Simulation Library
cWatch_cObjectPtr Class Reference

Description

Watch class, specifically for pointers to objects subclassed from cObject.

Inheritance diagram for cWatch_cObjectPtr:
[legend]

Public Member Functions

virtual const char * getClassName () const override
 
virtual std::string str () const override
 
virtual bool supportsAssignment () const override
 
virtual cClassDescriptorgetDescriptor () const override
 
virtual void forEachChild (cVisitor *visitor) override
 
- Public Member Functions inherited from cWatchBase
 cWatchBase (const char *name)
 
virtual void assign (const char *s)
 
- Public Member Functions inherited from cNoncopyableOwnedObject
 cNoncopyableOwnedObject (const char *name=nullptr, bool namepooling=true)
 
virtual cNoncopyableOwnedObjectdup () const override
 
- Public Member Functions inherited from cOwnedObject
 cOwnedObject ()
 
 cOwnedObject (const char *name, bool namepooling=true)
 
 cOwnedObject (const cOwnedObject &obj)
 
virtual ~cOwnedObject ()
 
cOwnedObjectoperator= (const cOwnedObject &o)
 
virtual cObjectgetOwner () const override
 
virtual bool isOwnedObject () const override
 
- Public Member Functions inherited from cNamedObject
 cNamedObject ()
 
 cNamedObject (const char *name, bool namepooling=true)
 
 cNamedObject (const cNamedObject &obj)
 
virtual ~cNamedObject ()
 
cNamedObjectoperator= (const cNamedObject &o)
 
virtual void setName (const char *s)
 
virtual const char * getName () const override
 
virtual void setNamePooling (bool b)
 
virtual bool getNamePooling ()
 
- Public Member Functions inherited from cObject
 cObject ()
 
 cObject (const cObject &other)=default
 
virtual ~cObject ()
 
bool isName (const char *s) const
 
virtual const char * getFullName () const
 
virtual std::string getFullPath () const
 
virtual std::string getClassAndFullName () const
 
virtual std::string getClassAndFullPath () const
 
const cObjectgetThisPtr () const
 
virtual std::ostream & printOn (std::ostream &os) const
 
virtual bool isSoftOwner () const
 
cObjectfindObject (const char *name, bool deep=true)
 
void copyNotSupported () const
 

Additional Inherited Members

- Static Public Member Functions inherited from cOwnedObject
static long getTotalObjectCount ()
 
static long getLiveObjectCount ()
 
static void resetObjectCounters ()
 
static cSoftOwnergetOwningContext ()
 
- Protected Member Functions inherited from cObject
virtual void take (cOwnedObject *obj)
 
virtual void drop (cOwnedObject *obj)
 
void dropAndDelete (cOwnedObject *obj)
 

Member Function Documentation

◆ getClassName()

virtual const char* getClassName ( ) const
inlineoverridevirtual

Returns the (fully qualified) class name. This method is implemented using typeid (C++ RTTI), and it does not need to be overridden in subclasses.

Reimplemented from cObject.

◆ str()

virtual std::string str ( ) const
inlineoverridevirtual

Returns a brief, one-line description of the object. The returned string does (should) NOT include the object's name and class. This method is used to display object information at several places in the Qtenv GUI, among others.

Reimplemented from cObject.

References cObject::getClassName(), cObject::getFullName(), and cObject::str().

◆ supportsAssignment()

virtual bool supportsAssignment ( ) const
inlineoverridevirtual

Tells if changing the variable's value via assign() is supported.

Implements cWatchBase.

◆ getDescriptor()

virtual cClassDescriptor* getDescriptor ( ) const
inlineoverridevirtual

Returns the descriptor object for (the class of) this object.

Reimplemented from cObject.

◆ forEachChild()

virtual void forEachChild ( cVisitor v)
overridevirtual

Enables traversing the object tree, performing some operation on each object. The operation is encapsulated in the particular subclass of cVisitor.

This method should be redefined in every subclass to call v->visit(obj) for every obj object contained.

Reimplemented from cObject.


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