Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Operator Class Reference

#include <operators.h>

List of all members.

Public Types

enum  OperatorID {
  SIZEOF = 300, UPLUS, UMINUS, INDIR,
  ADDRESS, POSTINC, POSTDEC, PREINC,
  PREDEC, ARROW, ICR, DECR,
  LS, RS, LE, GE,
  EQ, NE, ANDAND, OROR,
  MULTassign, DIVassign, MODassign, PLUSassign,
  MINUSassign, LSassign, RSassign, ANDassign,
  ERassign, ORassign, Index
}

Public Methods

 Operator (unsigned int id, const char *print, const char *name, int unary_prec, int binary_prec, bool is_left_assoc=true)
unsigned int id () const
int unary_prec () const
int binary_prec () const
bool is_left_assoc () const
const string & name () const
const string & print () const
bool is_assignment () const
bool is_arithmetic () const
bool is_comparison () const

Private Attributes

unsigned int _id
int _unary_prec
int _binary_prec
bool _is_left_assoc
string _name
string _print


Member Enumeration Documentation

enum Operator::OperatorID
 

Enumeration values:
SIZEOF 
UPLUS 
UMINUS 
INDIR 
ADDRESS 
POSTINC 
POSTDEC 
PREINC 
PREDEC 
ARROW 
ICR 
DECR 
LS 
RS 
LE 
GE 
EQ 
NE 
ANDAND 
OROR 
MULTassign 
DIVassign 
MODassign 
PLUSassign 
MINUSassign 
LSassign 
RSassign 
ANDassign 
ERassign 
ORassign 
Index 


Constructor & Destructor Documentation

Operator::Operator unsigned int    id,
const char *    print,
const char *    name,
int    unary_prec,
int    binary_prec,
bool    is_left_assoc = true
[inline]
 


Member Function Documentation

int Operator::binary_prec   const [inline]
 

unsigned int Operator::id   const [inline]
 

bool Operator::is_arithmetic   const
 

bool Operator::is_assignment   const
 

bool Operator::is_comparison   const
 

bool Operator::is_left_assoc   const [inline]
 

const string& Operator::name   const [inline]
 

const string& Operator::print   const [inline]
 

int Operator::unary_prec   const [inline]
 


Member Data Documentation

int Operator::_binary_prec [private]
 

unsigned int Operator::_id [private]
 

bool Operator::_is_left_assoc [private]
 

string Operator::_name [private]
 

string Operator::_print [private]
 

int Operator::_unary_prec [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 12:06:31 2002 for C-Breeze by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001