Puma Reference Manual Puma: Puma::CT_EnumSpec Class Reference



Puma::CT_EnumSpec Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_EnumSpec:

Inheritance graph

List of all members.


Detailed Description

Tree node representing an enumeration specifier.

Example:

 enum X 

Public Member Functions

 CT_EnumSpec (CTree *k, CTree *n)
 Constructor.
const char * NodeName () const
 Get the name of the node.

Static Public Member Functions

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

Constructor & Destructor Documentation

Puma::CT_EnumSpec::CT_EnumSpec ( CTree k,
CTree n 
) [inline]

Constructor.

Parameters:
k The 'enum' keyword.
n The name of the enumeration.


Member Function Documentation

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

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_ClassSpec.

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

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_ClassSpec.




Puma Reference Manual. Created on 11 Jul 2008.