rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
extent_domain.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <cstddef>
6
7namespace rexlib
8{
9
18{
19public:
23 using contains_function_type = bool (*)(std::size_t);
24
35 const char *description
36 ) noexcept;
37
45 bool contains(std::size_t extent) const noexcept;
46
53
55 contains_function_type m_contains;
56 const char *m_description;
57};
58
68
69} // namespace rexlib
70
71#include "extent_domain.inl"
Container for multidimensional numeric data.
Definition array.hpp:31
Set of extents an axis may take.
Definition extent_domain.hpp:18
const char * get_description() const noexcept
Get what the domain admits.
bool contains(std::size_t extent) const noexcept
Check whether the domain admits an extent.
extent_domain(contains_function_type contains, const char *description) noexcept
Construct a domain.
bool(*)(std::size_t) contains_function_type
Membership test of a domain.
Definition extent_domain.hpp:23
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
extent_domain make_extent_domain() noexcept
Build the domain an extent domain tag names.