Ownable::Owned Struct Reference
The structure with information about the owned object. More...
Public Member Functions | |
Owned (Ownable *o, bool d=true) | |
Constructor. | |
bool | operator== (const Owned &other) |
Comparison operator overload. | |
Public Attributes | |
bool | destroy |
If true the object is automatically destroyed by the owner destructor. | |
Ownable * | object |
The owned object. |
Detailed Description
The structure with information about the owned object.
This keeps the owned object and whether the owner should destroy it automatically or not
Constructor & Destructor Documentation
Member Function Documentation
bool operator== | ( | const Owned & | other | ) | [inline] |
Comparison operator overload.
- Returns:
- true if other contains the same object as this one (the destroy property is not taken into account)
Definition at line 66 of file ownable.h.
References Ownable::Owned::object.
Member Data Documentation
bool destroy |
If true the object is automatically destroyed by the owner destructor.
Definition at line 80 of file ownable.h.
Referenced by Ownable::~Ownable().
The owned object.
Definition at line 74 of file ownable.h.
Referenced by Ownable::Owned::operator==(), and Ownable::~Ownable().
The documentation for this struct was generated from the following file:
- worldsim/include/ownable.h