OpenLB 1.7
|
Tuple of abstract field declarations. More...
#include <descriptorBase.h>
Public Types | |
using | fields_t = meta::list<FIELDS...> |
template<template< typename... > class COLLECTION> | |
using | decompose_into = COLLECTION<FIELDS...> |
template<template< typename > class COND> | |
using | filter |
Returns FIELD_TUPLE with subset of FIELDS meeting COND. | |
Public Types inherited from olb::meta::list< FIELDS... > | |
using | get |
Returns INDEXth type of TYPES. | |
using | decompose_into |
Export TYPES into arbitrary variadic template COLLECTION. | |
using | map |
using | map_to_callable_result |
using | push |
using | append |
using | include |
Merge TYPES and UYPES into new list. | |
using | first_with_base |
Returns first type of TYPES that is derived from BASE. | |
using | first_with_base_or_fallback |
Returns first type of TYPES that is derived from BASE. | |
Public Member Functions | |
FIELD_TUPLE ()=delete | |
Deleted constructor to enforce pure usage as type and prevent implicit narrowing conversions. | |
Static Public Member Functions | |
template<typename WANTED_FIELD > | |
static constexpr bool | provides () |
Returns whether WANTED_FIELD is contained in FIELDS. | |
static bool | provides (std::type_index field) |
Returns whether field is contained in FIELDS. | |
Static Public Member Functions inherited from olb::meta::list< FIELDS... > | |
static constexpr unsigned | index () |
Index of first instance of TYPE in TYPES. | |
static constexpr void | for_each (F f) |
Calls f for each type of TYPES by-value (in reversed order!) | |
static constexpr bool | contains () |
Static Public Attributes | |
static constexpr std::size_t | field_count = sizeof...(FIELDS) |
Number of fields. | |
Static Public Attributes inherited from olb::meta::list< FIELDS... > | |
static constexpr unsigned | size |
Tuple of abstract field declarations.
Definition at line 49 of file descriptorBase.h.
using olb::descriptors::FIELD_TUPLE< FIELDS >::decompose_into = COLLECTION<FIELDS...> |
Definition at line 56 of file descriptorBase.h.
using olb::descriptors::FIELD_TUPLE< FIELDS >::fields_t = meta::list<FIELDS...> |
Definition at line 53 of file descriptorBase.h.
using olb::descriptors::FIELD_TUPLE< FIELDS >::filter |
Returns FIELD_TUPLE with subset of FIELDS meeting COND.
Definition at line 63 of file descriptorBase.h.
|
delete |
Deleted constructor to enforce pure usage as type and prevent implicit narrowing conversions.
|
inlinestaticconstexpr |
Returns whether WANTED_FIELD is contained in FIELDS.
Definition at line 68 of file descriptorBase.h.
References olb::meta::contains().
|
inlinestatic |
Returns whether field is contained in FIELDS.
Definition at line 74 of file descriptorBase.h.
References olb::meta::contains().
|
staticconstexpr |
Number of fields.
Definition at line 59 of file descriptorBase.h.