|
Wildmeshing Toolkit
|
#include <MaxFunctionInvariant.hpp>
Public Member Functions | |
| MaxFunctionInvariant (const PrimitiveType type, const std::shared_ptr< function::PerSimplexFunction > &func, const std::optional< TypedAttributeHandle< Rational > > &coordinate={}) | |
| bool | before (const simplex::Simplex &simplex) const override |
| bool | after (const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const override |
Public Member Functions inherited from wmtk::invariants::Invariant | |
| Invariant (const Mesh &m) | |
| Invariant (const Mesh &m, bool use_before, bool use_old_state_in_after, bool use_new_state_in_after) | |
| virtual | ~Invariant () |
| const Mesh & | mesh () const |
| virtual bool | directly_modified_after (const std::vector< simplex::Simplex > &simplices_before, const std::vector< simplex::Simplex > &simplices_after) const |
| bool | use_before () const |
| bool | use_after () const |
| bool | use_old_state_in_after () const |
| bool | use_new_state_in_after () const |
Private Attributes | |
| std::shared_ptr< function::PerSimplexFunction > | m_func |
| const PrimitiveType | m_type |
| const std::optional< TypedAttributeHandle< Rational > > | m_coordinate_handle |
| bool | was_v0_rounded |
Definition at line 17 of file MaxFunctionInvariant.hpp.
| wmtk::invariants::MaxFunctionInvariant::MaxFunctionInvariant | ( | const PrimitiveType | type, |
| const std::shared_ptr< function::PerSimplexFunction > & | func, | ||
| const std::optional< TypedAttributeHandle< Rational > > & | coordinate = {} |
||
| ) |
Definition at line 8 of file MaxFunctionInvariant.cpp.
|
overridevirtual |
Reimplemented from wmtk::invariants::Invariant.
Definition at line 37 of file MaxFunctionInvariant.cpp.
References after(), before(), m_coordinate_handle, m_func, m_type, wmtk::invariants::Invariant::mesh(), wmtk::Mesh::parent_scope(), and was_v0_rounded.
Referenced by after().
|
overridevirtual |
Reimplemented from wmtk::invariants::Invariant.
Definition at line 21 of file MaxFunctionInvariant.cpp.
References wmtk::Mesh::create_const_accessor(), m_coordinate_handle, m_func, wmtk::invariants::Invariant::mesh(), wmtk::simplex::Simplex::tuple(), and was_v0_rounded.
Referenced by after().
|
private |
Definition at line 34 of file MaxFunctionInvariant.hpp.
|
private |
Definition at line 32 of file MaxFunctionInvariant.hpp.
|
private |
Definition at line 33 of file MaxFunctionInvariant.hpp.
Referenced by after().
|
mutableprivate |
Definition at line 35 of file MaxFunctionInvariant.hpp.