Navigation
API > API/Runtime > API/Runtime/Core
A smart pointer to an object which implements AddRef/Release.
| Name | TRefCountPtr |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/RefCounting.h |
| Include Path | #include "Templates/RefCounting.h" |
Syntax
template<typename ReferencedType>
class TRefCountPtr
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TRefCountPtr
(
TRefCountPtr< MoveReferencedType >&& Move |
Templates/RefCounting.h | ||
TRefCountPtr () |
Templates/RefCounting.h | ||
TRefCountPtr
(
const TRefCountPtr& Copy |
Templates/RefCounting.h | ||
TRefCountPtr
(
const TRefCountPtr< CopyReferencedType >& Copy |
Templates/RefCounting.h | ||
TRefCountPtr
(
TRefCountPtr&& Move |
Templates/RefCounting.h | ||
TRefCountPtr
(
ReferencedType* InReference, |
Templates/RefCounting.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TRefCountPtr() |
Templates/RefCounting.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ReferenceType | ReferencedType * | Templates/RefCounting.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Reference | ReferencedType * | Templates/RefCounting.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ReferencedType ** GetInitReference() |
Templates/RefCounting.h | ||
uint32 GetRefCount() |
Templates/RefCounting.h | ||
ReferencedType * GetReference() |
Templates/RefCounting.h | ||
bool IsValid() |
Templates/RefCounting.h | ||
void SafeRelease() |
Templates/RefCounting.h | ||
void Serialize
(
FArchive& Ar |
Templates/RefCounting.h | ||
void Swap
(
TRefCountPtr& InPtr |
Templates/RefCounting.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator ReferenceType() |
Templates/RefCounting.h | ||
TRefCountPtr & operator=
(
TRefCountPtr< MoveReferencedType >&& InPtr |
Templates/RefCounting.h | ||
TRefCountPtr & operator=
(
TRefCountPtr&& InPtr |
Templates/RefCounting.h | ||
TRefCountPtr & operator=
(
const TRefCountPtr< CopyReferencedType >& InPtr |
Templates/RefCounting.h | ||
TRefCountPtr & operator=
(
ReferencedType* InReference |
Templates/RefCounting.h | ||
TRefCountPtr & operator=
(
const TRefCountPtr& InPtr |
Templates/RefCounting.h | ||
bool operator==
(
const TRefCountPtr& B |
Templates/RefCounting.h | ||
bool operator==
(
ReferencedType* B |
Templates/RefCounting.h | ||
ReferencedType * operator->() |
Templates/RefCounting.h |