Public Member Functions
Aseba::AssignmentNode Struct Reference

#include <tree.h>

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

List of all members.

Public Member Functions

 AssignmentNode (const SourcePos &sourcePos)
 Constructor.
virtual void checkVectorSize () const
 Check the consistency in vectors' size.
virtual void emit (PreLinkBytecode &bytecodes) const
 Generate bytecode.
virtual NodeexpandToAsebaTree (std::wostream *dump, unsigned int index)
 Second pass to expand "abstract" nodes into more concrete ones.
virtual Nodeoptimize (std::wostream *dump)
 Optimize this node, return the optimized node.
virtual AssignmentNodeshallowCopy ()
 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.
virtual ReturnType typeCheck () const
 Typecheck this node, throw an exception if there is any type violation.

Detailed Description

Node for assignation. children[0] is store code children[1] expression to store

Definition at line 130 of file tree.h.


Constructor & Destructor Documentation

Aseba::AssignmentNode::AssignmentNode ( const SourcePos sourcePos) [inline]

Constructor.

Definition at line 133 of file tree.h.


Member Function Documentation

void Aseba::AssignmentNode::checkVectorSize ( ) const [virtual]

Check the consistency in vectors' size.

Reimplemented from Aseba::Node.

Definition at line 196 of file tree-expand.cpp.

Node * Aseba::AssignmentNode::expandToAsebaTree ( std::wostream *  dump,
unsigned int  index 
) [virtual]

Second pass to expand "abstract" nodes into more concrete ones.

Reimplemented from Aseba::Node.

Definition at line 43 of file tree-expand.cpp.

virtual AssignmentNode* Aseba::AssignmentNode::shallowCopy ( ) [inline, virtual]

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

Implements Aseba::Node.

Definition at line 134 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 142 of file tree.h.

virtual std::wstring Aseba::AssignmentNode::toWString ( ) const [inline, virtual]

Return a string representation of this node.

Implements Aseba::Node.

Definition at line 141 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