16 bool use_old_state_in_after,
17 bool use_new_state_in_after)
19 , m_use_before(use_before)
20 , m_use_old_state_in_after(use_old_state_in_after)
21 , m_use_new_state_in_after(use_new_state_in_after)
29 const std::vector<Tuple>& top_dimension_tuples_before,
30 const std::vector<Tuple>& top_dimension_tuples_after)
const
40 const std::vector<simplex::Simplex>& simplices_before,
41 const std::vector<simplex::Simplex>& simplices_after)
const
46 : std::vector<Tuple>{};
47 const std::vector<Tuple> tuples_before =
50 : std::vector<Tuple>{};
53 if (!
after(tuples_before, tuples_after)) {
78 const std::vector<simplex::Simplex>& simplices)
const
87 const std::vector<Tuple> all_tuples =
90 assert(all_tuples.size() == all_simplices.
simplex_vector().size());
PrimitiveType top_simplex_type() const
decltype(auto) parent_scope(Functor &&f, Args &&... args) const
Evaluate the passed in function inside the parent scope.
virtual bool directly_modified_after(const std::vector< simplex::Simplex > &simplices_before, const std::vector< simplex::Simplex > &simplices_after) const
const bool m_use_new_state_in_after
bool use_old_state_in_after() const
const bool m_use_old_state_in_after
bool use_new_state_in_after() const
const std::vector< Tuple > get_top_dimension_cofaces(const std::vector< simplex::Simplex > &simplices) const
const Mesh & mesh() const
virtual bool before(const simplex::Simplex &t) const
virtual bool after(const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const
void add(const Simplex &simplex)
Add simplex to the collection.
const std::vector< Simplex > & simplex_vector() const
Return const reference to the simplex vector.
void sort_and_clean()
Sort simplex vector and remove duplicates.
std::vector< Tuple > simplex_vector_tuples(PrimitiveType ptype) const
Return vector of all simplices of the requested type, as tuples.
void top_dimension_cofaces(const Simplex &simplex, SimplexCollection &simplex_collection, const bool sort_and_clean)
Get all top dimension cofaces of the given simplex.