|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Depth-first traversal that builds the tree of build_df_low_tree(). More...
#include <generate_df_tree.H>
Classes | |
| struct | Frame |
Public Member Functions | |
| Df_Low_Builder (Node_Label &label, SA &filter, DynList< Df_Low_Non_Tree_Arc > &arcs) | |
Prepare a traversal that labels the nodes with label, sees only the arcs that filter accepts and appends to arcs. | |
| Df_Low_Tree_Node * | build (Node *src) |
Build the tree from src; on an exception, free what it built. | |
Private Types | |
| using | Node = typename GT::Node |
| using | Arc = typename GT::Arc |
Private Member Functions | |
| Df_Low_Tree_Node * | new_tree_node (Node *p) |
| void | visit (Node *src, Df_Low_Tree_Node *root) |
Private Attributes | |
| Node_Label & | node_label |
| SA & | sa |
| DynList< Df_Low_Non_Tree_Arc > & | non_tree_arcs |
| DynMapTree< Node *, Df_Low_Tree_Node * > | tree_nodes |
| long | curr_df = 0 |
Depth-first traversal that builds the tree of build_df_low_tree().
Definition at line 188 of file generate_df_tree.H.
|
private |
Definition at line 191 of file generate_df_tree.H.
|
private |
Definition at line 190 of file generate_df_tree.H.
|
inline |
Prepare a traversal that labels the nodes with label, sees only the arcs that filter accepts and appends to arcs.
Definition at line 295 of file generate_df_tree.H.
|
inline |
Build the tree from src; on an exception, free what it built.
Definition at line 303 of file generate_df_tree.H.
References Aleph::DynList< T >::empty(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::new_tree_node(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::non_tree_arcs, root(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::tree_nodes, and Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::visit().
Referenced by Aleph::build_df_low_tree().
|
inlineprivate |
Definition at line 205 of file generate_df_tree.H.
References Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::curr_df, Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::node_label, and Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::tree_nodes.
Referenced by Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::build(), and Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::visit().
|
inlineprivate |
Definition at line 238 of file generate_df_tree.H.
References Aleph::DynList< T >::append(), Aleph::Df_Low_Key::df, Aleph::Tree_Node< T >::get_key(), Aleph::Tree_Node< T >::insert_rightmost_child(), Aleph::Dfs_Stack< T >::is_empty(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::Frame::it, Aleph::Df_Low_Key::low, Aleph::low(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::new_tree_node(), Aleph::next(), Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::non_tree_arcs, Aleph::Dfs_Stack< T >::pop(), Aleph::Dfs_Stack< T >::push(), root(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::sa, Aleph::Dfs_Stack< T >::top(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::Frame::tp, Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::Frame::tree_arc, and Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::tree_nodes.
Referenced by Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::build().
|
private |
Definition at line 200 of file generate_df_tree.H.
Referenced by Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::new_tree_node().
|
private |
Definition at line 193 of file generate_df_tree.H.
Referenced by Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::new_tree_node().
|
private |
Definition at line 195 of file generate_df_tree.H.
Referenced by Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::build(), and Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::visit().
|
private |
Definition at line 194 of file generate_df_tree.H.
Referenced by Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::visit().
|
private |