Wildmeshing Toolkit
wmtk::attribute::AccessorBase< _T, Dim > Class Template Reference

#include <AccessorBase.hpp>

Inheritance diagram for wmtk::attribute::AccessorBase< _T, Dim >:
[legend]
Collaboration diagram for wmtk::attribute::AccessorBase< _T, Dim >:
[legend]

Public Types

using T = _T
 
using MeshAttributesType = MeshAttributes< T >
 
using AttributeType = Attribute< T >
 
template<int D = Dim>
using MapResult = internal::MapResult< T, D >
 
template<int D = Dim>
using ConstMapResult = internal::ConstMapResult< T, D >
 

Public Member Functions

int64_t reserved_size () const
 
int64_t dimension () const
 
const Tdefault_value () const
 
void set_attribute (std::vector< T > value)
 
template<int D = Dim>
ConstMapResult< D > const_vector_attribute (const int64_t index) const
 
template<int D = Dim>
MapResult< D > vector_attribute (const int64_t index)
 
T const_scalar_attribute (const int64_t index) const
 
Tscalar_attribute (const int64_t index)
 
T const_scalar_attribute (const int64_t index, const int8_t offset) const
 
Tscalar_attribute (const int64_t index, const int8_t offset)
 
MeshAttributes< T > & attributes ()
 
const MeshAttributes< T > & attributes () const
 
Attribute< T > & attribute ()
 
const Attribute< T > & attribute () const
 
 ~AccessorBase ()
 
 AccessorBase (Mesh &m, const TypedAttributeHandle< T > &handle)
 
 AccessorBase (const Mesh &m, const TypedAttributeHandle< T > &handle)
 
MeshAttributeHandle handle () const
 
const TypedAttributeHandle< T > & typed_handle () const
 
PrimitiveType primitive_type () const
 
Meshmesh ()
 
const Meshmesh () const
 
template<int D>
auto const_vector_attribute (const int64_t index) const -> ConstMapResult< D >
 
template<int D>
auto vector_attribute (const int64_t index) -> MapResult< D >
 

Protected Member Functions

const AttributeManagerattribute_manager () const
 
AttributeManagerattribute_manager ()
 

Protected Attributes

TypedAttributeHandle< Tm_handle
 
Meshm_mesh
 
Attribute< T > & m_attribute
 

Friends

class AccessorCache< T >
 
template<typename U , typename MeshType , int D>
class Accessor
 

Detailed Description

template<typename _T, int Dim = Eigen::Dynamic>
class wmtk::attribute::AccessorBase< _T, Dim >

Definition at line 27 of file AccessorBase.hpp.

Member Typedef Documentation

◆ AttributeType

template<typename _T , int Dim = Eigen::Dynamic>
using wmtk::attribute::AccessorBase< _T, Dim >::AttributeType = Attribute<T>

Definition at line 35 of file AccessorBase.hpp.

◆ ConstMapResult

template<typename _T , int Dim = Eigen::Dynamic>
template<int D = Dim>
using wmtk::attribute::AccessorBase< _T, Dim >::ConstMapResult = internal::ConstMapResult<T, D>

Definition at line 40 of file AccessorBase.hpp.

◆ MapResult

template<typename _T , int Dim = Eigen::Dynamic>
template<int D = Dim>
using wmtk::attribute::AccessorBase< _T, Dim >::MapResult = internal::MapResult<T, D>

Definition at line 38 of file AccessorBase.hpp.

◆ MeshAttributesType

template<typename _T , int Dim = Eigen::Dynamic>
using wmtk::attribute::AccessorBase< _T, Dim >::MeshAttributesType = MeshAttributes<T>

Definition at line 32 of file AccessorBase.hpp.

◆ T

template<typename _T , int Dim = Eigen::Dynamic>
using wmtk::attribute::AccessorBase< _T, Dim >::T = _T

Definition at line 30 of file AccessorBase.hpp.

Constructor & Destructor Documentation

◆ ~AccessorBase()

template<typename T , int Dim>
wmtk::attribute::AccessorBase< T, Dim >::~AccessorBase ( )
inlinedefault

◆ AccessorBase() [1/2]

template<typename T , int Dim>
wmtk::attribute::AccessorBase< T, Dim >::AccessorBase ( Mesh m,
const TypedAttributeHandle< T > &  handle 
)
inline

Definition at line 11 of file AccessorBase.hxx.

◆ AccessorBase() [2/2]

template<typename T , int Dim>
wmtk::attribute::AccessorBase< T, Dim >::AccessorBase ( const Mesh m,
const TypedAttributeHandle< T > &  handle 
)

Definition at line 17 of file AccessorBase.hxx.

Member Function Documentation

◆ attribute() [1/2]

template<typename T , int Dim>
auto wmtk::attribute::AccessorBase< T, Dim >::attribute
inline

Definition at line 79 of file AccessorBase.hxx.

◆ attribute() [2/2]

template<typename T , int Dim>
auto wmtk::attribute::AccessorBase< T, Dim >::attribute
inline

Definition at line 84 of file AccessorBase.hxx.

◆ attribute_manager() [1/2]

template<typename T , int Dim>
AttributeManager & wmtk::attribute::AccessorBase< T, Dim >::attribute_manager
inlineprotected

Definition at line 40 of file AccessorBase.hxx.

◆ attribute_manager() [2/2]

template<typename T , int Dim>
const AttributeManager & wmtk::attribute::AccessorBase< T, Dim >::attribute_manager
inlineprotected

Definition at line 34 of file AccessorBase.hxx.

◆ attributes() [1/2]

template<typename T , int Dim>
auto wmtk::attribute::AccessorBase< T, Dim >::attributes
inline

Definition at line 69 of file AccessorBase.hxx.

◆ attributes() [2/2]

template<typename T , int Dim>
auto wmtk::attribute::AccessorBase< T, Dim >::attributes
inline

Definition at line 74 of file AccessorBase.hxx.

◆ const_scalar_attribute() [1/2]

template<typename T , int Dim>
T wmtk::attribute::AccessorBase< T, Dim >::const_scalar_attribute ( const int64_t  index) const
inline

Definition at line 125 of file AccessorBase.hxx.

◆ const_scalar_attribute() [2/2]

template<typename T , int Dim>
T wmtk::attribute::AccessorBase< T, Dim >::const_scalar_attribute ( const int64_t  index,
const int8_t  offset 
) const
inline

Definition at line 138 of file AccessorBase.hxx.

◆ const_vector_attribute() [1/2]

template<typename _T , int Dim = Eigen::Dynamic>
template<int D = Dim>
ConstMapResult<D> wmtk::attribute::AccessorBase< _T, Dim >::const_vector_attribute ( const int64_t  index) const

◆ const_vector_attribute() [2/2]

template<typename _T , int Dim = Eigen::Dynamic>
template<int D>
auto wmtk::attribute::AccessorBase< _T, Dim >::const_vector_attribute ( const int64_t  index) const -> ConstMapResult<D>
inline

Definition at line 107 of file AccessorBase.hxx.

◆ default_value()

template<typename T , int Dim>
const T & wmtk::attribute::AccessorBase< T, Dim >::default_value
inline

Definition at line 63 of file AccessorBase.hxx.

◆ dimension()

template<typename T , int Dim>
int64_t wmtk::attribute::AccessorBase< T, Dim >::dimension
inline

Definition at line 57 of file AccessorBase.hxx.

◆ handle()

template<typename T , int Dim>
MeshAttributeHandle wmtk::attribute::AccessorBase< T, Dim >::handle
inline

Definition at line 94 of file AccessorBase.hxx.

◆ mesh() [1/2]

template<typename T , int Dim>
Mesh & wmtk::attribute::AccessorBase< T, Dim >::mesh
inline

Definition at line 23 of file AccessorBase.hxx.

Referenced by wmtk::attribute::Accessor< T, MeshType, Dim >::mesh().

Here is the caller graph for this function:

◆ mesh() [2/2]

template<typename T , int Dim>
const Mesh & wmtk::attribute::AccessorBase< T, Dim >::mesh
inline

Definition at line 28 of file AccessorBase.hxx.

◆ primitive_type()

template<typename T , int Dim>
PrimitiveType wmtk::attribute::AccessorBase< T, Dim >::primitive_type
inline

Definition at line 100 of file AccessorBase.hxx.

◆ reserved_size()

template<typename T , int Dim>
int64_t wmtk::attribute::AccessorBase< T, Dim >::reserved_size
inline

Definition at line 51 of file AccessorBase.hxx.

◆ scalar_attribute() [1/2]

template<typename T , int Dim>
auto wmtk::attribute::AccessorBase< T, Dim >::scalar_attribute ( const int64_t  index)
inline

Definition at line 131 of file AccessorBase.hxx.

◆ scalar_attribute() [2/2]

template<typename T , int Dim>
auto wmtk::attribute::AccessorBase< T, Dim >::scalar_attribute ( const int64_t  index,
const int8_t  offset 
)
inline

Definition at line 145 of file AccessorBase.hxx.

◆ set_attribute()

template<typename T , int Dim>
void wmtk::attribute::AccessorBase< T, Dim >::set_attribute ( std::vector< T value)
inline

Definition at line 152 of file AccessorBase.hxx.

◆ typed_handle()

template<typename T , int Dim>
const TypedAttributeHandle< T > & wmtk::attribute::AccessorBase< T, Dim >::typed_handle
inline

Definition at line 89 of file AccessorBase.hxx.

◆ vector_attribute() [1/2]

template<typename _T , int Dim = Eigen::Dynamic>
template<int D = Dim>
MapResult<D> wmtk::attribute::AccessorBase< _T, Dim >::vector_attribute ( const int64_t  index)

◆ vector_attribute() [2/2]

template<typename _T , int Dim = Eigen::Dynamic>
template<int D>
auto wmtk::attribute::AccessorBase< _T, Dim >::vector_attribute ( const int64_t  index) -> MapResult<D>
inline

Definition at line 116 of file AccessorBase.hxx.

Friends And Related Function Documentation

◆ Accessor

template<typename _T , int Dim = Eigen::Dynamic>
template<typename U , typename MeshType , int D>
friend class Accessor
friend

Definition at line 34 of file AccessorBase.hpp.

◆ AccessorCache< T >

template<typename _T , int Dim = Eigen::Dynamic>
friend class AccessorCache< T >
friend

Definition at line 1 of file AccessorBase.hpp.

Member Data Documentation

◆ m_attribute

template<typename _T , int Dim = Eigen::Dynamic>
Attribute<T>& wmtk::attribute::AccessorBase< _T, Dim >::m_attribute
protected

Definition at line 85 of file AccessorBase.hpp.

◆ m_handle

template<typename _T , int Dim = Eigen::Dynamic>
TypedAttributeHandle<T> wmtk::attribute::AccessorBase< _T, Dim >::m_handle
protected

Definition at line 83 of file AccessorBase.hpp.

◆ m_mesh

template<typename _T , int Dim = Eigen::Dynamic>
Mesh& wmtk::attribute::AccessorBase< _T, Dim >::m_mesh
protected

Definition at line 84 of file AccessorBase.hpp.


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