Puma Reference Manual Puma: Puma::CT_SimpleName Class Reference



Puma::CT_SimpleName Class Reference

Base class for all tree nodes representing a name. More...

#include <Puma/CTree.h>

Inherits Puma::CT_List, Puma::Printable, Puma::CSemValue, and Puma::CSemObject.

Inherited by Puma::CT_QualName, and Puma::CT_SpecialName.

List of all members.

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_SimpleNameName () const
 Get this.
CTypeInfoType () const
 Get the type of the entity represented by the name.
CExprValueValue () const
 Get the value of the entity represented by the name.
CSemValueSemValue () const
 Get the sematic value information of the name.
CSemObjectSemObject () const
 Get the sematic information about the name.
virtual CT_SimpleNameIsSimpleName ()
 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.

Detailed Description

Base class for all tree nodes representing a name.

Example:

 a 

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

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

Get this.

Reimplemented from Puma::CTree.

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

Get this.

Reimplemented in Puma::CT_QualName.

static const char* Puma::CT_SimpleName::NodeId (  )  [static]
const char* Puma::CT_SimpleName::NodeName (  )  const [inline, virtual]
void Puma::CT_SimpleName::operator delete ( void *   ) 
void* Puma::CT_SimpleName::operator new ( size_t   ) 
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.

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

Get the sematic information about 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.

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.

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.




Puma Reference Manual. Created on 11 Sep 2009.