Wildmeshing Toolkit
wmtk::invariants::FunctionInvariant Class Reference

#include <FunctionInvariant.hpp>

Inheritance diagram for wmtk::invariants::FunctionInvariant:
[legend]
Collaboration diagram for wmtk::invariants::FunctionInvariant:
[legend]

Public Member Functions

 FunctionInvariant (const PrimitiveType type, const std::shared_ptr< function::PerSimplexFunction > &func)
 
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
virtual bool before (const simplex::Simplex &t) 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 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

std::shared_ptr< function::PerSimplexFunctionm_func
 
const PrimitiveType m_type
 

Detailed Description

Definition at line 14 of file FunctionInvariant.hpp.

Constructor & Destructor Documentation

◆ FunctionInvariant()

wmtk::invariants::FunctionInvariant::FunctionInvariant ( const PrimitiveType  type,
const std::shared_ptr< function::PerSimplexFunction > &  func 
)

Definition at line 8 of file FunctionInvariant.cpp.

Member Function Documentation

◆ after()

bool wmtk::invariants::FunctionInvariant::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 16 of file FunctionInvariant.cpp.

References wmtk::invariants::Invariant::before(), m_func, m_type, wmtk::invariants::Invariant::mesh(), and wmtk::Mesh::parent_scope().

Here is the call graph for this function:

Member Data Documentation

◆ m_func

std::shared_ptr<function::PerSimplexFunction> wmtk::invariants::FunctionInvariant::m_func
private

Definition at line 26 of file FunctionInvariant.hpp.

Referenced by after().

◆ m_type

const PrimitiveType wmtk::invariants::FunctionInvariant::m_type
private

Definition at line 27 of file FunctionInvariant.hpp.

Referenced by after().


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