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
|
|
- 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] |
|
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_binary |
( |
|
) |
const |
|
| bool Operator::is_comparison |
( |
|
) |
const |
|
| bool Operator::is_dismantled_binary |
( |
|
) |
const |
|
| bool Operator::is_left_assoc |
( |
|
) |
const [inline] |
|
| bool Operator::is_unary |
( |
|
) |
const |
|
| const string& Operator::name |
( |
|
) |
const [inline] |
|
| const string& Operator::print |
( |
|
) |
const [inline] |
|
| int Operator::unary_prec |
( |
|
) |
const [inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
|