Ark Server API (ASA) - Wiki
|
#include <SharedPointerInternals.h>
Public Attributes | |
RefCountType | SharedReferenceCount {1} |
RefCountType | WeakReferenceCount {1} |
Private Types | |
using | RefCountType = std::conditional_t<Mode == ESPMode::ThreadSafe, std::atomic<int32>, int32> |
Definition at line 43 of file SharedPointerInternals.h.
|
private |
Definition at line 45 of file SharedPointerInternals.h.
|
explicitdefault |
|
inlinevirtual |
Definition at line 67 of file SharedPointerInternals.h.
|
delete |
|
inline |
Adds a shared reference to this counter
Definition at line 109 of file SharedPointerInternals.h.
|
inline |
Adds a weak reference to this counter
Definition at line 222 of file SharedPointerInternals.h.
|
inline |
Adds a shared reference to this counter ONLY if there is already at least one reference
Definition at line 135 of file SharedPointerInternals.h.
|
pure virtual |
Destroys the object associated with this reference counter.
Implemented in SharedPointerInternals::TReferenceControllerWithDeleter< ObjectType, DeleterType, Mode >, and SharedPointerInternals::TIntrusiveReferenceController< ObjectType, Mode >.
|
inline |
Returns the shared reference count
Definition at line 72 of file SharedPointerInternals.h.
|
inline |
Checks if there is exactly one reference left to the object.
Definition at line 91 of file SharedPointerInternals.h.
|
delete |
|
inline |
Releases a shared reference to this counter
Definition at line 185 of file SharedPointerInternals.h.
|
inline |
Releases a weak reference to this counter
Definition at line 243 of file SharedPointerInternals.h.
RefCountType SharedPointerInternals::TReferenceControllerBase< Mode >::SharedReferenceCount {1} |
Definition at line 55 of file SharedPointerInternals.h.
RefCountType SharedPointerInternals::TReferenceControllerBase< Mode >::WeakReferenceCount {1} |
Definition at line 62 of file SharedPointerInternals.h.