Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
rpt_expr_lookup Class Reference

#include <lookup.h>

Inheritance diagram for rpt_expr_lookup:
rpt_expr

Public Member Functions

virtual ~rpt_expr_lookup ()

Static Public Member Functions

static rpt_expr::pointer create (const rpt_expr::pointer &lhs, const rpt_expr::pointer &rhs)
static rpt_expr::pointer create (const rpt_expr::pointer &lhs, const nstring &rhs)

Protected Member Functions

bool lvalue () const
rpt_value::pointer evaluate () const

Private Member Functions

 rpt_expr_lookup (const rpt_expr::pointer &lhs, const rpt_expr::pointer &rhs)
 rpt_expr_lookup ()
 rpt_expr_lookup (const rpt_expr_lookup &)
rpt_expr_lookupoperator= (const rpt_expr_lookup &)

Detailed Description

The rpt_expr_lookup class is used to represent array lookup syntax tree expression nodes.

Definition at line 30 of file lookup.h.


Constructor & Destructor Documentation

virtual rpt_expr_lookup::~rpt_expr_lookup ( ) [virtual]

The destructor.

rpt_expr_lookup::rpt_expr_lookup ( const rpt_expr::pointer lhs,
const rpt_expr::pointer rhs 
) [private]

The constructor. It is private on purpose, use the "create" class method instead.

Parameters:
lhsThe left hand expression, the array to index
rhsThe right hand expression, the array index

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static rpt_expr::pointer rpt_expr_lookup::create ( const rpt_expr::pointer lhs,
const rpt_expr::pointer rhs 
) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
lhsThe left hand expression, the array to index
rhsThe right hand expression, the array index
static rpt_expr::pointer rpt_expr_lookup::create ( const rpt_expr::pointer lhs,
const nstring rhs 
) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
lhsThe left hand expression, the structure to index
rhsThe right hand expression, the member name
rpt_value::pointer rpt_expr_lookup::evaluate ( ) const [protected, virtual]

The evaluate method may be used to calculate the value of the expression syntax tree.

Implements rpt_expr.

bool rpt_expr_lookup::lvalue ( ) const [protected, virtual]

The lvalue method may be used to determine whether or not this expression node is an L-value (something which may appear on the left hand side of an assigment, a variable).

The default implementation, which is true for the vast majority of expression nodes, returns false.

Reimplemented from rpt_expr.

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

The assignment operator. Do not use.


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