SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::discretization::domain::DomainIDResolver< DomainT, ids::lists::DomainIDList< DomainIDTs... > > Struct Template Reference

A specialization of the DomainIDResolver struct for a single Domain type. This struct is used to resolve the domain ID for a given Domain type. More...

#include <resolver.hpp>

Static Public Member Functions

static constexpr bool contains_id (const int domainID) noexcept
 Check if the specified domain ID belongs to the given Domain type.
 
static consteval int id ()
 Get the ID for the specified Domain type.
 

Static Public Attributes

static constexpr bool registered = (DomainIsIdentifiedBy<DomainT, DomainIDTs> || ...)
 True if the Domain type is registered with at least one of the DomainID types in the list, false otherwise.
 

Detailed Description

template<IsDomain DomainT, ids::IsDomainID... DomainIDTs>
struct serif::discretization::domain::DomainIDResolver< DomainT, ids::lists::DomainIDList< DomainIDTs... > >

A specialization of the DomainIDResolver struct for a single Domain type. This struct is used to resolve the domain ID for a given Domain type.

Template Parameters
DomainTThe Domain type to resolve the ID for.
DomainIDTsThe list of DomainID types that are expected in the mesh.

Member Function Documentation

◆ contains_id()

template<IsDomain DomainT, ids::IsDomainID... DomainIDTs>
static constexpr bool serif::discretization::domain::DomainIDResolver< DomainT, ids::lists::DomainIDList< DomainIDTs... > >::contains_id ( const int domainID)
inlinestaticnodiscardconstexprnoexcept

Check if the specified domain ID belongs to the given Domain type.

Parameters
domainIDThe domain ID to check.
Returns
True if the domain ID belongs to the specified Domain type, false otherwise.

◆ id()

template<IsDomain DomainT, ids::IsDomainID... DomainIDTs>
static consteval int serif::discretization::domain::DomainIDResolver< DomainT, ids::lists::DomainIDList< DomainIDTs... > >::id ( )
inlinestaticnodiscardconsteval

Get the ID for the specified Domain type.

Returns
The ID for the specified Domain type.

Member Data Documentation

◆ registered

template<IsDomain DomainT, ids::IsDomainID... DomainIDTs>
bool serif::discretization::domain::DomainIDResolver< DomainT, ids::lists::DomainIDList< DomainIDTs... > >::registered = (DomainIsIdentifiedBy<DomainT, DomainIDTs> || ...)
staticconstexpr

True if the Domain type is registered with at least one of the DomainID types in the list, false otherwise.


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