14#include <lagrange/Attribute.h>
27template <
typename ValueType_,
typename Index_>
Base handle for attributes.
Definition: Attribute.h:41
AttributeValueType get_value_type() const override
Gets the attribute value type.
Derived attribute class that stores the actual information.
Definition: IndexedAttribute.h:29
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.
Definition: AABBIGL.h:30