Steppable 0.0.1
A CAS project written from scratch in C++
|
A base class for a result of a calculation. You should use the Result
and ResultBool
aliases instead of this class, which has the Status
and StatusBool
enums as the status type respectively.
More...
#include <result.hpp>
Public Member Functions | |
ResultBase ()=delete | |
ResultBase (const std::vector< std::string > &_inputs, std::vector< std::string > _out, ResultT result, StatusType _done) | |
Constructs a new result object. | |
StatusType | getStatus () const |
Gets how the calculation is done. | |
ResultT | getResult () const |
std::string | getOutput (size_t idx=0) const |
Gets the output of the calculation. | |
std::vector< std::string > | getInputs () const |
Gets the inputs to the calculation. | |
Private Attributes | |
StatusType | done |
Whether the calculation is done. | |
std::vector< std::string > | inputs |
The inputs to the calculation. | |
std::vector< std::string > | outputs |
The output of the calculation. | |
ResultT | result |
The result of the calculation. | |
A base class for a result of a calculation. You should use the Result
and ResultBool
aliases instead of this class, which has the Status
and StatusBool
enums as the status type respectively.
StatusType | The type of the status of the calculation. |
|
delete |
|
inline |
Constructs a new result object.
[in] | _inputs | The inputs to the calculation. |
[in] | _out | The output of the calculation. |
result | The result of the calculation. | |
[in] | _done | A flag indicating how the calculation is done. |
|
inlinenodiscard |
Gets the inputs to the calculation.
|
inlinenodiscard |
Gets the output of the calculation.
|
inlinenodiscard |
|
inline |
Gets how the calculation is done.
|
private |
Whether the calculation is done.
|
private |
The inputs to the calculation.
|
private |
The output of the calculation.
|
private |
The result of the calculation.
inputs
, as it stores only the result of the operation.