A DomainOrSet is a type that can represent either a single domain or a set of domains.
More...
#include <concepts.hpp>
A DomainOrSet is a type that can represent either a single domain or a set of domains.
- Note
- Do not make the constructors of this class explicit. We want to be able to pass a single domain or a domain set to functions that take a DomainOrSet.
◆ DomainOrSet() [1/2]
template<IsDomain DomainT>
| serif::discretization::domain::DomainOrSet::DomainOrSet |
( |
DomainT | | ) |
|
|
inlineconstexprnoexcept |
Construct a DomainOrSet from a single domain type.
- Template Parameters
-
| DomainT | The domain type to construct from. |
◆ DomainOrSet() [2/2]
template<IsDomain... DomainTs>
| serif::discretization::domain::DomainOrSet::DomainOrSet |
( |
DomainSet< DomainTs... > | | ) |
|
|
inlineconstexprnoexcept |
Construct a DomainOrSet from a DomainSet type.
- Template Parameters
-
| DomainTs | The domain types that make up the set. |
◆ domains()
| std::span< const std::string_view > serif::discretization::domain::DomainOrSet::domains |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Get the names of the domains in this DomainOrSet.
- Returns
- A span of string_views containing the names of the domains.
◆ m_domains
| std::span<const std::string_view> serif::discretization::domain::DomainOrSet::m_domains |
|
private |
The documentation for this class was generated from the following file: