|
dune-common 2.9.1
|
Loading...
Searching...
No Matches
parameterizedobject.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
Utilities for type computations, constraining overloads, ...
A few common exception classes.
Default exception if a function was called while the object is not in a valid state for that function...
Definition exceptions.hh:281
A factory class for parameterized objects.
Definition parameterizedobject.hh:36
static constexpr auto has_proper_signature(Dune::PriorityTag< 1 >) -> decltype(std::declval< F >()(std::declval< Args >()...), std::true_type())
Definition parameterizedobject.hh:56
TypeT Type
The type of objects created by the factory.
Definition parameterizedobject.hh:49
void define(Key const &key, Impl &&t)
Registers a new type with a key.
Definition parameterizedobject.hh:145
KeyT Key
The typ of the keys.
Definition parameterizedobject.hh:46
Type create(Key const &key, Args ... args) const
Creates an object identified by a key from given parameters.
Definition parameterizedobject.hh:77
void define(Key const &key)
Registers a new type with a key.
Definition parameterizedobject.hh:101
void define(Key const &key, F &&f)
Registers a new creator with a key.
Definition parameterizedobject.hh:121
static constexpr std::false_type has_proper_signature(Dune::PriorityTag< 0 >)
Definition parameterizedobject.hh:63
bool contains(Key const &key) const
Definition parameterizedobject.hh:150
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8