This is a derived version with typesafe element accessors, which is returned by TAttributesSet<>. 更多...
#include <MeshAttributeArray.h>
类 TMeshAttributesView< ElementIDType, ViewType > 继承关系图:Public 成员函数 | |
| FORCEINLINE ViewType | Get (const ElementIDType ElementID) const |
| Get the element with the given ID from index 0. 更多... | |
| FORCEINLINE ViewType | Get (const ElementIDType ElementID, const int32 Index) const |
| Get the element with the given ID and index. 更多... | |
| FORCEINLINE void | InsertIndex (const int32 Index) const |
| Inserts an attribute index | |
| FORCEINLINE void | RemoveIndex (const int32 Index) const |
| Removes an attribute index | |
| FORCEINLINE void | Set (const ElementIDType ElementID, const int32 Index, const ViewType &Value) const |
| Set the element with the given ID and index to the provided value. 更多... | |
| FORCEINLINE void | Set (const ElementIDType ElementID, const ViewType &Value) const |
| Set the element with the given ID and index 0 to the provided value. 更多... | |
| FORCEINLINE void | SetNumIndices (const int32 NumIndices) const |
| Sets number of indices this attribute has | |
| template<typename T = ViewType, typename TEnableIf< TIsSame< T, const T >::Value, int >::Type = 0> | |
| FORCEINLINE | TMeshAttributesView (TMeshAttributesView< ElementIDType, typename TRemoveCV< T >::Type > InView) |
| Implicitly construct a TMeshAttributesViewBase-to-const from a regular one | |
| FORCEINLINE | TMeshAttributesView (typename Super::ArrayType *InArrayPtr=nullptr) |
| Constructor taking a pointer to a FMeshAttributeArraySetBase | |
Public 成员函数 继承自 TMeshAttributesViewBase< ViewType > | |
| FORCEINLINE ViewType | GetDefaultValue () const |
| Return default value for this attribute type | |
| FORCEINLINE int32 | GetNumElements () const |
| Get the number of elements in this attribute array | |
| FORCEINLINE int32 | GetNumIndices () const |
| Return number of indices this attribute has | |
| FORCEINLINE bool | IsValid () const |
| Return whether the reference is valid or not | |
额外继承的成员函数 | |
Protected 成员函数 继承自 TMeshAttributesViewBase< ViewType > | |
| FORCEINLINE ViewType | GetByIndex (const int32 ElementIndex) const |
| Get the element with the given ID from index 0 | |
| FORCEINLINE ViewType | GetByIndex (const int32 ElementIndex, const int32 AttributeIndex) const |
| Get the element with the given element and attribute indices | |
| FORCEINLINE void | SetByIndex (const int32 ElementIndex, const int32 AttributeIndex, const ViewType &Value) const |
| Set the element with the given element and attribute indices to the provided value | |
| FORCEINLINE void | SetByIndex (const int32 ElementIndex, const ViewType &Value) const |
| Set the attribute index 0 element with the given index to the provided value | |
| FORCEINLINE | TMeshAttributesViewBase (ArrayType *InArrayPtr) |
| Constructor taking a pointer to a FMeshAttributeArraySetBase | |
This is a derived version with typesafe element accessors, which is returned by TAttributesSet<>.
|
inline |
Get the element with the given ID from index 0.
This version has a typesafe element ID accessor.
|
inline |
Get the element with the given ID and index.
This version has a typesafe element ID accessor.
|
inline |
Set the element with the given ID and index to the provided value.
This version has a typesafe element ID accessor.
|
inline |
Set the element with the given ID and index 0 to the provided value.
This version has a typesafe element ID accessor.