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. More... | |
CT_GnuTypeof (CTree *k, CTree *e) | |
Constructor. More... | |
const char * | NodeName () const |
Get the name of the node. More... | |
int | Sons () const |
Get the number of sons. More... | |
CTree * | Son (int n) const |
Get the n-th son. More... | |
void | ReplaceSon (CTree *old_son, CTree *new_son) |
Replace a son. More... | |
CTree * | Expr () const |
Get the expression from which to get the type string. More... | |
CT_NamedType * | TypeName () const |
Get the type from which to get the type string. More... | |
CSemValue * | SemValue () const |
Get the semantic value information. More... | |
CTypeInfo * | Type () const |
Get the resulting type. More... | |
![]() | |
CSemValue () | |
Constructor. More... | |
virtual | ~CSemValue () |
Destructor. More... | |
void | setValue (CExprValue *v) |
Set the semantic value information object. More... | |
void | setValueRef (CExprValue *v) |
Set the semantic value information object as reference. More... | |
void | setType (CTypeInfo *t) |
Set the type information object. More... | |
void | setTypeRef (CTypeInfo *t) |
Set the type information object as reference. More... | |
CExprValue * | getValue () |
Get the semantic information about the value. More... | |
CTypeInfo * | getType () |
Get the type of the value. More... | |
Static Public Member Functions | |
static const char * | NodeId () |
Get the identifier for this node type. More... | |
Additional Inherited Members | |
![]() | |
static int | alloc |
static int | release |
![]() | |
CT_DeclSpec () | |
Constructor. More... | |
![]() | |
CExprValue * | value |
The semantic value information object. More... | |
CTypeInfo * | type |
The type information object. More... | |
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.