Wildmeshing Toolkit
wmtk::attribute::internal Namespace Reference

Classes

class  AttributeTransactionStack
 
class  AttributeCacheData
 
class  AttributeFlatCache
 
class  CheckpointScope
 
class  CompoundAccessor
 
struct  is_typed_attribute_handle
 
struct  is_typed_attribute_handle< TypedAttributeHandle< T > >
 

Typedefs

template<typename T , int R = Eigen::Dynamic>
using VectorResult = Eigen::Matrix< T, R, 1, 0,(R==Eigen::Dynamic ? MAX_ATTR_SIZE :R), 1 >
 Underlying vector type used by attribute is dynamically sized but bounded. More...
 
template<typename T , int R = Eigen::Dynamic>
using MapResult = typename VectorResult< T, R >::MapType
 the default map type used by attributes is a map of our vector type. More...
 
template<typename T , int R = Eigen::Dynamic>
using ConstMapResult = typename VectorResult< T, R >::ConstMapType
 

Functions

template<typename MeshType , typename... AttrType>
 CompoundAccessor (MeshType &m, const TypedAttributeHandle< AttrType > &... handle) -> CompoundAccessor< sizeof...(AttrType), MeshType, AttrType... >
 
template<typename FirstAcc , typename MeshType , int FirstDim, typename... AccTypes, int... Dims>
 CompoundAccessor (const Accessor< FirstAcc, MeshType, FirstDim > &, const Accessor< AccTypes, MeshType, Dims > &...) -> CompoundAccessor< sizeof...(AccTypes)+1, MeshType, FirstAcc, AccTypes... >
 

Typedef Documentation

◆ ConstMapResult

template<typename T , int R = Eigen::Dynamic>
using wmtk::attribute::internal::ConstMapResult = typedef typename VectorResult<T, R>::ConstMapType

Definition at line 23 of file MapTypes.hpp.

◆ MapResult

template<typename T , int R = Eigen::Dynamic>
using wmtk::attribute::internal::MapResult = typedef typename VectorResult<T, R>::MapType

the default map type used by attributes is a map of our vector type.

Though the max size doesn't affect the storage of the map, this affects the type returned by .eval()

Definition at line 21 of file MapTypes.hpp.

◆ VectorResult

template<typename T , int R = Eigen::Dynamic>
using wmtk::attribute::internal::VectorResult = typedef Eigen::Matrix<T, R, 1, 0, (R == Eigen::Dynamic ? MAX_ATTR_SIZE : R), 1>

Underlying vector type used by attribute is dynamically sized but bounded.

Definition at line 15 of file MapTypes.hpp.

Function Documentation

◆ CompoundAccessor() [1/2]

template<typename FirstAcc , typename MeshType , int FirstDim, typename... AccTypes, int... Dims>
wmtk::attribute::internal::CompoundAccessor ( const Accessor< FirstAcc, MeshType, FirstDim > &  ,
const Accessor< AccTypes, MeshType, Dims > &  ... 
) -> CompoundAccessor< sizeof...(AccTypes)+1, MeshType, FirstAcc, AccTypes... >

◆ CompoundAccessor() [2/2]

template<typename MeshType , typename... AttrType>
wmtk::attribute::internal::CompoundAccessor ( MeshType &  m,
const TypedAttributeHandle< AttrType > &...  handle 
) -> CompoundAccessor< sizeof...(AttrType), MeshType, AttrType... >