Public Member Functions | Protected Attributes | Private Attributes

c_fn_cmd_if Class Reference

Implements "if()" command. More...

#include <c_fn_cmd_if.h>

Inheritance diagram for c_fn_cmd_if:
Collaboration diagram for c_fn_cmd_if:

List of all members.

Public Member Functions

 c_fn_cmd_if (c_expression *exp, const string &debug, long id)
 Constructor.
 c_fn_cmd_if (const c_fn_cmd_if &orig)
 Copy constructor.
virtual ~c_fn_cmd_if ()
 Destructor.
void add_inputs (vector< var_sym_index_t > &inputs)
 Adds all inputs to vector.
void clean_up ()
 Deallocates microcode (if applicable).
c_fn_cmdcopy ()
 Creates copy of itself.
const string & get_debug_string ()
 Gets debug string.
long get_else_jump_id ()
 Gets ID to jump to if evaluated as "false" (next expression, or "else" command).
c_expressionget_exp ()
 Gets expression.
long get_id ()
 Gets ID of command.
e_cmd_type get_type ()
 Returns type of command.
c_fn_cmd_ifoperator= (const c_fn_cmd_if &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.
virtual bool sanity_check (string &msg)=0
 Performs sanity check.
bool sanity_check (string &msg)
void set_else_jump_id (long else_id)
 Sets ID to jump to if evaluated as "false" (next expression, or "else" command).

Protected Attributes

string _debug
 Debug string.
long _id
 Unique ID of command.

Private Attributes

c_expression_exp
 Expression.
long else_jump_id
 If evaluated as "false", jump to this ID (next expression, or "else" command).

Detailed Description

Implements "if()" command.

Version:
1
Date:
2006-01
Author:
VooDooMan

Definition at line 63 of file c_fn_cmd_if.h.


The documentation for this class was generated from the following files:

Generated on Sat Aug 7 2010 15:29:42 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads