C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Smart pointer to objects with reference counter. More...
#include <templ_sptr.h>
Public Member Functions | |
SPtr () | |
Constructor. | |
SPtr (std::nullptr_t) | |
Constructor by the null pointer. | |
SPtr (T *elem) | |
Constructor by pointer. | |
SPtr (const SPtr< T > &ptr) | |
Copy constructor. | |
template<class _T > | |
SPtr (const SPtr< _T > &ptr) | |
Constructor by compatible pointer. | |
~SPtr () | |
Destructor. | |
operator T* (void) const | |
An operator for conversion to the type T*. | |
T & | operator* () const |
An operator for conversion to a compatible pointer. More... | |
T * | operator-> () const |
An access operator. | |
SPtr< T > & | operator= (T *elem) |
The assignment operator. | |
SPtr< T > & | operator= (const SPtr< T > &ptr) |
The assignment operator. | |
template<class _T > | |
SPtr< T > & | operator= (const SPtr< _T > &ptr) |
An assignment operator for a compatible pointer. | |
template<class _T > | |
bool | operator== (const SPtr< _T > &ptr) const |
An operator for equality check. | |
template<class _T > | |
bool | operator== (const _T *elem) const |
An operator for equality check. | |
bool | operator== (T *elem) const |
An operator for equality check. | |
template<class _T > | |
bool | operator!= (const SPtr< _T > &ptr) const |
An operator for inequality check. | |
template<class _T > | |
bool | operator!= (const _T *elem) const |
An operator for inequality check. | |
bool | operator!= (T *elem) const |
An operator for inequality check. | |
template<class _T > | |
bool | operator< (const _T *elem) const |
Order relation. | |
template<class _T > | |
bool | operator< (const SPtr< _T > &elem) const |
Order relation. | |
template<class _T > | |
SPtr< T > & | assign (_T *elem) |
A function of assignment by pointer. | |
template<class _T > | |
SPtr< T > & | assign (const SPtr< _T > &elem) |
A function of assignment by pointer. | |
SPtr< T > & | assign (std::nullptr_t) |
A function of release an object. | |
SPtr< T > & | reset (void) |
A function of release an object. | |
T * | get () const |
A function of access to data element. | |
T * | detach () |
A function detaches an object. | |
bool | is_null () const |
Is null pointer? | |
SPtr (SPtr< T > &&src) | |
Moving constructor. | |
SPtr< T > & | operator= (SPtr< T > &&src) |
Moving operator. | |
template<typename To > | |
SPtr< To > | static_cast_to () const |
Cast to SPtr to another class. | |
Smart pointer to objects with reference counter.
Smart pointer to objects with reference counter. It requires Implementation of functions AddRef() and Release() from the template parameter.
|
inline |
An operator for conversion to a compatible pointer.
An access operator.