engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | 友元 | 所有成员列表
TMeshElementArray< ElementType, ElementIDType > 模板类 参考final

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

#include <MeshElementArray.h>

+ 类 TMeshElementArray< ElementType, ElementIDType > 继承关系图:

类

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

Public 成员函数

FORCEINLINE ElementIDType Add ()
 Add a new element at the next available index, and return the new ID
 
FORCEINLINE ElementIDType Add (ElementType &&Element)
 Add the provided element at the next available index, and return the ID
 
FORCEINLINE ElementIDType Add (typename TTypeTraits< ElementType >::ConstInitType Element)
 Add the provided element at the next available index, and return the new ID
 
FORCEINLINE int32 GetArraySize () const
 Returns the index after the last valid element
 
TElementIDs FORCEINLINE GetElementIDs () const
 Return iterable proxy object from container
 
FORCEINLINE ElementIDType GetFirstValidID () const
 Returns the first valid ID
 
FORCEINLINE ElementType & Insert (const ElementIDType ID)
 Inserts a new element with the given ID
 
FORCEINLINE ElementType & Insert (const ElementIDType ID, ElementType &&Element)
 Inserts the provided element with the given ID
 
FORCEINLINE ElementType & Insert (const ElementIDType ID, typename TTypeTraits< ElementType >::ConstInitType Element)
 Inserts the provided element with the given ID
 
FORCEINLINE bool IsValid (const ElementIDType ID) const
 Returns whether the given ID is valid or not
 
FORCEINLINE int32 Num () const
 Returns the number of elements in the container
 
FORCEINLINE ElementType & operator[] (const ElementIDType ID)
 Returns the element with the given ID
 
FORCEINLINE void Remove (const ElementIDType ID)
 Removes the element with the given ID
 
FORCEINLINE void Reserve (const int32 Elements)
 Reserves space for the specified total number of elements
 
FORCEINLINE void Reset (const int32 Elements=0)
 Resets the container, optionally reserving space for elements to be added
 
- Public 成员函数 继承自 TMeshElementArrayBase< ElementType >
void Compact (TSparseArray< int32 > &OutIndexRemap)
 Compacts elements and returns a remapping table
 
void Remap (const TSparseArray< int32 > &IndexRemap)
 Remaps elements according to the passed remapping table
 

友元

FORCEINLINE friend FArchive & operator<< (FArchive &Ar, TMeshElementArray &Array)
 Serializer
 

额外继承的成员函数

- Protected 属性 继承自 TMeshElementArrayBase< ElementType >
TSparseArray< ElementType > Container
 The actual container, represented by a sparse array
 

详细描述

template<typename ElementType, typename ElementIDType>
class TMeshElementArray< ElementType, ElementIDType >

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

This derived class imposes this type safety.


该类的文档由以下文件生成: