Ownable::Owned Struct Reference

The structure with information about the owned object. More...

Public Member Functions

 Owned (Ownable *o, bool d=true)
 Constructor. More...
 
bool operator== (const Owned &other)
 Comparison operator overload. More...
 

Public Attributes

bool destroy
 If true the object is automatically destroyed by the owner destructor. More...
 
Ownableobject
 The owned object. More...
 

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

Definition at line 46 of file ownable.h.

Constructor & Destructor Documentation

Owned ( Ownable o,
bool  d = true 
)
inline

Constructor.

Parameters
othe owned object
dif true the object is automatically destroyed by the owner destructor

Definition at line 54 of file ownable.h.

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().

Ownable* object

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: