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

#include <tree.h>

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

List of all members.

Public Member Functions

virtual void emit (PreLinkBytecode &bytecodes) const
 Generate bytecode.
 EmitNode (const SourcePos &sourcePos)
 Constructor.
virtual Nodeoptimize (std::wostream *dump)
 Optimize this node, return the optimized node.
virtual EmitNodeshallowCopy ()
 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 arrayAddr
 address of the first element of the array to send
unsigned arraySize
 size of the array to send. 0 if event has no argument
unsigned eventId
 id of event to emit

Detailed Description

Node for L"emit". may have children for pushing constants somewhere

Definition at line 244 of file tree.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 251 of file tree.h.


Member Function Documentation

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

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

Implements Aseba::Node.

Definition at line 252 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 258 of file tree.h.

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

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

Reimplemented from Aseba::Node.

Definition at line 254 of file tree.h.


Member Data Documentation

address of the first element of the array to send

Definition at line 247 of file tree.h.

size of the array to send. 0 if event has no argument

Definition at line 248 of file tree.h.

id of event to emit

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