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 更多...
#include <SharedPointerInternals.h>
Public 成员函数 | |
| FORCEINLINE | FSharedReferencer () |
| Constructor for an empty shared referencer object | |
| FSharedReferencer (FReferenceControllerBase *InReferenceController) | |
| Constructor that counts a single reference to the specified object | |
| FORCEINLINE | FSharedReferencer (FSharedReferencer &&InSharedReference) |
| Move constructor creates no new references | |
| FORCEINLINE | FSharedReferencer (FSharedReferencer const &InSharedReference) |
| Copy constructor creates a new reference to the existing object | |
| FSharedReferencer (FWeakReferencer< Mode > &&InWeakReference) | |
| Creates a shared referencer object from a weak referencer object. 更多... | |
| FSharedReferencer (FWeakReferencer< Mode > const &InWeakReference) | |
| Creates a shared referencer object from a weak referencer object. 更多... | |
| FORCEINLINE const int32 | GetSharedReferenceCount () const |
| Returns the number of shared references to this object (including this reference.) 更多... | |
| FORCEINLINE const bool | IsUnique () const |
| Returns true if this is the only shared reference to this object. 更多... | |
| FORCEINLINE const bool | IsValid () const |
| Tests to see whether or not this shared counter contains a valid reference 更多... | |
| FSharedReferencer & | operator= (FSharedReferencer &&InSharedReference) |
| Move assignment operator adds no references to the assigned object. 更多... | |
| FSharedReferencer & | operator= (FSharedReferencer const &InSharedReference) |
| Assignment operator adds a reference to the assigned object. 更多... | |
| FORCEINLINE | ~FSharedReferencer () |
| Destructor. | |
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
|
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.
|
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.
|
inline |
Returns the number of shared references to this object (including this reference.)
|
inline |
Returns true if this is the only shared reference to this object.
Note that there may be outstanding weak references left.
|
inline |
Tests to see whether or not this shared counter contains a valid reference
|
inline |
Move assignment operator adds no references to the assigned object.
If this counter was previously referencing an object, that reference will be released.
|
inline |
Assignment operator adds a reference to the assigned object.
If this counter was previously referencing an object, that reference will be released.