#include <tree.h>

Public Member Functions | |
| ArrayWriteNode (const SourcePos &sourcePos, unsigned arrayAddr, unsigned arraySize, const std::string &arrayName) | |
| Constructor. | |
| virtual void | emit (PreLinkBytecode &bytecodes) const |
| Generate bytecode. | |
| virtual Node * | optimize (std::ostream *dump) |
| Optimize this node, return the optimized node. | |
| virtual std::string | toNodeName () const |
| Return a string representation of the name of this node. | |
| virtual std::string | toString () const |
| Return a string representation of this node. | |
Public Attributes | |
| unsigned | arrayAddr |
| address of the first element of the array | |
| std::string | arrayName |
| name of the array (for debug) | |
| unsigned | arraySize |
| size of the array, might be used to assert compile-time access checks | |
Node for writing to an array. Value to store is supposed to be on the stack already children[0] is the index in the array
Definition at line 370 of file tree.h.
| virtual std::string Aseba::ArrayWriteNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.
| unsigned Aseba::ArrayWriteNode::arrayAddr |
| std::string Aseba::ArrayWriteNode::arrayName |
| unsigned Aseba::ArrayWriteNode::arraySize |