![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MeshElementArray.h>
Inheritance diagram for TMeshElementArray< ElementType, ElementIDType >:Classes | |
| class | TElementIDs |
Public Member Functions | |
| void | Reset (const int32 Elements=0) |
| void | Reserve (const int32 Elements) |
| ElementIDType | Add () |
| ElementIDType | Add (typename TTypeTraits< ElementType >::ConstInitType Element) |
| ElementIDType | Add (ElementType &&Element) |
| ElementType & | Insert (const ElementIDType ID) |
| ElementType & | Insert (const ElementIDType ID, typename TTypeTraits< ElementType >::ConstInitType Element) |
| ElementType & | Insert (const ElementIDType ID, ElementType &&Element) |
| void | Remove (const ElementIDType ID) |
| ElementType & | operator[] (const ElementIDType ID) |
| const ElementType & | operator[] (const ElementIDType ID) const |
| int32 | Num () const |
| int32 | GetArraySize () const |
| ElementIDType | GetFirstValidID () const |
| bool | IsValid (const ElementIDType ID) const |
| TElementIDs | GetElementIDs () const |
Public Member Functions inherited from TMeshElementArrayBase< ElementType > | |
| void | Compact (TSparseArray< int32 > &OutIndexRemap) |
| void | Remap (const TSparseArray< int32 > &IndexRemap) |
Friends | |
| FArchive & | operator<< (FArchive &Ar, TMeshElementArray &Array) |
Additional Inherited Members | |
Protected Attributes inherited from TMeshElementArrayBase< ElementType > | |
| TSparseArray< ElementType > | Container |
We prefer to access elements of the container via strongly-typed IDs. This derived class imposes this type safety.
|
inline |
Add a new element at the next available index, and return the new ID
|
inline |
Add the provided element at the next available index, and return the ID
|
inline |
Add the provided element at the next available index, and return the new ID
|
inline |
Returns the index after the last valid element
|
inline |
Return iterable proxy object from container
|
inline |
Returns the first valid ID
|
inline |
Inserts a new element with the given ID
|
inline |
Inserts the provided element with the given ID
|
inline |
Inserts the provided element with the given ID
|
inline |
Returns whether the given ID is valid or not
|
inline |
Returns the number of elements in the container
|
inline |
Returns the element with the given ID
|
inline |
|
inline |
Removes the element with the given ID
|
inline |
Reserves space for the specified total number of elements
|
inline |
Resets the container, optionally reserving space for elements to be added
|
friend |
Serializer