Wildmeshing Toolkit
Loading...
Searching...
No Matches
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
14
class
FunctionInvariant
:
public
Invariant
15
{
16
public
:
17
FunctionInvariant
(
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
;
27
const
PrimitiveType
m_type
;
28
};
29
}
// namespace invariants
30
}
// namespace wmtk
Invariant.hpp
wmtk::invariants::FunctionInvariant
Definition
FunctionInvariant.hpp:15
wmtk::invariants::FunctionInvariant::m_func
std::shared_ptr< function::PerSimplexFunction > m_func
Definition
FunctionInvariant.hpp:26
wmtk::invariants::FunctionInvariant::after
bool after(const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const override
Definition
FunctionInvariant.cpp:16
wmtk::invariants::FunctionInvariant::m_type
const PrimitiveType m_type
Definition
FunctionInvariant.hpp:27
wmtk::invariants::Invariant
Definition
Invariant.hpp:12
wmtk
Definition
Accessor.hpp:8
wmtk::PrimitiveType
PrimitiveType
Definition
PrimitiveType.hpp:9
src
wmtk
invariants
FunctionInvariant.hpp
Generated by
1.9.8