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

A specialization of the DomainIDResolver struct for a DomainSet type. This struct is used to resolve the domain IDs for a given DomainSet type. More...

#include <resolver.hpp>

Public Types

template<typename D>
using ResolverFor = DomainIDResolver<D, ids::lists::DomainIDList<DomainIDTs...>>
 A helper alias to resolve the domain ID for a single Domain type in the set.
 

Static Public Member Functions

static constexpr bool contains_id (const int domainID) noexcept
 Check if the specified domain ID belongs to the given DomainSet type.
 

Static Public Attributes

static constexpr bool registered = (ResolverFor<DomainTs>::registered && ...)
 True if all of the Domain types in the set are registered with at least one of the DomainID types in the list, false otherwise.
 

Detailed Description

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

A specialization of the DomainIDResolver struct for a DomainSet type. This struct is used to resolve the domain IDs for a given DomainSet type.

Template Parameters
DomainTsThe Domain types that make up the set.
DomainIDTsThe list of DomainID types that are expected in the mesh.

Member Typedef Documentation

◆ ResolverFor

template<IsDomain... DomainTs, ids::IsDomainID... DomainIDTs>
template<typename D>
using serif::discretization::domain::DomainIDResolver< DomainSet< DomainTs... >, ids::lists::DomainIDList< DomainIDTs... > >::ResolverFor = DomainIDResolver<D, ids::lists::DomainIDList<DomainIDTs...>>

A helper alias to resolve the domain ID for a single Domain type in the set.

Member Function Documentation

◆ contains_id()

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

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

Parameters
domainIDThe domain ID to check.
Returns
True if the domain ID belongs to any of the Domain types in the set, false otherwise.

Member Data Documentation

◆ registered

template<IsDomain... DomainTs, ids::IsDomainID... DomainIDTs>
bool serif::discretization::domain::DomainIDResolver< DomainSet< DomainTs... >, ids::lists::DomainIDList< DomainIDTs... > >::registered = (ResolverFor<DomainTs>::registered && ...)
staticconstexpr

True if all of the Domain types in the set are 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: