engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
SharedPointerInternals::FSharedReferencer< Mode > 模板类 参考

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.
 

详细描述

template<ESPMode Mode>
class SharedPointerInternals::FSharedReferencer< Mode >

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

构造及析构函数说明

◆ FSharedReferencer() [1/2]

template<ESPMode Mode>
SharedPointerInternals::FSharedReferencer< Mode >::FSharedReferencer ( FWeakReferencer< Mode > const &  InWeakReference)
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.

◆ FSharedReferencer() [2/2]

template<ESPMode Mode>
SharedPointerInternals::FSharedReferencer< Mode >::FSharedReferencer ( FWeakReferencer< Mode > &&  InWeakReference)
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.

成员函数说明

◆ GetSharedReferenceCount()

template<ESPMode Mode>
FORCEINLINE const int32 SharedPointerInternals::FSharedReferencer< Mode >::GetSharedReferenceCount ( ) const
inline

Returns the number of shared references to this object (including this reference.)

返回
Number of shared references to the object (including this reference.)

◆ IsUnique()

template<ESPMode Mode>
FORCEINLINE const bool SharedPointerInternals::FSharedReferencer< Mode >::IsUnique ( ) const
inline

Returns true if this is the only shared reference to this object.

Note that there may be outstanding weak references left.

返回
True if there is only one shared reference to the object, and this is it!

◆ IsValid()

template<ESPMode Mode>
FORCEINLINE const bool SharedPointerInternals::FSharedReferencer< Mode >::IsValid ( ) const
inline

Tests to see whether or not this shared counter contains a valid reference

返回
True if reference is valid

◆ operator=() [1/2]

template<ESPMode Mode>
FSharedReferencer & SharedPointerInternals::FSharedReferencer< Mode >::operator= ( FSharedReferencer< Mode > &&  InSharedReference)
inline

Move assignment operator adds no references to the assigned object.

If this counter was previously referencing an object, that reference will be released.

◆ operator=() [2/2]

template<ESPMode Mode>
FSharedReferencer & SharedPointerInternals::FSharedReferencer< Mode >::operator= ( FSharedReferencer< Mode > const &  InSharedReference)
inline

Assignment operator adds a reference to the assigned object.

If this counter was previously referencing an object, that reference will be released.


该类的文档由以下文件生成: