Puma::CT_PrivateName Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_PrivateName:

Inheritance graph

List of all members.


Detailed Description

Tree node representing a private name. Private names are generated names for abstract declarators etc.

Public Member Functions

 CT_PrivateName (const char *n)
const char * NodeName () const
int Sons () const
CTreeSon (int n) const
void * operator new (size_t)
void operator delete (void *)

Static Public Member Functions

static const char * NodeId ()

Constructor & Destructor Documentation

Puma::CT_PrivateName::CT_PrivateName ( const char *  n  )  [inline]

Constructor.

Parameters:
n The private (generated) name.


Member Function Documentation

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

Get the identifier for this node type. Can be compared with NodeName().

Reimplemented from Puma::CT_SimpleName.

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

Get the name of the node. Can be compared with NodeId().

Reimplemented from Puma::CT_SimpleName.

int Puma::CT_PrivateName::Sons (  )  const [inline, virtual]

Get the number of sons.

Reimplemented from Puma::CT_List.

CTree* Puma::CT_PrivateName::Son ( int  n  )  const [inline, virtual]

Get the n-th son.

Parameters:
n The index of the son.
Returns:
The n-th son or NULL.

Reimplemented from Puma::CT_List.

void* Puma::CT_PrivateName::operator new ( size_t   ) 

Own new operator reusing memory.

Reimplemented from Puma::CT_SpecialName.

void Puma::CT_PrivateName::operator delete ( void *   ) 

Own delete operator.

Reimplemented from Puma::CT_SpecialName.


Generated on Sat May 10 03:03:58 2008 for Puma by  doxygen 1.5.5