Public Types | Public Member Functions | Public Attributes
Aseba::BytecodeVector Struct Reference

Bytecode array in the form of a dequeue, for construction. More...

#include <compiler.h>

List of all members.

Public Types

typedef std::map< unsigned,
unsigned > 
EventAddressesToIdsMap
 A map of event addresses to identifiers.

Public Member Functions

 BytecodeVector ()
 Constructor.
void changeStopToRetSub ()
 Change "stop" bytecode to "return from subroutine".
EventAddressesToIdsMap getEventAddressesToIds () const
 Get the map of event addresses to identifiers.
unsigned short getTypeOfLast () const
 Return the type of last bytecode element.
void push_back (const BytecodeElement &be)

Public Attributes

unsigned callDepth
 for callable bytecode (i.e. subroutines), used in analysis of stack check
unsigned lastLine
 last line added, normally equal *this[this->size()-1].line, but may differ for instance on loops
unsigned maxStackDepth
 maximum depth of the stack used by all the computations of the bytecode

Detailed Description

Bytecode array in the form of a dequeue, for construction.

Definition at line 122 of file compiler.h.


Member Typedef Documentation

typedef std::map<unsigned, unsigned> Aseba::BytecodeVector::EventAddressesToIdsMap

A map of event addresses to identifiers.

Definition at line 141 of file compiler.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 125 of file compiler.h.


Member Function Documentation

void Aseba::BytecodeVector::push_back ( const BytecodeElement be) [inline]

Definition at line 131 of file compiler.h.


Member Data Documentation

for callable bytecode (i.e. subroutines), used in analysis of stack check

Definition at line 128 of file compiler.h.

last line added, normally equal *this[this->size()-1].line, but may differ for instance on loops

Definition at line 129 of file compiler.h.

maximum depth of the stack used by all the computations of the bytecode

Definition at line 127 of file compiler.h.


The documentation for this struct was generated from the following files:


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17