Wildmeshing Toolkit
wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType > Class Template Reference

#include <CastAttributeTransferStrategy.hpp>

Inheritance diagram for wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >:
[legend]
Collaboration diagram for wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >:
[legend]

Public Types

using BaseType = SingleAttributeTransferStrategy< MyType, ParentType >
 
using MyVecType = typename BaseType::MyVecType
 
using ParentMatType = typename BaseType::ParentMatType
 
- Public Types inherited from wmtk::operations::SingleAttributeTransferStrategy< MyType, ParentType >
template<typename T >
using VecType = VectorX< T >
 
template<typename T >
using MatType = MatrixX< T >
 
using MyVecType = VecType< MyType >
 
using ParentMatType = MatType< ParentType >
 
using FunctorWithoutSimplicesType = std::function< MyVecType(const ParentMatType &)>
 
using FunctorType = std::function< MyVecType(const ParentMatType &, const std::vector< Tuple > &)>
 

Public Member Functions

 CastAttributeTransferStrategy (const attribute::MeshAttributeHandle &my_handle, const attribute::MeshAttributeHandle &parent_handle)
 
- Public Member Functions inherited from wmtk::operations::SingleAttributeTransferStrategy< MyType, ParentType >
 SingleAttributeTransferStrategy (const attribute::MeshAttributeHandle &my_handle, const attribute::MeshAttributeHandle &parent_handle, FunctorType &&=nullptr)
 
 SingleAttributeTransferStrategy (const attribute::MeshAttributeHandle &my_handle, const attribute::MeshAttributeHandle &parent_handle, FunctorWithoutSimplicesType &&=nullptr)
 
void run (const simplex::Simplex &s) const final override
 
PrimitiveType parent_primitive_type () const
 
std::vector< wmtk::attribute::MeshAttributeHandlesources () const final override
 
- Public Member Functions inherited from wmtk::operations::AttributeTransferStrategy< MyType >
 AttributeTransferStrategy (const attribute::MeshAttributeHandle &my_handle)
 
PrimitiveType primitive_type () const override
 
Meshmesh () override
 
virtual Meshmesh ()=0
 
const Meshmesh () const
 
- Public Member Functions inherited from wmtk::operations::AttributeTransferStrategyBase
 AttributeTransferStrategyBase (const attribute::MeshAttributeHandle &my_handle)
 
virtual ~AttributeTransferStrategyBase ()
 
const attribute::MeshAttributeHandlehandle () const
 
attribute::MeshAttributeHandlehandle ()
 
std::vector< wmtk::attribute::MeshAttributeHandletargets () const final override
 
bool matches_attribute (const wmtk::attribute::MeshAttributeHandle &attr) const
 
const Meshmesh () const
 
void run_on_all () const
 
- Public Member Functions inherited from wmtk::operations::AttributeTransferEdge
virtual ~AttributeTransferEdge ()=0
 

Static Public Member Functions

static MyVecType convert (const ParentMatType &v)
 
- Static Public Member Functions inherited from wmtk::operations::SingleAttributeTransferStrategy< MyType, ParentType >
static FunctorType make_nosimplices_func (FunctorWithoutSimplicesType &&fp)
 
- Static Public Member Functions inherited from wmtk::operations::AttributeTransferStrategyBase
static std::vector< Tupleget_parent_simplices (const Mesh &m, const Mesh &parent, const simplex::Simplex &s, PrimitiveType parent_primitive_type)
 
static std::vector< Tupleget_parent_simplices (const attribute::MeshAttributeHandle &me, const attribute::MeshAttributeHandle &parent, const simplex::Simplex &s)
 

Additional Inherited Members

- Protected Member Functions inherited from wmtk::operations::SingleAttributeTransferStrategy< MyType, ParentType >
std::pair< ParentMatType, std::vector< Tuple > > read_parent_values (const simplex::Simplex &my_simplex) const
 

Detailed Description

template<typename MyType, typename ParentType>
class wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >

Definition at line 17 of file CastAttributeTransferStrategy.hpp.

Member Typedef Documentation

◆ BaseType

template<typename MyType , typename ParentType >
using wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >::BaseType = SingleAttributeTransferStrategy<MyType, ParentType>

Definition at line 20 of file CastAttributeTransferStrategy.hpp.

◆ MyVecType

template<typename MyType , typename ParentType >
using wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >::MyVecType = typename BaseType::MyVecType

Definition at line 21 of file CastAttributeTransferStrategy.hpp.

◆ ParentMatType

template<typename MyType , typename ParentType >
using wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >::ParentMatType = typename BaseType::ParentMatType

Definition at line 22 of file CastAttributeTransferStrategy.hpp.

Constructor & Destructor Documentation

◆ CastAttributeTransferStrategy()

template<typename MyType , typename ParentType >
wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >::CastAttributeTransferStrategy ( const attribute::MeshAttributeHandle my_handle,
const attribute::MeshAttributeHandle parent_handle 
)
inline

Definition at line 65 of file CastAttributeTransferStrategy.hpp.

Member Function Documentation

◆ convert()

template<typename MyType , typename ParentType >
static MyVecType wmtk::operations::attribute_update::CastAttributeTransferStrategy< MyType, ParentType >::convert ( const ParentMatType v)
inlinestatic

Definition at line 24 of file CastAttributeTransferStrategy.hpp.


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