23 #include "worldsimconfig.h"
68 return (
object == other.
object);
108 void setOwner(
Ownable *owner,
bool destroy =
true);
138 void addToOwned(
Ownable *obj,
bool destroy);
145 void removeFromOwned(
Ownable *obj);
155 QList<Owned> m_owned;
QList< Owned > OwnedList
The type for the list of owned objects.
The structure with information about the owned object.
The base for all class that can have (and can be) an owner.
bool destroy
If true the object is automatically destroyed by the owner destructor.
bool operator==(const Owned &other)
Comparison operator overload.
Owned(Ownable *o, bool d=true)
Constructor.
Ownable * object
The owned object.
Ownable * owner() const
Returns the owner of this object.
const QList< Owned > & owned() const
Returns the list of objects owned by this one.