Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_list.h>
Go to the source code of this file.
Classes | |
struct | rz_tree_node_t |
struct | rz_tree_t |
struct | rz_tree_visitor_t |
Typedefs | |
typedef struct rz_tree_node_t | RTreeNode |
typedef struct rz_tree_t | RTree |
typedef struct rz_tree_visitor_t | RTreeVisitor |
typedef void(* | RTreeNodeVisitCb) (RTreeNode *n, RTreeVisitor *vis) |
Functions | |
RZ_API RTree * | rz_tree_new (void) |
RZ_API RTreeNode * | rz_tree_add_node (RTree *t, RTreeNode *node, void *child_data) |
RZ_API void | rz_tree_reset (RTree *t) |
RZ_API void | rz_tree_free (RTree *t) |
RZ_API void | rz_tree_dfs (RTree *t, RTreeVisitor *vis) |
RZ_API void | rz_tree_bfs (RTree *t, RTreeVisitor *vis) |
typedef struct rz_tree_node_t RTreeNode |
typedef void(* RTreeNodeVisitCb) (RTreeNode *n, RTreeVisitor *vis) |
typedef struct rz_tree_visitor_t RTreeVisitor |
Definition at line 99 of file tree.c.
References rz_tree_node_t::children, rz_tree_node_t::n_children, node_new(), NULL, rz_tree_node_t::parent, rz_tree_visitor_t::pre_visit, rz_tree_t::root, rz_list_append(), rz_tree_node_t::tree, tree_dfs_node(), and update_depth().
Referenced by add_trace_tree_child(), and do_debug_trace_calls().
RZ_API void rz_tree_bfs | ( | RTree * | t, |
RTreeVisitor * | vis | ||
) |
Definition at line 132 of file tree.c.
References rz_tree_node_t::children, rz_tree_visitor_t::discover_child, n, NULL, rz_tree_visitor_t::post_visit, rz_tree_visitor_t::pre_visit, rz_tree_t::root, rz_pvector_empty(), rz_pvector_free(), rz_pvector_new(), rz_pvector_pop_front(), rz_pvector_push(), and rz_pvector_reserve().
Referenced by dot_trace_traverse(), and free_all_children().
RZ_API void rz_tree_dfs | ( | RTree * | t, |
RTreeVisitor * | vis | ||
) |
Definition at line 124 of file tree.c.
References rz_tree_t::root, and tree_dfs_node().
Referenced by trace_traverse().
Definition at line 76 of file tree.c.
References free(), and free_all_children().
Referenced by rz_debug_free().
Definition at line 72 of file tree.c.
References RZ_NEW0.
Referenced by rz_debug_new().
Definition at line 85 of file tree.c.
References free_all_children(), NULL, and rz_tree_t::root.
Referenced by rz_cmd_debug_traces_reset_handler().