|
KUMI v5.0.0
Gorgeous Garnet
|
Types and functions to adapt, build, name, index, and introspect product types. More...
Topics | |
| kumi::capture_field | |
| Creates a field from a given value keeping the qualifiers. | |
| kumi::field_cast | |
| Casts the provided value to the target type using static_cast. | |
| kumi::field_value_of | |
| Extracts the value from a kumi::concepts::field or returns the parameter. | |
| kumi::get_index_of_field | |
| Helper to retrieve the index of a type in a product type by its identifier. | |
| kumi::get_index_of_label | |
| Helper to retrieve the index of a type in a product type by its identifier. | |
| kumi::get_index_of_type | |
| Helper to retrieve the index of a type in a product type by its type. | |
| kumi::identifier_of | |
| Extracts the identifier of a kumi::concepts::field, or returns kumi::unknown. | |
| kumi::identifiers | |
| Creates a kumi::projection_map object, deducing the target type from the types of arguments. | |
| kumi::index | |
| Inline integral constant value for kumi::index_t. | |
| kumi::indexes | |
| Creates a kumi::projection_map object, deducing the target type from the types of arguments. | |
| kumi::label | |
| Inline literal constant value for kumi::label_t. | |
| kumi::label_of | |
| Extracts the label of a kumi::concepts::field, or returns the value of kumi::unknown. | |
| kumi::make_indexes | |
| Creates a kumi::projection_map object, deducing the target type from the types of arguments. | |
| kumi::members_of | |
| Extracts the identifiers of the fields of a kumi::product_type. | |
| kumi::none | |
| Inline constant representing a kumi::unit. | |
| kumi::only | |
| Option restricting an identifier to accept a single type T. | |
| kumi::projection_map | |
| kumi::projection_map deduction guide | |
| kumi::values_of | |
| Extracts the values of the fields of a kumi::product_type. | |
Classes | |
| class | kumi::as< T > |
| Lightweight type-wrapper. More... | |
| class | kumi::builder< T > |
| kumi::builder provides a generic way of defining a product type. More... | |
| class | kumi::field< Id, T > |
| Named wrapper over a type. More... | |
| class | kumi::identifier< ID, Checker > |
| identifier definition class More... | |
| class | kumi::index_t< N > |
| Integral constant type. More... | |
| class | kumi::label_t< Label > |
| Literal constant type. More... | |
| class | kumi::name< ID > |
| Compile-time text based identifier. More... | |
| class | kumi::projection_map< V > |
| A stateless, compile-time schema for product type transformation. More... | |
| class | kumi::str< N > |
| Static string used to create named fields. More... | |
| class | kumi::unit |
| A type representing the product of no type, also called the unit type. More... | |
| class | kumi::unknown |
| Type indicating an identifier was not found in a given kumi::product_type. More... | |
Functions | |
| auto | as_streamable (auto e) |
| Provides an extension point as_streamable in order to output types with no stream operator defined. | |
| template<char... c> | |
| constexpr auto | kumi::operator""_c () noexcept |
| Forms a integral constant literal of the desired value. | |
| template<kumi::str ID> | |
| constexpr auto | kumi::operator""_id () noexcept |
| Forms a constant string literal of the desired value. | |
| template<kumi::str ID> | |
| constexpr auto | kumi::operator""_l () noexcept |
| Forms a constant string literal of the desired value. | |
| template<template< class > class Pred> | |
| constexpr auto | kumi::predicate () noexcept |
| Convert a unary template meta-program in a running predicate. | |
| kumi::str constexpr | to_str (auto e) |
| Provides an extension point to_str in order to output types with no textual representation defined. | |
Friends | |
| template<typename CharT, typename Traits> | |
| std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, field const &w) noexcept |
| Inserts a kumi::field in an output stream. | |
| template<typename CharT, typename Traits> | |
| std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, field const &w) noexcept |
| Inserts a kumi::field in an output stream. | |
Variables | |
| template<typename T, typename...> | |
| kumi::declfn_t< T && > | kumi::declval |
| Converts a type T to an rvalue reference type for use in unevaluated contexts. | |
| template<template< class > typename Traits> | |
| constexpr traits_check< Traits > | kumi::if_ = {} |
| Option restricting an identifier to accept values whose type satisfies the trait Traits. | |
Types and functions to adapt, build, name, index, and introspect product types.
| auto as_streamable | ( | auto | e | ) |
Provides an extension point as_streamable in order to output types with no stream operator defined.
This function does not exist in the kumi namespace, it is supposed to be found via Argument Dependant Lookup for user defined types.
| e | The value of the element to output. |
|
constexprnoexcept |
Forms a integral constant literal of the desired value.
|
constexprnoexcept |
Forms a constant string literal of the desired value.
|
constexprnoexcept |
Forms a constant string literal of the desired value.
|
nodiscardconstexprnoexcept |
Convert a unary template meta-program in a running predicate.
| Pred | Unary template meta-program to convert. |
|
constexpr |
Provides an extension point to_str in order to output types with no textual representation defined.
This function does not exist in the kumi namespace, it is supposed to be found via Argument Dependant Lookup for user defined types. It is used in order to handle identifiers/fields display and manipulations. to_str needs to be constexpr callable, if not some concepts might fail unexpectedly.
| e | The value of the element to output. |
|
extern |
Converts a type T to an rvalue reference type for use in unevaluated contexts.
|
inlineconstexpr |
Option restricting an identifier to accept values whose type satisfies the trait Traits.
| Traits | Traits that the parametrized identifier will use to validate its value. |