UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMeshElementContainer< ElementIDType > Class Template Reference

#include <MeshElementContainer.h>

+ Inheritance diagram for TMeshElementContainer< ElementIDType >:

Classes

class  TElementIDs
 

Public Member Functions

ElementIDType Add ()
 
void Insert (const ElementIDType Index)
 
void Remove (const ElementIDType Index)
 
ElementIDType GetFirstValidID () const
 
bool IsValid (const ElementIDType Index) const
 
TAttributesSet< ElementIDType > & GetAttributes ()
 
const TAttributesSet< ElementIDType > & GetAttributes () const
 
TElementIDs GetElementIDs () const
 
- Public Member Functions inherited from FMeshElementContainer
 FMeshElementContainer ()=default
 
 FMeshElementContainer (const FMeshElementContainer &)=default
 
FMeshElementContaineroperator= (const FMeshElementContainer &)=default
 
 FMeshElementContainer (FMeshElementContainer &&Other)
 
FMeshElementContaineroperator= (FMeshElementContainer &&Other)
 
void Reset (const int32 Elements=0)
 
void Reserve (const int32 Elements)
 
int32 Add ()
 
void Insert (const int32 Index)
 
void Remove (const int32 Index)
 
int32 Num () const
 
int32 GetArraySize () const
 
int32 GetFirstValidID () const
 
bool IsValid (const int32 Index) const
 
FAttributesSetBaseGetAttributes ()
 
const FAttributesSetBaseGetAttributes () const
 
MESHDESCRIPTION_API void Compact (TSparseArray< int32 > &OutIndexRemap)
 
MESHDESCRIPTION_API void Remap (const TSparseArray< int32 > &IndexRemap)
 
FElementIDs GetElementIDs () const
 

Friends

FArchiveoperator<< (FArchive &Ar, TMeshElementContainer &Container)
 

Additional Inherited Members

- Protected Attributes inherited from FMeshElementContainer
TBitArray BitArray
 
FAttributesSetBase Attributes
 
int32 NumHoles = 0
 

Detailed Description

template<typename ElementIDType>
class TMeshElementContainer< ElementIDType >

Templated specialization for type-safety.

Member Function Documentation

◆ Add()

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

◆ GetAttributes() [1/2]

Accessor for attributes

◆ GetAttributes() [2/2]

template<typename ElementIDType >
const TAttributesSet< ElementIDType > & TMeshElementContainer< ElementIDType >::GetAttributes ( ) const
inline

◆ GetElementIDs()

template<typename ElementIDType >
TElementIDs TMeshElementContainer< ElementIDType >::GetElementIDs ( ) const
inline

Return iterable proxy object from container

◆ GetFirstValidID()

template<typename ElementIDType >
ElementIDType TMeshElementContainer< ElementIDType >::GetFirstValidID ( ) const
inline

Returns the first valid ID

◆ Insert()

template<typename ElementIDType >
void TMeshElementContainer< ElementIDType >::Insert ( const ElementIDType  Index)
inline

Inserts a new element with the given index

◆ IsValid()

template<typename ElementIDType >
bool TMeshElementContainer< ElementIDType >::IsValid ( const ElementIDType  Index) const
inline

Returns whether the given ID is valid or not

◆ Remove()

template<typename ElementIDType >
void TMeshElementContainer< ElementIDType >::Remove ( const ElementIDType  Index)
inline

Removes the element with the given ID

Friends And Related Symbol Documentation

◆ operator<<

template<typename ElementIDType >
FArchive & operator<< ( FArchive Ar,
TMeshElementContainer< ElementIDType > &  Container 
)
friend

Serializer


The documentation for this class was generated from the following file: