Public Member Functions
Aseba::ReturnNode Struct Reference

#include <tree.h>

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

List of all members.

Public Member Functions

virtual void emit (PreLinkBytecode &bytecodes) const
 Generate bytecode.
virtual unsigned getStackDepth () const
 Return the stack depth requirement for this node and its children.
virtual Nodeoptimize (std::wostream *dump)
 Optimize this node, return the optimized node.
 ReturnNode (const SourcePos &sourcePos)
virtual ReturnNodeshallowCopy ()
 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 returning from an event or subroutine has no children, just a jump of 0 offset that will be resolved at link time

Definition at line 465 of file tree.h.


Constructor & Destructor Documentation

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

Definition at line 467 of file tree.h.


Member Function Documentation

virtual unsigned Aseba::ReturnNode::getStackDepth ( ) const [inline, virtual]

Return the stack depth requirement for this node and its children.

Reimplemented from Aseba::Node.

Definition at line 472 of file tree.h.

virtual Node* Aseba::ReturnNode::optimize ( std::wostream *  dump) [inline, virtual]

Optimize this node, return the optimized node.

Implements Aseba::Node.

Definition at line 471 of file tree.h.

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

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

Implements Aseba::Node.

Definition at line 468 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 475 of file tree.h.

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

Return a string representation of this node.

Implements Aseba::Node.

Definition at line 474 of file tree.h.

virtual ReturnType Aseba::ReturnNode::typeCheck ( ) const [inline, virtual]

Typecheck this node, throw an exception if there is any type violation.

Reimplemented from Aseba::Node.

Definition at line 470 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:40