Wildmeshing Toolkit
wmtk::operations::AttributeTransferStrategyBase Class Referenceabstract

#include <AttributeTransferStrategyBase.hpp>

Inheritance diagram for wmtk::operations::AttributeTransferStrategyBase:
[legend]
Collaboration diagram for wmtk::operations::AttributeTransferStrategyBase:
[legend]

Public Member Functions

 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
 
virtual void run (const simplex::Simplex &s) const =0
 
virtual PrimitiveType primitive_type () const =0
 
virtual Meshmesh ()=0
 
const Meshmesh () const
 
void run_on_all () const
 
- Public Member Functions inherited from wmtk::operations::AttributeTransferEdge
virtual ~AttributeTransferEdge ()=0
 
virtual std::vector< wmtk::attribute::MeshAttributeHandlesources () const =0
 

Static Public Member Functions

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)
 

Private Attributes

attribute::MeshAttributeHandle m_handle
 

Detailed Description

Definition at line 21 of file AttributeTransferStrategyBase.hpp.

Constructor & Destructor Documentation

◆ AttributeTransferStrategyBase()

wmtk::operations::AttributeTransferStrategyBase::AttributeTransferStrategyBase ( const attribute::MeshAttributeHandle my_handle)

Definition at line 9 of file AttributeTransferStrategyBase.cpp.

◆ ~AttributeTransferStrategyBase()

wmtk::operations::AttributeTransferStrategyBase::~AttributeTransferStrategyBase ( )
virtualdefault

Member Function Documentation

◆ get_parent_simplices() [1/2]

std::vector< Tuple > wmtk::operations::AttributeTransferStrategyBase::get_parent_simplices ( const attribute::MeshAttributeHandle me,
const attribute::MeshAttributeHandle parent,
const simplex::Simplex s 
)
static

Definition at line 29 of file AttributeTransferStrategyBase.cpp.

References get_parent_simplices(), wmtk::attribute::MeshAttributeHandle::mesh(), and wmtk::attribute::MeshAttributeHandle::primitive_type().

Here is the call graph for this function:

◆ get_parent_simplices() [2/2]

std::vector< Tuple > wmtk::operations::AttributeTransferStrategyBase::get_parent_simplices ( const Mesh m,
const Mesh parent,
const simplex::Simplex s,
PrimitiveType  parent_primitive_type 
)
static

Definition at line 37 of file AttributeTransferStrategyBase.cpp.

References wmtk::Mesh::lub_map_tuples(), wmtk::simplex::neighbors_single_dimension_tuples(), wmtk::simplex::Simplex::primitive_type(), and wmtk::simplex::utils::unique_homogeneous_simplices_inline().

Referenced by get_parent_simplices(), and wmtk::operations::SingleAttributeTransferStrategy< MyType, ParentType >::read_parent_values().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle() [1/2]

attribute::MeshAttributeHandle& wmtk::operations::AttributeTransferStrategyBase::handle ( )
inline

Definition at line 50 of file AttributeTransferStrategyBase.hpp.

References m_handle.

◆ handle() [2/2]

const attribute::MeshAttributeHandle& wmtk::operations::AttributeTransferStrategyBase::handle ( ) const
inline

Definition at line 49 of file AttributeTransferStrategyBase.hpp.

References m_handle.

Referenced by matches_attribute(), and targets().

Here is the caller graph for this function:

◆ matches_attribute()

bool wmtk::operations::AttributeTransferStrategyBase::matches_attribute ( const wmtk::attribute::MeshAttributeHandle attr) const

Definition at line 74 of file AttributeTransferStrategyBase.cpp.

References handle().

Here is the call graph for this function:

◆ mesh() [1/2]

const Mesh & wmtk::operations::AttributeTransferStrategyBase::mesh ( ) const

Definition at line 14 of file AttributeTransferStrategyBase.cpp.

References mesh().

Here is the call graph for this function:

◆ mesh() [2/2]

virtual Mesh& wmtk::operations::AttributeTransferStrategyBase::mesh ( )
pure virtual

Implemented in wmtk::operations::AttributeTransferStrategy< MyType >, wmtk::operations::AttributeTransferStrategy< MyType >, and wmtk::operations::AttributeTransferStrategy< MyType >.

Referenced by mesh().

Here is the caller graph for this function:

◆ primitive_type()

virtual PrimitiveType wmtk::operations::AttributeTransferStrategyBase::primitive_type ( ) const
pure virtual

◆ run()

virtual void wmtk::operations::AttributeTransferStrategyBase::run ( const simplex::Simplex s) const
pure virtual

Implemented in wmtk::operations::SingleAttributeTransferStrategy< MyType, ParentType >.

Referenced by run_on_all().

Here is the caller graph for this function:

◆ run_on_all()

void wmtk::operations::AttributeTransferStrategyBase::run_on_all ( ) const

Definition at line 19 of file AttributeTransferStrategyBase.cpp.

References wmtk::Mesh::get_all(), m_handle, wmtk::attribute::MeshAttributeHandle::mesh(), wmtk::attribute::MeshAttributeHandle::primitive_type(), and run().

Referenced by wmtk::utils::cast_attribute(), wmtk::components::multimesh::multimesh(), and wmtk::components::triangle_insertion::triangle_insertion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ targets()

std::vector<wmtk::attribute::MeshAttributeHandle> wmtk::operations::AttributeTransferStrategyBase::targets ( ) const
inlinefinaloverridevirtual

Implements wmtk::operations::AttributeTransferEdge.

Definition at line 52 of file AttributeTransferStrategyBase.hpp.

References handle().

Here is the call graph for this function:

Member Data Documentation

◆ m_handle

attribute::MeshAttributeHandle wmtk::operations::AttributeTransferStrategyBase::m_handle
private

Definition at line 77 of file AttributeTransferStrategyBase.hpp.

Referenced by handle(), and run_on_all().


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