Puma Reference Manual | Puma: Puma::CExprValue Class Reference |
#include <Puma/CExprValue.h>
Public Member Functions | |
virtual | ~CExprValue () |
Destructor. | |
CTypeInfo * | Type () const |
Get the type of the value. | |
virtual void | print (ostream &out) const =0 |
Print the value on the given output stream. | |
virtual CConstant * | Constant () const |
Get a pointer to CConstant if this is an arithmetic constant. | |
virtual CStrLiteral * | StrLiteral () const |
Get a pointer to CStrLiteral if this is a string literal. | |
virtual CWStrLiteral * | WStrLiteral () const |
Get a pointer to CWStrLiteral if this is a wide string literal. | |
Protected Member Functions | |
CExprValue (CTypeInfo *t) | |
Constructor. |
Puma::CExprValue::CExprValue | ( | CTypeInfo * | t | ) | [inline, protected] |
Constructor.
t | The type of the value. |
virtual Puma::CExprValue::~CExprValue | ( | ) | [inline, virtual] |
Destructor.
CTypeInfo* Puma::CExprValue::Type | ( | ) | const [inline] |
Get the type of the value.
virtual void Puma::CExprValue::print | ( | ostream & | out | ) | const [pure virtual] |
Print the value on the given output stream.
out | The stream on which to print. |
Implemented in Puma::CConstant, Puma::CStrLiteral, and Puma::CWStrLiteral.
virtual CConstant* Puma::CExprValue::Constant | ( | ) | const [inline, virtual] |
virtual CStrLiteral* Puma::CExprValue::StrLiteral | ( | ) | const [inline, virtual] |
virtual CWStrLiteral* Puma::CExprValue::WStrLiteral | ( | ) | const [inline, virtual] |
Get a pointer to CWStrLiteral if this is a wide string literal.
Reimplemented in Puma::CWStrLiteral.