Wildmeshing Toolkit
|
An accessor for cached attribute values. More...
#include <CachingAccessor.hpp>
Public Types | |
using | Scalar = T |
using | BaseType = AccessorBase< T, Dim > |
template<int D = Dim> | |
using | ConstMapResult = typename BaseType::template ConstMapResult< D > |
template<int D = Dim> | |
using | MapResult = typename BaseType::template MapResult< D > |
Public Types inherited from wmtk::attribute::AccessorBase< T, Eigen::Dynamic > | |
using | T = T |
using | MeshAttributesType = MeshAttributes< T > |
using | AttributeType = Attribute< T > |
using | MapResult = internal::MapResult< T, D > |
using | ConstMapResult = internal::ConstMapResult< T, D > |
Public Member Functions | |
CachingAccessor (Mesh &m, const TypedAttributeHandle< T > &handle) | |
CachingAccessor (const Mesh &m, const TypedAttributeHandle< T > &handle) | |
~CachingAccessor () | |
CachingAccessor (const CachingAccessor &)=delete | |
CachingAccessor & | operator= (const CachingAccessor &)=delete |
CachingAccessor (CachingAccessor &&)=default | |
CachingAccessor & | operator= (CachingAccessor &&)=default |
int64_t | stack_depth () const |
bool | has_stack () const |
template<int D = Dim> | |
ConstMapResult< D > | const_vector_attribute (const int64_t index) const |
T | const_scalar_attribute (const int64_t index) const |
T | const_scalar_attribute (const int64_t index, const int8_t offset) const |
template<int D = Dim> | |
MapResult< D > | vector_attribute (const int64_t index) |
T & | scalar_attribute (const int64_t index) |
T & | scalar_attribute (const int64_t index, const int8_t offset) |
ConstMapResult | vector_attribute (const int64_t index) const |
T | scalar_attribute (const int64_t index) const |
bool | writing_enabled () const |
template<int D> | |
auto | vector_attribute (const int64_t index) -> MapResult< D > |
template<int D> | |
auto | const_vector_attribute (const int64_t index) const -> ConstMapResult< D > |
Attribute< T > & | attribute () |
const Attribute< T > & | attribute () const |
Mesh & | mesh () |
const Mesh & | mesh () const |
Public Member Functions inherited from wmtk::attribute::AccessorBase< T, Eigen::Dynamic > | |
int64_t | reserved_size () const |
int64_t | dimension () const |
const T & | default_value () const |
void | set_attribute (std::vector< T > value) |
ConstMapResult< D > | const_vector_attribute (const int64_t index) const |
auto | const_vector_attribute (const int64_t index) const -> ConstMapResult< D > |
MapResult< D > | vector_attribute (const int64_t index) |
auto | vector_attribute (const int64_t index) -> MapResult< D > |
T | const_scalar_attribute (const int64_t index) const |
T | const_scalar_attribute (const int64_t index, const int8_t offset) const |
T & | scalar_attribute (const int64_t index) |
T & | scalar_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 |
Mesh & | mesh () |
const Mesh & | mesh () const |
Protected Member Functions | |
BaseType & | base_type () |
const BaseType & | base_type () const |
Protected Member Functions inherited from wmtk::attribute::AccessorBase< T, Eigen::Dynamic > | |
const AttributeManager & | attribute_manager () const |
AttributeManager & | attribute_manager () |
Private Attributes | |
internal::AttributeTransactionStack< T > & | m_cache_stack |
Friends | |
class | wmtk::Mesh |
class | wmtk::TetMesh |
class | wmtk::TriMesh |
Additional Inherited Members | |
Protected Attributes inherited from wmtk::attribute::AccessorBase< T, Eigen::Dynamic > | |
TypedAttributeHandle< T > | m_handle |
Mesh & | m_mesh |
Attribute< T > & | m_attribute |
An accessor for cached attribute values.
This accessor or any of its derivatives should be used for accessing attributes.
Definition at line 19 of file CachingAccessor.hpp.
using wmtk::attribute::CachingAccessor< T, Dim >::BaseType = AccessorBase<T, Dim> |
Definition at line 27 of file CachingAccessor.hpp.
using wmtk::attribute::CachingAccessor< T, Dim >::ConstMapResult = typename BaseType::template ConstMapResult<D> |
Definition at line 30 of file CachingAccessor.hpp.
using wmtk::attribute::CachingAccessor< T, Dim >::MapResult = typename BaseType::template MapResult<D> |
Definition at line 33 of file CachingAccessor.hpp.
using wmtk::attribute::CachingAccessor< T, Dim >::Scalar = T |
Definition at line 25 of file CachingAccessor.hpp.
|
inline |
Definition at line 11 of file CachingAccessor.hxx.
wmtk::attribute::CachingAccessor< T, Dim >::CachingAccessor | ( | const Mesh & | m, |
const TypedAttributeHandle< T > & | handle | ||
) |
Definition at line 18 of file CachingAccessor.hxx.
|
inlinedefault |
|
delete |
|
default |
|
inline |
Definition at line 66 of file AccessorBase.hxx.
|
inline |
Definition at line 67 of file AccessorBase.hxx.
|
inlineprotected |
Definition at line 81 of file CachingAccessor.hpp.
|
inlineprotected |
Definition at line 82 of file CachingAccessor.hpp.
|
inline |
Definition at line 69 of file CachingAccessor.hxx.
Referenced by wmtk::Mesh::get_all(), wmtk::Mesh::get_all_id_simplex(), wmtk::TetMesh::is_connectivity_valid(), wmtk::TriMesh::is_connectivity_valid(), wmtk::EdgeMesh::is_connectivity_valid(), and wmtk::EdgeMesh::vertex_tuple_from_id().
|
inline |
Definition at line 93 of file CachingAccessor.hxx.
ConstMapResult<D> wmtk::attribute::CachingAccessor< T, Dim >::const_vector_attribute | ( | const int64_t | index | ) | const |
Referenced by wmtk::TetMesh::is_connectivity_valid(), wmtk::TriMesh::is_connectivity_valid(), wmtk::EdgeMesh::is_connectivity_valid(), wmtk::EdgeMesh::switch_tuple(), wmtk::EdgeMesh::tuple_from_global_ids(), and wmtk::EdgeMesh::vertex_tuple_from_id().
|
inline |
Definition at line 61 of file CachingAccessor.hxx.
|
inline |
Definition at line 27 of file CachingAccessor.hxx.
|
inline |
Definition at line 78 of file AccessorBase.hxx.
|
inline |
Definition at line 79 of file AccessorBase.hxx.
|
default |
|
delete |
|
inline |
Definition at line 54 of file CachingAccessor.hxx.
Referenced by wmtk::Mesh::consolidate(), wmtk::EdgeMesh::initialize(), wmtk::TriMesh::initialize(), wmtk::TetMesh::initialize(), wmtk::PointMesh::initialize(), and wmtk::Mesh::request_simplex_indices().
|
inline |
Definition at line 80 of file CachingAccessor.hxx.
|
inline |
Definition at line 86 of file CachingAccessor.hxx.
|
inline |
Definition at line 39 of file CachingAccessor.hxx.
MapResult<D> wmtk::attribute::CachingAccessor< T, Dim >::vector_attribute | ( | const int64_t | index | ) |
Referenced by wmtk::EdgeMesh::initialize(), and wmtk::TriMesh::initialize().
|
inline |
Definition at line 46 of file CachingAccessor.hxx.
|
inline |
Definition at line 75 of file CachingAccessor.hxx.
|
inline |
Definition at line 33 of file CachingAccessor.hxx.
|
friend |
Definition at line 22 of file CachingAccessor.hpp.
|
friend |
Definition at line 23 of file CachingAccessor.hpp.
|
friend |
Definition at line 24 of file CachingAccessor.hpp.
|
private |
Definition at line 85 of file CachingAccessor.hpp.