KDECore
ktypelistutils.h File Reference
Include dependency graph for ktypelistutils.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
KDE | |
Macros | |
#define | NC(...) __VA_ARGS__ |
#define | STATIC_EQUAL(type1, type2) KDE::SameTypes<type1, type2>::value |
#define | STATIC_FOLD(List, Modifier, Start) typename KTypeListFold<List, Modifier, Start>::Result |
#define | STATIC_FOREACH(list, modifier) typename KTypeListForeach<list, modifier>::Result |
#define | STATIC_IF(expr, T, U) typename KDE::IfThenElse<expr, T, U>::Result |
#define | STATIC_IF_EQUAL(T, U, V, W) typename KDE::IfEqualThenElse<T, U, V, W>::Result |
Macro Definition Documentation
#define NC | ( | ... | ) | __VA_ARGS__ |
ktypelistutils.h Various templates to handle typelists in meta-programming.
Definition at line 32 of file ktypelistutils.h.
#define STATIC_EQUAL | ( | type1, | |
type2 | |||
) | KDE::SameTypes<type1, type2>::value |
- Returns
- true if type1 == type2.
Definition at line 229 of file ktypelistutils.h.
#define STATIC_FOLD | ( | List, | |
Modifier, | |||
Start | |||
) | typename KTypeListFold<List, Modifier, Start>::Result |
"Folds" the typelist.
If size(List) == 0: Start Else: Fold(List::Tail, Modifier, Modifier(Start, List::Head))
Definition at line 290 of file ktypelistutils.h.
#define STATIC_FOREACH | ( | list, | |
modifier | |||
) | typename KTypeListForeach<list, modifier>::Result |
Apply KTypeListForeach.
Definition at line 234 of file ktypelistutils.h.
#define STATIC_IF | ( | expr, | |
T, | |||
U | |||
) | typename KDE::IfThenElse<expr, T, U>::Result |
If expr: T, else: U.
Definition at line 266 of file ktypelistutils.h.
#define STATIC_IF_EQUAL | ( | T, | |
U, | |||
V, | |||
W | |||
) | typename KDE::IfEqualThenElse<T, U, V, W>::Result |
If T == U: V, else: W.
Definition at line 271 of file ktypelistutils.h.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.