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

#include <tree.h>

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

List of all members.

Public Member Functions

virtual void emit (PreLinkBytecode &bytecodes) const
 Generate bytecode.
virtual NodeexpandToAsebaTree (std::wostream *dump, unsigned int index=0)
 Second pass to expand "abstract" nodes into more concrete ones.
virtual unsigned getStackDepth () const
 Return the stack depth requirement for this node and its children.
virtual unsigned getVectorSize () const
 return the children's size, check for equal size, or E_NOVAL if no child
 ImmediateNode (const SourcePos &sourcePos, int value)
 Constructor.
virtual Nodeoptimize (std::wostream *dump)
 Optimize this node, return the optimized node.
virtual ImmediateNodeshallowCopy ()
 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

int value
 value to push on stack

Detailed Description

Node for pushing immediate value on stack. Might generate either Small Immediate or Large Immediate bytecode depending on the range of value no children

Definition at line 343 of file tree.h.


Constructor & Destructor Documentation

Aseba::ImmediateNode::ImmediateNode ( const SourcePos sourcePos,
int  value 
) [inline]

Constructor.

Definition at line 348 of file tree.h.


Member Function Documentation

virtual Node* Aseba::ImmediateNode::expandToAsebaTree ( std::wostream *  dump,
unsigned int  index = 0 
) [inline, virtual]

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

Reimplemented from Aseba::Node.

Definition at line 351 of file tree.h.

virtual unsigned Aseba::ImmediateNode::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 359 of file tree.h.

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

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

Implements Aseba::Node.

Definition at line 349 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 357 of file tree.h.

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

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

Reimplemented from Aseba::Node.

Definition at line 352 of file tree.h.


Member Data Documentation

value to push on stack

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