Wildmeshing Toolkit
Loading...
Searching...
No Matches
MinOperationSequence.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
OperationSequence.hpp
"
4
5
#include <
wmtk/Tuple.hpp
>
6
7
8
namespace
wmtk
{
9
class
Mesh;
10
11
namespace
operations {
12
13
14
class
MinOperationSequence
:
public
OperationSequence
15
{
16
public
:
17
MinOperationSequence
(
18
Mesh
&
mesh
,
19
const
std::vector<std::shared_ptr<Operation>>& operations = {});
20
virtual
~MinOperationSequence
();
21
22
23
inline
void
set_value_function
(
24
const
std::function<
double
(int64_t,
const
simplex::Simplex
&)>& func)
25
{
26
m_value
= func;
27
}
28
29
30
protected
:
31
std::vector<simplex::Simplex>
execute_operations
(
const
simplex::Simplex
& simplex)
override
;
32
33
34
private
:
35
std::function<double(int64_t,
const
simplex::Simplex
&)>
m_value
=
nullptr
;
36
};
37
38
}
// namespace operations
39
}
// namespace wmtk
OperationSequence.hpp
Tuple.hpp
wmtk::Mesh
Definition
Mesh.hpp:95
wmtk::operations::MinOperationSequence
Definition
MinOperationSequence.hpp:15
wmtk::operations::MinOperationSequence::m_value
std::function< double(int64_t, const simplex::Simplex &)> m_value
Definition
MinOperationSequence.hpp:35
wmtk::operations::MinOperationSequence::~MinOperationSequence
virtual ~MinOperationSequence()
wmtk::operations::MinOperationSequence::set_value_function
void set_value_function(const std::function< double(int64_t, const simplex::Simplex &)> &func)
Definition
MinOperationSequence.hpp:23
wmtk::operations::MinOperationSequence::execute_operations
std::vector< simplex::Simplex > execute_operations(const simplex::Simplex &simplex) override
Definition
MinOperationSequence.cpp:16
wmtk::operations::Operation::mesh
const Mesh & mesh() const
Definition
Operation.hpp:45
wmtk::operations::OperationSequence
Definition
OperationSequence.hpp:15
wmtk::simplex::Simplex
Definition
Simplex.hpp:22
wmtk
Definition
Accessor.hpp:6
src
wmtk
operations
MinOperationSequence.hpp
Generated by
1.9.8