Public Member Functions | Public Attributes
Aseba::LoadNode Struct Reference

#include <tree.h>

Inheritance diagram for Aseba::LoadNode:
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 unsigned getVectorAddr () const
 return the address of the left-most operand, or E_NOVAL if none
virtual unsigned getVectorSize () const
 return the children's size, check for equal size, or E_NOVAL if no child
 LoadNode (const SourcePos &sourcePos, unsigned varAddr)
 Constructor.
virtual Nodeoptimize (std::wostream *dump)
 Optimize this node, return the optimized node.
virtual LoadNodeshallowCopy ()
 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.

Public Attributes

unsigned varAddr
 address of variable to load from

Detailed Description

Node for loading a variable on stack. no children

Definition at line 384 of file tree.h.


Constructor & Destructor Documentation

Aseba::LoadNode::LoadNode ( const SourcePos sourcePos,
unsigned  varAddr 
) [inline]

Constructor.

Definition at line 389 of file tree.h.


Member Function Documentation

virtual unsigned Aseba::LoadNode::getVectorAddr ( ) const [inline, virtual]

return the address of the left-most operand, or E_NOVAL if none

Reimplemented from Aseba::Node.

Definition at line 399 of file tree.h.

virtual unsigned Aseba::LoadNode::getVectorSize ( ) const [inline, virtual]

return the children's size, check for equal size, or E_NOVAL if no child

Reimplemented from Aseba::Node.

Definition at line 400 of file tree.h.

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

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

Implements Aseba::Node.

Definition at line 390 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 397 of file tree.h.

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

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

Reimplemented from Aseba::Node.

Definition at line 392 of file tree.h.


Member Data Documentation

address of variable to load from

Definition at line 386 of file tree.h.


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


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17