1#ifndef SXEVAL_OPERATIONS_FLOOR_HPP
2#define SXEVAL_OPERATIONS_FLOOR_HPP
16 static constexpr const char*
KEY =
"floor";
40 this->_result =
static_cast<T
>(std::floor(this->_args.front().get()));
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
void execute() override
Execute the operation.
Definition Floor.hpp:39
static constexpr const char * KEY
Definition Floor.hpp:16
std::string toString() const override
String representation of the instruction.
Definition Floor.hpp:25
static constexpr const int ARITY_MAX
Definition Floor.hpp:18
Floor(const std::vector< IInstruction< T > * > &args)
Definition Floor.hpp:20
static constexpr const int ARITY_MIN
Definition Floor.hpp:17
Definition AOperation.hpp:8
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