Wildmeshing Toolkit
CofacesInSimplexIterable.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <wmtk/Mesh.hpp>
6 
7 namespace wmtk::simplex {
8 
13 {
14 public:
15  class Iterator
16  {
17  public:
18  Iterator(const CofacesInSimplexIterable& container, const Tuple& t = Tuple());
20  bool operator!=(const Iterator& other) const;
21  Tuple& operator*();
22 
23  private:
26  };
27 
28 public:
30  const Mesh& mesh,
31  const Simplex& simplex,
32  const PrimitiveType in_simplex_type);
33 
34  Iterator begin() const { return Iterator(*this, m_simplex.tuple()); }
35  Iterator end() const { return Iterator(*this); }
36 
37 private:
38  const Mesh& m_mesh;
41 };
42 
43 
44 } // namespace wmtk::simplex
Iterator(const CofacesInSimplexIterable &container, const Tuple &t=Tuple())
Get all cofaces that are in a specific simplex type.
CofacesInSimplexIterable(const Mesh &mesh, const Simplex &simplex, const PrimitiveType in_simplex_type)
const Tuple & tuple() const
Definition: Simplex.hpp:53