Wildmeshing Toolkit
wmtk::invariants::internal::ConstantInvariant Class Reference

#include <ConstantInvariant.hpp>

Inheritance diagram for wmtk::invariants::internal::ConstantInvariant:
[legend]
Collaboration diagram for wmtk::invariants::internal::ConstantInvariant:
[legend]

Public Member Functions

 ConstantInvariant (const Mesh &m, bool before, bool after)
 
bool before (const simplex::Simplex &t) 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 Meshmesh () 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

bool m_before
 
bool m_after
 

Detailed Description

Definition at line 9 of file ConstantInvariant.hpp.

Constructor & Destructor Documentation

◆ ConstantInvariant()

wmtk::invariants::internal::ConstantInvariant::ConstantInvariant ( const Mesh m,
bool  before,
bool  after 
)

Definition at line 7 of file ConstantInvariant.cpp.

Member Function Documentation

◆ after()

bool wmtk::invariants::internal::ConstantInvariant::after ( const std::vector< Tuple > &  top_dimension_tuples_before,
const std::vector< Tuple > &  top_dimension_tuples_after 
) const
overridevirtual

Reimplemented from wmtk::invariants::Invariant.

Definition at line 17 of file ConstantInvariant.cpp.

References m_after.

◆ before()

bool wmtk::invariants::internal::ConstantInvariant::before ( const simplex::Simplex t) const
overridevirtual

Reimplemented from wmtk::invariants::Invariant.

Definition at line 13 of file ConstantInvariant.cpp.

References m_before.

Member Data Documentation

◆ m_after

bool wmtk::invariants::internal::ConstantInvariant::m_after
private

Definition at line 21 of file ConstantInvariant.hpp.

Referenced by after().

◆ m_before

bool wmtk::invariants::internal::ConstantInvariant::m_before
private

Definition at line 20 of file ConstantInvariant.hpp.

Referenced by before().


The documentation for this class was generated from the following files: