Puma::CT_OperatorName Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_OperatorName:

Inheritance graph

List of all members.


Detailed Description

Tree node representing the name of an overloaded operator.

Public Types

enum  { FCT_CALL = -100, SUBSCRIPT, NEW_ARRAY, DEL_ARRAY }

Public Member Functions

 CT_OperatorName (CTree *op)
 CT_OperatorName (CTree *f, CTree *op, CTree *o, CTree *c)
const char * NodeName () const
int Operator () const
void * operator new (size_t)
void operator delete (void *)

Static Public Member Functions

static const char * NodeId ()

Member Enumeration Documentation

anonymous enum

Complex operator types.

Enumerator:
FCT_CALL 
SUBSCRIPT  Function call operator, i.e. ().
NEW_ARRAY  Array subscript operator, i.e. [].
DEL_ARRAY  New array operator, i.e. new[]. Delete array operator, i.e. delete[].


Constructor & Destructor Documentation

Puma::CT_OperatorName::CT_OperatorName ( CTree op  ) 

Constructor.

Parameters:
op The token containing the operator.

Puma::CT_OperatorName::CT_OperatorName ( CTree f,
CTree op,
CTree o,
CTree c 
)

Constructor.

Parameters:
f The operator function keyword 'operator'.
op The token containing the operator.
o The token of '[' or '('.
c The token of ']' or ')'.


Member Function Documentation

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

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

Reimplemented from Puma::CT_SimpleName.

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

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

Reimplemented from Puma::CT_SimpleName.

int Puma::CT_OperatorName::Operator (  )  const [inline]

Get the operator type (either the token type or one of the complex operator types).

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

Own new operator reusing memory.

Reimplemented from Puma::CT_SpecialName.

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

Own delete operator.

Reimplemented from Puma::CT_SpecialName.


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