Ark Server API (ASE) - Wiki
|
#include <SharedPointerInternals.h>
Public Member Functions | |
FORCEINLINE | FSharedReferencer () |
FSharedReferencer (FReferenceControllerBase *InReferenceController) | |
FORCEINLINE | FSharedReferencer (FSharedReferencer const &InSharedReference) |
FORCEINLINE | FSharedReferencer (FSharedReferencer &&InSharedReference) |
FSharedReferencer (FWeakReferencer< Mode > const &InWeakReference) | |
FORCEINLINE | ~FSharedReferencer () |
FSharedReferencer & | operator= (FSharedReferencer const &InSharedReference) |
FSharedReferencer & | operator= (FSharedReferencer &&InSharedReference) |
FORCEINLINE const bool | IsValid () const |
FORCEINLINE const int32 | GetSharedReferenceCount () const |
FORCEINLINE const bool | IsUnique () const |
Private Types | |
typedef FReferenceControllerOps< Mode > | TOps |
Private Attributes | |
FReferenceControllerBase * | ReferenceController |
Friends | |
template<int OtherMode> | |
class | FWeakReferencer |
FSharedReferencer is a wrapper around a pointer to a reference controller that is used by either a TSharedRef or a TSharedPtr to keep track of a referenced object's lifetime
Definition at line 386 of file SharedPointerInternals.h.
|
private |
Definition at line 388 of file SharedPointerInternals.h.
|
inline |
Constructor for an empty shared referencer object
Definition at line 393 of file SharedPointerInternals.h.
|
inlineexplicit |
Constructor that counts a single reference to the specified object
Definition at line 398 of file SharedPointerInternals.h.
|
inline |
Copy constructor creates a new reference to the existing object
Definition at line 403 of file SharedPointerInternals.h.
|
inline |
Move constructor creates no new references
Definition at line 415 of file SharedPointerInternals.h.
|
inline |
Creates a shared referencer object from a weak referencer object. This will only result in a valid object reference if the object already has at least one other shared referencer.
Definition at line 423 of file SharedPointerInternals.h.
|
inline |
Destructor.
Definition at line 441 of file SharedPointerInternals.h.
|
inline |
Returns the number of shared references to this object (including this reference.)
Definition at line 516 of file SharedPointerInternals.h.
|
inline |
Returns true if this is the only shared reference to this object. Note that there may be outstanding weak references left.
Definition at line 527 of file SharedPointerInternals.h.
|
inline |
Tests to see whether or not this shared counter contains a valid reference
Definition at line 506 of file SharedPointerInternals.h.
|
inline |
Move assignment operator adds no references to the assigned object. If this counter was previously referencing an object, that reference will be released.
Definition at line 480 of file SharedPointerInternals.h.
|
inline |
Assignment operator adds a reference to the assigned object. If this counter was previously referencing an object, that reference will be released.
Definition at line 453 of file SharedPointerInternals.h.
Definition at line 535 of file SharedPointerInternals.h.
|
private |
Pointer to the reference controller for the object a shared reference/pointer is referencing
Definition at line 540 of file SharedPointerInternals.h.