C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Smart reference to objects with reference counter. More...
#include <templ_sptr.h>
Public Member Functions | |
SRef (T &ref) | |
Constructor by reference. | |
SRef (const SRef &src) | |
Copy constructor. | |
~SRef (void) | |
Destructor. | |
T & | get () const |
An access function. | |
operator T& (void) const | |
An access operator. | |
T & | operator() () const |
An access operator. | |
bool | operator== (const SRef &src) const |
An operator for equality check. | |
bool | operator== (T &pObj) const |
An operator for equality check. | |
bool | operator!= (const SRef &src) const |
An operator for inequality check. | |
bool | operator!= (T &pObj) const |
An operator for inequality check. | |
SRef< T > & | operator= (const SRef &ref) |
The assignment operator. | |
SRef< T > & | operator= (T &obj) |
The assignment operator. | |
Smart reference to objects with reference counter.
Smart reference to objects with reference counter. Actually it is the same as SPtr but without the possibility of equality to nullptr
It requires Implementation of functions AddRef() and Release() from the template parameter.