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. | |
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().
| 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.