DUNE PDELab (git)
containerdescriptors.hh
A class augmenting std::tuple by element access via operator[].
Definition: tuplevector.hh:35
Utility to generate an array with a certain value.
typename impl::_Child< Node, indices... >::type Child
Template alias for the type of a child node given by a list of child indices.
Definition: childextraction.hh:225
ImplementationDefined child(Node &&node, Indices... indices)
Extracts the child of a node given by a sequence of compile-time and run-time indices.
Definition: childextraction.hh:128
STL namespace.
Descriptor for arrays with all children identical and the number of children a static size.
Definition: containerdescriptors.hh:125
static constexpr std::size_t size()
The static size information, i.e., number of children.
Definition: containerdescriptors.hh:143
UniformArray()
Default constructor. Is enable if the child-type is default constructible.
Definition: containerdescriptors.hh:129
UniformArray(Child child)
Constructor that stores a single child only.
Definition: containerdescriptors.hh:134
const Child & operator[](const Index &) const
Access the i'th child that is always the same, i.e., child_.
Definition: containerdescriptors.hh:140
Uniform descriptor with dynamic size.
Definition: containerdescriptors.hh:164
UniformVector(std::size_t size, Child child)
Constructor that stores the size and a single child only.
Definition: containerdescriptors.hh:174
std::size_t size() const
The dynamic size information, i.e., number of children.
Definition: containerdescriptors.hh:184
UniformVector(std::size_t size)
Default constructor with size. Is enable if the child-type is default constructible.
Definition: containerdescriptors.hh:168
const Child & operator[](const Index &) const
Access the i'th child that is always the same, i.e., child_.
Definition: containerdescriptors.hh:181
Fallback container descriptor if nothing else fits.
Definition: containerdescriptors.hh:46
The node in the descriptor tree representing a value placeholder.
Definition: containerdescriptors.hh:79
static constexpr std::size_t size()
A value placeholder does not have any sub-descriptors, thus its size is zero.
Definition: containerdescriptors.hh:85
Value operator[](const Index &) const
The child access method is only available for the interface, but should not be called.
Definition: containerdescriptors.hh:82
Provides the TupleVector class that augments std::tuple by operator[].
Utilities for type computations, constraining overloads, ...
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)