Aseba::ArrayWriteNode Struct Reference
[AESL Compiler]

#include <tree.h>

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

List of all members.

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 Nodeoptimize (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

Detailed Description

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.


Member Function Documentation

virtual std::string Aseba::ArrayWriteNode::toNodeName (  )  const [inline, virtual]

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 381 of file tree.h.


Member Data Documentation

address of the first element of the array

Definition at line 372 of file tree.h.

name of the array (for debug)

Definition at line 374 of file tree.h.

size of the array, might be used to assert compile-time access checks

Definition at line 373 of file tree.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:12 2011