Wildmeshing Toolkit
OrOperationSequence.cpp
Go to the documentation of this file.
1
#include "
OrOperationSequence.hpp
"
2
3
4
namespace
wmtk::operations
{
5
6
7
OrOperationSequence::OrOperationSequence
(
8
Mesh
& mesh,
9
const
std::vector<std::shared_ptr<Operation>>& operations)
10
:
OperationSequence
(mesh, operations)
11
{}
12
13
OrOperationSequence::~OrOperationSequence
() =
default
;
14
15
16
std::vector<simplex::Simplex>
OrOperationSequence::execute_operations
(
17
const
simplex::Simplex
& simplex)
18
{
19
assert(!
m_operations
.empty());
20
for
(
auto
& o :
m_operations
) {
21
const
auto
out = (*o)(simplex);
22
if
(!out.empty())
return
out;
23
}
24
25
return
{};
26
}
27
28
29
}
// namespace wmtk::operations
OrOperationSequence.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::operations::OperationSequence
Definition:
OperationSequence.hpp:15
wmtk::operations::OperationSequence::m_operations
std::vector< std::shared_ptr< Operation > > m_operations
Definition:
OperationSequence.hpp:70
wmtk::operations::OrOperationSequence::OrOperationSequence
OrOperationSequence(Mesh &mesh, const std::vector< std::shared_ptr< Operation >> &operations={})
Definition:
OrOperationSequence.cpp:7
wmtk::operations::OrOperationSequence::~OrOperationSequence
virtual ~OrOperationSequence()
wmtk::operations::OrOperationSequence::execute_operations
std::vector< simplex::Simplex > execute_operations(const simplex::Simplex &simplex) override
Definition:
OrOperationSequence.cpp:16
wmtk::simplex::Simplex
Definition:
Simplex.hpp:22
wmtk::operations
Definition:
EdgeMesh.hpp:10
src
wmtk
operations
OrOperationSequence.cpp
Generated by
1.9.1