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

#include <tree.h>

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

List of all members.

Public Member Functions

 CallNode (const SourcePos &sourcePos, unsigned funcId)
 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 CallNodeshallowCopy ()
 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

std::vector< unsigned > argumentsAddr
 address of all arguments
unsigned funcId
 identifier of the function to be called

Detailed Description

Node for calling a native function may have children for pushing constants somewhere

Definition at line 447 of file tree.h.


Member Function Documentation

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

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

Implements Aseba::Node.

Definition at line 453 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 460 of file tree.h.

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

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

Reimplemented from Aseba::Node.

Definition at line 455 of file tree.h.


Member Data Documentation

std::vector<unsigned> Aseba::CallNode::argumentsAddr

address of all arguments

Definition at line 450 of file tree.h.

identifier of the function to be called

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