Implements "global" command. More...
#include <c_fn_cmd_global.h>
Public Member Functions | |
c_fn_cmd_global (const vector< string > &var_names, const string &debug, long id) | |
Constructor. | |
c_fn_cmd_global (const c_fn_cmd_global &orig) | |
Copy constructor. | |
virtual | ~c_fn_cmd_global () |
Destructor. | |
void | add_inputs (vector< var_sym_index_t > &inputs) |
Adds all inputs to vector. | |
void | clean_up () |
Deallocates microcode (if applicable). | |
c_fn_cmd * | copy () |
Creates copy of itself. | |
const string & | get_debug_string () |
Gets debug string. | |
long | get_id () |
Gets ID of command. | |
e_cmd_type | get_type () |
Returns type of command. | |
vector< string > | get_var_names () |
Gets list of global variables. | |
c_fn_cmd_global & | operator= (const c_fn_cmd_global &orig) |
Assign operator. | |
void | optimize_output (const vector< var_sym_index_t > &inputs) |
Optimizes output by removing result variables taht are not referenced as input. | |
bool | sanity_check (string &msg) |
Performs sanity check. | |
Protected Attributes | |
string | _debug |
Debug string. | |
long | _id |
Unique ID of command. | |
Private Attributes | |
vector< string > | _vars |
List of global variables to import to current scope. |
Implements "global" command.
Definition at line 62 of file c_fn_cmd_global.h.