engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 友元 | 所有成员列表
TMeshElementArrayBase< ElementType > 模板类 参考

This defines the container used to hold mesh elements. 更多...

#include <MeshElementArray.h>

+ 类 TMeshElementArrayBase< ElementType > 继承关系图:

Public 成员函数

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
 

Protected 属性

TSparseArray< ElementType > Container
 The actual container, represented by a sparse array
 

友元

FArchive & operator<< (FArchive &Ar, TMeshElementArrayBase &Array)
 Custom serialization for TMeshElementArrayBase. 更多...
 

详细描述

template<typename ElementType>
class TMeshElementArrayBase< ElementType >

This defines the container used to hold mesh elements.

Its important properties are that it acts as an associative container (i.e. an element can be obtained from a given index), and that insert/delete/find are cheap. The current implementation is as a TSparseArray, but we abstract it so that this can be changed later if required, e.g. a TMap might be desirable if we wished to maintain unique indices for the lifetime of the container.

友元及相关函数文档

◆ operator<<

template<typename ElementType >
FArchive & operator<< ( FArchive &  Ar,
TMeshElementArrayBase< ElementType > &  Array 
)
friend

Custom serialization for TMeshElementArrayBase.

The default TSparseArray serialization also compacts all the elements, removing the gaps and changing the indices. The indices are significant in editable meshes, hence this is a custom serializer which preserves them.


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