Navigation
API > API/Runtime > API/Runtime/Core
| Name | TReferenceControllerBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h |
| Include Path | #include "Templates/SharedPointerInternals.h" |
Syntax
template<ESPMode Mode>
class TReferenceControllerBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Templates/SharedPointerInternals.h | |||
TReferenceControllerBase
(
const TReferenceControllerBase& |
Non-copyable. | Templates/SharedPointerInternals.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TReferenceControllerBase() |
Templates/SharedPointerInternals.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| RefCountType | std::conditional_t< Mode==ESPMode::ThreadSafe, std::atomic< int32 >, int32 > | Templates/SharedPointerInternals.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SharedReferenceCount | RefCountType | Number of shared references to this object. | Templates/SharedPointerInternals.h | |
| WeakReferenceCount | RefCountType | Number of weak references to this object. | Templates/SharedPointerInternals.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddSharedReference() |
Adds a shared reference to this counter | Templates/SharedPointerInternals.h | |
void AddWeakReference() |
Adds a weak reference to this counter | Templates/SharedPointerInternals.h | |
bool ConditionallyAddSharedReference() |
Adds a shared reference to this counter ONLY if there is already at least one reference | Templates/SharedPointerInternals.h | |
void DestroyObject() |
Destroys the object associated with this reference counter. | Templates/SharedPointerInternals.h | |
int32 GetSharedReferenceCount() |
Returns the shared reference count | Templates/SharedPointerInternals.h | |
bool IsUnique() |
Checks if there is exactly one reference left to the object. | Templates/SharedPointerInternals.h | |
void ReleaseSharedReference() |
Releases a shared reference to this counter | Templates/SharedPointerInternals.h | |
void ReleaseWeakReference() |
Releases a weak reference to this counter | Templates/SharedPointerInternals.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TReferenceControllerBase & operator=
(
const TReferenceControllerBase& |
Templates/SharedPointerInternals.h |