14#include <lagrange/Attribute.h>
27template <
typename ValueType_,
typename Index_>
97 return m_values.get_value_type();
AttributeBase(AttributeElement element, AttributeUsage usage, size_t num_channels)
Constructs a new instance.
Definition Attribute.cpp:33
Derived attribute class that stores the actual information.
Definition Attribute.h:153
AttributeValueType get_value_type() const override
Gets the attribute value type.
Definition IndexedAttribute.h:95
IndexedAttribute(IndexedAttribute &&other) noexcept
Move constructor.
Attribute< ValueType > & values()
Access attribute values.
Definition IndexedAttribute.h:109
static constexpr bool IsIndexed
Whether this attribute type is indexed.
Definition IndexedAttribute.h:38
IndexedAttribute(const IndexedAttribute &other)
Copy constructor.
ValueType_ ValueType
Attribute value type.
Definition IndexedAttribute.h:32
IndexedAttribute & operator=(const IndexedAttribute &other)
Assignment copy operator.
Index_ Index
Attribute index type.
Definition IndexedAttribute.h:35
const Attribute< Index > & indices() const
Access attribute indices.
Definition IndexedAttribute.h:130
~IndexedAttribute() override
Destroys the object.
Attribute< Index > & indices()
Access attribute indices.
Definition IndexedAttribute.h:123
IndexedAttribute(AttributeUsage usage, size_t num_channels)
Constructs a new instance.
Definition IndexedAttribute.cpp:29
const Attribute< ValueType > & values() const
Access attribute values.
Definition IndexedAttribute.h:116
IndexedAttribute & operator=(IndexedAttribute &&other) noexcept
Assignment move operator.
AttributeUsage
Usage tag indicating how the attribute should behave under mesh transformations.
Definition AttributeFwd.h:54
AttributeValueType
Enum describing at runtime the value type of an attribute.
Definition AttributeValueType.h:25
Main namespace for Lagrange.