The VgReferenced class owns the number of references of an object.
More...
The VgReferenced class owns the number of references of an object.
It is in charge of deleting the object when there is not more references. To learn more about its usage look at the VgRefPtr documentation.
- Date
- 12/04/2010
VgEngine::VgReferenced::VgReferenced |
( |
| ) |
|
VgEngine::VgReferenced::VgReferenced |
( |
const VgReferenced & |
pThis | ) |
|
virtual VgEngine::VgReferenced::~VgReferenced |
( |
| ) |
|
|
virtual |
int VgEngine::VgReferenced::getNbReferences |
( |
| ) |
const |
Retrieves the number of references to this object.
void VgEngine::VgReferenced::ref |
( |
| ) |
const |
This method is used to add a reference to this object.
Only VgRefPtr should call this method unless the caller exactly know what he is doing.
int VgEngine::VgReferenced::unref |
( |
| ) |
const |
This method is used to remove a reference to this object.
When the object has no more references VgRefPtr will delete it. Only VgRefPtr should call this method unless the caller exactly know what he is doing.
- Returns
- the updated number of references left
int VgEngine::VgReferenced::mNbReferences |
|
mutableprotected |
The number of references to this object.
The documentation for this class was generated from the following file: