Navigation
API > API/Plugins > API/Plugins/RigLogicLib > API/Plugins/RigLogicLib/pma
Inheritance Hierarchy
- TDestroyer
- ScopedPtr
References
| Module | RigLogicLib |
| Header | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/pma/ScopedPtr.h |
| Include | #include "pma/ScopedPtr.h" |
Syntax
template<class T, class TDestroyer>
class ScopedPtr : private TDestroyer
Remarks
As ScopedPtr inherits the specified destroyer type, stateless lifetime managers are zero-cost, but it's also possible to use stateful lifetime managers (such as lambdas with captures and what-not). For stateful lifetime managers, a dedicated constructor exists that receives the destroyer instance and initializes the inherited destroyer type with it.
Constructors
| Type | Name | Description | |
|---|---|---|---|
ScopedPtr () |
|||
ScopedPtr
(
std::nullptr_t |
|||
ScopedPtr
(
pointer ptr_, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~ScopedPtr () |
Functions
Operators
| Type | Name | Description | |
|---|---|---|---|
| std::enable_ifelement_type & >::type | operator* () |
||
| std::enable_if< IA::value, element_type & >::type | operator[]
(
std::size_t index |
||
| ScopedPtr & | |||
| ScopedPtr & | |||
| ScopedPtr & | |||
| ScopedPtr & | operator=
(
std::nullptr_t |
||
| pointer | operator-> () |
Typedefs
| Name | Description |
|---|---|
| destroyer_type | |
| element_type | |
| pointer |