TMeshElementArray

We prefer to access elements of the container via strongly-typed IDs.

Windows
MacOS
Linux

Inheritance Hierarchy

TMeshElementArrayBase

TMeshElementArray

References

Module

MeshDescription

Header

/Engine/Source/Runtime/MeshDescription/Public/MeshElementArray.h

Include

#include "MeshElementArray.h"

Syntax

template<typename ElementType, typename ElementIDType>
class TMeshElementArray : public TMeshElementArrayBase< ElementType >

Remarks

We prefer to access elements of the container via strongly-typed IDs. This derived class imposes this type safety.

Functions

Name Description

Public function

ElementIDTyp...

 

Add()

Add a new element at the next available index, and return the new ID

Public function

ElementIDTyp...

 

Add

(
    typename TTypeTraits< ElementType >...
)

Add the provided element at the next available index, and return the new ID

Public function

ElementIDTyp...

 

Add

(
    ElementType&& Element
)

Add the provided element at the next available index, and return the ID

Public function Const

int32

 

GetArraySize()

Returns the index after the last valid element

Public function Const

TElementIDs

 

GetElementIDs()

Return iterable proxy object from container

Public function Const

ElementIDTyp...

 

GetFirstValidID()

Returns the first valid ID

Public function

ElementType ...

 

Insert

(
    const ElementIDType ID
)

Inserts a new element with the given ID

Public function

ElementType ...

 

Insert

(
    const ElementIDType ID,
    typename TTypeTraits< ElementType >...
)

Inserts the provided element with the given ID

Public function

ElementType ...

 

Insert

(
    const ElementIDType ID,
    ElementType&& Element
)

Inserts the provided element with the given ID

Public function Const

bool

 

IsValid

(
    const ElementIDType ID
)

Returns whether the given ID is valid or not

Public function Const

int32

 

Num()

Returns the number of elements in the container

Public function

void

 

Remove

(
    const ElementIDType ID
)

Removes the element with the given ID

Public function

void

 

Reserve

(
    const int32 Elements
)

Reserves space for the specified total number of elements

Public function

void

 

Reset

(
    const int32 Elements
)

Resets the container, optionally reserving space for elements to be added

Operators

Name Description

Public function

ElementType ...

 

operator[]

(
    const ElementIDType ID
)

Returns the element with the given ID

Public function Const

const Elemen...

 

operator[]

(
    const ElementIDType ID
)

Classes

Name

Description

Public class

TElementIDs

This is a special type of iterator which returns successive IDs of valid elements, rather than the elements themselves.

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