Puma Reference Manual Puma: Puma::CT_SimpleName Class Reference



Puma::CT_SimpleName Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_SimpleName:

Inheritance graph

List of all members.


Detailed Description

Base class for all tree nodes representing a name.

Example:

 a 

Public Member Functions

 CT_SimpleName (CTree *n)
 Constructor.
const char * NodeName () const
 Get the name of the node.
virtual const char * Text () const
 Get the string containing the name.
virtual void print (ostream &os) const
 Print the name on the given stream.
virtual CT_SimpleName * Name () const
 Get this.
CTypeInfo * Type () const
 Get the type of the entity represented by the name.
CExprValue * Value () const
 Get the value of the entity represented by the name.
CSemValue * SemValue () const
 Get the sematic value information of the name.
CSemObject * SemObject () const
 Get the sematic information about the name.
virtual CT_SimpleName * IsSimpleName ()
 Get this.
void * operator new (size_t)
 Own new operator reusing memory.
void operator delete (void *)
 Own delete operator.

Static Public Member Functions

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

Protected Member Functions

 CT_SimpleName (int size)
 Constructor.
 CT_SimpleName (int size, int properties)
 Constructor.

Constructor & Destructor Documentation

Puma::CT_SimpleName::CT_SimpleName ( int  size  )  [inline, protected]

Constructor.

Parameters:
size The number of sub-names (for qualified names).

Puma::CT_SimpleName::CT_SimpleName ( int  size,
int  properties 
) [inline, protected]

Constructor.

Parameters:
size The number of sub-names (for qualified names).
properties Additional name list properties (for root qualified names).

Puma::CT_SimpleName::CT_SimpleName ( CTree *  n  )  [inline]

Constructor.

Parameters:
n The sub-tree containing the name.


Member Function Documentation

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

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

virtual const char* Puma::CT_SimpleName::Text (  )  const [inline, virtual]

Get the string containing the name.

Reimplemented in Puma::CT_SpecialName, Puma::CT_TemplateName, and Puma::CT_QualName.

virtual void Puma::CT_SimpleName::print ( ostream &  os  )  const [inline, virtual]

Print the name on the given stream.

Parameters:
os The output stream.

Implements Puma::Printable.

Reimplemented in Puma::CT_QualName.

virtual CT_SimpleName* Puma::CT_SimpleName::Name (  )  const [inline, virtual]

Get this.

Reimplemented in Puma::CT_QualName.

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

Get the type of the entity represented by the name.

Reimplemented from Puma::CTree.

Reimplemented in Puma::CT_QualName.

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

Get the value of the entity represented by the name.

Reimplemented from Puma::CTree.

Reimplemented in Puma::CT_QualName.

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

Get the sematic value information of the name.

Reimplemented from Puma::CTree.

Reimplemented in Puma::CT_QualName.

CSemObject* Puma::CT_SimpleName::SemObject (  )  const [inline, virtual]

Get the sematic information about the name.

Reimplemented from Puma::CTree.

Reimplemented in Puma::CT_QualName.

virtual CT_SimpleName* Puma::CT_SimpleName::IsSimpleName (  )  [inline, virtual]

Get this.

Reimplemented from Puma::CTree.

void* Puma::CT_SimpleName::operator new ( size_t   ) 

void Puma::CT_SimpleName::operator delete ( void *   ) 




Puma Reference Manual. Created on 11 Jul 2008.