![]() |
Chira Engine
A customizable MIT-licensed game engine.
|
Public Member Functions | |
SharedPointer (T *inputPtr) | |
SharedPointer (T *inputPtr, SharedPointerMetadata *data_) | |
SharedPointer< T > & | operator= (const SharedPointer< T > &other) noexcept |
SharedPointer (const SharedPointer< T > &other) noexcept | |
SharedPointer< T > & | operator= (SharedPointer< T > &&other) noexcept |
SharedPointer (SharedPointer< T > &&other) noexcept | |
T * | get () const noexcept |
T & | operator* () const |
T * | operator-> () const noexcept |
operator bool () const | |
bool | operator! () const |
unsigned int | useCount () const |
unsigned int | getHolderAmountForDelete () const |
void | setHolderAmountForDelete (unsigned int newHolderAmountForDelete) const |
template<typename U > | |
SharedPointer< U > | castStatic () const |
template<typename U > | |
SharedPointer< U > | castDynamic () const |
template<typename U > | |
SharedPointer< U > | castAssert () const |
template<typename U > | |
SharedPointer< U > | castReinterpret () const |
template<typename U > | |
SharedPointer< U > | cast (CastType type=CastType::ASSERT_CAST) const |
Protected Attributes | |
T * | ptr = nullptr |
SharedPointerMetadata * | data = nullptr |
Definition at line 31 of file SharedPointer.h.