SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::discretization::domain::BoundaryIDResolver< BoundarySet< BoundaryTs... >, ids::lists::BoundaryIDList< BoundaryIDTs... > > Struct Template Reference

A specialization of the BoundaryIDResolver struct for a BoundarySet type. This struct is used to resolve the boundary IDs for a given BoundarySet type. More...

#include <resolver.hpp>

Public Types

template<typename B>
using ResolverFor = BoundaryIDResolver<B, ids::lists::BoundaryIDList<BoundaryIDTs...>>
 A helper alias to resolve the boundary ID for a single Boundary type in the set.
 

Static Public Member Functions

static constexpr bool contains_id (const int boundaryID) noexcept
 Check if the specified boundary ID belongs to the given BoundarySet type.
 

Static Public Attributes

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

Detailed Description

template<IsBoundary... BoundaryTs, ids::IsBoundaryID... BoundaryIDTs>
struct serif::discretization::domain::BoundaryIDResolver< BoundarySet< BoundaryTs... >, ids::lists::BoundaryIDList< BoundaryIDTs... > >

A specialization of the BoundaryIDResolver struct for a BoundarySet type. This struct is used to resolve the boundary IDs for a given BoundarySet type.

Template Parameters
BoundaryTsThe Boundary types that make up the set.
BoundaryIDTsThe list of BoundaryID types that are expected in the mesh.

Member Typedef Documentation

◆ ResolverFor

template<IsBoundary... BoundaryTs, ids::IsBoundaryID... BoundaryIDTs>
template<typename B>
using serif::discretization::domain::BoundaryIDResolver< BoundarySet< BoundaryTs... >, ids::lists::BoundaryIDList< BoundaryIDTs... > >::ResolverFor = BoundaryIDResolver<B, ids::lists::BoundaryIDList<BoundaryIDTs...>>

A helper alias to resolve the boundary ID for a single Boundary type in the set.

Member Function Documentation

◆ contains_id()

template<IsBoundary... BoundaryTs, ids::IsBoundaryID... BoundaryIDTs>
static constexpr bool serif::discretization::domain::BoundaryIDResolver< BoundarySet< BoundaryTs... >, ids::lists::BoundaryIDList< BoundaryIDTs... > >::contains_id ( const int boundaryID)
inlinestaticnodiscardconstexprnoexcept

Check if the specified boundary ID belongs to the given BoundarySet type.

Parameters
boundaryIDThe boundary ID to check.
Returns
True if the boundary ID belongs to any of the Boundary types in the set, false otherwise.

Member Data Documentation

◆ registered

template<IsBoundary... BoundaryTs, ids::IsBoundaryID... BoundaryIDTs>
bool serif::discretization::domain::BoundaryIDResolver< BoundarySet< BoundaryTs... >, ids::lists::BoundaryIDList< BoundaryIDTs... > >::registered = (ResolverFor<BoundaryTs>::registered && ...)
staticconstexpr

True if all of the Boundary types in the set are registered with at least one of the BoundaryID types in the list, false otherwise.


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