rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
type_pivot_descriptor.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/operation/type_rule/type_pivot_source.hpp>
6
7#include <rexlib/core/numerical/numerical_type_domain.hpp>
8
9#include <cstddef>
10#include <functional>
11
12namespace rexlib
13{
14
21{
22public:
36 type_pivot_source source,
37 std::size_t index,
38 std::ptrdiff_t default_pivot,
40 ) noexcept;
41
48
54 std::size_t get_index() const noexcept;
55
62
69
71 type_pivot_source m_source;
72 std::size_t m_index;
73 std::ptrdiff_t m_default_pivot;
75};
76
77} // namespace rexlib
78
79#include "type_pivot_descriptor.inl"
Container for multidimensional numeric data.
Definition array.hpp:31
Set of numerical_type-s.
Definition numerical_type_domain.hpp:32
Type erased form of a type_pivot.
Definition type_pivot_descriptor.hpp:21
std::size_t get_index() const noexcept
Get the index of the operand supplying the pivot.
std::ptrdiff_t get_default_pivot() const noexcept
Get the pivot whose value this one adopts by default.
type_pivot_descriptor(type_pivot_source source, std::size_t index, std::ptrdiff_t default_pivot, const numerical_type_domain &domain) noexcept
Construct a pivot descriptor.
type_pivot_source get_source() const noexcept
Get where the pivot value comes from.
const numerical_type_domain & get_domain() const noexcept
Get the set of types the pivot may take.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
type_pivot_source
Origin of the value of a typing rule pivot.
Definition type_pivot_source.hpp:12