spla
|
Automates reference counting and behaves as shared smart pointer. More...
#include <ref.hpp>
Public Member Functions | |
ref_ptr ()=default | |
ref_ptr (T *object) | |
ref_ptr (const ref_ptr &other) | |
ref_ptr (ref_ptr &&other) noexcept | |
~ref_ptr () | |
ref_ptr< T > & | operator= (const ref_ptr &other) |
template<typename G > | |
ref_ptr< T > & | operator= (const ref_ptr< G > &other) |
ref_ptr< T > & | operator= (ref_ptr &&other) noexcept |
bool | operator== (const ref_ptr &other) const |
bool | operator!= (const ref_ptr &other) const |
bool | is_null () const |
bool | is_not_null () const |
T * | operator-> () const |
T & | operator* () const |
operator bool () const | |
void | acquire (T *safe_ref_ptr=nullptr) |
void | reset (T *ptr=nullptr) |
T * | release () |
T * | get () const |
T * | ref_and_get () |
template<typename G > | |
bool | is () const |
template<class G > | |
ref_ptr< G > | as () const |
template<class G > | |
ref_ptr< G > | cast_safe () const |
template<class G > | |
ref_ptr< G > | cast () const |
template<class G > | |
ref_ptr< G > | cast_static () const |
Automates reference counting and behaves as shared smart pointer.
T | Type referenced object |
|
default |
|
inlineexplicit |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |