$search
#include <ThymioIntermediateRepresentation.h>
Public Member Functions | |
vector< wstring >::const_iterator | beginCode () const |
int | buttonToCode (int id) const |
void | clear () |
vector< wstring >::const_iterator | endCode () const |
void | reset () |
ThymioIRCodeGenerator () | |
virtual void | visit (ThymioIRButtonSet *buttonSet) |
virtual void | visit (ThymioIRButton *button) |
~ThymioIRCodeGenerator () | |
Private Attributes | |
vector< int > | buttonToCodeMap |
int | currentBlock |
vector< wstring > | directions |
map< ThymioIRButtonName, pair < int, int > > | editor |
vector< wstring > | generatedCode |
bool | inIfBlock |
Definition at line 151 of file ThymioIntermediateRepresentation.h.
Aseba::ThymioIRCodeGenerator::ThymioIRCodeGenerator | ( | ) |
Definition at line 163 of file ThymioIRVisitors.cpp.
Aseba::ThymioIRCodeGenerator::~ThymioIRCodeGenerator | ( | ) |
Definition at line 179 of file ThymioIRVisitors.cpp.
vector<wstring>::const_iterator Aseba::ThymioIRCodeGenerator::beginCode | ( | ) | const [inline] |
Definition at line 160 of file ThymioIntermediateRepresentation.h.
int Aseba::ThymioIRCodeGenerator::buttonToCode | ( | int | id | ) | const |
Definition at line 203 of file ThymioIRVisitors.cpp.
void Aseba::ThymioIRCodeGenerator::clear | ( | ) |
Definition at line 185 of file ThymioIRVisitors.cpp.
vector<wstring>::const_iterator Aseba::ThymioIRCodeGenerator::endCode | ( | ) | const [inline] |
Definition at line 161 of file ThymioIntermediateRepresentation.h.
void Aseba::ThymioIRCodeGenerator::reset | ( | ) |
Definition at line 192 of file ThymioIRVisitors.cpp.
void Aseba::ThymioIRCodeGenerator::visit | ( | ThymioIRButtonSet * | buttonSet | ) | [virtual] |
Reimplemented from Aseba::ThymioIRVisitor.
Definition at line 376 of file ThymioIRVisitors.cpp.
void Aseba::ThymioIRCodeGenerator::visit | ( | ThymioIRButton * | button | ) | [virtual] |
Reimplemented from Aseba::ThymioIRVisitor.
Definition at line 211 of file ThymioIRVisitors.cpp.
vector<int> Aseba::ThymioIRCodeGenerator::buttonToCodeMap [private] |
Definition at line 174 of file ThymioIntermediateRepresentation.h.
int Aseba::ThymioIRCodeGenerator::currentBlock [private] |
Definition at line 172 of file ThymioIntermediateRepresentation.h.
vector<wstring> Aseba::ThymioIRCodeGenerator::directions [private] |
Definition at line 171 of file ThymioIntermediateRepresentation.h.
map<ThymioIRButtonName, pair<int, int> > Aseba::ThymioIRCodeGenerator::editor [private] |
Definition at line 168 of file ThymioIntermediateRepresentation.h.
vector<wstring> Aseba::ThymioIRCodeGenerator::generatedCode [private] |
Definition at line 170 of file ThymioIntermediateRepresentation.h.
bool Aseba::ThymioIRCodeGenerator::inIfBlock [private] |
Definition at line 173 of file ThymioIntermediateRepresentation.h.