Polaris: LogicalConstExpr Class Reference

LogicalConstExpr Class Reference

An expression representing a logical constant. More...

#include <LogicalConstExpr.h>

Inheritance diagram for LogicalConstExpr:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 LogicalConstExpr (const char *data_string)
 LogicalConstExpr (const LogicalConstExpr &e)
virtual ~LogicalConstExpr ()
 LogicalConstExpr code:.
virtual LogicalConstExproperator= (const LogicalConstExpr &)
virtual Expressionclone () const
 Return a copy of myself.
virtual int structures_OK () const
 Return 1 if my structures are in a valid state.
virtual void convert (BinRep &exprSet, Symtab &symtab)
 See Expression.h.
virtual int exchange_expr (VDL &vdl)
 Create a node in the "expression" member and return the index.

Protected Member Functions

 LogicalConstExpr ()

Friends

class ExprTable

Detailed Description

An expression representing a logical constant.

Polaris Expression

See also:
Expression/LogicalConstExpr.h

Expression/LogicalConstExpr.h

Expression/Expression.cc

DESCRIPTION

A LogicalConstExpr is a logical constant expression. Its single field, which is a string, is accessed through the methods data(), str_data(), and data_ref(). See StringExpr.h for more information about these methods.

Definition at line 29 of file LogicalConstExpr.h.


Constructor & Destructor Documentation

LogicalConstExpr::LogicalConstExpr const char *  data_string  )  [inline]
 

< nothing to do

Definition at line 62 of file LogicalConstExpr.h.

References LOGICAL_CONSTANT_OP, LOGICAL_TYPE, and make_type().

LogicalConstExpr::LogicalConstExpr const LogicalConstExpr e  )  [inline]
 

< nothing to do

Definition at line 69 of file LogicalConstExpr.h.

References e.

LogicalConstExpr::~LogicalConstExpr  )  [virtual]
 

LogicalConstExpr code:.

... nothing to do

Definition at line 5753 of file Expression.cc.

LogicalConstExpr::LogicalConstExpr  )  [inline, protected]
 

< nothing to do

Definition at line 55 of file LogicalConstExpr.h.

References LOGICAL_CONSTANT_OP, LOGICAL_TYPE, and make_type().

Referenced by clone().


Member Function Documentation

LogicalConstExpr & LogicalConstExpr::operator= const LogicalConstExpr  )  [virtual]
 

Definition at line 5759 of file Expression.cc.

References e, and StringExpr::operator=().

Expression * LogicalConstExpr::clone  )  const [virtual]
 

Return a copy of myself.

Implements StringExpr.

Definition at line 5767 of file Expression.cc.

References LogicalConstExpr().

int LogicalConstExpr::structures_OK  )  const [virtual]
 

Return 1 if my structures are in a valid state.

Implements StringExpr.

Definition at line 5773 of file Expression.cc.

References True.

virtual void LogicalConstExpr::convert BinRep exprSet,
Symtab symtab
[virtual]
 

See Expression.h.

Implements Expression.

int LogicalConstExpr::exchange_expr VDL vdl  )  [virtual]
 

Create a node in the "expression" member and return the index.

Reimplemented from StringExpr.

Definition at line 5780 of file Expression.cc.

References Expression::exchange_expr(), BinRep::find_ref(), Set< T >::ins(), List< T >::ins_last(), and BinRep::to_tuple().


Friends And Related Function Documentation

friend class ExprTable [friend]
 

Reimplemented from StringExpr.

Definition at line 30 of file LogicalConstExpr.h.


The documentation for this class was generated from the following files:
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:07:46 2005