|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
#include <ObjectPtr.hpp>
Public Member Functions | |
| ObjectPtr () noexcept | |
| template<typename... Args> | |
| ObjectPtr (Args &&... args) | |
| ObjectPtr (const ObjectPtr &)=delete | |
| ObjectPtr (ObjectPtr &&other) noexcept | |
| template<typename U, typename = std::enable_if_t<std::is_base_of_v<T, U>>> | |
| ObjectPtr (ObjectPtr< U > &&other) noexcept | |
| ObjectPtr (T *p) noexcept | |
| ~ObjectPtr () | |
| bool | operator!= (const ObjectPtr &other) const noexcept |
| bool | operator< (const ObjectPtr &other) const noexcept |
| bool | operator<= (const ObjectPtr &other) const noexcept |
| ObjectPtr & | operator= (const ObjectPtr &)=delete |
| ObjectPtr & | operator= (ObjectPtr &&other) noexcept |
| bool | operator== (const ObjectPtr &other) const noexcept |
| bool | operator> (const ObjectPtr &other) const noexcept |
| bool | operator>= (const ObjectPtr &other) const noexcept |
| T * | release () noexcept |
| void | reset (T *newPtr=nullptr) override |
| Public Member Functions inherited from Sleak::SmartPointer< T > | |
| SmartPointer (const SmartPointer &)=delete | |
| virtual | ~SmartPointer () |
| T * | get () const |
| Raw pointer access; throws NullPointerException if unset. | |
| virtual bool | IsValid () const |
| True if the pointer is non-null. | |
| operator bool () const | |
| T & | operator* () const |
| T * | operator-> () const |
| SmartPointer & | operator= (const SmartPointer &)=delete |
Additional Inherited Members | |
| Protected Member Functions inherited from Sleak::SmartPointer< T > | |
| SmartPointer (T *p=nullptr) | |
| Protected Attributes inherited from Sleak::SmartPointer< T > | |
| T * | ptr |
Move-only, exclusive-ownership smart pointer (unique_ptr equivalent). Copying is disabled; transfer ownership with std::move.
Definition at line 14 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 17 of file ObjectPtr.hpp.
|
inlineexplicitnoexcept |
Definition at line 20 of file ObjectPtr.hpp.
|
inlineexplicit |
Definition at line 24 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 27 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 39 of file ObjectPtr.hpp.
|
inline |
Definition at line 43 of file ObjectPtr.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 63 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 64 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 65 of file ObjectPtr.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 30 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 62 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 66 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 67 of file ObjectPtr.hpp.
|
inlinenoexcept |
Definition at line 55 of file ObjectPtr.hpp.
|
inlineoverridevirtual |
Implements Sleak::SmartPointer< T >.
Definition at line 46 of file ObjectPtr.hpp.