Puma::CConstant Class Reference

#include <CConstant.h>

Inheritance diagram for Puma::CConstant:

Inheritance graph

List of all members.

Public Member Functions

 CConstant (LONG_LONG v, CTypeInfo *t)
 CConstant (U_LONG_LONG v, CTypeInfo *t)
 CConstant (long double v, CTypeInfo *t)
virtual ~CConstant ()
CConstantcast_to (CTypeInfo *) const
CConstantcompute (int) const
CConstantcompute (int, const CConstant *) const
LONG_LONG convert_to_int () const
U_LONG_LONG convert_to_uint () const
long double convert_to_float () const
CConstantConstant () const
CConstantduplicate () const
bool operator== (const CConstant &) const
bool operator!= (const CConstant &) const
bool isNull () const
bool isPositive () const
bool isNegative () const
bool isSigned () const
bool isUnsigned () const
bool isFloat () const
virtual void print (ostream &out) const

Classes

union  Value


Constructor & Destructor Documentation

Puma::CConstant::CConstant ( LONG_LONG  v,
CTypeInfo t 
) [inline]

Puma::CConstant::CConstant ( U_LONG_LONG  v,
CTypeInfo t 
) [inline]

Puma::CConstant::CConstant ( long double  v,
CTypeInfo t 
) [inline]

virtual Puma::CConstant::~CConstant (  )  [inline, virtual]


Member Function Documentation

CConstant* Puma::CConstant::cast_to ( CTypeInfo  )  const

CConstant* Puma::CConstant::compute ( int   )  const

CConstant* Puma::CConstant::compute ( int  ,
const CConstant  
) const

LONG_LONG Puma::CConstant::convert_to_int (  )  const

U_LONG_LONG Puma::CConstant::convert_to_uint (  )  const

long double Puma::CConstant::convert_to_float (  )  const

CConstant* Puma::CConstant::Constant (  )  const [inline, virtual]

Reimplemented from Puma::CExprValue.

CConstant* Puma::CConstant::duplicate (  )  const

bool Puma::CConstant::operator== ( const CConstant  )  const

bool Puma::CConstant::operator!= ( const CConstant  )  const

bool Puma::CConstant::isNull (  )  const

bool Puma::CConstant::isPositive (  )  const

bool Puma::CConstant::isNegative (  )  const

bool Puma::CConstant::isSigned (  )  const [inline]

bool Puma::CConstant::isUnsigned (  )  const [inline]

bool Puma::CConstant::isFloat (  )  const [inline]

virtual void Puma::CConstant::print ( ostream &  out  )  const [virtual]

Implements Puma::CExprValue.


Generated on Sat May 10 03:03:54 2008 for Puma by  doxygen 1.5.5