Wildmeshing Toolkit
FunctionInvariant.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include "Invariant.hpp"
5 
6 namespace wmtk {
7 
8 namespace function {
9 class PerSimplexFunction;
10 }
11 
12 namespace invariants {
13 
15 {
16 public:
18  const PrimitiveType type,
19  const std::shared_ptr<function::PerSimplexFunction>& func);
20 
21  bool after(
22  const std::vector<Tuple>& top_dimension_tuples_before,
23  const std::vector<Tuple>& top_dimension_tuples_after) const override;
24 
25 private:
26  std::shared_ptr<function::PerSimplexFunction> m_func;
28 };
29 } // namespace invariants
30 } // namespace wmtk
std::shared_ptr< function::PerSimplexFunction > m_func
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
Definition: Accessor.hpp:6