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

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
 

详细描述

template<typename ElementIDType, typename ViewType>
class TMeshAttributesView< ElementIDType, ViewType >

This is a derived version with typesafe element accessors, which is returned by TAttributesSet<>.

成员函数说明

◆ Get() [1/2]

template<typename ElementIDType , typename ViewType >
FORCEINLINE ViewType TMeshAttributesView< ElementIDType, ViewType >::Get ( const ElementIDType  ElementID) const
inline

Get the element with the given ID from index 0.

This version has a typesafe element ID accessor.

◆ Get() [2/2]

template<typename ElementIDType , typename ViewType >
FORCEINLINE ViewType TMeshAttributesView< ElementIDType, ViewType >::Get ( const ElementIDType  ElementID,
const int32  Index 
) const
inline

Get the element with the given ID and index.

This version has a typesafe element ID accessor.

◆ Set() [1/2]

template<typename ElementIDType , typename ViewType >
FORCEINLINE void TMeshAttributesView< ElementIDType, ViewType >::Set ( const ElementIDType  ElementID,
const int32  Index,
const ViewType &  Value 
) const
inline

Set the element with the given ID and index to the provided value.

This version has a typesafe element ID accessor.

◆ Set() [2/2]

template<typename ElementIDType , typename ViewType >
FORCEINLINE void TMeshAttributesView< ElementIDType, ViewType >::Set ( const ElementIDType  ElementID,
const ViewType &  Value 
) const
inline

Set the element with the given ID and index 0 to the provided value.

This version has a typesafe element ID accessor.


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