Base class to reference all Shape objects and some nucleus.
More...
#include <TReference.hxx>
Base class to reference all Shape objects and some nucleus.
This is used for the smart pointer definition ; object reference increase from its creation, to any reference to an object ; dereferecing an object decrased the number of references until it is equal to 0, then object could be safely removed.
- Author
- WEC
- Version
- 1.0
◆ TReference()
TReference::TReference |
( |
| ) |
|
|
inline |
< Default constructor. Number of references is set to 0
◆ ~TReference()
virtual TReference::~TReference |
( |
| ) |
|
|
virtualdefault |
◆ AddReference()
void TReference::AddReference |
( |
unsigned |
n = 1 | ) |
|
|
inline |
< Add n references to an object
◆ DelReference()
unsigned TReference::DelReference |
( |
unsigned |
n = 1 | ) |
|
|
inline |
< Remove n references to an object
◆ Reference()
unsigned TReference::Reference |
( |
| ) |
|
|
inline |
< returns the Number of references to an object
◆ fNbReferences
unsigned TReference::fNbReferences |
|
private |
Number of references to an object.
The documentation for this class was generated from the following file: