| Puma Reference Manual | Puma: Puma::CT_StaticAssert Class Reference |
#include <CC1XTree.h>

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. | |
| CTree * | Son (int n) const |
| Get the n-th son. | |
| void | ReplaceSon (CTree *old_son, CTree *new_son) |
| Replace a son. | |
| CT_Expression * | Expr () const |
| Get the constant expression. | |
| CT_String * | ErrorMessage () const |
| Get the error message node. | |
Static Public Member Functions | |
| static const char * | NodeId () |
| Get the identifier for this node type. | |
| Puma::CT_StaticAssert::CT_StaticAssert | ( | CTree * | sa, |
| CTree * | op, | ||
| CTree * | ce, | ||
| CTree * | co, | ||
| CTree * | msg, | ||
| CTree * | cl | ||
| ) | [inline] |
Constructor.
| sa | The keyword 'static_assert'. |
| op | The opening bracket token. |
| ce | The constant expression. |
| co | The comma token. |
| msg | The error message. |
| cl | The closing bracket token. |
| 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] |
Replace a son.
| old_son | The son to replace. |
| new_son | The new son. |
Reimplemented from Puma::CTree.
| CTree* Puma::CT_StaticAssert::Son | ( | int | n | ) | const [inline, virtual] |
Get the n-th son.
| n | The index of the son. |
Reimplemented from Puma::CTree.
| int Puma::CT_StaticAssert::Sons | ( | ) | const [inline, virtual] |
Get the number of sons.
Implements Puma::CTree.