5#include "numerical_type.hpp"
7#include "../platform/constexpr.hpp"
8#include "../platform/dynamic_shared_object.h"
11#include <initializer_list>
61 REXLIB_CONSTEXPR_CPP14
124 return lhs.get_mask() ==
rhs.get_mask();
127 friend REXLIB_CONSTEXPR
bool operator!=(
205REXLIB_CONSTEXPR_CPP14
214#include "numerical_type_domain.inl"
Container for multidimensional numeric data.
Definition array.hpp:31
Set of numerical_type-s.
Definition numerical_type_domain.hpp:32
friend REXLIB_CONSTEXPR numerical_type_domain operator|(const numerical_type_domain &lhs, const numerical_type_domain &rhs) noexcept
Compute the union of two domains.
Definition numerical_type_domain.hpp:149
REXLIB_CONSTEXPR mask_type get_mask() const noexcept
Get the bit mask representation of the domain.
REXLIB_CONSTEXPR bool empty() const noexcept
Check whether the domain admits no type at all.
std::uint32_t mask_type
Underlying bit mask representation.
Definition numerical_type_domain.hpp:37
friend REXLIB_CONSTEXPR numerical_type_domain operator&(const numerical_type_domain &lhs, const numerical_type_domain &rhs) noexcept
Compute the intersection of two domains.
Definition numerical_type_domain.hpp:138
REXLIB_CONSTEXPR bool contains(numerical_type type) const noexcept
Check whether a type belongs to this domain.
static REXLIB_CONSTEXPR numerical_type_domain all() noexcept
Create the domain containing every representable type.
friend std::ostream & operator<<(std::ostream &os, const numerical_type_domain &domain)
Write a human readable representation of a domain.
static REXLIB_CONSTEXPR numerical_type_domain none() noexcept
Create the domain containing no type.
REXLIB_CONSTEXPR numerical_type_domain() noexcept
Construct an empty domain.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
REXLIB_CONSTEXPR bool is_domain_representable(numerical_type type) noexcept
Check whether a type has a bit representation within a domain.
numerical_type
Representation of all considered numerical types for computations.
Definition numerical_type.hpp:19
numerical_type_category
Broad categorical classification of numerical_type.
Definition numerical_type.hpp:54
REXLIB_CONSTEXPR_CPP14 numerical_type_domain make_numerical_type_domain(numerical_type_category category) noexcept
Create the domain holding every type of a given category.