Public Member Functions | Static Public Member Functions | Public Attributes | Static Protected Member Functions | Static Protected Attributes
Aseba::ArithmeticAssignmentNode Struct Reference

#include <tree.h>

Inheritance diagram for Aseba::ArithmeticAssignmentNode:
Inheritance graph
[legend]

List of all members.

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 NodeexpandToAsebaTree (std::wostream *dump, unsigned int index=0)
 Second pass to expand "abstract" nodes into more concrete ones.
virtual ArithmeticAssignmentNodeshallowCopy ()
 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 ArithmeticAssignmentNodefromArithmeticAssignmentToken (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 []

Detailed Description

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.


Member Function Documentation

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.

Return a shallow copy of the object (children point to the same objects)

Implements Aseba::Node.

Definition at line 555 of file tree.h.

virtual std::wstring Aseba::ArithmeticAssignmentNode::toNodeName ( ) const [inline, virtual]

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 560 of file tree.h.


Member Data Documentation

operator

Definition at line 551 of file tree.h.


The documentation for this struct was generated from the following files:


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39