23template <
typename MeshType>
40 typename MeshType =
Mesh,
42 int Dim = Eigen::Dynamic>
62 template <
int D = Dim>
65 template <
int D = Dim>
72 template <
typename OMType,
typename OAT,
int D>
98 template <
int D = Dim, typename ArgType =
wmtk::
Tuple>
106 template <
int D = Dim, typename ArgType =
wmtk::
Tuple>
117 template <typename ArgType>
127 template <typename ArgType>
138 const MeshType&
mesh() const;
161 int64_t
index(const simplex::Simplex& t) const;
165 int64_t
index(const simplex::IdSimplex& t) const;
167 int64_t
index(const int64_t t) const;
185#include "Accessor.hxx"
The Tuple is the basic navigation tool in our mesh data structure.
An Accessor that uses tuples for accessing attributes instead of indices.
friend class wmtk::tests_3d::DEBUG_TetMesh
int64_t transaction_depth() const
AttributeType_ AttributeType
typename AttributeType::template MapResult< D > MapResult
typename AttributeType::template ConstMapResult< D > ConstMapResult
const TypedAttributeHandle< T > & typed_handle() const
MapResult< std::max(D, Dim)> vector_attribute(const ArgType &t)
Access function for a vector attribute.
int64_t index(const Tuple &t) const
Retrieve the global ID of the given simplex.
const Scalar & const_scalar_attribute(const ArgType &t) const
Constant access function for a scalar attribute.
MeshAttributeHandle handle() const
friend class wmtk::tests::DEBUG_EdgeMesh
AttributeType & m_attribute
const T & const_topological_scalar_attribute(const Tuple &t, PrimitiveType pt) const
friend class wmtk::tests::DEBUG_PointMesh
auto default_value() const -> const Scalar &
auto reserved_size() const -> int64_t
AttributeType & attribute()
ConstMapResult< std::max(D, Dim)> const_vector_attribute(const ArgType &t) const
Constant access function for a vector attribute.
Scalar & scalar_attribute(const ArgType &t)
Access function for a scalar attribute.
TypedAttributeHandle< T > m_handle
auto dimension() const -> int64_t
PrimitiveType primitive_type() const
friend class wmtk::tests::DEBUG_TriMesh
Handle that represents attributes for some mesh.