Puma Reference Manual Puma: Puma::CT_String Class Reference



Puma::CT_String Class Reference

Tree node representing a string literal. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_String:
Inheritance graph

List of all members.

Public Member Functions

 CT_String (int size)
 Constructor.
const char * NodeName () const
 Get the name of the node.
CTypeInfoType () const
 Get the type of the string.
CExprValueValue () const
 Get the string value.
CSemValueSemValue () const
 Get the semantic value info object.
virtual CT_StringIsString ()
 Get this.

Static Public Member Functions

static const char * NodeId ()
 Get the identifier for this node type.

Detailed Description

Tree node representing a string literal.

Example:

 "abc" 

Constructor & Destructor Documentation

Puma::CT_String::CT_String ( int  size) [inline]

Constructor.

Parameters:
sizeThe number of sub-strings.

Member Function Documentation

virtual CT_String* Puma::CT_String::IsString ( ) [inline, virtual]

Get this.

Reimplemented from Puma::CTree.

static const char* Puma::CT_String::NodeId ( ) [static]

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented in Puma::CT_WideString.

const char* Puma::CT_String::NodeName ( ) const [inline, virtual]

Get the name of the node.

Can be compared with NodeId().

Implements Puma::CTree.

Reimplemented in Puma::CT_WideString.

CSemValue* Puma::CT_String::SemValue ( ) const [inline, virtual]

Get the semantic value info object.

Returns:
The semantic value object or NULL.

Reimplemented from Puma::CTree.

CTypeInfo* Puma::CT_String::Type ( ) const [inline, virtual]

Get the type of the string.

Returns:
The type or NULL.

Reimplemented from Puma::CTree.

CExprValue* Puma::CT_String::Value ( ) const [inline, virtual]

Get the string value.

Returns:
The value or NULL.

Reimplemented from Puma::CTree.