Puma Reference Manual | Puma::CT_GnuTypeof Class Reference |
Tree node representing a typeof expression. More...
#include <Puma/GnuCTree.h>
Public Member Functions | |
CT_GnuTypeof (CTree *k, CTree *o, CTree *t, CTree *c) | |
Constructor. | |
CT_GnuTypeof (CTree *k, CTree *e) | |
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. | |
CTree * | Expr () const |
Get the expression from which to get the type string. | |
CT_NamedType * | TypeName () const |
Get the type from which to get the type string. | |
CSemValue * | SemValue () const |
Get the semantic value information. | |
CTypeInfo * | Type () const |
Get the resulting type. | |
![]() | |
CSemValue () | |
Constructor. | |
virtual | ~CSemValue () |
Destructor. | |
void | setValue (CExprValue *v) |
Set the semantic value information object. | |
void | setValueRef (CExprValue *v) |
Set the semantic value information object as reference. | |
void | setType (CTypeInfo *t) |
Set the type information object. | |
void | setTypeRef (CTypeInfo *t) |
Set the type information object as reference. | |
CExprValue * | getValue () |
Get the semantic information about the value. | |
CTypeInfo * | getType () |
Get the type of the value. |
Static Public Member Functions | |
static const char * | NodeId () |
Get the identifier for this node type. |
Additional Inherited Members | |
![]() | |
CT_DeclSpec () | |
Constructor. | |
![]() | |
CTree * | Son (CTree *const *sons, int len, int n) const |
Get the n-th son from given sons array. | |
int | Sons (CTree *const *sons, int len) const |
Get the number of sons in the given sons array. | |
void | ReplaceSon (CTree **sons, int len, CTree *old_son, CTree *new_son) |
Replace a son. | |
void | ReplaceSon (CTree *&son, CTree *old_son, CTree *new_son) |
Replace a son if it equals the given son. | |
void | AddSon (CTree *&son, CTree *new_son) |
Add a new son. | |
void | SetParent (const CTree *parent) |
Set the parent tree node. | |
void | SetParent (CTree *node, const CTree *parent) |
Set the parent tree node of the given tree node. | |
CTree () | |
Default constructor. | |
![]() | |
CExprValue * | value |
The semantic value information object. | |
CTypeInfo * | type |
The type information object. |
Tree node representing a typeof expression.
Example:
Constructor.
k | The keyword 'typeof'. |
o | Left parenthesis before the type. |
t | The type from which to get the type string. |
c | Right parenthesis behind the type. |
Constructor.
k | The keyword 'typeof'. |
e | The expression from which to get the type string. |
|
inline |
Get the expression from which to get the type string.
|
static |
Get the identifier for this node type.
Can be compared with NodeName().
|
inlinevirtual |
Replace a son.
old_son | The son to replace. |
new_son | The new son. |
Reimplemented from Puma::CTree.
|
inlinevirtual |
Get the semantic value information.
Reimplemented from Puma::CTree.
|
inlinevirtual |
Get the n-th son.
n | The index of the son. |
Reimplemented from Puma::CTree.
|
inlinevirtual |
Get the number of sons.
Implements Puma::CTree.
|
inlinevirtual |
Get the resulting type.
Reimplemented from Puma::CTree.
|
inline |
Get the type from which to get the type string.