Wildmeshing Toolkit
wmtk::attribute::TupleAccessor< MeshType, Dim > Class Template Reference

#include <TupleAccessor.hpp>

Collaboration diagram for wmtk::attribute::TupleAccessor< MeshType, Dim >:
[legend]

Public Types

template<int D = Dim>
using MapResult = internal::MapResult< Tuple, D >
 
template<int D = Dim>
using ConstMapResult = internal::ConstMapResult< Tuple, D >
 

Public Member Functions

 TupleAccessor (MeshType &m, const TypedAttributeHandle< int64_t > &handle)
 
 TupleAccessor (const MeshType &m, const TypedAttributeHandle< int64_t > &handle)
 
template<int Dim2>
 TupleAccessor (const Accessor< int64_t, MeshType, Dim2 > &accessor)
 
const Tupleconst_scalar_attribute (const Tuple &t) const
 
Tuplescalar_attribute (const Tuple &t)
 
template<int D = Dim>
ConstMapResult< D > const_vector_attribute (const Tuple &t) const
 
template<int D = Dim>
MapResult< D > vector_attribute (const Tuple &t)
 
Eigen::Index dimension () const
 
template<int D>
auto const_vector_attribute (const Tuple &t) const -> ConstMapResult< D >
 
template<int D>
auto vector_attribute (const Tuple &t) -> MapResult< D >
 

Private Attributes

Accessor< int64_t, MeshType > m_base_accessor
 
Eigen::Index m_dimension
 

Detailed Description

template<typename MeshType, int Dim = Eigen::Dynamic>
class wmtk::attribute::TupleAccessor< MeshType, Dim >

Definition at line 10 of file TupleAccessor.hpp.

Member Typedef Documentation

◆ ConstMapResult

template<typename MeshType , int Dim = Eigen::Dynamic>
template<int D = Dim>
using wmtk::attribute::TupleAccessor< MeshType, Dim >::ConstMapResult = internal::ConstMapResult<Tuple, D>

Definition at line 23 of file TupleAccessor.hpp.

◆ MapResult

template<typename MeshType , int Dim = Eigen::Dynamic>
template<int D = Dim>
using wmtk::attribute::TupleAccessor< MeshType, Dim >::MapResult = internal::MapResult<Tuple, D>

Definition at line 20 of file TupleAccessor.hpp.

Constructor & Destructor Documentation

◆ TupleAccessor() [1/3]

template<typename MeshType , int Dim>
wmtk::attribute::TupleAccessor< MeshType, Dim >::TupleAccessor ( MeshType &  m,
const TypedAttributeHandle< int64_t > &  handle 
)

Definition at line 10 of file TupleAccessor.hxx.

◆ TupleAccessor() [2/3]

template<typename MeshType , int Dim>
wmtk::attribute::TupleAccessor< MeshType, Dim >::TupleAccessor ( const MeshType &  m,
const TypedAttributeHandle< int64_t > &  handle 
)

Definition at line 15 of file TupleAccessor.hxx.

◆ TupleAccessor() [3/3]

template<typename MeshType , int Dim>
template<int Dim2>
wmtk::attribute::TupleAccessor< MeshType, Dim >::TupleAccessor ( const Accessor< int64_t, MeshType, Dim2 > &  accessor)

Definition at line 22 of file TupleAccessor.hxx.

Member Function Documentation

◆ const_scalar_attribute()

template<typename MeshType , int Dim>
auto wmtk::attribute::TupleAccessor< MeshType, Dim >::const_scalar_attribute ( const Tuple t) const

Definition at line 59 of file TupleAccessor.hxx.

◆ const_vector_attribute() [1/2]

template<typename MeshType , int Dim = Eigen::Dynamic>
template<int D = Dim>
ConstMapResult<D> wmtk::attribute::TupleAccessor< MeshType, Dim >::const_vector_attribute ( const Tuple t) const

Referenced by wmtk::multimesh::utils::read_tuple_map_attribute().

Here is the caller graph for this function:

◆ const_vector_attribute() [2/2]

template<typename MeshType , int Dim = Eigen::Dynamic>
template<int D>
auto wmtk::attribute::TupleAccessor< MeshType, Dim >::const_vector_attribute ( const Tuple t) const -> ConstMapResult<D>

Definition at line 30 of file TupleAccessor.hxx.

◆ dimension()

template<typename MeshType , int Dim = Eigen::Dynamic>
Eigen::Index wmtk::attribute::TupleAccessor< MeshType, Dim >::dimension ( ) const
inline

Definition at line 34 of file TupleAccessor.hpp.

References wmtk::attribute::TupleAccessor< MeshType, Dim >::m_dimension.

Referenced by wmtk::multimesh::utils::read_tuple_map_attribute(), and wmtk::multimesh::utils::write_tuple_map_attribute().

Here is the caller graph for this function:

◆ scalar_attribute()

template<typename MeshType , int Dim>
auto wmtk::attribute::TupleAccessor< MeshType, Dim >::scalar_attribute ( const Tuple t)

Definition at line 50 of file TupleAccessor.hxx.

◆ vector_attribute() [1/2]

template<typename MeshType , int Dim = Eigen::Dynamic>
template<int D = Dim>
MapResult<D> wmtk::attribute::TupleAccessor< MeshType, Dim >::vector_attribute ( const Tuple t)

Referenced by wmtk::multimesh::utils::write_tuple_map_attribute().

Here is the caller graph for this function:

◆ vector_attribute() [2/2]

template<typename MeshType , int Dim = Eigen::Dynamic>
template<int D>
auto wmtk::attribute::TupleAccessor< MeshType, Dim >::vector_attribute ( const Tuple t) -> MapResult<D>

Definition at line 41 of file TupleAccessor.hxx.

Member Data Documentation

◆ m_base_accessor

template<typename MeshType , int Dim = Eigen::Dynamic>
Accessor<int64_t, MeshType> wmtk::attribute::TupleAccessor< MeshType, Dim >::m_base_accessor
private

Definition at line 37 of file TupleAccessor.hpp.

◆ m_dimension

template<typename MeshType , int Dim = Eigen::Dynamic>
Eigen::Index wmtk::attribute::TupleAccessor< MeshType, Dim >::m_dimension
private

The documentation for this class was generated from the following files: