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

This defines the container used to hold mesh element attributes of a particular name and index. 更多...

#include <MeshAttributeArray.h>

被 TMeshAttributeArray< AttributeType, ElementIDType > 继承.

Public 成员函数

FORCEINLINE const AttributeType * GetData () const
 Return base of data
 
FORCEINLINE void Initialize (const int32 ElementCount, const AttributeType &Default)
 Initializes the array to the given size with the default value
 
void Insert (const int32 Index, const AttributeType &Default)
 Expands the array if necessary so that the passed element index is valid. 更多...
 
FORCEINLINE int32 Num () const
 Return size of container
 
FORCEINLINE const AttributeType & operator[] (const int32 Index) const
 Element accessors
 
void Remap (const TSparseArray< int32 > &IndexRemap, const AttributeType &Default)
 Remaps elements according to the passed remapping table
 

Protected 属性

TArray< AttributeType > Container
 The actual container, represented by a regular array
 

友元

template<typename T >
TEnableIf<!TIsBulkSerializable< T >::Value, FArchive >::Type & operator<< (FArchive &Ar, TMeshAttributeArrayBase< T > &Array)
 Custom serialization for TMeshAttributeArrayBase.
 

详细描述

template<typename AttributeType>
class TMeshAttributeArrayBase< AttributeType >

This defines the container used to hold mesh element attributes of a particular name and index.

It is a simple TArray, so that all attributes are packed contiguously for each element ID.

Note that the container may grow arbitrarily as new elements are inserted, but it will never be shrunk as elements are removed. The only operations that will shrink the container are Initialize() and Remap().

成员函数说明

◆ Insert()

template<typename AttributeType >
void TMeshAttributeArrayBase< AttributeType >::Insert ( const int32  Index,
const AttributeType &  Default 
)

Expands the array if necessary so that the passed element index is valid.

Newly created elements will be assigned the default value.


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