C-Breeze
C Compiler Infrastructure

[ Project home page]

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, FUNC_CALL
}

Public Member Functions

 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
bool is_unary () const
bool is_binary () const
bool is_dismantled_binary () 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 
FUNC_CALL 

Definition at line 48 of file operators.h.


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]
 

Definition at line 93 of file operators.h.


Member Function Documentation

int Operator::binary_prec  )  const [inline]
 

Definition at line 106 of file operators.h.

References _binary_prec.

unsigned int Operator::id  )  const [inline]
 

Definition at line 104 of file operators.h.

References _id.

bool Operator::is_arithmetic  )  const
 

bool Operator::is_assignment  )  const
 

bool Operator::is_binary  )  const
 

bool Operator::is_comparison  )  const
 

bool Operator::is_dismantled_binary  )  const
 

bool Operator::is_left_assoc  )  const [inline]
 

Definition at line 107 of file operators.h.

References _is_left_assoc.

bool Operator::is_unary  )  const
 

const string& Operator::name  )  const [inline]
 

Definition at line 108 of file operators.h.

References _name.

const string& Operator::print  )  const [inline]
 

Definition at line 109 of file operators.h.

References _print.

int Operator::unary_prec  )  const [inline]
 

Definition at line 105 of file operators.h.

References _unary_prec.


Member Data Documentation

int Operator::_binary_prec [private]
 

Definition at line 86 of file operators.h.

Referenced by binary_prec().

unsigned int Operator::_id [private]
 

Definition at line 84 of file operators.h.

Referenced by id().

bool Operator::_is_left_assoc [private]
 

Definition at line 87 of file operators.h.

Referenced by is_left_assoc().

string Operator::_name [private]
 

Definition at line 88 of file operators.h.

Referenced by name().

string Operator::_print [private]
 

Definition at line 89 of file operators.h.

Referenced by print().

int Operator::_unary_prec [private]
 

Definition at line 85 of file operators.h.

Referenced by unary_prec().


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

Generated on February 1, 2006
Back to the C-Breeze home page