An object with just a public virtual destructor
GenObject ()
| GenObject |
Default constructor
~GenObject ()
| ~GenObject |
[virtual]
Destructor.
bool alive ()
| alive |
[const virtual]
Check if the object is still valid and safe to access. Note that you should not trust this result unless the object is locked by other means.
Returns: True if the object is still useable
void destruct ()
| destruct |
[virtual]
Destroys the object, disposes the memory.
const String& toString ()
| toString |
[const virtual]
Get a string representation of this object
Returns: A reference to a String representing this object which is either null, the object itself (for objects derived from String) or some form of identification
void* getObject (const String& name)
| getObject |
[const virtual]
Get a pointer to a derived class given that class name
Parameters:
name | Name of the class we are asking for |
Returns: Pointer to the requested class or NULL if this object doesn't implement it
inline void* getObject (const String& name, const GenObject* obj)
| getObject |
[static]
Helper method to get the pointer to a derived class
Parameters:
name | Name of the class we are asking for |
obj | Pointer to the object to get derived class from |
Returns: Pointer to the requested class or NULL if this object doesn't implement it
inline bool getObjCounting ()
| getObjCounting |
[static]
Get the global state of object counting
Returns: True if object counting is enabled
inline void setObjCounting (bool enable)
| setObjCounting |
[static]
Set the global state of object counting
Parameters:
enable | True to enable object counting, false to disable |
inline NamedCounter* getObjCounter ()
| getObjCounter |
[const]
Get the counter of this object
Returns: Pointer to current counter object
NamedCounter* setObjCounter (NamedCounter* counter)
| setObjCounter |
Set the counter of this object
Parameters:
counter | New counter object or NULL |
Returns: Pointer to old counter object
NamedCounter* getObjCounter (const String& name, bool create = true)
| getObjCounter |
[static]
Retrieve or allocate an object counter
Parameters:
name | Name of the counter |
create | True to create a new counter if needed |
Returns: Pointer to existing or new counter object
ObjList& getObjCounters ()
| getObjCounters |
[static]
Access the object counters list
Returns: Reference to the global object counters list
Generated by: paulc on bussard on Thu Jul 24 18:41:02 2014, using kdoc 2.0a54. |