16 , m_tdc_itrbl(mesh, simplex, true)
17 , m_it_end(m_tdc_itrbl.end())
21 : m_container(container)
22 , m_it(container.m_tdc_itrbl, t)
34 logger().warn(
"Trying to retrieve link that cannot exist!");
46 return step_depth_3();
49 const Mesh& mesh = m_container.m_mesh;
54 if (m_pt < m - s - 1 && !m_it.is_intermediate()) {
61 m_t = navigate_to_link(*m_it);
69 return (m_t != other.
m_t) || (m_pt != other.
m_pt);
84 const Mesh& mesh = m_container.m_mesh;
94 m_t = navigate_to_link(*m_it);
97 const Mesh& mesh = m_container.m_mesh;
99 m_container.m_visited_link[m_pt].is_visited(
106 const Mesh& mesh = m_container.m_mesh;
108 auto& visited = m_container.m_visited_link;
117 m_t = navigate_to_link(*m_it);
123 for (; m_edge_counter < 3; ++m_edge_counter) {
124 for (; m_pt < 2; ++m_pt) {
125 if (!visited[m_pt].is_visited(
145 const Mesh& mesh = m_container.m_mesh;
179 for (int8_t j = s; j > -1; --j) {
180 for (int8_t i = 0; i < m - s; ++i) {
Tuple switch_tuples(const Tuple &tuple, const ContainerType &op_sequence) const
int64_t top_cell_dimension() const
virtual Tuple switch_tuple(const Tuple &tuple, PrimitiveType type) const =0
switch the orientation of the Tuple of the given dimension
simplex::IdSimplex get_id_simplex(const Tuple &tuple, PrimitiveType pt) const
Retrieve the IdSimplex that is represented by the tuple and primitive type.
bool is_null() const
Checks if a tuple is "null". This merely implies the global index is -1.
void init()
Depending on the depth, the iterator must be initialized differently.
Tuple navigate_to_link(Tuple t)
LinkIterable & m_container
Iterator(LinkIterable &container, const Tuple &t=Tuple())
Iterator & step_depth_3()
Use breadth first search to find all d-simplices, and iterate through all cofaces in a d-simplex.
int64_t depth()
Compute the depth from the mesh and the simplex type.
bool operator!=(const Iterator &other) const
This iterator internally uses TopDimensionCofacesIterable.
LinkIterable(const Mesh &mesh, const Simplex &simplex)
PrimitiveType primitive_type() const
constexpr PrimitiveType get_primitive_type_from_id(int8_t id)
Get the primitive type corresponding to its unique integer id.
constexpr int8_t get_primitive_type_id(PrimitiveType t)
Get a unique integer id corresponding to each primitive type.
spdlog::logger & logger()
Retrieves the current logger.