#include <gr/types.h>
#include <gr/graph.h>
Go to the source code of this file.
Definition in file actions.h.
|
|
Get the actions model of an actions object.
|
|
|
gr_actions_apply_graph_rewrite iterates until the number of matches is constant for two iterations Definition at line 41 of file actions.h. Referenced by gr_actions_apply_graph_rewrite(). |
|
|
gr_actions_apply_graph_rewrite iterates until the maximum number (parameter: times) of iterations is reached |
|
|
gr_actions_apply_graph_rewrite iterates until zero matches are found Definition at line 40 of file actions.h. Referenced by gr_actions_apply_graph_rewrite(). |
|
|
Action listener |
|
|
The actions model, an action module must implement. |
|
|
An actions module. |
|
|
Possible listener events for action listener |
|
|
The match result structure. |
|
|
|
|
|
Possible listener events for action listener |
|
|
An enum, that represents all types of actions, gr is able to perform on graphs. |
|
|
Special 'which' values for gr_dump_match |
|
|
|
|
||||||||||||||||||||
|
Add a new action listener function.
Definition at line 168 of file actions.c. References ASSERT_ACTION, _gr_generic_listener_t::context, GR_LISTENER_ACT_MAX, GR_RANGE_CHECK, _gr_generic_listener_t::listener_func, _gr_generic_listener_t::next, and _gr_generic_listener_t::prev. Referenced by gr_install_generations(). |
|
||||||||||||
|
Deletes a action listener function.
Definition at line 197 of file actions.c. References ASSERT_ACTION, _gr_generic_listener_t::next, and _gr_generic_listener_t::prev. |
|
||||||||||||||||||||||||
|
Apply a graph rewrite rule.
Definition at line 353 of file actions.c. References apply_rewrite(), ASSERT_ACTION, gr_domain_get_printer(), gr_domain_register(), gr_domain_unregister(), GR_ML_NOTE, GR_MODE_FIX, GR_MODE_ZERO, gr_msg_printer_set_level_mask(), and gr_note(). |
|
||||||||||||
|
Apply a graph rewrite sequence (grs).
Definition at line 453 of file actions.c. References apply_grs(), ASSERT_ACTION, gr_domain_get_printer(), gr_domain_register(), gr_domain_unregister(), GR_ML_NOTE, GR_ML_WARNING, gr_msg_printer_set_level_mask(), gr_note(), and msec(). |
|
||||||||||||||||
|
Do a graph-backend dependent thing for actions.
Definition at line 156 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. |
|
|
Delete a set of actions.
Definition at line 60 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. |
|
||||||||||||||||
|
Finish an action. This function has to be called always after gr_actions_match(). It frees the allocated match structure and does the things that have to be done after matching. Graph modification, redirection of edges and attribute writeback.
Definition at line 93 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, ASSERT_MODEL, GR_LISTENER_ACT_AFTER_FINISH, GR_LISTENER_ACT_BEFORE_FINISH, and run_action_listener(). Referenced by apply_rewrite(). |
|
||||||||||||
|
Get an ID for an action name.
Definition at line 138 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. Referenced by apply_rewrite(). |
|
||||||||||||
|
Put the IDs of all valid actions in a set.
Definition at line 69 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. |
|
||||||||||||
|
Get the number of required input parameters for an action.
Definition at line 111 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. |
|
||||||||||||
|
Get the kind of an action.
Definition at line 129 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. |
|
||||||||||||
|
Get the name of an action.
Definition at line 147 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. |
|
||||||||||||
|
Get the number of delivered output parameters for an action.
Definition at line 120 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, and ASSERT_MODEL. |
|
||||||||||||||||||||
|
Do the match part of an action.
Definition at line 78 of file actions.c. References ASSERT_ACTION, ASSERT_FKT, ASSERT_MODEL, GR_LISTENER_ACT_AFTER_MATCH, and run_action_listener(). Referenced by apply_rewrite(). |
|
||||||||||||||||||||
1.4.1