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

constant Class Reference

#include <constant.h>

List of all members.

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


Constructor & Destructor Documentation

constant::constant (  signed char    SChar )  [inline]
 

constant::constant (  unsigned char    UChar )  [inline]
 

constant::constant (  signed short int    SShort )  [inline]
 

constant::constant (  unsigned short int    UShort )  [inline]
 

constant::constant (  signed int    SInt )  [inline]
 

constant::constant (  unsigned int    UInt )  [inline]
 

constant::constant (  signed long int    SLong )  [inline]
 

constant::constant (  unsigned long int    ULong )  [inline]
 

constant::constant (  float    Float )  [inline]
 

constant::constant (  double    Double )  [inline]
 

constant::constant (  const char *    Str )  [inline]
 

constant::constant (  void *    Ptr )  [inline]
 

constant::constant (    )  [inline]
 

constant::constant (  const constant &    other ) 
 

constant::~constant (    ) 
 


Member Function Documentation

const basic_type& constant::basic (    )  const [inline]
 

bool constant::Boolean (    )  const
 

constant constant::cast (  const basic_type &    new_bt,
const constant &    con
)  [static]
 

double constant::Double (    )  const [inline]
 

constant constant::eval (  const Operator *    op,
const constant &    oper
)  [static]
 

constant constant::eval (  const Operator *    op,
const constant &    oper1,
const constant &    oper2
)  [static]
 

float constant::Float (    )  const [inline]
 

unsigned long constant::Integer (    )  const
 

bool constant::is_equal_to (  const constant &    other )  const
 

bool constant::is_ptr (    )  const [inline]
 

bool constant::is_str (    )  const [inline]
 

bool constant::is_zero (    )  const
 

bool constant::no_val (    )  const [inline]
 

bool constant::operator< (  const constant &    other )  const
 

constant & constant::operator= (  const constant &    rhs ) 
 

void constant::print_char (  int    value,
ostrstream &    ost
)  [static, private]
 

void* constant::Ptr (    )  const [inline]
 

signed char constant::SChar (    )  const [inline]
 

void constant::set_no_val (    )  [inline]
 

signed int constant::SInt (    )  const [inline]
 

signed long int constant::SLong (    )  const [inline]
 

signed short int constant::SShort (    )  const [inline]
 

char* constant::Str (    )  const [inline]
 

string constant::to_string (    )  const
 

unsigned char constant::UChar (    )  const [inline]
 

unsigned int constant::UInt (    )  const [inline]
 

unsigned long int constant::ULong (    )  const [inline]
 

unsigned short int constant::UShort (    )  const [inline]
 


Member Data Documentation

basic_type constant::_bt [private]
 

bool constant::_is_ptr [private]
 

bool constant::_is_str [private]
 

bool constant::_no_val [private]
 

union { ... } constant::_v [private]
 

double constant::Double [private]
 

float constant::Float [private]
 

void* constant::Ptr [private]
 

signed char constant::SChar [private]
 

signed int constant::SInt [private]
 

signed long int constant::SLong [private]
 

signed short int constant::SShort [private]
 

char* constant::Str [private]
 

unsigned char constant::UChar [private]
 

unsigned int constant::UInt [private]
 

unsigned long int constant::ULong [private]
 

unsigned short int constant::UShort [private]
 


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