5#include <rexlib/core/operation/type_rule/type_pivot.hpp>
6#include <rexlib/core/operation/type_rule/type_rule_status.hpp>
8#include <rexlib/core/numerical/numerical_type.hpp>
9#include <rexlib/core/platform/dynamic_shared_object.h>
157 std::
size_t m_pivot_count;
159 std::
size_t m_operand_index;
160 bool m_output_operand;
Container for multidimensional numeric data.
Definition array.hpp:31
Resolved pivot values of a typing rule, or the reason it failed.
Definition type_rule_resolution.hpp:26
std::size_t get_pivot_count() const noexcept
Get the number of resolved pivots.
type_rule_status get_status() const noexcept
Get the outcome of the resolution.
void set_pivot_count(std::size_t count) noexcept
Set the number of pivots the resolution holds.
void set_pivot(std::size_t index, numerical_type type) noexcept
Set the value of a pivot.
type_rule_resolution() noexcept
Construct a successful resolution with no pivot resolved yet.
bool is_output_operand() const noexcept
Check whether the failing operand is an output.
type_rule_resolution fail(type_rule_status status, std::size_t operand_index, bool output_operand, numerical_type type) const noexcept
Derive a failed resolution from this one.
std::size_t get_operand_index() const noexcept
Get the index of the operand a failure is attributed to.
numerical_type get_pivot(std::size_t index) const noexcept
Get the value of a resolved pivot.
static type_rule_resolution failure(type_rule_status status, std::size_t operand_index, bool output_operand, numerical_type type) noexcept
Construct a failed resolution.
numerical_type get_offending_type() const noexcept
Get the type that caused the failure.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
type_rule_status
Outcome of resolving a typing rule against concrete operand types.
Definition type_rule_status.hpp:14
REXLIB_INLINE_CONST_CONSTEXPR std::size_t max_type_pivot_count
Maximum number of free variables a typing rule may declare.
Definition type_pivot.hpp:22
numerical_type
Representation of all considered numerical types for computations.
Definition numerical_type.hpp:19