#include <DaVinci.h>

Definition at line 373 of file DaVinci.h.
typedef UINT32 DaVinci::FTAG [private] |
typedef FTAG DaVinci::FTAGS [private] |
Definition at line 746 of file DaVinci.cxx.
References _basic_menu_added, _contex, _contex_count, _contex_use_array, _davinci_count, _display_ok, _edge_cnt, _ftag_last, _in_event_loop, _io, _m, _node_cnt, _pid, _tcp_socket, _usage_check, _use_socket, bzero(), close, CONTEX_ACTIVE, CONTEX_UNUSE, dup2(), Emit_Do(), errno, execlp(), exit(), fdopen, fopen, fork, fprintf(), fscanf(), FT_DAVINCI, getenv(), htons(), i, inet_addr(), DaVinci::IO::Init(), INT, MAX_VIEW_NUM, msg, NULL, perror(), pipe(), printf(), s, setbuf(), socket(), sprintf(), strerror(), time, DaVinci::IO::Trace(), and Wait_For_Ack().
| DaVinci::~DaVinci | ( | ) |
Definition at line 916 of file DaVinci.cxx.
References _davinci_count, _tcp_socket, _use_socket, and close.
| DaVinci::DaVinci | ( | const DaVinci & | ) |
| const char * DaVinci::Ft_Str | ( | const FTAG | ftag | ) | [private] |
Definition at line 316 of file DaVinci.cxx.
References FT_CHANGE_ATTR, FT_DAVINCI, FT_GRAPH_BEGIN, FT_GRAPH_END, FT_MENU_ACTIVATE, FT_MENU_CREATE, FT_MENU_DEACTIVATE, FT_NEW_EDGE, FT_NEW_NODE, FT_NODE_BEGIN, FT_NODE_END, FT_OUT_EDGE, FT_SHOW_MESSAGE, FT_SHOW_STATUS, FT_TITLE, FT_UPDATE_BEGIN, FT_UPDATE_END, and s.
Referenced by Usage_Error().
Definition at line 345 of file DaVinci.cxx.
References _display_ok, _ftag_last, comma, fprintf(), FT_DAVINCI, and Ft_Str().
Referenced by Usage_Ok().
Definition at line 426 of file DaVinci.h.
References _display_ok, _ftag_last, and Usage_Error().
Referenced by Change_Attr(), Delete_Edge(), Graph_Begin(), Graph_End(), Menu_Activate(), Menu_Create(), Menu_Deactivate(), New_Edge(), New_Node(), Node_Begin(), Node_End(), Out_Edge(), Show_Message(), Show_Status(), Title(), Update_Begin(), and Update_End().
| DA_ACK DaVinci::Wait_For_Ack | ( | ) | [private] |
Definition at line 367 of file DaVinci.cxx.
References _current_contex, _display_ok, _event_q, _event_q_socket, _io, _use_socket, EK_COM_ERROR, EK_OK, DaVinci::IO::In_Line(), EVENT_T::kind, NULL, Parse_Event(), and sscanf().
Referenced by Change_Attr(), DaVinci(), Emit_Ack(), Graph_End(), Menu_Create(), Menu_Set_Active(), Show_Message(), Show_Status(), Title(), and Update_End().
| DA_ACK DaVinci::Emit_Ack | ( | const char * | line | ) | [inline, private] |
Definition at line 436 of file DaVinci.h.
References _io, assert, NULL, DaVinci::IO::Out_Fmt(), strchr, and Wait_For_Ack().
Referenced by Emit_Do().
| void DaVinci::Emit_Do | ( | const char * | line | ) | [inline, private] |
Definition at line 442 of file DaVinci.h.
References Emit_Ack(), fprintf(), and msg.
Referenced by DaVinci(), and Menu_Basic_Do().
| const char * DaVinci::Parse_Menu_Label | ( | const char * | epfx | ) | [private] |
Definition at line 474 of file DaVinci.cxx.
References _menu_state, Menu_info::Add(), fprintf(), INT, len, MAX_MENU_LABEL_LEN, NULL, strlen(), and strncpy().
Referenced by Parse_Event().
Definition at line 511 of file DaVinci.cxx.
References EK_CLOSE, EK_COM_ERROR, EK_DISCONNECT, EK_OK, EK_QUIT, EK_SEL_EDGE, EK_SEL_MENU, EK_SEL_NODES, Event_Tbl, fprintf(), INT, EVENT_T::kind, lo, N_EVENT, NULL, Parse_Edge_Id(), Parse_Menu_Label(), Parse_Node_Ids(), EVENT_T::sel_nodes, ss, strchr, strncmp(), and EVENT_T::u.
Referenced by Event_Loop(), and Wait_For_Ack().
Definition at line 410 of file DaVinci.cxx.
References _m, CXX_NEW_ARRAY, fprintf(), i, INT, NULL, sp, sscanf(), and strchr.
Referenced by Parse_Event().
Definition at line 582 of file DaVinci.cxx.
References _io, _menu_state, DM_ACTIVE, DM_INACTIVE, i, INT, DaVinci::IO::Out_Fmt(), and Menu_info::Set().
Referenced by Menu_Create().
Definition at line 602 of file DaVinci.cxx.
References NODE_TYPE::_border, NODE_TYPE::_hide, _io, NODE_TYPE::_node_color, NODE_TYPE::_node_shape, fprintf(), NB_DOUBLE, NB_SINGLE, NB_UNSET, NH_HIDE, NH_SHOW, NH_UNSET, NS_BOX, NS_CIRCLE, NS_ELLIPSE, NS_RHOMBUS, NS_TEXT, NS_UNSET, NULL, DaVinci::IO::Out_Fmt(), and val.
Referenced by Change_Attr(), New_Edge(), New_Node(), Node_Begin(), and Out_Edge().
Definition at line 654 of file DaVinci.cxx.
References EDGE_TYPE::_edge_color, EDGE_TYPE::_edge_dir, EDGE_TYPE::_edge_pattern, _io, comma, ED_BOTH, ED_INVERSE, ED_NONE, ED_NORMAL, ED_UNSET, EP_DASHED, EP_DOTTED, EP_DOUBLE, EP_SOLID, EP_THICK, EP_UNSET, fprintf(), NULL, DaVinci::IO::Out_Fmt(), and val.
| void DaVinci::Menu_Basic_Do | ( | const char * | label | ) | [private] |
Definition at line 695 of file DaVinci.cxx.
References _contex, _io, _use_socket, Emit_Do(), Exit_Event_Loop(), DaVinci::IO::Out_Fmt(), s, sprintf(), and strcmp().
Referenced by Event_Loop().
| DA_ACK DaVinci::Menu_Set_Active | ( | ) | [private] |
Definition at line 711 of file DaVinci.cxx.
References _io, _menu_state, DM_ACTIVE, first, Menu_info::items, DaVinci::IO::Out_Fmt(), and Wait_For_Ack().
Referenced by Menu_Activate(), Menu_Create(), and Menu_Deactivate().
| void DaVinci::Kill_Davinci | ( | ) | [private] |
Definition at line 730 of file DaVinci.cxx.
References _display_ok, _io, _pid, DaVinci::IO::Close(), INT, kill, and waitpid.
Definition at line 462 of file DaVinci.h.
References _use_socket, DevWarn, getenv(), and NULL.
Referenced by FEEDBACK::Display_FB_CFG_From_Whirl(), draw_bb_dependence_graph(), draw_bb_op(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), dV_view_fb_cfg(), dV_view_fb_opt_cfg(), dV_view_whirl(), FREQ_View_CFG(), and WB_DAV_deps_loop().
| bool DaVinci::is_ok | ( | ) | const [inline] |
Definition at line 482 of file DaVinci.h.
References _display_ok.
Referenced by WB_DAV_deps_loop(), and WB_DAV_deps_ref().
| void DaVinci::operator= | ( | const DaVinci & | ) |
| void DaVinci::Event_Loop | ( | DaVinci_Callback * | cb_hook | ) |
Definition at line 934 of file DaVinci.cxx.
References _basic_menu_added, _contex, _contex_count, _contex_use_array, _current_contex, _display_ok, _event_q, _event_q_socket, _in_event_loop, _io, _tcp_socket, _use_socket, close, EVENT_T::com_error, CONTEX_UNUSE, DaVinci_Callback::Edge_Select(), EK_CLOSE, EK_COM_ERROR, EK_DISCONNECT, EK_OK, EK_QUIT, EK_SEL_EDGE, EK_SEL_MENU, EK_SEL_NODES, fprintf(), i, MENU_INFO::id, DaVinci::IO::In_Line(), INT, EVENT_T::kind, Menu_Basic_Do(), Menu_Create(), DaVinci_Callback::Menu_Select(), msg, N_MENU_BASIC, DaVinci_Callback::Node_Select(), NULL, Parse_Event(), EVENT_T::sel_edge, EVENT_T::sel_menu, EVENT_T::sel_nodes, sscanf(), strcmp(), and EVENT_T::u.
Referenced by draw_bb_dependence_graph(), draw_bb_op(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), dV_view_fb_cfg(), dV_view_fb_opt_cfg(), dV_view_whirl(), FREQ_View_CFG(), WB_DAV_deps_loop(), and WB_DAV_deps_ref().
| void DaVinci::Exit_Event_Loop | ( | ) |
Definition at line 1056 of file DaVinci.cxx.
References _in_event_loop.
Referenced by Menu_Basic_Do().
| DA_ACK DaVinci::Title | ( | const char * | title | ) |
Definition at line 1062 of file DaVinci.cxx.
References _io, BASE_SET, FT_TITLE, DaVinci::IO::Out_Fmt(), Usage_Ok(), and Wait_For_Ack().
Referenced by draw_bb_dependence_graph(), draw_bb_op(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), dV_view_fb_cfg(), dV_view_fb_opt_cfg(), dV_view_whirl(), FREQ_View_CFG(), WB_DAV_deps_loop(), and WB_DAV_deps_ref().
| DA_ACK DaVinci::Show_Status | ( | const char * | status | ) |
Definition at line 1071 of file DaVinci.cxx.
References _io, BASE_SET, FT_SHOW_STATUS, DaVinci::IO::Out_Fmt(), Usage_Ok(), and Wait_For_Ack().
Referenced by dV_view_fb_cfg(), dV_view_fb_opt_cfg(), and FREQ_View_CFG().
| DA_ACK DaVinci::Show_Message | ( | const char * | msg | ) |
Definition at line 1080 of file DaVinci.cxx.
References _io, BASE_SET, FT_SHOW_MESSAGE, DaVinci::IO::Out_Fmt(), Usage_Ok(), and Wait_For_Ack().
Definition at line 1089 of file DaVinci.cxx.
References _io, BASE_SET, Emit_Menu(), FT_MENU_CREATE, Menu_Set_Active(), msg, NULL, DaVinci::IO::Out_Fmt(), Usage_Ok(), and Wait_For_Ack().
Referenced by dV_view_whirl(), and Event_Loop().
Definition at line 1106 of file DaVinci.cxx.
References _menu_state, BASE_SET, DM_ACTIVE, FT_MENU_ACTIVATE, i, INT, Menu_Set_Active(), Menu_info::Set(), and Usage_Ok().
Definition at line 1117 of file DaVinci.cxx.
References _menu_state, BASE_SET, DM_INACTIVE, FT_MENU_DEACTIVATE, i, INT, Menu_Set_Active(), Menu_info::Set(), and Usage_Ok().
| void DaVinci::Graph_Begin | ( | ) |
Definition at line 1128 of file DaVinci.cxx.
References _io, _node_cnt, BASE_SET, FT_GRAPH_BEGIN, DaVinci::IO::Out_Fmt(), and Usage_Ok().
Referenced by OPT_FEEDBACK::Draw(), FB_CFG::Draw(), draw_bb_dependence_graph(), draw_bb_op(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), draw_whirl_tree(), FREQ_View_CFG(), WB_DAV_draw_deps_loop(), and WB_DAV_draw_deps_ref().
Definition at line 1137 of file DaVinci.cxx.
References _edge_cnt, _io, _node_cnt, _node_def_set, NODE_TYPE::_type_name, _usage_check, comma, Emit_Attr(), fprintf(), FT_GRAPH_BEGIN, FT_NODE_BEGIN, FT_NODE_END, DaVinci::IO::Out_Fmt(), and Usage_Ok().
Referenced by OPT_FEEDBACK::Draw(), FB_CFG::Draw(), draw_bb_dependence_graph(), draw_bb_op(), draw_expr(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), draw_stmt(), FREQ_View_CFG(), WB_DAV_draw_deps_loop(), and WB_DAV_draw_deps_ref().
| void DaVinci::Out_Edge | ( | const EDGE_ID & | edge_id, | |
| const EDGE_TYPE & | edge_type, | |||
| const NODE_ID | dest_id | |||
| ) |
Definition at line 1161 of file DaVinci.cxx.
References _edge_cnt, _io, _node_ref_set, EDGE_TYPE::_type_name, _usage_check, EDGE_ID::dst, Emit_Attr(), FT_NODE_BEGIN, FT_OUT_EDGE, DaVinci::IO::Out_Fmt(), EDGE_ID::src, and Usage_Ok().
Referenced by OPT_FEEDBACK::Draw(), FB_CFG::Draw(), draw_bb_dependence_graph(), draw_bb_op(), draw_expr(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), draw_stmt(), FREQ_View_CFG(), WB_DAV_draw_deps_loop(), and WB_DAV_draw_deps_ref().
| void DaVinci::Node_End | ( | ) |
Definition at line 1180 of file DaVinci.cxx.
References _io, FT_NODE_BEGIN, FT_NODE_END, FT_OUT_EDGE, DaVinci::IO::Out_Fmt(), and Usage_Ok().
Referenced by OPT_FEEDBACK::Draw(), FB_CFG::Draw(), draw_bb_dependence_graph(), draw_bb_op(), draw_expr(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), draw_stmt(), FREQ_View_CFG(), WB_DAV_draw_deps_loop(), and WB_DAV_draw_deps_ref().
| DA_ACK DaVinci::Graph_End | ( | ) |
Definition at line 1188 of file DaVinci.cxx.
References _io, _node_def_set, _node_ref_set, _usage_check, fprintf(), FT_GRAPH_BEGIN, FT_GRAPH_END, FT_NODE_END, DaVinci::IO::Out_Fmt(), Usage_Ok(), and Wait_For_Ack().
Referenced by OPT_FEEDBACK::Draw(), FB_CFG::Draw(), draw_bb_dependence_graph(), draw_bb_op(), draw_flow_graph(), draw_global_cfg(), draw_partition_graph(), draw_region_tree(), draw_regional_cfg(), draw_regional_dependence_graph(), draw_whirl_tree(), FREQ_View_CFG(), WB_DAV_draw_deps_loop(), and WB_DAV_draw_deps_ref().
| DA_ACK DaVinci::Change_Attr | ( | const NODE_ID | node_id, | |
| const NODE_TYPE & | nt, | |||
| const char * | new_label = NULL | |||
| ) |
Definition at line 1210 of file DaVinci.cxx.
References _io, BASE_SET, comma, Emit_Attr(), FT_CHANGE_ATTR, DaVinci::IO::Out_Fmt(), Usage_Ok(), and Wait_For_Ack().
Referenced by Callback::Edge_Select().
Definition at line 1232 of file DaVinci.cxx.
References _io, BASE_SET, EDGE_ID::dst, Emit_Attr(), FT_CHANGE_ATTR, DaVinci::IO::Out_Fmt(), EDGE_ID::src, Usage_Ok(), and Wait_For_Ack().
| void DaVinci::Update_Begin | ( | ) |
Definition at line 1245 of file DaVinci.cxx.
References _edge_cnt, _io, _node_cnt, BASE_SET, FT_UPDATE_BEGIN, DaVinci::IO::Out_Fmt(), and Usage_Ok().
Definition at line 1255 of file DaVinci.cxx.
References _edge_cnt, _io, _node_cnt, comma, Emit_Attr(), fprintf(), FT_NEW_NODE, FT_UPDATE_BEGIN, DaVinci::IO::Out_Fmt(), and Usage_Ok().
Definition at line 1272 of file DaVinci.cxx.
References _edge_cnt, _io, Emit_Attr(), FT_NEW_EDGE, FT_NEW_NODE, FT_UPDATE_BEGIN, DaVinci::IO::Out_Fmt(), and Usage_Ok().
Definition at line 1291 of file DaVinci.cxx.
References _edge_cnt, _io, dst, FT_DELETE_EDGE, FT_NEW_EDGE, FT_NEW_NODE, FT_UPDATE_BEGIN, DaVinci::IO::Out_Fmt(), src, and Usage_Ok().
| DA_ACK DaVinci::Update_End | ( | ) |
Definition at line 1306 of file DaVinci.cxx.
References _edge_cnt, _io, FT_NEW_EDGE, FT_NEW_NODE, FT_UPDATE_BEGIN, FT_UPDATE_END, DaVinci::IO::Out_Fmt(), Usage_Ok(), and Wait_For_Ack().
IO DaVinci::_io [private] |
Definition at line 400 of file DaVinci.h.
Referenced by Change_Attr(), DaVinci(), Delete_Edge(), Emit_Ack(), Emit_Attr(), Emit_Menu(), Event_Loop(), Graph_Begin(), Graph_End(), Kill_Davinci(), Menu_Basic_Do(), Menu_Create(), Menu_Set_Active(), New_Edge(), New_Node(), Node_Begin(), Node_End(), Out_Edge(), Show_Message(), Show_Status(), Title(), Update_Begin(), Update_End(), and Wait_For_Ack().
MEM_POOL* DaVinci::_m [private] |
std::queue<EVENT_T> DaVinci::_event_q [private] |
std::set<NODE_ID> DaVinci::_node_def_set [private] |
std::set<NODE_ID> DaVinci::_node_ref_set [private] |
Menu_info DaVinci::_menu_state [private] |
Definition at line 405 of file DaVinci.h.
Referenced by Emit_Menu(), Menu_Activate(), Menu_Deactivate(), Menu_Set_Active(), and Parse_Menu_Label().
bool DaVinci::_basic_menu_added [private] |
bool DaVinci::_in_event_loop [private] |
Definition at line 407 of file DaVinci.h.
Referenced by DaVinci(), Event_Loop(), and Exit_Event_Loop().
bool DaVinci::_display_ok [private] |
Definition at line 408 of file DaVinci.h.
Referenced by DaVinci(), Event_Loop(), is_ok(), Kill_Davinci(), Usage_Error(), Usage_Ok(), and Wait_For_Ack().
bool DaVinci::_usage_check [private] |
Definition at line 409 of file DaVinci.h.
Referenced by DaVinci(), Graph_End(), Node_Begin(), and Out_Edge().
FTAG DaVinci::_ftag_last [private] |
INT DaVinci::_node_cnt [private] |
Definition at line 411 of file DaVinci.h.
Referenced by DaVinci(), Graph_Begin(), New_Node(), Node_Begin(), and Update_Begin().
INT DaVinci::_edge_cnt [private] |
Definition at line 412 of file DaVinci.h.
Referenced by DaVinci(), Delete_Edge(), New_Edge(), New_Node(), Node_Begin(), Out_Edge(), Update_Begin(), and Update_End().
pid_t DaVinci::_pid [private] |
INT DaVinci::_contex [private] |
Definition at line 414 of file DaVinci.h.
Referenced by DaVinci(), Event_Loop(), and Menu_Basic_Do().
std::queue< EVENT_T > DaVinci::_event_q_socket [static, private] |
INT DaVinci::_tcp_socket = 0 [static, private] |
INT DaVinci::_davinci_count = 0 [static, private] |
Definition at line 417 of file DaVinci.h.
Referenced by DaVinci(), ~DaVinci(), and DaVinci::IO::~IO().
INT DaVinci::_contex_count = 0 [static, private] |
CONTEX_TYPE DaVinci::_contex_use_array [static, private] |
INT DaVinci::_current_contex = -1 [static, private] |
bool DaVinci::_use_socket = false [static, private] |
Definition at line 421 of file DaVinci.h.
Referenced by DaVinci(), enabled(), Event_Loop(), DaVinci::IO::In_Line(), Menu_Basic_Do(), Wait_For_Ack(), ~DaVinci(), and DaVinci::IO::~IO().
1.5.6