Puma Reference Manual Puma: Puma::CT_String Class Reference



Puma::CT_String Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_String:

Inheritance graph

List of all members.


Detailed Description

Tree node representing a string literal.

Example:

 "abc" 

Public Member Functions

 CT_String (int size)
 Constructor.
const char * NodeName () const
 Get the name of the node.
CTypeInfo * Type () const
 Get the type of the string.
CExprValue * Value () const
 Get the string value.
CSemValue * SemValue () const
 Get the semantic value info object.
virtual CT_String * IsString ()
 Get this.

Static Public Member Functions

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

Constructor & Destructor Documentation

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

Constructor.

Parameters:
size The number of sub-strings.


Member Function Documentation

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.

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.

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.

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

Get this.

Reimplemented from Puma::CTree.




Puma Reference Manual. Created on 11 Jul 2008.