|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Classes | |
| struct | Node |
Public Member Functions | |
| EdgeStatusTree (const Array< Point > &verts) | |
| ~EdgeStatusTree () | |
| bool | contains (const size_t edge) const |
| void | insert (const size_t edge, const Geom_Number &sweep_y) |
| void | erase (const size_t edge) |
| size_t | left_edge_of_point (const Point &p, const Geom_Number &sweep_y) const |
Private Member Functions | |
| size_t | predecessor_for_insert (const size_t edge, const Geom_Number &sweep_y) const |
| size_t | successor_for_insert (const size_t edge, const Geom_Number &sweep_y) const |
| Geom_Number | fresh_label_between (const size_t pred, const size_t succ) const |
Static Private Member Functions | |
| static void | split_by_label (Node *root, const Geom_Number &label, Node *&left, Node *&right) |
| static Node * | merge (Node *a, Node *b) |
| static Node * | insert_by_label (Node *root, Node *node) |
| static Node * | erase_by_label (Node *root, const Geom_Number &label, Node *&removed) |
| static void | destroy (const Node *n) |
Private Attributes | |
| Node * | root_ = nullptr |
| const Array< Point > & | verts_ |
| std::mt19937 | rng_ {0x31415926u} |
| Array< Node * > | nodes_ |
Definition at line 6172 of file geom_algorithms.H.
|
inlineexplicit |
Definition at line 6318 of file geom_algorithms.H.
References Aleph::Array< T >::append(), nodes_, Aleph::Array< T >::reserve(), and Aleph::Array< T >::size().
|
inline |
Definition at line 6325 of file geom_algorithms.H.
|
inline |
Definition at line 6330 of file geom_algorithms.H.
References nodes_.
|
inlinestaticprivate |
Definition at line 6267 of file geom_algorithms.H.
References destroy(), Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, and Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::right.
Referenced by ~EdgeStatusTree(), and destroy().
|
inline |
Definition at line 6348 of file geom_algorithms.H.
References contains(), erase_by_label(), nodes_, and root_.
Referenced by Aleph::MonotonePolygonTriangulation::decompose_to_monotone_faces().
|
inlinestaticprivate |
Definition at line 6246 of file geom_algorithms.H.
References erase_by_label(), Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, merge(), and root().
Referenced by erase(), and erase_by_label().
|
inlineprivate |
Definition at line 6306 of file geom_algorithms.H.
References Aleph::and, nodes_, and pred.
Referenced by insert().
|
inline |
Definition at line 6335 of file geom_algorithms.H.
References contains(), fresh_label_between(), insert_by_label(), nodes_, pred, predecessor_for_insert(), rng_, root_, and successor_for_insert().
Referenced by Aleph::MonotonePolygonTriangulation::decompose_to_monotone_faces().
|
inlinestaticprivate |
Definition at line 6224 of file geom_algorithms.H.
References insert_by_label(), Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::label, Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::priority, Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::right, root(), and split_by_label().
Referenced by insert(), and insert_by_label().
|
inline |
Definition at line 6359 of file geom_algorithms.H.
References Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::edge, Aleph::MonotonePolygonTriangulation::edge_x_at_y(), Aleph::Point::get_x(), Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::right, root_, and verts_.
Referenced by Aleph::MonotonePolygonTriangulation::decompose_to_monotone_faces().
|
inlinestaticprivate |
Definition at line 6209 of file geom_algorithms.H.
References Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, merge(), Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::priority, and Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::right.
Referenced by erase_by_label(), and merge().
|
inlineprivate |
Definition at line 6276 of file geom_algorithms.H.
References Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::edge, Aleph::MonotonePolygonTriangulation::edge_status_less(), Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, pred, Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::right, root_, and verts_.
Referenced by insert().
|
inlinestaticprivate |
Definition at line 6188 of file geom_algorithms.H.
References Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, root(), and split_by_label().
Referenced by insert_by_label(), and split_by_label().
|
inlineprivate |
Definition at line 6291 of file geom_algorithms.H.
References Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::edge, Aleph::MonotonePolygonTriangulation::edge_status_less(), Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::left, Aleph::MonotonePolygonTriangulation::EdgeStatusTree::Node::right, root_, and verts_.
Referenced by insert().
Definition at line 6186 of file geom_algorithms.H.
Referenced by EdgeStatusTree(), contains(), erase(), fresh_label_between(), and insert().
|
private |
Definition at line 6185 of file geom_algorithms.H.
Referenced by insert().
|
private |
Definition at line 6183 of file geom_algorithms.H.
Referenced by ~EdgeStatusTree(), erase(), insert(), left_edge_of_point(), predecessor_for_insert(), and successor_for_insert().
Definition at line 6184 of file geom_algorithms.H.
Referenced by left_edge_of_point(), predecessor_for_insert(), and successor_for_insert().