OGS
|
Namespaces | |
namespace | detail |
Classes | |
struct | Concat |
struct | Concat< List< Types1... >, List< Types2... > > |
struct | List |
A list of types. More... | |
struct | Map |
struct | Map< MapFromTypeToType, List< Types... > > |
Typedefs | |
template<typename List1 , typename List2 > | |
using | Concat_t = typename Concat<List1, List2>::type |
template<template< typename > typename MapFromTypeToType, typename List > | |
using | Map_t = typename Map<MapFromTypeToType, List>::type |
Functions | |
template<typename List , typename Pred > | |
decltype(auto) | filter (Pred pred) |
template<typename List , typename Function > | |
constexpr decltype(auto) | map_to_array (Function &&f) |
template<typename List , typename Function > | |
void | foreach (Function &&f) |
template<typename List , typename Type > | |
constexpr bool | contains () |
Returns if Type is contained in the given List of types. | |
using BaseLib::TMP::Concat_t = typename Concat<List1, List2>::type |
using BaseLib::TMP::Map_t = typename Map<MapFromTypeToType, List>::type |
|
constexpr |
Returns if Type
is contained in the given List
of types.
Definition at line 165 of file TMP.h.
References BaseLib::any_of(), and map_to_array().
Referenced by ProcessLib::detail::isElementEnabledImpl().
decltype(auto) BaseLib::TMP::filter | ( | Pred | pred | ) |
Filters the given list of types via the given predicate.
Keeps all elements for which pred
is true.
The function signature of pred
should be bool pred(Type*)
, where Type
is a member of the given list of types.
Definition at line 78 of file TMP.h.
References BaseLib::TMP::detail::filter().
Referenced by ProcessLib::BoundaryConditionAndSourceTerm::LocalAssemblerFactory< LocalAssemblerInterface, LocalAssemblerImplementation, GlobalDim, ConstructorArgs >::LocalAssemblerFactory(), ProcessLib::LocalAssemblerFactoryForDimGreaterEqualN< MinElementDim, LocalAssemblerInterface, LocalAssemblerImplementation, IntegrationMethodProvider, GlobalDim, ConstructorArgs >::LocalAssemblerFactoryForDimGreaterEqualN(), ProcessLib::LocalAssemblerFactoryTaylorHood< MinShapeFctOrder, MinElementDim, LocalAssemblerInterface, LocalAssemblerImplementation, IntegrationMethodProvider, GlobalDim, ConstructorArgs >::LocalAssemblerFactoryTaylorHood(), ProcessLib::HeatTransportBHE::LocalDataInitializer< LocalAssemblerInterface, LocalAssemblerDataSoil, LocalAssemblerDataBHE, ConstructorArgs >::LocalDataInitializer(), ProcessLib::LIE::HydroMechanics::LocalDataInitializer< LocalAssemblerInterface, LocalAssemblerDataMatrix, LocalAssemblerDataMatrixNearFracture, LocalAssemblerDataFracture, GlobalDim, ConstructorArgs >::LocalDataInitializer(), ProcessLib::LIE::SmallDeformation::LocalDataInitializer< LocalAssemblerInterface, LocalAssemblerDataMatrix, LocalAssemblerDataMatrixNearFracture, LocalAssemblerDataFracture, GlobalDim, ConstructorArgs >::LocalDataInitializer(), and BaseLib::TMP::detail::filter().
void BaseLib::TMP::foreach | ( | Function && | f | ) |
Applies the given function to a list of types.
The function signature should be void f(Type*)
, where Type
is a member of the given list of types.
Definition at line 157 of file TMP.h.
References BaseLib::TMP::detail::foreach().
Referenced by ProcessLib::BoundaryConditionAndSourceTerm::LocalAssemblerFactory< LocalAssemblerInterface, LocalAssemblerImplementation, GlobalDim, ConstructorArgs >::LocalAssemblerFactory(), ProcessLib::LocalAssemblerFactoryForDimGreaterEqualN< MinElementDim, LocalAssemblerInterface, LocalAssemblerImplementation, IntegrationMethodProvider, GlobalDim, ConstructorArgs >::LocalAssemblerFactoryForDimGreaterEqualN(), ProcessLib::LocalAssemblerFactoryTaylorHood< MinShapeFctOrder, MinElementDim, LocalAssemblerInterface, LocalAssemblerImplementation, IntegrationMethodProvider, GlobalDim, ConstructorArgs >::LocalAssemblerFactoryTaylorHood(), ProcessLib::HeatTransportBHE::LocalDataInitializer< LocalAssemblerInterface, LocalAssemblerDataSoil, LocalAssemblerDataBHE, ConstructorArgs >::LocalDataInitializer(), ProcessLib::LIE::HydroMechanics::LocalDataInitializer< LocalAssemblerInterface, LocalAssemblerDataMatrix, LocalAssemblerDataMatrixNearFracture, LocalAssemblerDataFracture, GlobalDim, ConstructorArgs >::LocalDataInitializer(), and ProcessLib::LIE::SmallDeformation::LocalDataInitializer< LocalAssemblerInterface, LocalAssemblerDataMatrix, LocalAssemblerDataMatrixNearFracture, LocalAssemblerDataFracture, GlobalDim, ConstructorArgs >::LocalDataInitializer().
|
constexpr |
Applies the given function to a list of types returning the array of results.
The function signature should be ReturnType f(Type*)
, where Type
is a member of the given list of types and ReturnType
is the same for all overloads of f
.
Definition at line 134 of file TMP.h.
References BaseLib::TMP::detail::map_to_array().
Referenced by contains().