Wildmeshing Toolkit
Loading...
Searching...
No Matches
wmtk::attribute Namespace Reference

Namespaces

namespace  internal
 
namespace  update_strategies
 
namespace  utils
 

Classes

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

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.
 
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

Definition at line 33 of file AttributeType.hpp.

Enumeration Type Documentation

◆ AttributeType

enum class wmtk::attribute::AttributeType
strong
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 >