Kaspersky Neuromorphic Platform
1.0.0
API Reference
|
Metaprogramming library namespace. More...
Metaprogramming library namespace.
using knp::meta::mp_flt = boost::mp11::mp_filter_q<boost::mp11::mp_bind_front<mp_neq, boost::mp11::mp_size<AllList>>, L> |
List of types from the global type list that are used in the local type list.
AllList | global list of types. |
L | local list of types (subset of AllList ). |
Definition at line 54 of file stringify.h.
using knp::meta::mp_neq = boost::mp11::mp_bool<T1::value != T2::value> |
Template used to determine if two arbitrary types are not the same at the compile stage.
mp_neq
takes the value of true
if the types are not the same, otherwise mp_neq
takes the value of false
.
T1 | first arbitrary type to compare. |
T2 | second arbitrary type to compare. |
Definition at line 46 of file stringify.h.
using knp::meta::mp_supported_indexes |
Index array for types from the global type list that are used in the local type list.
AllList | global list of types. |
L | local list of types (subset of AllList ). |
Definition at line 62 of file stringify.h.
std::vector< size_t > knp::meta::get_supported_type_indexes | ( | ) |
Get supported type indexes.
AllTypes | global list of types. |
SupportedTypes | local list of types. |
Definition at line 84 of file stringify.h.
std::vector< std::string > knp::meta::get_supported_type_names | ( | const NamesType & | type_names | ) |
Get names of supported object types.
type_names | container (usually a tuple) of type names. |
AllTypes | global list of types. |
SupportedTypes | local list of types. |
NamesType | container type (automatically derived from type_names if not specified). |
Definition at line 104 of file stringify.h.
void knp::meta::load_from_container | ( | const std::vector< AllVariants > & | from_container, |
ToContainer & | to_container ) |
Load elements from one container of all variants to another container that contains a subset of all variants.
SupportedTypes | subset of variants. |
AllVariants | all supported variants. |
ToContainer | target container. |
from_container | source container. |
to_container | target container. |
Definition at line 47 of file variant_helpers.h.
std::string knp::meta::type_name | ( | ) |
Return type of variable as a string.
See Stack overflow.
T | type of variable. |
type_name<decltype(variable)>()
. Definition at line 47 of file specialization_helpers.h.
|
inlineconstexpr |
Template used to generate a fixed false
value for static asserts.
Definition at line 35 of file assert_helpers.h.