|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
#include <SmartPointer.hpp>
Public Member Functions | |
| 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 |
| virtual void | reset (T *newPtr=nullptr)=0 |
Protected Member Functions | |
| SmartPointer (T *p=nullptr) | |
Protected Attributes | |
| T * | ptr |
Common base for RefPtr/ObjectPtr/WeakPtr: holds the raw pointer and the dereference/validity operators shared by every ownership model.
Definition at line 24 of file SmartPointer.hpp.
|
inlineexplicitprotected |
Definition at line 29 of file SmartPointer.hpp.
|
inlinevirtual |
Definition at line 33 of file SmartPointer.hpp.
|
delete |
|
inline |
Raw pointer access; throws NullPointerException if unset.
Definition at line 39 of file SmartPointer.hpp.
|
inlinevirtual |
True if the pointer is non-null.
Definition at line 48 of file SmartPointer.hpp.
|
inlineexplicit |
Definition at line 56 of file SmartPointer.hpp.
|
inline |
Definition at line 36 of file SmartPointer.hpp.
|
inline |
Definition at line 37 of file SmartPointer.hpp.
|
delete |
|
pure virtual |
Implemented in Sleak::ObjectPtr< T >, Sleak::ObjectPtr< Sleak::RenderEngine::BufferBase >, Sleak::ObjectPtr< Sleak::RenderEngine::Shader >, Sleak::ObjectPtr< Sleak::Texture >, Sleak::RefPtr< T >, Sleak::RefPtr< Sleak::Component >, Sleak::RefPtr< Sleak::Material >, Sleak::RefPtr< Sleak::RenderEngine::BufferBase >, Sleak::RefPtr< Sleak::RenderEngine::RenderCommandBase >, Sleak::RefPtr< Sleak::RenderEngine::Shader >, and Sleak::RefPtr< Sleak::Texture >.
|
protected |
Definition at line 26 of file SmartPointer.hpp.