Puma Reference Manual Puma: Puma::CT_UnionDef Class Reference



Puma::CT_UnionDef Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_UnionDef:

Inheritance graph

List of all members.


Detailed Description

Tree node representing the definition of a union.

Example:

 union U { int i; } 

Public Member Functions

 CT_UnionDef (CTree *k, CTree *n, CTree *b=0)
 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_UnionDef::CT_UnionDef ( CTree k,
CTree n,
CTree b = 0 
) [inline]

Constructor.

Parameters:
k The keyword 'union'.
n The name of the union.
b The base union list.


Member Function Documentation

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

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_ClassDef.

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

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_ClassDef.




Puma Reference Manual. Created on 11 Jul 2008.