Navigation
API > API/Runtime > API/Runtime/MeshDescription
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
| Type | Name | Description | |
|---|---|---|---|
| ElementIDType | Add () |
Add a new element at the next available index, and return the new ID | |
| ElementIDType | Add
(
typename TTypeTraits< ElementType >::ConstInitType Element |
Add the provided element at the next available index, and return the new ID | |
| ElementIDType | Add
(
ElementType&& Element |
Add the provided element at the next available index, and return the ID | |
| int32 | GetArraySize () |
Returns the index after the last valid element | |
| TElementIDs | Return iterable proxy object from container | ||
| ElementIDType | Returns the first valid ID | ||
| ElementType & | Insert
(
const ElementIDType ID |
Inserts a new element with the given ID | |
| ElementType & | Insert
(
const ElementIDType ID, |
Inserts the provided element with the given ID | |
| ElementType & | Insert
(
const ElementIDType ID, |
Inserts the provided element with the given ID | |
| bool | IsValid
(
const ElementIDType ID |
Returns whether the given ID is valid or not | |
| int32 | Num () |
Returns the number of elements in the container | |
| void | Remove
(
const ElementIDType ID |
Removes the element with the given ID | |
| void | Reserves space for the specified total number of elements | ||
| void | Resets the container, optionally reserving space for elements to be added |
Operators
| Type | Name | Description | |
|---|---|---|---|
| ElementType & | operator[]
(
const ElementIDType ID |
Returns the element with the given ID | |
| const ElementType & | operator[]
(
const ElementIDType ID |
Classes
| Type | Name | Description | |
|---|---|---|---|
| TElementIDs | This is a special type of iterator which returns successive IDs of valid elements, rather than the elements themselves. |