Wildmeshing Toolkit
|
#include <AttributesUpdate.hpp>
Public Types | |
using | UpdateFunction = std::function< bool(Mesh &, const simplex::Simplex &s)> |
Private Attributes | |
UpdateFunction | m_function |
Additional Inherited Members | |
Protected Member Functions inherited from wmtk::operations::AttributesUpdate | |
virtual std::vector< simplex::Simplex > | unmodified_primitives (const simplex::Simplex &simplex) const override |
Returns all simplices that will be potentially affected by the operation. More... | |
Protected Member Functions inherited from wmtk::operations::Operation | |
virtual bool | before (const simplex::Simplex &simplex) const |
virtual bool | after (const std::vector< simplex::Simplex > &unmods, const std::vector< simplex::Simplex > &mods) const |
void | apply_attribute_transfer (const std::vector< simplex::Simplex > &direct_mods) |
Protected Attributes inherited from wmtk::operations::Operation | |
std::function< double(const simplex::Simplex &)> | m_priority = nullptr |
invariants::InvariantCollection | m_invariants |
std::vector< std::shared_ptr< const operations::AttributeTransferStrategyBase > > | m_attr_transfer_strategies |
Definition at line 20 of file AttributesUpdate.hpp.
using wmtk::operations::AttributesUpdateWithFunction::UpdateFunction = std::function<bool(Mesh&, const simplex::Simplex& s)> |
Definition at line 25 of file AttributesUpdate.hpp.
wmtk::operations::AttributesUpdateWithFunction::AttributesUpdateWithFunction | ( | Mesh & | m | ) |
Definition at line 46 of file AttributesUpdate.cpp.
|
overridevirtual |
returns an empty vector in case of failure
Reimplemented from wmtk::operations::AttributesUpdate.
Definition at line 50 of file AttributesUpdate.cpp.
References wmtk::operations::AttributesUpdate::execute(), m_function, and wmtk::operations::Operation::mesh().
|
inline |
Definition at line 29 of file AttributesUpdate.hpp.
References m_function.
|
private |
Definition at line 32 of file AttributesUpdate.hpp.
Referenced by execute(), and set_function().