| FEAT 3
    Finite Element Analysis Toolbox | 
Container for saving data related to mesh entities. More...
#include <attribute_set.hpp>
| Public Types | |
| typedef DataType_ | DataType | 
| Public Member Functions | |
| AttributeSet (AttributeSet &&other) | |
| move constructor  More... | |
| AttributeSet (Index num_values, int dimension=1) | |
| Constructor.  More... | |
| virtual | ~AttributeSet () | 
| virtual destructor  More... | |
| std::size_t | bytes () const | 
| AttributeSet | clone () const | 
| void | clone (const AttributeSet &other) | 
| int | get_dimension () const | 
| Returns the number attribute dimension.  More... | |
| Index | get_num_values () const | 
| Returns the number of attribute values.  More... | |
| DataType & | operator() (Index i, int j) | 
| Returns a reference to an attribute value entry.  More... | |
| const DataType & | operator() (Index i, int j) const | 
| Returns a const reference to an attribute value entry.  More... | |
| AttributeSet & | operator= (AttributeSet &&other) | 
| move-assignment operator  More... | |
| Static Public Member Functions | |
| static String | name () | 
| Returns the name of the class.  More... | |
| Protected Attributes | |
| int | _dimension | 
| Number of entries per attribute value.  More... | |
| Index | _num_values | 
| Number of attribute values.  More... | |
| std::vector< DataType > | _values | 
| Value array.  More... | |
Container for saving data related to mesh entities.
This class template implements a container for saving attributes of vertices and is used in MeshPart. The attributes do not need to be scalar.
| DataType_ | The datatype for an attribute value entry. | 
Definition at line 31 of file attribute_set.hpp.
| typedef DataType_ FEAT::Geometry::AttributeSet< DataType_ >::DataType | 
Type for the values in the attributes; This usually coincides with the CoordType of the mesh
Definition at line 36 of file attribute_set.hpp.
| 
 | inlineexplicit | 
Constructor.
| [in] | num_values | The number of values to be allocated. | 
| [in] | dimension | The dimension of the attribute. Must be > 0. | 
Definition at line 56 of file attribute_set.hpp.
References FEAT::Geometry::AttributeSet< DataType_ >::_values, and XASSERT.
| 
 | inline | 
move constructor
Definition at line 68 of file attribute_set.hpp.
| 
 | inlinevirtual | 
virtual destructor
Definition at line 90 of file attribute_set.hpp.
| 
 | inline | 
Definition at line 109 of file attribute_set.hpp.
References FEAT::Geometry::AttributeSet< DataType_ >::_dimension, and FEAT::Geometry::AttributeSet< DataType_ >::_values.
| 
 | inline | 
Definition at line 101 of file attribute_set.hpp.
| 
 | inline | 
Definition at line 94 of file attribute_set.hpp.
| 
 | inline | 
Returns the number attribute dimension.
Definition at line 119 of file attribute_set.hpp.
References FEAT::Geometry::AttributeSet< DataType_ >::_dimension.
Referenced by FEAT::Geometry::MeshFileWriter::_write_attribute(), and FEAT::Geometry::MeshExtruder< ConformalMesh< Shape::Hypercube< 2 >, 2, Coord_ > >::extrude_attribute().
| 
 | inline | 
Returns the number of attribute values.
Definition at line 125 of file attribute_set.hpp.
References FEAT::Geometry::AttributeSet< DataType_ >::_num_values.
Referenced by FEAT::Geometry::MeshFileWriter::_write_attribute(), and FEAT::Geometry::MeshExtruder< ConformalMesh< Shape::Hypercube< 2 >, 2, Coord_ > >::extrude_attribute().
| 
 | inlinestatic | 
Returns the name of the class.
Definition at line 184 of file attribute_set.hpp.
| 
 | inline | 
Returns a reference to an attribute value entry.
| [in] | i | The index of the attribute value to be returned. | 
| [in] | j | The index of the attribute value component to be returned. | 
Definition at line 142 of file attribute_set.hpp.
References FEAT::Geometry::AttributeSet< DataType_ >::_dimension, FEAT::Geometry::AttributeSet< DataType_ >::_num_values, FEAT::Geometry::AttributeSet< DataType_ >::_values, and ASSERT.
| 
 | inline | 
Returns a const reference to an attribute value entry.
| [in] | i | The index of the attribute value to be returned. | 
| [in] | j | The index of the attribute value component to be returned. | 
Definition at line 161 of file attribute_set.hpp.
References FEAT::Geometry::AttributeSet< DataType_ >::_dimension, FEAT::Geometry::AttributeSet< DataType_ >::_num_values, FEAT::Geometry::AttributeSet< DataType_ >::_values, and ASSERT.
| 
 | inline | 
move-assignment operator
Definition at line 76 of file attribute_set.hpp.
References FEAT::Geometry::AttributeSet< DataType_ >::_dimension, FEAT::Geometry::AttributeSet< DataType_ >::_num_values, FEAT::Geometry::AttributeSet< DataType_ >::_values, and FEAT::Geometry::other.
| 
 | protected | 
Number of entries per attribute value.
Definition at line 42 of file attribute_set.hpp.
Referenced by FEAT::Geometry::AttributeSet< DataType_ >::bytes(), FEAT::Geometry::AttributeSet< DataType_ >::get_dimension(), FEAT::Geometry::AttributeSet< DataType_ >::operator()(), and FEAT::Geometry::AttributeSet< DataType_ >::operator=().
| 
 | protected | 
Number of attribute values.
Definition at line 40 of file attribute_set.hpp.
Referenced by FEAT::Geometry::AttributeSet< DataType_ >::get_num_values(), FEAT::Geometry::AttributeSet< DataType_ >::operator()(), and FEAT::Geometry::AttributeSet< DataType_ >::operator=().
| 
 | protected | 
Value array.
Definition at line 44 of file attribute_set.hpp.
Referenced by FEAT::Geometry::AttributeSet< DataType_ >::AttributeSet(), FEAT::Geometry::AttributeSet< DataType_ >::bytes(), FEAT::Geometry::AttributeSet< DataType_ >::operator()(), and FEAT::Geometry::AttributeSet< DataType_ >::operator=().