Wildmeshing Toolkit
|
#include <NewAttributeStrategy.hpp>
Public Types | |
using | SimplexPredicateType = std::function< bool(const simplex::Simplex &)> |
Public Member Functions | |
virtual | ~NewAttributeStrategy () |
virtual bool | matches_attribute (const attribute::MeshAttributeHandle &) const =0 |
virtual void | update_handle_mesh (Mesh &)=0 |
virtual PrimitiveType | primitive_type () const =0 |
virtual Mesh & | mesh ()=0 |
const Mesh & | mesh () const |
void | set_simplex_predicate (SimplexPredicateType &&f) |
void | set_simplex_predicate (BasicSimplexPredicate f) |
std::bitset< 2 > | evaluate_predicate (PrimitiveType pt, const std::array< Tuple, 2 > &simplices) const |
std::vector< wmtk::attribute::MeshAttributeHandle > | sources () const final override |
virtual bool | invalid_state () const =0 |
virtual std::string | name () const =0 |
Public Member Functions inherited from wmtk::operations::AttributeTransferEdge | |
virtual | ~AttributeTransferEdge ()=0 |
virtual std::vector< wmtk::attribute::MeshAttributeHandle > | targets () const =0 |
Private Attributes | |
SimplexPredicateType | m_simplex_predicate = nullptr |
Definition at line 21 of file NewAttributeStrategy.hpp.
using wmtk::operations::NewAttributeStrategy::SimplexPredicateType = std::function<bool(const simplex::Simplex&)> |
Definition at line 24 of file NewAttributeStrategy.hpp.
|
virtualdefault |
std::bitset< 2 > wmtk::operations::NewAttributeStrategy::evaluate_predicate | ( | PrimitiveType | pt, |
const std::array< Tuple, 2 > & | simplices | ||
) | const |
Definition at line 34 of file NewAttributeStrategy.cpp.
References m_simplex_predicate, mesh(), and wmtk::Mesh::parent_scope().
|
pure virtual |
|
pure virtual |
const Mesh & wmtk::operations::NewAttributeStrategy::mesh | ( | ) | const |
Definition at line 12 of file NewAttributeStrategy.cpp.
References mesh().
|
pure virtual |
Implemented in wmtk::operations::SplitNewAttributeStrategy< T >, wmtk::operations::CollapseNewAttributeStrategy< T >, wmtk::operations::SplitNewAttributeStrategy< T >, wmtk::operations::CollapseNewAttributeStrategy< T >, wmtk::operations::SplitNewAttributeStrategy< T >, and wmtk::operations::CollapseNewAttributeStrategy< T >.
Referenced by evaluate_predicate(), mesh(), and set_simplex_predicate().
|
pure virtual |
|
pure virtual |
void wmtk::operations::NewAttributeStrategy::set_simplex_predicate | ( | BasicSimplexPredicate | f | ) |
Definition at line 21 of file NewAttributeStrategy.cpp.
References wmtk::operations::Default, wmtk::Mesh::is_boundary(), wmtk::operations::IsInterior, mesh(), wmtk::operations::None, and set_simplex_predicate().
void wmtk::operations::NewAttributeStrategy::set_simplex_predicate | ( | SimplexPredicateType && | f | ) |
Definition at line 16 of file NewAttributeStrategy.cpp.
References m_simplex_predicate.
Referenced by set_simplex_predicate().
|
inlinefinaloverridevirtual |
Implements wmtk::operations::AttributeTransferEdge.
Definition at line 42 of file NewAttributeStrategy.hpp.
|
pure virtual |
|
private |
Definition at line 49 of file NewAttributeStrategy.hpp.
Referenced by evaluate_predicate(), and set_simplex_predicate().