Puma Reference Manual Puma: Puma::CT_StaticAssert Class Reference



Puma::CT_StaticAssert Class Reference

#include <CC1XTree.h>

Inheritance diagram for Puma::CT_StaticAssert:
Inheritance graph

List of all members.

Public Member Functions

 CT_StaticAssert (CTree *sa, CTree *op, CTree *ce, CTree *co, CTree *msg, CTree *cl)
 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 ReplaceSon (CTree *old_son, CTree *new_son)
 Replace a son.
CT_ExpressionExpr () const
 Get the constant expression.
CT_StringErrorMessage () const
 Get the error message node.

Static Public Member Functions

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

Constructor & Destructor Documentation

Puma::CT_StaticAssert::CT_StaticAssert ( CTree sa,
CTree op,
CTree ce,
CTree co,
CTree msg,
CTree cl 
) [inline]

Constructor.

Parameters:
saThe keyword 'static_assert'.
opThe opening bracket token.
ceThe constant expression.
coThe comma token.
msgThe error message.
clThe closing bracket token.

Member Function Documentation

CT_String* Puma::CT_StaticAssert::ErrorMessage ( ) const [inline]

Get the error message node.

CT_Expression* Puma::CT_StaticAssert::Expr ( ) const [inline]

Get the constant expression.

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

Get the identifier for this node type.

Can be compared with NodeName().

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

Get the name of the node.

Can be compared with NodeId().

Implements Puma::CTree.

void Puma::CT_StaticAssert::ReplaceSon ( CTree old_son,
CTree new_son 
) [inline, virtual]

Replace a son.

Parameters:
old_sonThe son to replace.
new_sonThe new son.

Reimplemented from Puma::CTree.

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

Get the n-th son.

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

Reimplemented from Puma::CTree.

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

Get the number of sons.

Implements Puma::CTree.