$search
#include <tree.h>

Public Member Functions | |
| virtual void | emit (PreLinkBytecode &bytecodes) const |
| Generate bytecode. | |
| EmitNode (const SourcePos &sourcePos) | |
| Constructor. | |
| virtual Node * | optimize (std::wostream *dump) |
| Optimize this node, return the optimized node. | |
| virtual EmitNode * | shallowCopy () |
| 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 | |
Node for L"emit". may have children for pushing constants somewhere
Definition at line 244 of file tree.h.
| Aseba::EmitNode::EmitNode | ( | const SourcePos & | sourcePos | ) | [inline] |
| virtual EmitNode* Aseba::EmitNode::shallowCopy | ( | ) | [inline, virtual] |
Return a shallow copy of the object (children point to the same objects).
Implements Aseba::Node.
| virtual std::wstring Aseba::EmitNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.
| virtual ReturnType Aseba::EmitNode::typeCheck | ( | ) | const [inline, virtual] |
Typecheck this node, throw an exception if there is any type violation.
Reimplemented from Aseba::Node.
| unsigned Aseba::EmitNode::arrayAddr |
| unsigned Aseba::EmitNode::arraySize |
| unsigned Aseba::EmitNode::eventId |