Puma Reference Manual | Puma::CT_GnuAsmOperand Class Reference |
Tree node representing an extended inline assembly operand. More...
#include <Puma/GnuCTree.h>
Public Member Functions | |
CT_GnuAsmOperand (CTree *s, CTree *o, CTree *e, CTree *c) | |
Constructor. | |
CT_GnuAsmOperand (CTree *no, CTree *on, CTree *nc, CTree *s, CTree *o, CTree *e, CTree *c) | |
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. | |
CT_Expression * | Expr () const |
Get the operand expression. | |
CT_String * | String () const |
Get the operand constraint string. | |
void | ReplaceSon (CTree *old_son, CTree *new_son) |
Replace a son. | |
Static Public Member Functions | |
static const char * | NodeId () |
Get the identifier for this node type. |
Tree node representing an extended inline assembly operand.
Example:
"=f" (result)
Puma::CT_GnuAsmOperand::CT_GnuAsmOperand | ( | CTree * | s, |
CTree * | o, | ||
CTree * | e, | ||
CTree * | c | ||
) | [inline] |
Constructor.
s | The operand constraint string. |
o | Left parenthesis before the operand. |
e | The operand. |
c | Right parenthesis behind the operand. |
Puma::CT_GnuAsmOperand::CT_GnuAsmOperand | ( | CTree * | no, |
CTree * | on, | ||
CTree * | nc, | ||
CTree * | s, | ||
CTree * | o, | ||
CTree * | e, | ||
CTree * | c | ||
) | [inline] |
Constructor.
no | opening square backet of the symbolic operand name (optional) |
on | symbolic operand name (optional) |
nc | closing square backet of the symbolic operand name (optional) |
s | The operand constraint string. |
o | Left parenthesis before the operand. |
e | The operand. |
c | Right parenthesis behind the operand. |
CT_Expression* Puma::CT_GnuAsmOperand::Expr | ( | ) | const [inline] |
Get the operand expression.
static const char* Puma::CT_GnuAsmOperand::NodeId | ( | ) | [static] |
Get the identifier for this node type.
Can be compared with NodeName().
const char* Puma::CT_GnuAsmOperand::NodeName | ( | ) | const [inline, virtual] |
void Puma::CT_GnuAsmOperand::ReplaceSon | ( | CTree * | old_son, |
CTree * | new_son | ||
) | [inline, virtual] |
Replace a son.
old_son | The son to replace. |
new_son | The new son. |
Reimplemented from Puma::CTree.
CTree* Puma::CT_GnuAsmOperand::Son | ( | int | n | ) | const [inline, virtual] |
Get the n-th son.
n | The index of the son. |
Reimplemented from Puma::CTree.
int Puma::CT_GnuAsmOperand::Sons | ( | ) | const [inline, virtual] |
Get the number of sons.
Implements Puma::CTree.
CT_String* Puma::CT_GnuAsmOperand::String | ( | ) | const [inline] |
Get the operand constraint string.