Wildmeshing Toolkit
ConstantInvariant.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
5
#include <
wmtk/invariants/Invariant.hpp
>
6
7
namespace
wmtk::invariants::internal
{
8
9
class
ConstantInvariant
:
public
Invariant
10
{
11
public
:
12
ConstantInvariant
(
const
Mesh
& m,
bool
before
,
bool
after
);
13
14
bool
before
(
const
simplex::Simplex
& t)
const override
;
15
bool
after
(
16
const
std::vector<Tuple>& top_dimension_tuples_before,
17
const
std::vector<Tuple>& top_dimension_tuples_after)
const override
;
18
19
private
:
20
bool
m_before
;
21
bool
m_after
;
22
};
23
}
// namespace wmtk::invariants::internal
Invariant.hpp
wmtk::Mesh
Definition:
Mesh.hpp:107
wmtk::invariants::Invariant
Definition:
Invariant.hpp:12
wmtk::invariants::internal::ConstantInvariant
Definition:
ConstantInvariant.hpp:10
wmtk::invariants::internal::ConstantInvariant::m_after
bool m_after
Definition:
ConstantInvariant.hpp:21
wmtk::invariants::internal::ConstantInvariant::m_before
bool m_before
Definition:
ConstantInvariant.hpp:20
wmtk::invariants::internal::ConstantInvariant::after
bool after(const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const override
Definition:
ConstantInvariant.cpp:17
wmtk::invariants::internal::ConstantInvariant::ConstantInvariant
ConstantInvariant(const Mesh &m, bool before, bool after)
Definition:
ConstantInvariant.cpp:7
wmtk::invariants::internal::ConstantInvariant::before
bool before(const simplex::Simplex &t) const override
Definition:
ConstantInvariant.cpp:13
wmtk::simplex::Simplex
Definition:
Simplex.hpp:22
wmtk::invariants::internal
Definition:
ConstantInvariant.cpp:4
src
wmtk
invariants
internal
ConstantInvariant.hpp
Generated by
1.9.1