expression_load Class Reference

#include <load.h>

Inheritance diagram for expression_load:

expression expression_load_bogus expression_load_indirect expression_load_indirect_packed expression_load_local List of all members.

Public Member Functions

virtual ~expression_load ()

Protected Member Functions

 expression_load (const location &locn, const type::pointer &operand)
bool is_lvalue () const
type::pointer get_type () const
int get_precedence () const
side_effect_t has_side_effect () const

Private Member Functions

 expression_load ()
 expression_load (const expression_load &)
expression_loadoperator= (const expression_load &)

Private Attributes

type::pointer var_type

Detailed Description

The expression_load class is used to represent an abstract load expression. Derivations take a variety of forms, including direct and indirect loads, but not constants.

Definition at line 31 of file load.h.


Constructor & Destructor Documentation

virtual expression_load::~expression_load (  )  [virtual]

The destructor.

expression_load::expression_load ( const location locn,
const type::pointer operand 
) [protected]

The constructor. (You must derive from this class.)

expression_load::expression_load (  )  [private]

The default constructor. Do not use.

expression_load::expression_load ( const expression_load  )  [private]

The copy constructor. Do not use.


Member Function Documentation

bool expression_load::is_lvalue (  )  const [protected, virtual]

The is_lvalue method is used to determine whether or not this expression is suitable to appear on the left hand side of an assignment expression.

Implements expression.

type::pointer expression_load::get_type (  )  const [protected, virtual]

The get_type method is used to get the type of this expression.

Implements expression.

int expression_load::get_precedence (  )  const [protected, virtual]

The get_precedence method is used to obtain the precedence of this expression node.

The highest precedence has the highest absolute value, the lowest precedence gets the lowest absolute value.

Implements expression.

side_effect_t expression_load::has_side_effect (  )  const [protected, virtual]

The has_side_effect method is used to determine if an expression has any effect. It is used by the parse to produce "statement with no effect" warnings.

Implements expression.

expression_load& expression_load::operator= ( const expression_load  )  [private]

The assignment operator. Do not use.


Member Data Documentation

type::pointer expression_load::var_type [private]

The var_type instance variable is used to remember the address of the variable to be loaded.

Definition at line 64 of file load.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 25 01:27:12 2007 for UCSDp-SystemCrossCompiler by  doxygen 1.5.1