QxOrm
1.5.0
C++ Object Relational Mapping library
|
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...
#include <is_smart_ptr_base_of.h>
Public Types | |
enum | { value = (qx::trait::is_smart_ptr_base_of<B, D>::value_2 || qx::trait::is_smart_ptr_base_of<B, D>::value_3) } |
typedef std::conditional < qx::trait::is_smart_ptr_base_of < B, D >::value, std::true_type, std::false_type >::type | type |
Private Types | |
enum | { value_0 = (qx::trait::is_smart_ptr<D>::value) } |
enum | { value_1 = (qx::trait::is_smart_ptr<B>::value) } |
enum | { value_2 = ((value_0 && value_1) ? qx_smart_ptr_base_of_test_0() : 0) } |
enum | { value_3 = ((value_0 && ! value_1) ? qx_smart_ptr_base_of_all_test() : 0) } |
Static Private Member Functions | |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const boost::scoped_ptr< V > &, const boost::scoped_ptr< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const boost::shared_ptr< V > &, const boost::shared_ptr< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const boost::weak_ptr< V > &, const boost::weak_ptr< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const boost::intrusive_ptr< V > &, const boost::intrusive_ptr< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const QSharedDataPointer< V > &, const QSharedDataPointer< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const QSharedPointer< V > &, const QSharedPointer< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const QWeakPointer< V > &, const QWeakPointer< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const qx::dao::ptr< V > &, const qx::dao::ptr< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const std::unique_ptr< V > &, const std::unique_ptr< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const std::shared_ptr< V > &, const std::shared_ptr< W > &) |
template<typename V , typename W > | |
static std::conditional < std::is_base_of< V, W > ::value, char, int >::type | removeSmartPtr (const std::weak_ptr< V > &, const std::weak_ptr< W > &) |
static int | removeSmartPtr (...) |
Static Private Attributes | |
static B | b |
static D | d |
static boost::scoped_ptr< B > * | b_boost_scoped_ptr |
static boost::shared_ptr< B > * | b_boost_shared_ptr |
static boost::weak_ptr< B > * | b_boost_weak_ptr |
static boost::intrusive_ptr< B > * | b_boost_intrusive_ptr |
static QSharedDataPointer< B > * | b_qt_shared_data_ptr |
static QSharedPointer< B > * | b_qt_shared_ptr |
static QWeakPointer< B > * | b_qt_weak_ptr |
static qx::dao::ptr< B > * | b_qx_dao_ptr |
static std::unique_ptr< B > * | b_std_unique_ptr |
static std::shared_ptr< B > * | b_std_shared_ptr |
static std::weak_ptr< B > * | b_std_weak_ptr |
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
Definition at line 76 of file is_smart_ptr_base_of.h.
typedef std::conditional<qx::trait::is_smart_ptr_base_of<B, D>::value, std::true_type, std::false_type>::type qx::trait::is_smart_ptr_base_of< B, D >::type |
Definition at line 149 of file is_smart_ptr_base_of.h.
anonymous enum [private] |
Definition at line 140 of file is_smart_ptr_base_of.h.
anonymous enum [private] |
Definition at line 141 of file is_smart_ptr_base_of.h.
anonymous enum [private] |
Definition at line 142 of file is_smart_ptr_base_of.h.
anonymous enum [private] |
Definition at line 143 of file is_smart_ptr_base_of.h.
anonymous enum |
Definition at line 147 of file is_smart_ptr_base_of.h.
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const boost::scoped_ptr< V > & | , |
const boost::scoped_ptr< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const boost::shared_ptr< V > & | , |
const boost::shared_ptr< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const boost::weak_ptr< V > & | , |
const boost::weak_ptr< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const boost::intrusive_ptr< V > & | , |
const boost::intrusive_ptr< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const QSharedDataPointer< V > & | , |
const QSharedDataPointer< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const QSharedPointer< V > & | , |
const QSharedPointer< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const QWeakPointer< V > & | , |
const QWeakPointer< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const qx::dao::ptr< V > & | , |
const qx::dao::ptr< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const std::unique_ptr< V > & | , |
const std::unique_ptr< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const std::shared_ptr< V > & | , |
const std::shared_ptr< W > & | |||
) | [static, private] |
static std::conditional<std::is_base_of<V, W>::value, char, int>::type qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | const std::weak_ptr< V > & | , |
const std::weak_ptr< W > & | |||
) | [static, private] |
static int qx::trait::is_smart_ptr_base_of< B, D >::removeSmartPtr | ( | ... | ) | [static, private] |
B qx::trait::is_smart_ptr_base_of< B, D >::b [static, private] |
Definition at line 119 of file is_smart_ptr_base_of.h.
boost::intrusive_ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_boost_intrusive_ptr [static, private] |
Definition at line 127 of file is_smart_ptr_base_of.h.
boost::scoped_ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_boost_scoped_ptr [static, private] |
Definition at line 124 of file is_smart_ptr_base_of.h.
boost::shared_ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_boost_shared_ptr [static, private] |
Definition at line 125 of file is_smart_ptr_base_of.h.
boost::weak_ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_boost_weak_ptr [static, private] |
Definition at line 126 of file is_smart_ptr_base_of.h.
QSharedDataPointer<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_qt_shared_data_ptr [static, private] |
Definition at line 131 of file is_smart_ptr_base_of.h.
QSharedPointer<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_qt_shared_ptr [static, private] |
Definition at line 132 of file is_smart_ptr_base_of.h.
QWeakPointer<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_qt_weak_ptr [static, private] |
Definition at line 133 of file is_smart_ptr_base_of.h.
qx::dao::ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_qx_dao_ptr [static, private] |
Definition at line 134 of file is_smart_ptr_base_of.h.
std::shared_ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_std_shared_ptr [static, private] |
Definition at line 137 of file is_smart_ptr_base_of.h.
std::unique_ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_std_unique_ptr [static, private] |
Definition at line 136 of file is_smart_ptr_base_of.h.
std::weak_ptr<B>* qx::trait::is_smart_ptr_base_of< B, D >::b_std_weak_ptr [static, private] |
Definition at line 138 of file is_smart_ptr_base_of.h.
D qx::trait::is_smart_ptr_base_of< B, D >::d [static, private] |
Definition at line 120 of file is_smart_ptr_base_of.h.