|
dune-common 2.12-git
|
Loading...
Searching...
No Matches
parameterizedobject.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
Utilities for reduction like operations on ranges.
Utilities for type computations, constraining overloads, ...
A few common exception classes.
auto transformedRangeView(R &&range, F &&f)
Create a TransformedRangeView.
Definition rangeutilities.hh:669
Default exception if a function was called while the object is not in a valid state for that function...
Definition exceptions.hh:375
A factory class for parameterized objects.
Definition parameterizedobject.hh:37
auto keys() const
Get a list of the available keys to the object factory.
Definition parameterizedobject.hh:157
static constexpr auto has_proper_signature(Dune::PriorityTag< 1 >) -> decltype(std::declval< F >()(std::declval< Args >()...), std::true_type())
Definition parameterizedobject.hh:57
TypeT Type
The type of objects created by the factory.
Definition parameterizedobject.hh:50
void define(Key const &key, Impl &&t)
Registers a new type with a key.
Definition parameterizedobject.hh:146
KeyT Key
The typ of the keys.
Definition parameterizedobject.hh:47
Type create(Key const &key, Args ... args) const
Creates an object identified by a key from given parameters.
Definition parameterizedobject.hh:78
void define(Key const &key)
Registers a new type with a key.
Definition parameterizedobject.hh:102
void define(Key const &key, F &&f)
Registers a new creator with a key.
Definition parameterizedobject.hh:122
static constexpr std::false_type has_proper_signature(Dune::PriorityTag< 0 >)
Definition parameterizedobject.hh:64
bool contains(Key const &key) const
Definition parameterizedobject.hh:151
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8