Public Member Functions
Aseba::AbstractTreeNode Struct Reference

#include <tree.h>

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

List of all members.

Public Member Functions

 AbstractTreeNode (const SourcePos &sourcePos)
 Constructor.
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.
virtual ReturnType typeCheck () const
 Typecheck this node, throw an exception if there is any type violation.

Detailed Description

Virtual class for abstraction nodes abort() if you try to typeCheck(), optimize() or emit() to force correct expansion into regular Aseba nodes

Definition at line 483 of file tree.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 486 of file tree.h.


Member Function Documentation

virtual void Aseba::AbstractTreeNode::emit ( PreLinkBytecode bytecodes) const [inline, virtual]

Generate bytecode.

Implements Aseba::Node.

Definition at line 492 of file tree.h.

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

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

Reimplemented from Aseba::Node.

Definition at line 491 of file tree.h.

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

Optimize this node, return the optimized node.

Implements Aseba::Node.

Definition at line 490 of file tree.h.

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

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

Reimplemented from Aseba::Node.

Definition at line 489 of file tree.h.


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


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