| TMeshElementArrayBase
|
Module |
|
Header |
/Engine/Source/Runtime/MeshDescription/Public/MeshElementArray.h |
Include |
#include "MeshElementArray.h" |
template<typename ElementType, typename ElementIDType>
class TMeshElementArray : public TMeshElementArrayBase< ElementType >
We prefer to access elements of the container via strongly-typed IDs. This derived class imposes this type safety.
Name | Description | ||
---|---|---|---|
|
ElementIDTyp... |
Add() |
Add a new element at the next available index, and return the new ID |
|
ElementIDTyp... |
Add ( |
Add the provided element at the next available index, and return the new ID |
|
ElementIDTyp... |
Add ( |
Add the provided element at the next available index, and return the ID |
|
GetArraySize() |
Returns the index after the last valid element |
|
|
GetElementIDs() |
Return iterable proxy object from container |
|
|
ElementIDTyp... |
GetFirstValidID() |
Returns the first valid ID |
|
ElementType ... |
Insert ( |
Inserts a new element with the given ID |
|
ElementType ... |
Insert ( |
Inserts the provided element with the given ID |
|
ElementType ... |
Insert ( |
Inserts the provided element with the given ID |
|
IsValid ( |
Returns whether the given ID is valid or not |
|
|
Num() |
Returns the number of elements in the container |
|
|
Remove ( |
Removes the element with the given ID |
|
|
Reserve ( |
Reserves space for the specified total number of elements |
|
|
Reset ( |
Resets the container, optionally reserving space for elements to be added |
Name | Description | ||
---|---|---|---|
|
ElementType ... |
operator[] ( |
Returns the element with the given ID |
|
const Elemen... |
operator[] ( |
Name |
Description |
|
---|---|---|
|
TElementIDs |
This is a special type of iterator which returns successive IDs of valid elements, rather than the elements themselves. |