rexlib
0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
rexlib
core
operation
shape_rule
core_dimensions_descriptor.hpp
1
// SPDX-License-Identifier: GPL-3.0-only
2
3
#pragma once
4
5
#include <rexlib/core/operation/shape_rule/extent_domain.hpp>
6
#include <rexlib/core/operation/shape_rule/extent_slot_descriptor.hpp>
7
8
#include <rexlib/core/span.hpp>
9
10
namespace
rexlib
11
{
12
18
class
core_dimensions_descriptor
19
{
20
public
:
29
core_dimensions_descriptor
(
30
span<const extent_slot_descriptor>
slots
,
31
bool
has_run
,
32
const
extent_domain
&
run_domain
33
)
noexcept
;
34
40
span<const extent_slot_descriptor>
get_slots
()
const
noexcept
;
41
48
bool
has_run
()
const
noexcept
;
49
56
bool
is_empty
()
const
noexcept
;
57
63
const
extent_domain
&
get_run_domain
()
const
noexcept
;
64
65
private
:
66
span
<
const
extent_slot_descriptor
> m_slots;
67
bool
m_has_run;
68
extent_domain
m_run_domain;
69
};
70
71
}
// namespace rexlib
72
73
#include "core_dimensions_descriptor.inl"
rexlib::array
Container for multidimensional numeric data.
Definition
array.hpp:31
rexlib::core_dimensions_descriptor
Type erased form of a core_dimensions.
Definition
core_dimensions_descriptor.hpp:19
rexlib::core_dimensions_descriptor::get_run_domain
const extent_domain & get_run_domain() const noexcept
Get the extents every axis of the run may take.
rexlib::core_dimensions_descriptor::has_run
bool has_run() const noexcept
Check whether a run leads the core axes.
rexlib::core_dimensions_descriptor::get_slots
span< const extent_slot_descriptor > get_slots() const noexcept
Get the slot of every core axis after the run.
rexlib::core_dimensions_descriptor::is_empty
bool is_empty() const noexcept
Check whether the core has no axes: neither a run nor a slot.
rexlib::core_dimensions_descriptor::core_dimensions_descriptor
core_dimensions_descriptor(span< const extent_slot_descriptor > slots, bool has_run, const extent_domain &run_domain) noexcept
Construct a core dimensions descriptor.
rexlib::extent_domain
Set of extents an axis may take.
Definition
extent_domain.hpp:18
rexlib::extent_slot_descriptor
Type erased form of an extent_slot.
Definition
extent_slot_descriptor.hpp:18
rexlib::span
Represents a non-owning area of contiguous memory.
Definition
span.hpp:99
rexlib
Arrays, the operations on them and the devices that run those operations.
Definition
cpu_device.hpp:10
Generated by
1.9.8