#include <constant.h>
Public Methods | |
| const basic_type & | basic () const |
| constant (signed char SChar) | |
| signed char | SChar () const |
| constant (unsigned char UChar) | |
| unsigned char | UChar () const |
| constant (signed short int SShort) | |
| signed short int | SShort () const |
| constant (unsigned short int UShort) | |
| unsigned short int | UShort () const |
| constant (signed int SInt) | |
| signed int | SInt () const |
| constant (unsigned int UInt) | |
| unsigned int | UInt () const |
| constant (signed long int SLong) | |
| signed long int | SLong () const |
| constant (unsigned long int ULong) | |
| unsigned long int | ULong () const |
| constant (float Float) | |
| float | Float () const |
| constant (double Double) | |
| double | Double () const |
| constant (const char *Str) | |
| char * | Str () const |
| bool | is_str () const |
| constant (void *Ptr) | |
| void * | Ptr () const |
| bool | is_ptr () const |
| constant () | |
| bool | no_val () const |
| void | set_no_val () |
| constant (const constant &other) | |
| ~constant () | |
| constant & | operator= (const constant &rhs) |
| unsigned long | Integer () const |
| bool | Boolean () const |
| bool | is_zero () const |
| bool | is_equal_to (const constant &other) const |
| bool | operator< (const constant &other) const |
| string | to_string () const |
Static Public Methods | |
| constant | eval (const Operator *op, const constant &operand1, const constant &operand2) |
| constant | eval (const Operator *op, const constant &operand) |
| constant | cast (const basic_type &new_bt, const constant &con) |
Static Private Methods | |
| void | print_char (int value, ostrstream &ost) |
Private Attributes | |
| union { | |
| signed char SChar | |
| unsigned char UChar | |
| signed short int SShort | |
| unsigned short int UShort | |
| signed int SInt | |
| unsigned int UInt | |
| signed long int SLong | |
| unsigned long int ULong | |
| float Float | |
| double Double | |
| char * Str | |
| void * Ptr | |
| } | _v |
| basic_type | _bt |
| bool | _is_ptr |
| bool | _is_str |
| bool | _no_val |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001