Puma Reference Manual Puma: Puma::CT_UnionDef Class Reference



Puma::CT_UnionDef Class Reference

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

#include <Puma/CTree.h>

Inherits Puma::CT_ClassDef.

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:
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 Sep 2009.