Wildmeshing Toolkit
|
#include <MinOperationSequence.hpp>
Public Member Functions | |
MinOperationSequence (Mesh &mesh, const std::vector< std::shared_ptr< Operation >> &operations={}) | |
virtual | ~MinOperationSequence () |
void | set_value_function (const std::function< double(int64_t, const simplex::Simplex &)> &func) |
Public Member Functions inherited from wmtk::operations::OperationSequence | |
OperationSequence (Mesh &mesh, const std::vector< std::shared_ptr< Operation >> &operations={}) | |
virtual | ~OperationSequence () |
std::vector< simplex::Simplex > | operator() (const simplex::Simplex &simplex) override |
double | priority (const simplex::Simplex &simplex) const override |
bool | use_random_priority () const override |
bool & | use_random_priority () override |
PrimitiveType | primitive_type () const override |
void | reserve_enough_simplices () override |
void | add_operation (const std::shared_ptr< Operation > &op) |
Public Member Functions inherited from wmtk::operations::Operation | |
Operation (Mesh &mesh) | |
virtual | ~Operation () |
const Mesh & | mesh () const |
Mesh & | mesh () |
void | add_invariant (std::shared_ptr< Invariant > invariant) |
void | set_priority (const std::function< double(const simplex::Simplex &)> &func) |
std::shared_ptr< const operations::AttributeTransferStrategyBase > | get_transfer_strategy (const attribute::MeshAttributeHandle &attribute) |
void | add_transfer_strategy (const std::shared_ptr< const operations::AttributeTransferStrategyBase > &other) |
void | set_transfer_strategy (const attribute::MeshAttributeHandle &attribute, const std::shared_ptr< const operations::AttributeTransferStrategyBase > &other) |
void | clear_attribute_transfer_strategies () |
Protected Member Functions | |
std::vector< simplex::Simplex > | execute_operations (const simplex::Simplex &simplex) override |
Protected Member Functions inherited from wmtk::operations::OperationSequence | |
std::vector< simplex::Simplex > | execute (const simplex::Simplex &simplex) override |
returns an empty vector in case of failure More... | |
std::vector< simplex::Simplex > | unmodified_primitives (const simplex::Simplex &simplex) const override |
Returns all simplices that will be potentially affected by the OperationSequence. 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) |
Private Attributes | |
std::function< double(int64_t, const simplex::Simplex &)> | m_value = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from wmtk::operations::OperationSequence | |
std::vector< std::shared_ptr< Operation > > | m_operations |
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 14 of file MinOperationSequence.hpp.
wmtk::operations::MinOperationSequence::MinOperationSequence | ( | Mesh & | mesh, |
const std::vector< std::shared_ptr< Operation >> & | operations = {} |
||
) |
Definition at line 7 of file MinOperationSequence.cpp.
|
virtualdefault |
|
overrideprotectedvirtual |
Implements wmtk::operations::OperationSequence.
Definition at line 16 of file MinOperationSequence.cpp.
References wmtk::operations::OperationSequence::m_operations, and m_value.
|
inline |
Definition at line 23 of file MinOperationSequence.hpp.
References m_value.
|
private |
Definition at line 35 of file MinOperationSequence.hpp.
Referenced by execute_operations(), and set_value_function().