This class is used to store the main information of any object used Information contained is the UID and the reference counter. More...
#include "aObject.h"
Public Member Functions | |
| aObject (objectType _type=otNone, UID _UID=ak::invalidUID) | |
| Constructor. | |
| aObject (const aObject &_other) | |
| Copy constructor. | |
| aObject & | operator= (const aObject &_other) |
| Assignment operator. | |
| virtual | ~aObject () |
| Deconstructor. | |
| virtual void | removeChildObject (aObject *_child) |
| Will remove the child from this object (not destroy it) This function should be called from the deconstructor of a child. | |
| virtual void | addChildObject (aObject *_child) |
| Will add the child to this object. | |
| void | setUniqueName (const QString &_name) |
| Will set this objects unique name. | |
| virtual void | setParentObject (aObject *_parentObject) |
| Will set the parent object of this object. | |
| QString | uniqueName (void) const |
| Will return the unique name of this object. | |
| aObject * | parentObject (void) const |
| Will return a pointer to the parent object. | |
| int | childObjectCount (void) const |
| Will return the count of sub objects. | |
| aObject * | childObject (UID _childUID) |
| Will return the child with the specified UID. | |
| void | setOwner (aObject *_object) |
| Will set the owner of this object. | |
| aObject * | owner (void) const |
| Will return the owner of this object. | |
| void | setUid (UID _UID) |
| Will set the objects UID. | |
| UID | uid (void) const |
| Returns the objects UID. | |
| objectType | type (void) const |
| Returns the objects type. | |
| virtual bool | isWidgetType (void) const |
| Returns true if the object is an object derived from aWidget. | |
Protected Attributes | |
| UID | m_uid |
| int | m_references |
| The objects UID. | |
| objectType | m_objectType |
| The objects references. | |
| QString | m_uniqueName |
| The object type of this object. | |
| aObject * | m_parentObject |
| aObject * | m_owner |
| std::map< UID, aObject * > | m_childObjects |
This class is used to store the main information of any object used Information contained is the UID and the reference counter.
| ak::aObject::aObject | ( | objectType | _type = otNone, |
| UID | _UID = ak::invalidUID ) |
Constructor.
| _UID | The initial UID of this object |
| _references | The initial reference count for this object |
| ak::aObject::aObject | ( | const aObject & | _other | ) |
Copy constructor.
| _other | The other object |
|
virtual |
Deconstructor.
|
virtual |
Will add the child to this object.
| _child | The child to add |
| ak::aObject * ak::aObject::childObject | ( | UID | _childUID | ) |
Will return the child with the specified UID.
| _childUID | The UID of the child object |
| int ak::aObject::childObjectCount | ( | void | ) | const |
Will return the count of sub objects.
|
virtual |
Returns true if the object is an object derived from aWidget.
Reimplemented in ak::aWidget.
| ak::aObject & ak::aObject::operator= | ( | const aObject & | _other | ) |
Assignment operator.
| _other | The other object |
| ak::aObject * ak::aObject::owner | ( | void | ) | const |
Will return the owner of this object.
| ak::aObject * ak::aObject::parentObject | ( | void | ) | const |
Will return a pointer to the parent object.
|
virtual |
Will remove the child from this object (not destroy it) This function should be called from the deconstructor of a child.
| _child | The child to remove |
Reimplemented in ak::aTtbGroup, ak::aTtbPage, ak::aTtbSubGroup, and ak::aWindowManager.
| void ak::aObject::setOwner | ( | aObject * | _object | ) |
Will set the owner of this object.
| _object | The to set as owner |
|
virtual |
Will set the parent object of this object.
| void ak::aObject::setUid | ( | UID | _UID | ) |
Will set the objects UID.
|
inline |
Will set this objects unique name.
| _name | The name of this object |
| ak::objectType ak::aObject::type | ( | void | ) | const |
Returns the objects type.
| ak::UID ak::aObject::uid | ( | void | ) | const |
Returns the objects UID.
|
inline |
Will return the unique name of this object.
|
protected |
The objects references.
|
protected |
|
protected |
|
protected |
The objects UID.
|
protected |
|
protected |
The object type of this object.