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

#include <constant.h>

Inheritance diagram for tree_constant:
tree

Public Member Functions

virtual ~tree_constant ()

Static Public Member Functions

static tree::pointer create (rpt_value::pointer value)

Protected Member Functions

const char * name () const
void print () const
rpt_value::pointer evaluate (string_ty *, string_ty *, string_ty *, struct stat *) const
bool useful () const
bool constant () const
tree::pointer optimize () const

Private Member Functions

 tree_constant (rpt_value::pointer value)
 tree_constant ()
 tree_constant (const tree_constant &)
tree_constantoperator= (const tree_constant &)

Private Attributes

rpt_value::pointer value

Detailed Description

The tree_constant class us ised to represent an expression tree node with a constant value.

Definition at line 31 of file constant.h.


Constructor & Destructor Documentation

virtual tree_constant::~tree_constant ( ) [virtual]

The destructor.

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

Parameters:
valueThe value of this node.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

bool tree_constant::constant ( ) const [protected, virtual]

Implements tree.

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

Parameters:
valueThe value of this node.
rpt_value::pointer tree_constant::evaluate ( string_ty ,
string_ty ,
string_ty ,
struct stat *   
) const [protected, virtual]

Implements tree.

const char* tree_constant::name ( ) const [protected, virtual]

Implements tree.

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

The assignment operator. Do not use.

tree::pointer tree_constant::optimize ( ) const [protected, virtual]

Implements tree.

void tree_constant::print ( ) const [protected, virtual]

Implements tree.

bool tree_constant::useful ( ) const [protected, virtual]

Implements tree.


Field Documentation

The value instance variable is used to remember the value of this expression tree node.

Definition at line 85 of file constant.h.


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