Lugdunum
0.1.0
|
Dummy class for a shared pointer. More...
#include <Resource.hpp>
Public Member Functions | |
constexpr | SharedPtr (T *pointer=nullptr) |
SharedPtr (const SharedPtr< T > &rhs) | |
SharedPtr (SharedPtr< T > &&rhs) | |
SharedPtr< T > & | operator= (const SharedPtr< T > &rhs) |
SharedPtr< T > & | operator= (SharedPtr< T > &&rhs) |
~SharedPtr () | |
T & | operator* () const |
T * | operator-> () const |
operator bool () const | |
T * | get () const |
template<typename T > | |
constexpr | SharedPtr (T *pointer) |
template<typename T > | |
SharedPtr (const Resource::SharedPtr< T > &rhs) | |
template<typename T > | |
SharedPtr (Resource::SharedPtr< T > &&rhs) | |
template<typename RhsT > | |
Resource::SharedPtr< T > | cast (const Resource::SharedPtr< RhsT > &rhs) |
Static Public Member Functions | |
template<typename RhsT > | |
static SharedPtr< T > | cast (const SharedPtr< RhsT > &rhs) |
Dynamic casting of a SharedPtr to another one (RhsT to T) More... | |
Private Attributes | |
T * | _resource {nullptr} |
Friends | |
template<typename RhsT > | |
class | SharedPtr |
Dummy class for a shared pointer.
T | The type of the pointer. |
Definition at line 66 of file Resource.hpp.
constexpr lug::Graphics::Resource::SharedPtr< T >::SharedPtr | ( | T * | pointer = nullptr | ) |
lug::Graphics::Resource::SharedPtr< T >::SharedPtr | ( | const SharedPtr< T > & | rhs | ) |
lug::Graphics::Resource::SharedPtr< T >::SharedPtr | ( | SharedPtr< T > && | rhs | ) |
Resource::SharedPtr::~SharedPtr | ( | ) |
Definition at line 50 of file Resource.inl.
constexpr lug::Graphics::Resource::SharedPtr< T >::SharedPtr | ( | T * | pointer | ) |
Definition at line 4 of file Resource.inl.
lug::Graphics::Resource::SharedPtr< T >::SharedPtr | ( | const Resource::SharedPtr< T > & | rhs | ) |
Definition at line 11 of file Resource.inl.
lug::Graphics::Resource::SharedPtr< T >::SharedPtr | ( | Resource::SharedPtr< T > && | rhs | ) |
Definition at line 18 of file Resource.inl.
SharedPtr<T>& lug::Graphics::Resource::SharedPtr< T >::operator= | ( | const SharedPtr< T > & | rhs | ) |
SharedPtr<T>& lug::Graphics::Resource::SharedPtr< T >::operator= | ( | SharedPtr< T > && | rhs | ) |
T & Resource::SharedPtr::operator* | ( | ) | const |
Definition at line 120 of file Resource.inl.
T * Resource::SharedPtr::operator-> | ( | ) | const |
Definition at line 125 of file Resource.inl.
|
inlineexplicit |
Definition at line 89 of file Resource.hpp.
T * Resource::SharedPtr::get | ( | ) | const |
Definition at line 59 of file Resource.inl.
|
static |
Resource::SharedPtr<T> lug::Graphics::Resource::SharedPtr< T >::cast | ( | const Resource::SharedPtr< RhsT > & | rhs | ) |
Definition at line 65 of file Resource.inl.
Definition at line 68 of file Resource.hpp.
|
private |
Definition at line 105 of file Resource.hpp.