Puma Reference Manual Puma::CT_UnionDef Class Reference



Puma::CT_UnionDef Class Reference

Tree node representing the definition of a union. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_UnionDef:
Inheritance graph

List of all members.

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.

Detailed Description

Tree node representing the definition of a union.

Example:

 union U { int i; } 

Constructor & Destructor Documentation

Puma::CT_UnionDef::CT_UnionDef ( CTree k,
CTree n,
CTree b = 0 
) [inline]

Constructor.

Parameters:
kThe keyword 'union'.
nThe name of the union.
bThe 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.