9 const std::vector<std::shared_ptr<Operation>>& operations)
22 std::vector<std::pair<int64_t, double>> values;
26 values.emplace_back(i,
m_value(i, simplex));
28 std::sort(values.begin(), values.end(), [](
const auto& a,
const auto& b) {
29 return a.second < b.second;
34 const auto out = (*o)(simplex);
35 if (!out.empty())
return out;
std::function< double(int64_t, const simplex::Simplex &)> m_value
virtual ~MinOperationSequence()
MinOperationSequence(Mesh &mesh, const std::vector< std::shared_ptr< Operation >> &operations={})
std::vector< simplex::Simplex > execute_operations(const simplex::Simplex &simplex) override
std::vector< std::shared_ptr< Operation > > m_operations