• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • kdecore
  • util
Classes | Namespaces | Macros
ktypelistutils.h File Reference
#include "ktypelist.h"
#include <cstdlib>
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.

Classes

struct  KDE::IfEqualThenElse< First, Second, Then, Else >
 
struct  KDE::IfEqualThenElse< FS, FS, Then, Else >
 
struct  KDE::IfThenElse< cond, T, U >
 
struct  KDE::IfThenElse< false, T, U >
 
class  KTypeListAfterPivot< List, Pivot, Comparator >
 
struct  KTypeListAppend< List1, List2 >
 
struct  KTypeListAppend< KDE::NullType, List2 >
 
struct  KTypeListAt< Types, pos >
 
struct  KTypeListAt< KDE::NullType, 0 >
 
struct  KTypeListAt< KDE::NullType, pos >
 
struct  KTypeListAt< Types, 0 >
 
struct  KTypeListAtWithDefault< Types, pos, Default >
 
struct  KTypeListAtWithDefault< KDE::NullType, 0, Default >
 
struct  KTypeListAtWithDefault< KDE::NullType, pos, Default >
 
struct  KTypeListAtWithDefault< Types, 0, Default >
 
class  KTypeListBeforePivot< List, Pivot, Comparator >
 
struct  KTypeListContains< Types, Type >
 
struct  KTypeListContains< KDE::NullType, Type >
 
struct  KTypeListContains< KTypeList< Type, Tail >, Type >
 
struct  KTypeListEnd< Types >
 
struct  KTypeListEnd< K_TYPELIST_1(Type)>
 
struct  KTypeListFold< List, Folder, Start >
 
struct  KTypeListFold< KDE::NullType, Folder, Start >
 
class  KTypeListForeach< Types, Manip >
 
struct  KTypeListForeach< KDE::NullType, Manip >
 
struct  KTypeListPop< Types >
 
struct  KTypeListPop< K_TYPELIST_1(Type)>
 
struct  KTypeListPush< Types, Type >
 
struct  KTypeListPush< KDE::NullType, Type >
 
struct  KTypeListReplaceBegin< Types, Replace >
 
struct  KTypeListReplaceBegin< KDE::NullType, Replace >
 
struct  KTypeListReplaceBegin< Types, KDE::NullType >
 
struct  KTypeListRevert< List >
 
struct  KTypeListSort< List, Comparator >
 
struct  KTypeListSort< KDE::NullType, Comparator >
 
struct  KDE::SameTypes< T, U >
 
struct  KDE::SameTypes< T, T >
 

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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal