#include </home/clem/local/src/opie/noncore/tools/calc2/main/engine.h>
Collaboration diagram for Engine:

Signals | |
| void | display (const QString &) |
| void | display (double) |
| void | setHexMode () |
| void | setBinMode () |
| void | setDecMode () |
| void | setOctMode () |
Public Member Functions | |
| Engine (QWidget *parent=0, const char *name=0) | |
| ~Engine () | |
| void | immediateInstruction (Instruction *) |
| void | pushInstruction (Instruction *) |
| void | eval () |
| void | pushValue (char) |
| void | del () |
| void | openBrace () |
| void | closeBrace () |
| void | softReset () |
| void | hardReset () |
| void | memSave () |
| void | memRecall () |
| void | memClear () |
| void | setRepresentation (Representation) |
| void | decBraces (void) |
Private Member Functions | |
| void | displayData (Data d) |
| void | clearData (Data *d) |
| int | calcBase () |
| Data | evalStack (Data, bool) |
Private Attributes | |
| Data | num |
| Data | mem |
| State | state |
| QStack< Instruction > | stack |
| Representation | currentRep |
| int | braces |
| int | decimalPlaces |
| QString | displayString |
|
||||||||||||
|
Definition at line 41 of file engine.h. References hardReset(), rDec, and setRepresentation(). |
|
|
|
|
|
Definition at line 170 of file engine.cpp. References currentRep, odebug, oendl, rBin, rDec, rHex, rOct, sError, and state. Referenced by del(), displayData(), and pushValue(). |
|
|
Definition at line 217 of file engine.cpp. References Data::dbl, Data::Fraction::denominator, Data::fraction, Data::i, and Data::Fraction::numerator. Referenced by evalStack(), memClear(), setRepresentation(), and softReset(). |
|
|
Definition at line 205 of file engine.cpp. References braces, evalStack(), num, and TRUE. |
|
|
Definition at line 87 of file engine.h. References braces. Referenced by iOpenBrace::eval(). |
|
|
Definition at line 128 of file engine.cpp. References calcBase(), currentRep, Data::dbl, display(), displayString, Data::i, QString::length(), num, odebug, oendl, rDouble, rFraction, sError, state, QString::toDouble(), QString::toInt(), and QString::truncate(). |
|
|
|
|
|
Referenced by del(), displayData(), and pushValue(). |
|
|
Definition at line 153 of file engine.cpp. References calcBase(), currentRep, Data::dbl, display(), displayString, Data::i, odebug, oendl, rDouble, rFraction, and QString::setNum(). Referenced by eval(), immediateInstruction(), memRecall(), and softReset(). |
|
|
Definition at line 63 of file engine.cpp. References braces, displayData(), evalStack(), num, sError, sStart, and state. Referenced by FormSimpleImpl::evalClicked(). |
|
||||||||||||
|
Definition at line 33 of file engine.cpp. References Instruction::acc, braces, clearData(), Data::dbl, Instruction::eval(), i, odebug, oendl, Instruction::precedence, sError, stack, and state. Referenced by closeBrace(), and eval(). |
|
|
Definition at line 64 of file engine.h. References braces, memClear(), softReset(), and stack. Referenced by FormSimpleImpl::CEClicked(), and Engine(). |
|
|
Definition at line 74 of file engine.cpp. References currentRep, displayData(), Instruction::eval(), num, sError, Instruction::setRep(), sStart, and state. Referenced by FormBinaryImpl::LSHClicked(), FormBinaryImpl::NOTClicked(), and FormBinaryImpl::RSHClicked(). |
|
|
Definition at line 79 of file engine.h. References clearData(), and mem. Referenced by hardReset(), and FormSimpleImpl::MCClicked(). |
|
|
Definition at line 74 of file engine.h. References displayData(), mem, num, sStart, and state. Referenced by FormSimpleImpl::MRClicked(). |
|
|
Definition at line 71 of file engine.h. Referenced by FormSimpleImpl::MPlusClicked(). |
|
|
Definition at line 201 of file engine.cpp. References pushInstruction(). |
|
|
Definition at line 84 of file engine.cpp. References Instruction::acc, currentRep, num, sError, Instruction::setRep(), sStart, stack, and state. Referenced by FormSimpleImpl::addClicked(), FormBinaryImpl::ANDClicked(), FormSimpleImpl::divClicked(), FormSimpleImpl::mulClicked(), openBrace(), FormBinaryImpl::ORClicked(), FormSimpleImpl::subClicked(), and FormBinaryImpl::XORClicked(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 210 of file engine.cpp. References clearData(), currentRep, mem, num, sStart, and state. Referenced by Engine(), FormBinaryImpl::FormBinaryImpl(), and FormSimpleImpl::FormSimpleImpl(). |
|
|
Definition at line 58 of file engine.h. References clearData(), decimalPlaces, displayData(), num, sStart, and state. Referenced by hardReset(), and pushValue(). |
|
|
Definition at line 98 of file engine.h. Referenced by closeBrace(), decBraces(), eval(), evalStack(), and hardReset(). |
|
|
Definition at line 97 of file engine.h. Referenced by calcBase(), del(), displayData(), immediateInstruction(), pushInstruction(), pushValue(), and setRepresentation(). |
|
|
Definition at line 98 of file engine.h. Referenced by softReset(). |
|
|
Definition at line 99 of file engine.h. Referenced by del(), displayData(), and pushValue(). |
|
|
Definition at line 94 of file engine.h. Referenced by memClear(), memRecall(), memSave(), and setRepresentation(). |
|
|
Definition at line 94 of file engine.h. Referenced by closeBrace(), del(), eval(), immediateInstruction(), memRecall(), memSave(), pushInstruction(), pushValue(), setRepresentation(), and softReset(). |
|
|
Definition at line 96 of file engine.h. Referenced by evalStack(), hardReset(), and pushInstruction(). |
|
|
Definition at line 95 of file engine.h. Referenced by calcBase(), del(), eval(), evalStack(), immediateInstruction(), memRecall(), pushInstruction(), pushValue(), setRepresentation(), and softReset(). |
1.4.2