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