Puma Reference Manual Puma: Puma::CT_PrivateName Class Reference



Puma::CT_PrivateName Class Reference

Tree node representing a private name. More...

#include <Puma/CTree.h>

Inherits Puma::CT_SpecialName.

List of all members.

Public Member Functions

 CT_PrivateName (const char *n)
 Constructor.
const char * NodeName () const
 Get the name of the node.
int Sons () const
 Get the number of sons.
CTreeSon (int n) const
 Get the n-th son.
void * operator new (size_t)
 Own new operator reusing memory.
void operator delete (void *)
 Own delete operator.

Static Public Member Functions

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

Detailed Description

Tree node representing a private name.

Private names are generated names for instance for abstract declarators. Example:

 void foo(int*);  // first parameter of foo has private name

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.

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

Own delete operator.

Reimplemented from Puma::CT_SpecialName.

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

Own new operator reusing memory.

Reimplemented from Puma::CT_SpecialName.

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.

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

Get the number of sons.

Reimplemented from Puma::CT_List.




Puma Reference Manual. Created on 24 Nov 2009.