rusEFI
An attempt to build an Engine Control Unit
|
#include <expected.h>
Public Member Functions | |
constexpr | expected (const unexpected_t &) |
constexpr | expected (UnexpectedCode code) |
constexpr | expected (TValue validValue) |
constexpr | operator bool () const |
constexpr TValue | value_or (TValue valueIfInvalid) const |
bool | operator== (const expected< TValue > &other) const |
Data Fields | |
bool | Valid |
union { | |
TValue Value | |
UnexpectedCode Code | |
}; | |
Definition at line 37 of file expected.h.
|
inlineconstexpr |
Definition at line 46 of file expected.h.
|
inlineconstexpr |
Definition at line 48 of file expected.h.
Definition at line 51 of file expected.h.
|
inlineexplicitconstexpr |
Definition at line 58 of file expected.h.
|
inline |
Definition at line 67 of file expected.h.
|
inlineconstexpr |
Definition at line 63 of file expected.h.
Referenced by canMazdaRX8(), WallFuelController::computeBeta(), WallFuelController::computeTau(), InjectorModel::getAbsoluteRailPressure(), getBaroCorrection(), getCrankingFuel3(), IFuelComputer::getLoadOverride(), SpeedDensityAirmass::getMap(), Sensor::getOrZero(), GppwmChannel::getOutput(), IdleController::getRunningOpenLoop(), initMapDecoder(), mapAveragingAdcCallback(), populateFrame(), printMAPInfo(), rpmShaftPositionCallback(), TwoPinDcMotor::set(), CJ125::SetHeater(), BoostController::setOutput(), EtbController::setOutput(), updateThrottles(), and updateTunerStudioState().
union { ... } |
UnexpectedCode expected< TValue >::Code |
Definition at line 42 of file expected.h.
bool expected< TValue >::Valid |
Definition at line 38 of file expected.h.
Referenced by EtbController::checkStatus(), priv::FuncChain< TFirst, TRest... >::convert(), isPedalError(), isTps1Error(), isTps2Error(), expected< TValue >::operator bool(), expected< TValue >::operator==(), updateThrottles(), and expected< TValue >::value_or().
TValue expected< TValue >::Value |
Definition at line 41 of file expected.h.
Referenced by priv::FuncChain< TFirst, TRest... >::convert(), IdleController::determinePhase(), TriggerDecoderBase::findTriggerZeroEventIndex(), InjectorModel::getInjectorFlowRatio(), ClosedLoopController< TInput, TOutput >::getOutput(), GppwmChannel::getOutput(), hwHandleVvtCamSignal(), TriggerCentral::isToothExpectedNow(), expected< TValue >::operator==(), SingleTimerExecutor::scheduleTimerCallback(), EtbController::setOutput(), VvtController::setOutput(), and expected< TValue >::value_or().