rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | List of all members
rexlib::named_domain< Derived > Struct Template Reference

Base giving a named domain both of its halves. More...

#include <rexlib/core/numerical/numerical_type_domain_tags.hpp>

Classes

struct  contains_type
 Check at compile time whether a static type belongs. More...
 

Static Public Member Functions

static const numerical_type_domain & get () noexcept
 Get the domain.
 

Detailed Description

template<typename Derived>
struct rexlib::named_domain< Derived >

Base giving a named domain both of its halves.

A domain has to answer the same question in two places: the rule engine asks it about a numerical_type value, and a backend asks it about a native C++ type in order to decide whether to instantiate a kernel at all. Both come from the single constexpr mask Derived declares, so they cannot disagree.

Template Parameters
DerivedThe named domain, exposing a constexpr value.

Member Function Documentation

◆ get()

template<typename Derived >
static const numerical_type_domain & rexlib::named_domain< Derived >::get ( )
inlinestaticnoexcept

Get the domain.

Returns
const numerical_type_domain& The domain.

The documentation for this struct was generated from the following file: