QxOrm 1.5.0
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

qx::trait::is_smart_ptr_base_of<B, D>::value : return true if B and D are smart-pointers of boost, Qt or QxOrm libraries and if (*B) is a base class of (*D), otherwise return false More...

Go to the source code of this file.

Classes

class  qx::trait::is_smart_ptr_base_of< B, D >
 qx::trait::is_smart_ptr_base_of<B, D>::value : return true if B and D are smart-pointers of boost, Qt or QxOrm libraries and if (*B) is a base class of (*D), otherwise return false More...
 

Namespaces

namespace  qx
 Root namespace for all QxOrm library features.
 
namespace  qx::trait
 QxOrm library traits (template metaprogramming) not available in boost::type_traits library.
 

Macros

#define qx_smart_ptr_base_of_test_0()
 
#define qx_smart_ptr_base_of_test_1()
 
#define qx_smart_ptr_base_of_test_2()
 
#define qx_smart_ptr_base_of_test_3()
 
#define qx_smart_ptr_base_of_test_4()
 
#define qx_smart_ptr_base_of_test_5()
 
#define qx_smart_ptr_base_of_test_6()
 
#define qx_smart_ptr_base_of_test_7()
 
#define qx_smart_ptr_base_of_test_8()
 
#define qx_smart_ptr_base_of_test_9()
 
#define qx_smart_ptr_base_of_test_10()
 
#define qx_smart_ptr_base_of_test_11()
 
#define qx_smart_ptr_base_of_all_test()
 

Detailed Description

qx::trait::is_smart_ptr_base_of<B, D>::value : return true if B and D are smart-pointers of boost, Qt or QxOrm libraries and if (*B) is a base class of (*D), otherwise return false

Author
Lionel Marty

Definition in file is_smart_ptr_base_of.h.

Macro Definition Documentation

◆ qx_smart_ptr_base_of_all_test

#define qx_smart_ptr_base_of_all_test ( )
Value:
qx_smart_ptr_base_of_test_4() || qx_smart_ptr_base_of_test_5() || qx_smart_ptr_base_of_test_6() || \
qx_smart_ptr_base_of_test_7() || qx_smart_ptr_base_of_test_8() || qx_smart_ptr_base_of_test_9() || \
qx_smart_ptr_base_of_test_10() || qx_smart_ptr_base_of_test_11()
#define qx_smart_ptr_base_of_test_2()
#define qx_smart_ptr_base_of_test_9()
#define qx_smart_ptr_base_of_test_8()
#define qx_smart_ptr_base_of_test_6()
#define qx_smart_ptr_base_of_test_3()
#define qx_smart_ptr_base_of_test_5()
#define qx_smart_ptr_base_of_test_1()
#define qx_smart_ptr_base_of_test_11()

Definition at line 62 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_0

#define qx_smart_ptr_base_of_test_0 ( )
Value:
static std::conditional< std::is_base_of< V, W >::value, char, int >::type removeSmartPtr(const boost::scoped_ptr< V > &, const boost::scoped_ptr< W > &)

Definition at line 48 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_1

#define qx_smart_ptr_base_of_test_1 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_boost_scoped_ptr), d)) == sizeof(char))

Definition at line 49 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_10

#define qx_smart_ptr_base_of_test_10 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_std_shared_ptr), d)) == sizeof(char))

Definition at line 59 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_11

#define qx_smart_ptr_base_of_test_11 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_std_weak_ptr), d)) == sizeof(char))

Definition at line 60 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_2

#define qx_smart_ptr_base_of_test_2 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_boost_shared_ptr), d)) == sizeof(char))

Definition at line 50 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_3

#define qx_smart_ptr_base_of_test_3 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_boost_weak_ptr), d)) == sizeof(char))

Definition at line 51 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_4

#define qx_smart_ptr_base_of_test_4 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_boost_intrusive_ptr), d)) == sizeof(char))

Definition at line 52 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_5

#define qx_smart_ptr_base_of_test_5 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_qt_shared_data_ptr), d)) == sizeof(char))

Definition at line 53 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_6

#define qx_smart_ptr_base_of_test_6 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_qt_shared_ptr), d)) == sizeof(char))

Definition at line 54 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_7

#define qx_smart_ptr_base_of_test_7 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_qt_weak_ptr), d)) == sizeof(char))

Definition at line 55 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_8

#define qx_smart_ptr_base_of_test_8 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_qx_dao_ptr), d)) == sizeof(char))

Definition at line 56 of file is_smart_ptr_base_of.h.

◆ qx_smart_ptr_base_of_test_9

#define qx_smart_ptr_base_of_test_9 ( )
Value:
(sizeof(qx::trait::is_smart_ptr_base_of<B, D>::removeSmartPtr((* b_std_unique_ptr), d)) == sizeof(char))

Definition at line 58 of file is_smart_ptr_base_of.h.