|
Lagrange
|
Derived attribute class that stores the actual information. More...
#include <lagrange/IndexedAttribute.h>
Inherits AttributeBase.
Public Types | |
| using | ValueType = ValueType_ |
| Attribute value type. | |
| using | Index = Index_ |
| Attribute index type. | |
Public Member Functions | |
Attribute construction | |
| IndexedAttribute (AttributeUsage usage, size_t num_channels) | |
| Constructs a new instance. More... | |
| ~IndexedAttribute () override | |
| Destroys the object. | |
| IndexedAttribute (IndexedAttribute &&other) noexcept | |
| Move constructor. More... | |
| IndexedAttribute & | operator= (IndexedAttribute &&other) noexcept |
| Assignment move operator. More... | |
| IndexedAttribute (const IndexedAttribute &other) | |
| Copy constructor. More... | |
| IndexedAttribute & | operator= (const IndexedAttribute &other) |
| Assignment copy operator. More... | |
| AttributeValueType | get_value_type () const override |
| Gets the attribute value type. More... | |
Attribute access | |
| Attribute< ValueType > & | values () |
| Access attribute values. More... | |
| const Attribute< ValueType > & | values () const |
| Access attribute values. More... | |
| Attribute< Index > & | indices () |
| Access attribute indices. More... | |
| const Attribute< Index > & | indices () const |
| Access attribute indices. More... | |
Public Member Functions inherited from AttributeBase | |
| AttributeBase (AttributeElement element, AttributeUsage usage, size_t num_channels) | |
| Constructs a new instance. More... | |
| virtual | ~AttributeBase () |
| Destroys the object. | |
| AttributeBase (AttributeBase &&other)=default | |
| Move constructor. More... | |
| AttributeBase & | operator= (AttributeBase &&other)=default |
| Assignment move operator. More... | |
| AttributeBase (const AttributeBase &other)=default | |
| Copy constructor. More... | |
| AttributeBase & | operator= (const AttributeBase &other)=default |
| Assignment copy operator. More... | |
| virtual AttributeValueType | get_value_type () const =0 |
| Gets the attribute value type. More... | |
| AttributeElement | get_element_type () const |
| Gets the attribute element type. More... | |
| AttributeUsage | get_usage () const |
| Gets the attribute usage tag. More... | |
| size_t | get_num_channels () const |
| Gets the number of channels for the attribute. More... | |
| void | unsafe_set_usage (AttributeUsage usage) |
| Sets the attribute usage tag. More... | |
| void | unsafe_set_element_type (AttributeElement element) |
| Sets the attribute element type. More... | |
Static Public Attributes | |
| static constexpr bool | IsIndexed = true |
| Whether this attribute type is indexed. | |
Protected Attributes | |
| Attribute< ValueType > | m_values |
| Attribute< Index > | m_indices |
Protected Attributes inherited from AttributeBase | |
| AttributeElement | m_element |
| Element type (vertex, facet, indexed, etc.). | |
| AttributeUsage | m_usage |
| Attribute usage tag. | |
| size_t | m_num_channels = 0 |
| Number of channel for each value. | |
Derived attribute class that stores the actual information.
| IndexedAttribute | ( | AttributeUsage | usage, |
| size_t | num_channels | ||
| ) |
Constructs a new instance.
| [in] | usage | Usage tag. |
| [in] | num_channels | Number of channels. |
|
noexcept |
Move constructor.
| other | Instance to move from. |
|
explicit |
Copy constructor.
| [in] | other | Instance to copy from. |
|
noexcept |
Assignment move operator.
| other | Instance to move from. |
| IndexedAttribute & operator= | ( | const IndexedAttribute< ValueType_, Index_ > & | other | ) |
Assignment copy operator.
| [in] | other | Instance to copy from. |
|
inlineoverridevirtual |
Access attribute values.
Access attribute values.
Access attribute indices.
Access attribute indices.