Steppable 0.0.1
A CAS project written from scratch in C++
|
Contains the parameter utilities to allow named parameters to be passed into functions. More...
Classes | |
struct | Parameter |
Stores the name of a parameter. More... | |
struct | ParameterMap |
An object containing all parameters and their values passed into a function. More... | |
struct | ValuedParameter |
A parameter with a name and value. More... |
Typedefs | |
using | ValueMap = std::vector<ValuedParameter> |
A type containing all the parameters of a function, in calling order. |
Functions | |
Parameter | operator""_p (const char *name, size_t) |
Convert a literal to a parameter, using a shorthand notation. | |
template<typename... Params> | |
ParameterMap | processParams (Params... params) |
Process parameters passed into a function. |
Contains the parameter utilities to allow named parameters to be passed into functions.
using steppable::__internals::parameter::ValueMap = std::vector<ValuedParameter> |
A type containing all the parameters of a function, in calling order.
|
inline |
Convert a literal to a parameter, using a shorthand notation.
name | The name of the parameter, expressed as a simple string literal. |
ParameterMap steppable::__internals::parameter::processParams | ( | Params... | params | ) |
Process parameters passed into a function.
Takes in all arguments from a variadic function, and processes them as parameters.
params | The parameters passed into a function. |