#include <uobject.hpp>
Inheritance diagram for ubit::UObject:
Public Member Functions | |
const char * | getTypeName () const |
returns the C++ class name of this object. | |
virtual const UStr & | getClassName () const |
returns the Ubit class name of this object. | |
virtual const UClass & | getClass () const |
virtual UBrick * | brickCast () |
virtual UProp * | propCast () |
virtual UData * | dataCast () |
virtual UStr * | strCast () |
virtual UCall * | callCast () |
virtual UGroup * | groupCast () |
virtual UBox * | boxCast () |
virtual UWin * | winCast () |
virtual UMenu * | menuCast () |
dynamic cast. | |
void | addPtr () const |
void | removePtr () const |
int | getPtrCount () const |
virtual bool | canPtrDelete () const |
UObject (const UObject &) | |
UObject & | operator= (const UBrick &) |
Static Public Member Functions | |
static const char * | getVersion () |
returns the version of the Ubit package. | |
static const UClass & | classid () |
static void | deferenceError (const void *) |
< returns true if the object should be deleted when its last uptr<> is removed. | |
Friends | |
class | UBrick |
const UStr & ubit::UObject::getClassName | ( | ) | const [virtual] |
returns the Ubit class name of this object.
this function returns getClass().name(). It will return the proper class name if (and only if!) getClass() is redefined for ALL UObject subclasses (the superclass name is returned otherwise).
const char * ubit::UObject::getTypeName | ( | ) | const |
returns the C++ class name of this object.
this function returns typeid(*this).name(). Unfortunately, this value depends on the compiler and may be mangled.