Berserk
|
Automates reference counting and behaves as shared smart pointer. More...
#include <Ref.hpp>
Public Member Functions | |
Ref ()=default | |
Ref (T *object) | |
Ref (const Ref &other) | |
Ref (Ref &&other) noexcept | |
~Ref () | |
Ref< T > & | operator= (const Ref &other) |
Ref< T > & | operator= (Ref &&other) noexcept |
bool | operator== (const Ref &other) const |
bool | operator!= (const Ref &other) const |
bool | IsNull () const |
bool | IsNotNull () const |
T * | operator-> () const |
T & | operator* () const |
operator bool () const | |
void | Reset (T *ptr=nullptr) |
bool | IsUnique () const |
T * | Release () |
T * | Get () const |
template<typename G > | |
bool | Is () const |
template<class G > | |
Ref< G > | As () const |
template<class G > | |
Ref< G > | Cast () const |
template<class G > | |
Ref< G > | ForceCast () const |
Automates reference counting and behaves as shared smart pointer.
T | Type referenced object |