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

KDECore

  • kdecore
  • util
Classes | Namespaces | Macros | Typedefs | Functions
ktypetraits.h File Reference
#include "ktypelist.h"
#include "ktypelistutils.h"
#include <stdint.h>

Go to the source code of this file.

Classes

struct  KTypeTraits::CanConvert< T, U >
 
struct  KTypeTraits::CanDynamicCast< T, U >
 
struct  KTypeTraits::Modifiers::ConstReferenceType< T >
 
struct  KTypeTraits::Modifiers::ConstReferenceType< T & >
 
struct  KTypeTraits::IsParentOfChild< T, U >
 
struct  KTypeTraits::IsParentOfChildNonStrict< T, U >
 
struct  KTypeTraits::MaxTypeSelect< Types >
 
struct  KTypeTraits::MaxTypeSelect< KDE::NullType >
 
struct  KTypeTraits::MinTypeSelect< Types >
 
struct  KTypeTraits::MinTypeSelect< KDE::NullType >
 
struct  KTypeTraits::ParameterList< Types >
 
struct  KTypeTraits::Modifiers::ParameterType< T >
 
struct  KTypeTraits::PointerList< Types >
 
struct  KTypeTraits::Modifiers::PointerType< T >
 
struct  KTypeTraits::ReferenceList< Types >
 
struct  KTypeTraits::Modifiers::ReferenceType< T >
 
struct  KTypeTraits::Modifiers::ReferenceType< T & >
 
struct  KTypeTraits::Modifiers::StripAll< T >
 
struct  KTypeTraits::StrippedList< Types >
 
struct  KTypeTraits::TypeListCheck< T >
 
struct  KTypeTraits::TypeListCheck< KDE::NullType >
 
struct  KTypeTraits::TypeListCheck< KTypeList< Head, Tail > >
 
struct  KTypeTraits::TypeSelect< Types, size >
 
struct  KTypeTraits::TypeSelect< KDE::NullType, size >
 
struct  KTypeTraits::TypeSelectImpl< Types, correct >
 
class  KTypeTraits::TypeTraits< T >
 

Namespaces

namespace  KTypeTraits
 
namespace  KTypeTraits::Modifiers
 

Macros

#define NC(...)   __VA_ARGS__
 
#define TTQ_ALIAS(Name)
 
#define TTQ_DECL(Name)
 
#define TTQ_SPECIALIZATION(Name, Check)
 

Typedefs

typedef TypeSelect< Floats, 4 >::Result KTypeTraits::float32
 
typedef TypeSelect< Floats, 8 >::Result KTypeTraits::float64
 
typedef TypeSelect< Floats, 12 >::Result KTypeTraits::float96
 
typedef TypeSelect< SignedInts, 2 >::Result KTypeTraits::int16
 
typedef TypeSelect< SignedInts, 4 >::Result KTypeTraits::int32
 
typedef TypeSelect< SignedInts, 8 >::Result KTypeTraits::int64
 
typedef TypeSelect< SignedInts, 1 >::Result KTypeTraits::int8
 
typedef MaxTypeSelect< Floats >::Result KTypeTraits::maxfloat
 
typedef MaxTypeSelect< SignedInts >::Result KTypeTraits::maxint
 
typedef MaxTypeSelect< UnsignedInts >::Result KTypeTraits::maxuint
 
typedef MinTypeSelect< Floats >::Result KTypeTraits::minfloat
 
typedef MinTypeSelect< SignedInts >::Result KTypeTraits::minint
 
typedef MinTypeSelect< UnsignedInts >::Result KTypeTraits::minuint
 
typedef TypeSelect< UnsignedInts, 2 >::Result KTypeTraits::uint16
 
typedef TypeSelect< UnsignedInts, 4 >::Result KTypeTraits::uint32
 
typedef TypeSelect< UnsignedInts, 8 >::Result KTypeTraits::uint64
 
typedef TypeSelect< UnsignedInts, 1 >::Result KTypeTraits::uint8
 

Functions

typedef KTypeTraits::K_TYPELIST_3 (float, double, long double) Floats
 
typedef KTypeTraits::K_TYPELIST_6 (signed char, wchar_t, signed short, signed int, signed long, signed long long) SignedInts
 
typedef KTypeTraits::K_TYPELIST_6 (unsigned char, wchar_t, unsigned short, unsigned int, unsigned long, unsigned long long) UnsignedInts
 

Macro Definition Documentation

◆ NC

#define NC (   ...)    __VA_ARGS__

Definition at line 29 of file ktypetraits.h.

◆ TTQ_ALIAS

#define TTQ_ALIAS (   Name)
Value:
typedef typename Modifiers::Strip ##Name<T>::Result Strip ##Name; \
enum { is ##Name = Modifiers::Is ##Name<T>::value };

Definition at line 157 of file ktypetraits.h.

◆ TTQ_DECL

#define TTQ_DECL (   Name)
Value:
template<typename T> \
struct Is ##Name \
{ \
enum { value = false };\
}; \
template<typename T> \
struct Strip ##Name \
{ \
typedef T Result; \
};
T
#define T

Definition at line 135 of file ktypetraits.h.

◆ TTQ_SPECIALIZATION

#define TTQ_SPECIALIZATION (   Name,
  Check 
)
Value:
template<typename T> \
struct Is ##Name<Check> \
{ \
enum { value = true }; \
}; \
template<typename T> \
struct Strip ##Name<Check> \
{ \
typedef T Result; \
};
Kuit::Cue::Check
@ Check
Definition: kuitsemantics.cpp:112

Definition at line 146 of file ktypetraits.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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