Aseba::ArrayReadNode Struct Reference
[AESL Compiler]

#include <tree.h>

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

List of all members.

Public Member Functions

 ArrayReadNode (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.
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
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 reading from an array. children[0] is the index in the array

Definition at line 353 of file tree.h.


Member Function Documentation

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 365 of file tree.h.

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

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

Reimplemented from Aseba::Node.

Definition at line 361 of file tree.h.


Member Data Documentation

address of the first element of the array

Definition at line 355 of file tree.h.

name of the array (for debug)

Definition at line 357 of file tree.h.

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

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