Navigation
API > API/Plugins > API/Plugins/RigLogicLib
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.
| Name | ScopedPtr |
| Type | class |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/pma/ScopedPtr.h |
| Include Path | #include "pma/ScopedPtr.h" |
Syntax
template<class T, class TDestroyer>
class ScopedPtr : private typename DefaultInstanceDestroyer::type
Inheritance Hierarchy
- typename DefaultInstanceDestroyer::type → ScopedPtr
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| pma/ScopedPtr.h | |||
ScopedPtr () |
pma/ScopedPtr.h | ||
ScopedPtr
(
pointer ptr_ |
pma/ScopedPtr.h | ||
ScopedPtr
(
std::nullptr_t |
pma/ScopedPtr.h | ||
| pma/ScopedPtr.h | |||
| pma/ScopedPtr.h | |||
ScopedPtr
(
pointer ptr_, |
pma/ScopedPtr.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~ScopedPtr() |
pma/ScopedPtr.h |
Structs
| Name | Remarks |
|---|---|
| inspect |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| destroyer_type | TDestroyer | pma/ScopedPtr.h | |
| element_type | typename inspect< T >::element_type | pma/ScopedPtr.h | |
| pointer | typename inspect< T >::pointer_type | pma/ScopedPtr.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ptr | pointer | pma/ScopedPtr.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
pointer get() |
pma/ScopedPtr.h | ||
pointer release() |
pma/ScopedPtr.h | ||
void reset
(
pointer rhs |
pma/ScopedPtr.h | ||
void swap
(
ScopedPtr& rhs |
pma/ScopedPtr.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
pma/ScopedPtr.h | ||
std::enable_if::type operator*() |
pma/ScopedPtr.h | ||
std::enable_if< IA::value, element_type & >::type operator[]
(
std::size_t index |
pma/ScopedPtr.h | ||
| pma/ScopedPtr.h | |||
| pma/ScopedPtr.h | |||
| pma/ScopedPtr.h | |||
| pma/ScopedPtr.h | |||
pointer operator->() |
pma/ScopedPtr.h |