$search
#include <tree.h>
Public Member Functions | |
ArithmeticAssignmentNode (const SourcePos &sourcePos, AsebaBinaryOperator op, Node *left, Node *right) | |
Constructor. | |
virtual void | checkVectorSize () const |
Check the consistency in vectors' size. | |
virtual Node * | expandToAsebaTree (std::wostream *dump, unsigned int index=0) |
Second pass to expand "abstract" nodes into more concrete ones. | |
virtual ArithmeticAssignmentNode * | shallowCopy () |
Return a shallow copy of the object (children point to the same objects). | |
virtual std::wstring | toNodeName () const |
Return a string representation of the name of this node. | |
virtual std::wstring | toWString () const |
Return a string representation of this node. | |
Static Public Member Functions | |
static ArithmeticAssignmentNode * | fromArithmeticAssignmentToken (const SourcePos &sourcePos, Compiler::Token::Type token, Node *left, Node *right) |
Public Attributes | |
AsebaBinaryOperator | op |
operator | |
Static Protected Member Functions | |
static AsebaBinaryOperator | getBinaryOperator (Compiler::Token::Type token) |
Static Protected Attributes | |
static const AsebaBinaryOperator | operatorMap [] |
Node for operations like "vector (op)= something" Will expand to "vector = vector (op) something" children[0] is a MemoryVectorNode children[1] is whatever Node for the right operand
Definition at line 549 of file tree.h.
void Aseba::ArithmeticAssignmentNode::checkVectorSize | ( | ) | const [virtual] |
Check the consistency in vectors' size.
Reimplemented from Aseba::Node.
Definition at line 209 of file tree-expand.cpp.
Node * Aseba::ArithmeticAssignmentNode::expandToAsebaTree | ( | std::wostream * | dump, | |
unsigned int | index = 0 | |||
) | [virtual] |
Second pass to expand "abstract" nodes into more concrete ones.
Reimplemented from Aseba::Node.
Definition at line 141 of file tree-expand.cpp.
virtual ArithmeticAssignmentNode* Aseba::ArithmeticAssignmentNode::shallowCopy | ( | ) | [inline, virtual] |
Return a shallow copy of the object (children point to the same objects).
Implements Aseba::Node.
virtual std::wstring Aseba::ArithmeticAssignmentNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.