TTransArray

NOTE: Right now, you can't use a custom allocation policy with transactional arrays.

Windows
MacOS
Linux

Inheritance Hierarchy

TArray

TTransArray

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/TransArray.h

Include

#include "Containers/TransArray.h"

Syntax

template<typename T>
class TTransArray : public TArray< T >

Remarks

NOTE: Right now, you can't use a custom allocation policy with transactional arrays. If you need to do it, you will have to fix up FTransaction::FObjectRecord to use the correct TArray<Allocator>.

Variables

Name Description

Protected variable

UObject *

 

Owner

Constructors

Name Description

Public function

TTransArray

(
    UObject* InOwner
)

Constructors.

Public function

TTransArray

(
    TTransArray&&
)

Public function

TTransArray

(
    const TTransArray&
)

Public function

TTransArray

(
    UObject* InOwner,
    const Super& Other
)

Functions

Name Description

Public function

int32

 

Add

(
    const T& Item
)

Public function

int32

 

AddUninitialized

(
    int32 Count
)

Public function

int32

 

AddUnique

(
    const T& Item
)

Public function

int32

 

AddZeroed

(
    int32 n
)

Public function

void

 

AssignButKeepOwner

(
    Super&& Other
)

Functions dependent on Add, Remove.

Public function

void

 

AssignButKeepOwner

(
    const Super& Other
)

Functions dependent on Add, Remove.

Protected function Static

void

 

DefaultConstructItem

(
    void* TPtr
)

Protected function Static

void

 

DestructItem

(
    void* TPtr
)

Public function

void

 

Empty

(
    int32 Slack
)

Public function Const

UObject *

 

GetOwner()

Public function

void

 

InsertUninitialized

(
    int32 Index,
    int32 Count
)

Public function

void

 

ModifyAllItems()

Public function

void

 

ModifyItem

(
    int32 Index
)

Public function

int32

 

Remove

(
    const T& Item
)

Public function

void

 

RemoveAt

(
    int32 Index,
    int32 Count
)

Protected function Static

void

 

SerializeItem

(
    FArchive& Ar,
    void* TPtr
)

Public function

void

 

SetOwner

(
    UObject* NewOwner
)

Operators

Name Description

Public function

TTransArray &

 

operator=

(
    const TTransArray&
)

Public function

TTransArray &

 

operator=

(
    TTransArray&&
)

Typedefs

Name

Description

Super

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