|
|
| AutoRefT ()=default |
| | Constructs an instance without a reference.
|
| | AutoRefT (T *t) |
| | Constructs an instance referencing t.
|
| | AutoRefT (const AutoRefT< T > &from) |
| | Constructs a reference referencing from.
|
| AutoRefT< T > & | operator= (const AutoRefT< T > &from) |
| | Copy operator.
|
| AutoRefT< T > & | operator= (T *new_value) |
| | Assigns the value new_value to the instance.
|
| | ~AutoRefT () |
| | Destructor. Decrements the reference counter of the pointed object.
|
|
| PtrT ()=default |
| | Constructs an instance without a reference.
|
| | PtrT (T *t) |
| | Constructs an instance referring to t.
|
| T * | operator-> () const |
| | Returns the object referenced by the instance.
|
| T & | operator* () const |
| | Returns the object referenced by the instance.
|
| T * | get () const |
| | Returns the object referenced by the instance.
|
| bool | isNull () const |
template<class T>
class Arcane::AutoRefT< T >
Encapsulation of a pointer with a reference counter.
This class encapsulates a pointer of a type that implements the methods of the abstract class ISharedReference (the template parameter does not need to derive from this class) and increments (_addRef()) or decrements (_removeRef()) the reference counter of the pointed element during successive assignments. This class does not perform any action based on the value of the reference counter; the eventual destruction of the object when the reference counter reaches zero is handled by the object itself.
Definition at line 41 of file AutoRef.h.