#include <uobject.hpp>
Inheritance diagram for ufo::UObject:
Public Member Functions | |
UObject (const UObject &) | |
virtual unsigned int | hashCode () const |
virtual bool | equals (const UObject *obj) const |
bool | operator== (const UObject &obj) const |
virtual UObject * | clone () const |
virtual std::string | toString () const |
const std::string & | getName () const |
void | setName (const std::string &newNameA) |
unsigned int | objCount () |
UCollectable * | trackPointer (UCollectable *c) |
const UCollectable * | trackPointer (const UCollectable *c) |
bool | releasePointer (UCollectable *c) |
bool | releasePointer (const UCollectable *c) |
void | swapPointers (const UCollectable *oldObj, const UCollectable *newObj) |
void | releaseAllPointers () |
USignal1< UObject * > & | sigDestroyed () |
Protected Member Functions | |
virtual std::ostream & | paramString (std::ostream &os) const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const UObject &o) |
std::ostream & | operator<< (std::ostream &os, const UObject *o) |
|
tries to make a new object with the same internal data. Reimplemented in ufo::UColorObject, ufo::UDimensionObject, ufo::UInsetsObject, ufo::UInteger, ufo::UPointObject, ufo::URectangleObject, and ufo::UString.
|
|
checks if this object is the same object than obj Reimplemented in ufo::UKeyStroke, ufo::UInteger, and ufo::UString.
|
|
returns a std::size_t which is used when UObject pointers are the keys for UHashMap. If equals(UObject*) returns true, these two objects should return the same hash code. If these objects are different, the hash code may be equal.
Reimplemented in ufo::UKeyStroke, ufo::UColorObject, ufo::UDimensionObject, ufo::UInsetsObject, ufo::UPointObject, ufo::URectangleObject, and ufo::UString.
|
|
This method is only for debugging purposes and may be removed without warning.
|
|
Prints some useful internal data to the ostream os. This method is meant only for debugging purposes. Reimplemented in ufo::UActionEvent, ufo::UEvent, ufo::UFocusEvent, ufo::UInputEvent, ufo::UKeyEvent, ufo::UMouseEvent, ufo::UMouseWheelEvent, ufo::UPropertyChangeEvent, ufo::UImageIO, ufo::UColorObject, ufo::UDimensionObject, ufo::UInsetsObject, ufo::UInteger, ufo::UPalette, ufo::UPointObject, ufo::URectangleObject, ufo::UString, ufo::UCompound, ufo::UStringItem, ufo::UMenu, and ufo::UWidget.
|
|
Removes all pointers from the memory tracking list and decreases their reference count by one. |
|
Removes the first occurence of c from the memory tracking list and decreases its reference count by 1.
|
|
Removes the first occurence of c from the memory tracking list and decreases its reference count by 1.
|
|
For debuggin purposes |
|
This signal is fired immediately before this object is destroyed Please note that all information about subclass features is already destroyed. |
|
If oldObj does not point to newObj, calls releasePointer with oldObj abd trackPointer with newObj. Both may be NULL. |
|
std::string representation Reimplemented in ufo::UKeyStroke, ufo::UInteger, and ufo::UString.
|
|
Increases the reference count of c by 1 and adds c to the internal memory tracking list. Does nothing if c is NULL. You may call trackPointer several times with the same pointer as argument.
|
|
Increases the reference count of c by 1 and adds c to the internal memory tracking list. Does nothing if c is NULL. You may call trackPointer several times with the same pointer as argument.
|
|
operator to print object data to output streams |
|
operator to print object data to output streams |