|
SXEval 1.0.3
A generic s-expression interpreter library.
|
The IInstruction class is an interface for any instructions. More...
#include <IInstruction.hpp>
Public Member Functions | |
| virtual | ~IInstruction ()=default |
| Default destructor. | |
| virtual T & | getResult ()=0 |
| Get a reference to the result of the instruction. | |
| virtual std::string | toString () const =0 |
| String representation of the instruction. | |
The IInstruction class is an interface for any instructions.
It represents an instruction that can be executed and has a result.
| T | The type of values handled by the SXEval library. The supported types are int, signed char, short int, long int, unsigned int, unsigned char, unsigned long int, float, double and long double. |
|
virtualdefault |
Default destructor.
Get a reference to the result of the instruction.
Implemented in sxeval::AOperation< T >, sxeval::EncapsulatedVariable< T >, sxeval::Value< T >, and sxeval::Variable< T >.
|
pure virtual |
String representation of the instruction.
Implemented in sxeval::EncapsulatedVariable< T >, sxeval::operations::AbsoluteValue< T >, sxeval::operations::Addition< T >, sxeval::operations::ArcCosh< T >, sxeval::operations::ArcCosine< T >, sxeval::operations::ArcSine< T >, sxeval::operations::ArcSinh< T >, sxeval::operations::ArcTangent< T >, sxeval::operations::ArcTangent2< T >, sxeval::operations::ArcTanh< T >, sxeval::operations::Average< T >, sxeval::operations::Ceiling< T >, sxeval::operations::Cosh< T >, sxeval::operations::Cosine< T >, sxeval::operations::DegreesToGradians< T >, sxeval::operations::DegreesToRadians< T >, sxeval::operations::Division< T >, sxeval::operations::Equal< T >, sxeval::operations::Exp< T >, sxeval::operations::Expm1< T >, sxeval::operations::Exponentiation< T >, sxeval::operations::Floor< T >, sxeval::operations::GradiansToDegrees< T >, sxeval::operations::Greater< T >, sxeval::operations::GreaterOrEqual< T >, sxeval::operations::Hypotenuse< T >, sxeval::operations::Less< T >, sxeval::operations::LessOrEqual< T >, sxeval::operations::Logarithm< T >, sxeval::operations::Logarithm10< T >, sxeval::operations::Logarithm1p< T >, sxeval::operations::Logarithm2< T >, sxeval::operations::LogarithmB< T >, sxeval::operations::LogicalAnd< T >, sxeval::operations::LogicalNand< T >, sxeval::operations::LogicalNor< T >, sxeval::operations::LogicalNot< T >, sxeval::operations::LogicalOr< T >, sxeval::operations::LogicalXnor< T >, sxeval::operations::LogicalXor< T >, sxeval::operations::Maximum< T >, sxeval::operations::Minimum< T >, sxeval::operations::Modulo< T >, sxeval::operations::Multiplication< T >, sxeval::operations::NaturalLogarithm< T >, sxeval::operations::NotEqual< T >, sxeval::operations::RadiansToDegrees< T >, sxeval::operations::Round< T >, sxeval::operations::Sine< T >, sxeval::operations::Sinh< T >, sxeval::operations::SquareRoot< T >, sxeval::operations::Subtraction< T >, sxeval::operations::Tangent< T >, sxeval::operations::Tanh< T >, sxeval::operations::Truncate< T >, sxeval::Value< T >, and sxeval::Variable< T >.