|
Wildmeshing Toolkit
|
#include <TodoInvariant.hpp>
Public Member Functions | |
| TodoInvariant (const Mesh &m, const TypedAttributeHandle< int64_t > &todo_handle, const int64_t val=1) | |
| Invariant for todo-list in scheduler. | |
| bool | before (const simplex::Simplex &t) const override |
Public Member Functions inherited from wmtk::invariants::Invariant | |
| virtual bool | after (const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const |
| 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 | |
| const TypedAttributeHandle< int64_t > | m_todo_handle |
| const int64_t | m_val |
Definition at line 8 of file TodoInvariant.hpp.
| wmtk::TodoInvariant::TodoInvariant | ( | const Mesh & | m, |
| const TypedAttributeHandle< int64_t > & | todo_handle, | ||
| const int64_t | val = 1 |
||
| ) |
Invariant for todo-list in scheduler.
Recording which simplicity still need to be operated. If the todo_tag tagged as 1 then return true, otherwise return false
Definition at line 5 of file TodoInvariant.cpp.
|
overridevirtual |
Reimplemented from wmtk::invariants::Invariant.
Definition at line 14 of file TodoInvariant.cpp.
References wmtk::attribute::Accessor< T, MeshType, AttributeType_, Dim >::const_scalar_attribute(), wmtk::Mesh::create_const_accessor(), m_todo_handle, m_val, wmtk::invariants::Invariant::mesh(), wmtk::attribute::TypedAttributeHandle< T >::primitive_type(), and wmtk::simplex::Simplex::primitive_type().
|
private |
Definition at line 22 of file TodoInvariant.hpp.
Referenced by before().
|
private |
Definition at line 23 of file TodoInvariant.hpp.
Referenced by before().