ADTF
3.18.2
|
Default implementation of a non-counting reference counter. More...
Public Member Functions | |
UncountedObject ()=default | |
Default CTOR. | |
template<typename... Args> | |
UncountedObject (Args &&... args) | |
CTOR constructing the managed resource. More... | |
virtual | ~UncountedObject ()=default |
Default DTOR, provided to be consistent with rule-of-five. | |
void | addReference () const override |
Noop. | |
void | removeReference () const override |
Noop. | |
const Interface & | getObject () const override |
Get a reference to the handled object's interface - provided for const correctness. More... | |
Interface & | getObject () override |
Get a reference to the handled object's interface. More... | |
Private Member Functions | |
UncountedObject (const UncountedObject &)=delete | |
UncountedObject & | operator= (UncountedObject &)=delete |
UncountedObject (UncountedObject &&)=delete | |
UncountedObject & | operator= (UncountedObject &&)=delete |
Private Attributes | |
Implementation | _resource |
Resource to manage. | |
Additional Inherited Members | |
Protected Member Functions inherited from ReferenceCountedObjectInterface< Interface > | |
~ReferenceCountedObjectInterface () | |
DTOR. | |
Default implementation of a non-counting reference counter.
Interface | The interface of the resource to handle |
Implementation | The type implementing the Interface type |
Definition at line 104 of file reference_counted_object.h.
|
inline |
CTOR constructing the managed resource.
Args | Argument types of the resource's constructor |
[in] | args | Values to forward to the resource's constructor |
Definition at line 121 of file reference_counted_object.h.
|
inlineoverridevirtual |
Get a reference to the handled object's interface - provided for const correctness.
Implements ReferenceCountedObjectInterface< Interface >.
Definition at line 145 of file reference_counted_object.h.
References UncountedObject< Interface, Implementation >::_resource.
|
inlineoverridevirtual |
Get a reference to the handled object's interface.
Implements ReferenceCountedObjectInterface< Interface >.
Definition at line 154 of file reference_counted_object.h.
References UncountedObject< Interface, Implementation >::_resource.