Wildmeshing Toolkit
wmtk::attribute Namespace Reference

Namespaces

 internal
 
 update_strategies
 
 utils
 

Classes

class  Accessor
 A CachingAccessor that uses tuples for accessing attributes instead of indices. More...
 
class  Attribute
 This class stores data of type T in a vector. More...
 
class  MeshAttributes
 Contains all attributes of type T for a single mesh. More...
 
class  AccessorCache
 
class  AccessorBase
 
class  PerThreadAttributeScopeStacks
 
class  TypedAttributeHandle
 Handle that represents attributes for some mesh. More...
 
class  AttributeHandle
 Internal handle representation used by MeshAttributes. More...
 
class  AttributeManager
 
class  CachingAccessor
 An accessor for cached attribute values. More...
 
class  AttributeScope
 
class  AttributeScopeHandle
 This handle is a wrapper for the MeshManager scope funtions. More...
 
struct  type_from_attribute_type_enum
 
struct  type_from_attribute_type_enum< AttributeType::Char >
 
struct  type_from_attribute_type_enum< AttributeType::Double >
 
struct  type_from_attribute_type_enum< AttributeType::Int64 >
 
struct  type_from_attribute_type_enum< AttributeType::Rational >
 
class  IndexFlagAccessor
 
class  FlagAccessor
 
class  MeshAttributeHandle
 
class  TupleAccessor
 

Typedefs

template<typename T >
using AttributeCache = internal::AttributeFlatCache< T >
 
template<AttributeType AT>
using type_from_attribute_type_enum_t = typename type_from_attribute_type_enum< AT >::type
 
template<typename T , int R = Eigen::Dynamic>
using MapResult = typename internal::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 internal::VectorResult< T, R >::ConstMapType
 

Enumerations

enum class  AttributeType { Char = 0 , Int64 = 1 , Double = 2 , Rational = 3 }
 

Functions

template<typename T >
constexpr auto attribute_type_enum_from_type () -> AttributeType
 
template<typename MeshType >
 TupleAccessor (MeshType &m, const TypedAttributeHandle< int64_t > &handle) -> TupleAccessor< MeshType >
 
template<typename MeshType >
 TupleAccessor (const MeshType &m, const TypedAttributeHandle< int64_t > &handle) -> TupleAccessor< MeshType >
 

Typedef Documentation

◆ AttributeCache

template<typename T >
using wmtk::attribute::AttributeCache = typedef internal::AttributeFlatCache<T>

Definition at line 7 of file AttributeCache.hpp.

◆ ConstMapResult

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

Definition at line 12 of file MapTypes.hpp.

◆ MapResult

template<typename T , int R = Eigen::Dynamic>
using wmtk::attribute::MapResult = typedef typename internal::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 10 of file MapTypes.hpp.

◆ type_from_attribute_type_enum_t

template<AttributeType AT>
using wmtk::attribute::type_from_attribute_type_enum_t = typedef typename type_from_attribute_type_enum<AT>::type

Definition at line 33 of file AttributeType.hpp.

Enumeration Type Documentation

◆ AttributeType

Enumerator
Char 
Int64 
Double 
Rational 

Definition at line 5 of file AttributeType.hpp.

Function Documentation

◆ attribute_type_enum_from_type()

template<typename T >
constexpr auto wmtk::attribute::attribute_type_enum_from_type ( ) -> AttributeType
inlineconstexpr

Definition at line 36 of file AttributeType.hpp.

References Char, Double, Int64, and Rational.

◆ TupleAccessor() [1/2]

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

◆ TupleAccessor() [2/2]

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