|
SXEval 1.0.3
A generic s-expression interpreter library.
|
#include <Equal.hpp>
Public Member Functions | |
| Equal (const std::vector< IInstruction< T > * > &args) | |
| void | execute () override |
| Execute the operation. | |
| std::string | toString () const override |
| String representation of the instruction. | |
Public Member Functions inherited from sxeval::AOperation< T > | |
| AOperation (const std::vector< IInstruction< T > * > &args) | |
| Constructor that initializes the operation. | |
| AOperation (const AOperation &other) | |
| Copy constructor. | |
| virtual | ~AOperation () override=default |
| Default destructor. | |
| T & | getResult () override |
| Get the result of the operation. | |
Public Member Functions inherited from sxeval::IInstruction< T > | |
| virtual | ~IInstruction ()=default |
| Default destructor. | |
Static Public Attributes | |
| static constexpr const char * | KEY = "=" |
| static constexpr const int | ARITY_MIN = 2 |
| static constexpr const int | ARITY_MAX = AOperation<T>::UNLIMITED_ARITY |
Static Public Attributes inherited from sxeval::AOperation< T > | |
| static constexpr const int | UNLIMITED_ARITY = -1 |
| The value for an unlimited number of arguments. | |
| static constexpr const char * | KEY = "AOperation" |
| Default key for the operation. | |
| static constexpr const int | ARITY_MIN = 0 |
| Default minimum number of arguments for the operation. | |
| static constexpr const int | ARITY_MAX = UNLIMITED_ARITY |
| Default maximum number of arguments for the operation. | |
Additional Inherited Members | |
Protected Attributes inherited from sxeval::AOperation< T > | |
| T | _result |
| std::vector< std::reference_wrapper< T > > | _args |
|
inline |
|
overridevirtual |
Execute the operation.
This method must be implemented by derived classes to perform the specific operation logic.
Implements sxeval::AOperation< T >.
|
inlineoverridevirtual |
String representation of the instruction.
Implements sxeval::IInstruction< T >.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |