cWatch< T > Class Template Reference¶
|
API
|
cWatch< T > Class Template Reference
Inheritance diagram for cWatch< T >:
Public Member Functions | |
| virtual const char * | getClassName () const override |
| virtual void | forEachChild (cVisitor *visitor) override |
| virtual any_ptr | getValuePointer () const override |
| virtual cClassDescriptor * | getDescriptor () const override |
| Public Member Functions inherited from cWatchBase | |
| cWatchBase (const char *name) | |
| virtual std::string | str () const override |
| Public Member Functions inherited from cNoncopyableOwnedObject | |
| cNoncopyableOwnedObject (const char *name=nullptr, bool namepooling=true) | |
| virtual cNoncopyableOwnedObject * | dup () const override |
| Public Member Functions inherited from cOwnedObject | |
| cOwnedObject () | |
| cOwnedObject (const char *name, bool namepooling=true) | |
| cOwnedObject (const cOwnedObject &obj) | |
| virtual | ~cOwnedObject () |
| cOwnedObject & | operator= (const cOwnedObject &o) |
| virtual cObject * | getOwner () 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 () |
| cNamedObject & | operator= (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 cObject * | getThisPtr () const |
| virtual std::ostream & | printOn (std::ostream &os) const |
| virtual bool | isSoftOwner () const |
| cObject * | findObject (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 cSoftOwner * | getOwningContext () |
| Protected Member Functions inherited from cObject | |
| virtual void | take (cOwnedObject *obj) |
| virtual void | drop (cOwnedObject *obj) |
| void | dropAndDelete (cOwnedObject *obj) |
Description
template<typename T>
class omnetpp::cWatch< T >
class omnetpp::cWatch< T >
Template Watch class that delegates to the type's cClassDescriptor for string conversion and inspection.
Member Function Documentation
◆ getClassName()
template<typename T>
|
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.
References getDescriptor(), and cObject::getFullName().
◆ forEachChild()
template<typename T>
|
inlineoverridevirtual |
◆ getValuePointer()
template<typename T>
|
inlineoverridevirtual |
Returns a pointer to the watched variable or object as an any_ptr.
Implements cWatchBase.
◆ getDescriptor()
template<typename T>
|
inlineoverridevirtual |
Returns the descriptor object for (the class of) this object.
Reimplemented from cObject.
References cObject::getDescriptor().
Referenced by getClassName().
Generated on for API by