TRefCountPtr

A smart pointer to an object which implements AddRef/Release.

Windows
MacOS
Linux

Inheritance Hierarchy

TRefCountPtr

TUniformBufferRef

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/RefCounting.h

Include

#include "Templates/RefCounting.h"

Syntax

template<typename ReferencedType>
class TRefCountPtr

Remarks

A smart pointer to an object which implements AddRef/Release.

Constructors

Name Description

Public function

TRefCountPtr()

Public function

TRefCountPtr

(
    const TRefCountPtr& Copy
)

Public function

TRefCountPtr

(
    TRefCountPtr&& Copy
)

Public function

TRefCountPtr

(
    ReferencedType* InReference,
    bool bAddRef
)

Destructors

Name Description

Public function

~TRefCountPtr()

Functions

Name Description

Public function

ReferencedTy...

 

GetInitReference()

Public function

uint32

 

GetRefCount()

Public function Const

ReferencedTy...

 

GetReference()

Public function Const

bool

 

IsValid()

Public function

void

 

SafeRelease()

Public function

void

 

Swap

(
    TRefCountPtr& InPtr
)

Operators

Name Description

Public function Const

 

operator ReferenceType()

Public function

TRefCountPtr...

 

operator=

(
    ReferencedType* InReference
)

Public function

TRefCountPtr...

 

operator=

(
    const TRefCountPtr& InPtr
)

Public function

TRefCountPtr...

 

operator=

(
    TRefCountPtr&& InPtr
)

Public function Const

ReferencedTy...

 

operator->()

Typedefs

Name

Description

ReferenceType

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback