1#ifndef SXEVAL_OPERATIONS_LESS_HPP
2#define SXEVAL_OPERATIONS_LESS_HPP
16 static constexpr const char*
KEY =
"<";
40 this->_result =
static_cast<T
>(1);
43 while (verif && (i + 1) < this->_args.size()) {
45 this->_args[i + 1].get());
49 this->_result =
static_cast<T
>(1);
52 this->_result =
static_cast<T
>(0);
The AOperation class is an abstract base class for operations in the SXEval library.
Definition AOperation.hpp:22
The IInstruction class is an interface for any instructions.
Definition IInstruction.hpp:21
std::string toString() const override
String representation of the instruction.
Definition Less.hpp:25
static constexpr const int ARITY_MAX
Definition Less.hpp:18
static constexpr const int ARITY_MIN
Definition Less.hpp:17
Less(const std::vector< IInstruction< T > * > &args)
Definition Less.hpp:20
static constexpr const char * KEY
Definition Less.hpp:16
void execute() override
Execute the operation.
Definition Less.hpp:39
Definition AOperation.hpp:8
bool Less(const T &a, const T &b)
Check if a is less than b.
Definition utils.hpp:97
std::enable_if< std::is_unsigned< T >::value, T >::type Absolute(const T &a)
Perform an absolute value operation on types T.
Definition utils.hpp:262