Lugdunum
0.1.0
|
Dummy class for a weak ptr. More...
#include <Resource.hpp>
Public Member Functions | |
constexpr | WeakPtr (T *pointer=nullptr) |
constexpr | WeakPtr (const SharedPtr< T > &rhs) |
WeakPtr (const WeakPtr< T > &rhs) | |
WeakPtr (WeakPtr< T > &&rhs) | |
WeakPtr< T > & | operator= (const WeakPtr< T > &rhs) |
WeakPtr< T > & | operator= (WeakPtr< T > &&rhs) |
~WeakPtr () | |
SharedPtr< T > | lock () const |
Transforms a WeakPtr to a SharedPtr. More... | |
template<typename T > | |
constexpr | WeakPtr (T *pointer) |
template<typename T > | |
constexpr | WeakPtr (const SharedPtr< T > &rhs) |
template<typename T > | |
WeakPtr (const Resource::WeakPtr< T > &rhs) | |
template<typename T > | |
WeakPtr (Resource::WeakPtr< T > &&rhs) | |
template<typename RhsT > | |
Resource::WeakPtr< T > | cast (const Resource::WeakPtr< RhsT > &rhs) |
Static Public Member Functions | |
template<typename RhsT > | |
static WeakPtr< T > | cast (const WeakPtr< RhsT > &rhs) |
Dynamic casting of a WeakPtr to another one (RhsT to T) More... | |
Private Attributes | |
T * | _resource {nullptr} |
Friends | |
template<typename RhsT > | |
class | WeakPtr |
Dummy class for a weak ptr.
T | The type of the pointer |
Definition at line 114 of file Resource.hpp.
constexpr lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | T * | pointer = nullptr | ) |
constexpr lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | const SharedPtr< T > & | rhs | ) |
lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | const WeakPtr< T > & | rhs | ) |
lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | WeakPtr< T > && | rhs | ) |
Resource::WeakPtr::~WeakPtr | ( | ) |
Definition at line 101 of file Resource.inl.
constexpr lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | T * | pointer | ) |
Definition at line 72 of file Resource.inl.
constexpr lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | const SharedPtr< T > & | rhs | ) |
Definition at line 75 of file Resource.inl.
lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | const Resource::WeakPtr< T > & | rhs | ) |
Definition at line 78 of file Resource.inl.
lug::Graphics::Resource::WeakPtr< T >::WeakPtr | ( | Resource::WeakPtr< T > && | rhs | ) |
Definition at line 81 of file Resource.inl.
WeakPtr<T>& lug::Graphics::Resource::WeakPtr< T >::operator= | ( | const WeakPtr< T > & | rhs | ) |
WeakPtr<T>& lug::Graphics::Resource::WeakPtr< T >::operator= | ( | WeakPtr< T > && | rhs | ) |
Resource::SharedPtr< T > Resource::WeakPtr::lock | ( | ) | const |
Transforms a WeakPtr to a SharedPtr.
Definition at line 106 of file Resource.inl.
|
static |
Resource::WeakPtr<T> lug::Graphics::Resource::WeakPtr< T >::cast | ( | const Resource::WeakPtr< RhsT > & | rhs | ) |
Definition at line 113 of file Resource.inl.
Definition at line 116 of file Resource.hpp.
|
private |
Definition at line 150 of file Resource.hpp.