![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <memory.hpp>
Public Member Functions | |
| ProxyPtr () noexcept | |
| ProxyPtr (std::nullptr_t) noexcept | |
| template<typename ContainerT > | |
| ProxyPtr (ContainerT &container, std::size_t index) noexcept | |
| ProxyPtr (std::function< T *() > getter) noexcept | |
| ProxyPtr (const ProxyPtr &ptr) noexcept | |
| ProxyPtr (ProxyPtr &&ptr) noexcept | |
| template<typename FromT , typename = std::enable_if_t< std::is_convertible_v< FromT*, T* > >> | |
| ProxyPtr (const ProxyPtr< FromT > &ptr) noexcept | |
| template<typename FromT , typename = std::enable_if_t< std::is_convertible_v< FromT*, T* > >> | |
| ProxyPtr (ProxyPtr< FromT > &&ptr) noexcept | |
| ~ProxyPtr ()=default | |
| ProxyPtr & | operator= (const ProxyPtr &ptr) noexcept |
| ProxyPtr & | operator= (ProxyPtr &&ptr) noexcept |
| operator bool () const noexcept | |
| T & | operator* () const noexcept |
| T * | operator-> () const noexcept |
| T * | Get () const noexcept |
| template<typename U > | |
| bool | operator== (const ProxyPtr< U > &rhs) const noexcept |
| template<typename U > | |
| bool | operator!= (const ProxyPtr< U > &rhs) const noexcept |
Public Attributes | |
| std::function< T *() > | m_getter |
A class of proxy pointers.
| T | The memory resource type. |
|
noexcept |
Constructs a proxy pointer.
|
noexcept |
Constructs a proxy pointer.
|
explicitnoexcept |
Constructs a proxy pointer for the given container and index.
| ContainerT | The container type. |
| [in] | container | A reference to the container. |
| [in] | index | The index into the container. |
|
explicitnoexcept |
Constructs a proxy pointer with the given getter function.
| [in] | getter | The getter function. |
|
noexcept |
Constructs a proxy pointer from the given proxy pointer.
| [in] | ptr | A reference to the proxy pointer. |
|
noexcept |
Constructs a proxy pointer by moving the given proxy pointer.
| [in] | ptr | A reference to the proxy pointer to move. |
|
noexcept |
Constructs a proxy pointer from the given proxy pointer.
| FromT | The memory resource type. |
| [in] | ptr | A reference to the proxy pointer. |
|
noexcept |
Constructs a proxy pointer by moving the given proxy pointer.
| FromT | The memory resource type. |
| [in] | ptr | A reference to the proxy pointer to move. |
|
default |
Destructs this proxy pointer.
|
noexcept |
Returns the memory resource pointed to by this proxy pointer.
|
explicitnoexcept |
Converts this proxy pointer to a bool.
|
noexcept |
Checks whether the given proxy pointer is not equal to this proxy pointer.
| U | The memory resource type. |
| [in] | rhs | A reference to the proxy pointer. |
true if the given proxy pointer is not equal to this proxy pointer. false otherwise.
|
noexcept |
Returns the memory resource pointed to by this proxy pointer.
|
noexcept |
Returns the memory resource pointed to by this proxy pointer.
|
noexcept |
Copies the given proxy pointer to this proxy pointer.
| [in] | ptr | A reference to the proxy pointer to copy. |
|
noexcept |
Moves the given proxy pointer to this proxy pointer.
| [in] | ptr | A reference to the proxy pointer to move. |
|
noexcept |
Checks whether the given proxy pointer is equal to this proxy pointer.
| U | The memory resource type. |
| [in] | rhs | A reference to the proxy pointer. |
true if the given proxy pointer is equal to this proxy pointer. false otherwise. | std::function< T*() > mage::ProxyPtr< T >::m_getter |
The getter of this proxy pointer.