10 const std::shared_ptr<function::PerSimplexFunction>& func)
11 :
Invariant(func->mesh(), false, true, true)
17 const std::vector<Tuple>& top_dimension_tuples_before,
18 const std::vector<Tuple>& top_dimension_tuples_after)
const
20 auto sum = [&](
const std::vector<Tuple>& tuples) {
22 for (
const auto& t : tuples)
30 const double after = sum(top_dimension_tuples_after);
decltype(auto) parent_scope(Functor &&f, Args &&... args) const
Evaluate the passed in function inside the parent scope.
std::shared_ptr< function::PerSimplexFunction > m_func
FunctionInvariant(const PrimitiveType type, const std::shared_ptr< function::PerSimplexFunction > &func)
bool after(const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const override
const PrimitiveType m_type
const Mesh & mesh() const
virtual bool before(const simplex::Simplex &t) const