TPreallocatedArrayProxy

Helper class that provides a basic interface for an inline and presized array within a contiguous memory block

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ParticleHelper.h

Include

#include "ParticleHelper.h"

Syntax

template<typename ElementType>
class TPreallocatedArrayProxy

Remarks

Helper class that provides a basic interface for an inline and presized array within a contiguous memory block

Constructors

Name Description

Public function

TPreallocatedArrayProxy()

Constructor, just zeros everything

Public function

TPreallocatedArrayProxy

(
    uint8* ArrayStart,
    int32 ArraySize
)

Constructor, just sets up the array pointer and size

Functions

Name Description

Public function Const

bool

 

Contains

(
    const ElementType& Item
)

Checks if the array contains an element with the given value.

Public function Const

int32

 

Find

(
    const ElementType& Item
)

Finds an element with the given value in the array.

Public function Const

int32

 

Num()

Operators

Name Description

Public function

ElementType ...

 

operator[]

(
    int32 Index
)

Accesses the identified element's value.

Public function Const

const Elemen...

 

operator[]

(
    int32 Index
)

Accesses the identified element's value.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss