swift
Classes | Namespaces | Typedefs | Variables
inheritancetraits.h File Reference

Go to the source code of this file.

Classes

struct  swift::misc::TBaseOf< T, typename >
 If T has a member typedef base_type, this trait will obtain it, otherwise void. More...
 
struct  swift::misc::TMetaBaseOf< T >
 It T has a member typedef base_type which is a registered metatype, this trait will obtain it, otherwise void. More...
 
struct  swift::misc::TIndexBaseOf< T, typename >
 If T has a member typedef base_type which has a member propertyByIndex, this trait will obtain it, otherwise void. More...
 

Namespaces

 swift::misc
 Free functions in swift::misc.
 

Typedefs

template<class T >
using swift::misc::TBaseOfT = typename TBaseOf< T >::type
 Alias for typename TBaseOf<T>::type.
 
template<class T >
using swift::misc::TMetaBaseOfT = typename TMetaBaseOf< T >::type
 Alias for typename TMetaBaseOf<T>::type.
 
template<class T >
using swift::misc::TIndexBaseOfT = typename TIndexBaseOf< T >::type
 Alias for typename TIndexBaseOf<T>::type.
 

Variables

template<typename T >
constexpr bool swift::misc::THasMetaBaseV = QMetaTypeId<typename TBaseOf<T>::type>::Defined
 True if T has a member typedef base_type which is a registered metatype.