![]() |
PUMA Library Reference Manual
|
#include <Puma/CStrLiteral.h>
Inheritance diagram for Puma::CStrLiteral:String literal abstraction.
Holds the string value, its length, and the string type.
Public Member Functions | |
| CStrLiteral (const char *s, unsigned long len, CTypeInfo *t) | |
| Constructor. | |
| virtual | ~CStrLiteral () |
| Destructor. | |
| virtual void | print (std::ostream &out) const |
| Print the string on the given output stream. | |
| const char * | String () const |
| Get the wide string. | |
| unsigned long | Length () const |
| Get the length of the string. | |
| CStrLiteral * | StrLiteral () const |
| Get this. | |
Public Member Functions inherited from Puma::CExprValue | |
| virtual | ~CExprValue () |
| Destructor. | |
| CTypeInfo * | Type () const |
| Get the type of the value. | |
| virtual CConstant * | Constant () const |
| Get a pointer to CConstant if this is an arithmetic constant. | |
| virtual CWStrLiteral * | WStrLiteral () const |
| Get a pointer to CWStrLiteral if this is a wide string literal. | |
Additional Inherited Members | |
Protected Member Functions inherited from Puma::CExprValue | |
| CExprValue (CTypeInfo *t) | |
| Constructor. | |
|
inline |
Constructor.
| s | The string array. |
| len | The length of the string. |
| t | The type of the string. |
|
inlinevirtual |
Destructor.
Frees the string.
|
inline |
Get the length of the string.
|
inlinevirtual |
Print the string on the given output stream.
| out | The output stream. |
Implements Puma::CExprValue.
|
inline |
Get the wide string.
|
inlinevirtual |
Get this.
Reimplemented from Puma::CExprValue.