30    template<
typename DataType_>
 
   61        if(num_values > 
Index(0))
 
   63          _values.resize(std::size_t(num_values) * std::size_t(dimension));
 
   84        _values = std::forward<std::vector<DataType>>(
other._values);
 
   96        this->_num_values = 
other._num_values;
 
   97        this->_dimension = 
other._dimension;
 
   98        this->_values = 
other._values;
 
  101      AttributeSet clone()
 const 
  103        AttributeSet ats(this->_num_values, this->_dimension);
 
  186        return "AttributeSet<...>";
 
#define ASSERT(expr)
Debug-Assertion macro definition.
#define XASSERT(expr)
Assertion macro definition.
Container for saving data related to mesh entities.
Index get_num_values() const
Returns the number of attribute values.
std::size_t bytes() const
AttributeSet & operator=(AttributeSet &&other)
move-assignment operator
AttributeSet(Index num_values, int dimension=1)
Constructor.
std::vector< DataType > _values
Value array.
static String name()
Returns the name of the class.
int get_dimension() const
Returns the number attribute dimension.
Index _num_values
Number of attribute values.
int _dimension
Number of entries per attribute value.
const DataType & operator()(Index i, int j) const
Returns a const reference to an attribute value entry.
AttributeSet(AttributeSet &&other)
move constructor
DataType & operator()(Index i, int j)
Returns a reference to an attribute value entry.
virtual ~AttributeSet()
virtual destructor
String class implementation.
@ other
generic/other permutation strategy
std::uint64_t Index
Index data type.