QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
qx_traits.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** https://www.qxorm.com/
4** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)
5**
6** This file is part of the QxOrm library
7**
8** This software is provided 'as-is', without any express or implied
9** warranty. In no event will the authors be held liable for any
10** damages arising from the use of this software
11**
12** Commercial Usage
13** Licensees holding valid commercial QxOrm licenses may use this file in
14** accordance with the commercial license agreement provided with the
15** Software or, alternatively, in accordance with the terms contained in
16** a written agreement between you and Lionel Marty
17**
18** GNU General Public License Usage
19** Alternatively, this file may be used under the terms of the GNU
20** General Public License version 3.0 as published by the Free Software
21** Foundation and appearing in the file 'license.gpl3.txt' included in the
22** packaging of this file. Please review the following information to
23** ensure the GNU General Public License version 3.0 requirements will be
24** met : http://www.gnu.org/copyleft/gpl.html
25**
26** If you are unsure which license is appropriate for your use, or
27** if you have questions regarding the use of this file, please contact :
28** contact@qxorm.com
29**
30****************************************************************************/
31
32#ifndef _QX_TRAITS_H_
33#define _QX_TRAITS_H_
34
35#ifdef _MSC_VER
36#pragma once
37#endif
38
46#include <QxTraits/is_qt_hash.h>
48#include <QxTraits/is_qt_list.h>
49#include <QxTraits/is_qt_map.h>
52#include <QxTraits/is_qt_set.h>
60#include <QxTraits/is_qx_pod.h>
64#include <QxTraits/is_std_map.h>
65#include <QxTraits/is_std_set.h>
77#include <QxTraits/is_equal.h>
84
85#ifdef _QX_ENABLE_BOOST
92#endif // _QX_ENABLE_BOOST
93
94#endif // _QX_TRAITS_H_
qx::trait::is_archive_printable<T>::value : define if a boost::archive type is readable by a human (f...
qx::trait::is_archive_wide<T>::value : define if a boost::archive type uses wide string character and...
qx::trait::construct_null_qvariant<T>::get() : create a NULL QVariant which matches QVariant::Type wi...
qx::trait::construct_ptr<T>::get(T & t, bool bReset = false) : instantiate (or reset) a new pointer,...
qx::trait::generic_container<T> : provide some tools to manage all containers without knowing its typ...
qx::trait::get_base_class<T>::type : retrieve base class of type T registered into QxOrm context and ...
qx::trait::get_class_name<T>::get() : return class name of type T under const char * format,...
Register all primitive and useful types of stl, boost and Qt libraries using QX_REGISTER_CLASS_NAME(T...
qx::trait::get_primary_key<T>::type : return primary key type of T, by default primary key is long ty...
qx::trait::get_sql_type<T>::get() : return type name under const char * format used by database engin...
qx::trait::is_boost_intrusive_ptr<T>::value : return true if T is a boost::intrusive_ptr<> smart-poin...
qx::trait::is_boost_scoped_ptr<T>::value : return true if T is a boost::scoped_ptr<> smart-pointer,...
qx::trait::is_boost_shared_ptr<T>::value : return true if T is a boost::shared_ptr<> smart-pointer,...
qx::trait::is_boost_unordered_map<T>::value : return true if T is a boost::unordered_map<> or boost::...
qx::trait::is_boost_unordered_set<T>::value : return true if T is a boost::unordered_set<> or boost::...
qx::trait::is_boost_weak_ptr<T>::value : return true if T is a boost::weak_ptr<> smart-pointer,...
qx::trait::is_container<T>::value : return true if T is a container from stl, boost,...
qx::trait::has_operator_equal_equal<T>::value : return true if T provides operator==() function,...
qx::trait::is_ptr_base_of<B, D>::value : return true if B and D are pointer type and (*B) is a base c...
qx::trait::is_ptr_to_pod<T>::value : return true if T is a pointer to a POD type (char,...
qx::trait::is_qt_hash<T>::value : return true if T is a QHash<> container of Qt library,...
qx::trait::is_qt_list<T>::value : return true if T is a QList<> container of Qt library,...
qx::trait::is_qt_map<T>::value : return true if T is a QMap<> container of Qt library,...
qx::trait::is_qt_multi_hash<T>::value : return true if T is a QMultiHash<> container of Qt library,...
qx::trait::is_qt_multi_map<T>::value : return true if T is a QMultiMap<> container of Qt library,...
qx::trait::is_qt_scoped_ptr<T>::value : return true if T is a QScopedPointer<> smart-pointer of Qt li...
qx::trait::is_qt_set<T>::value : return true if T is a QSet<> container of Qt library,...
qx::trait::is_qt_shared_data_ptr<T>::value : return true if T is a QSharedDataPointer<> smart-pointer...
qx::trait::is_qt_shared_ptr<T>::value : return true if T is a QSharedPointer<> smart-pointer of Qt li...
qx::trait::is_qt_variant_compatible<T>::value : return true if T can be host into a QVariant object o...
qx::trait::is_qt_vector<T>::value : return true if T is a QVector<> container of Qt library,...
qx::trait::is_qt_weak_ptr<T>::value : return true if T is a QWeakPointer<> smart-pointer of Qt librar...
qx::trait::is_qx_collection<T>::value : return true if T is a qx::QxCollection<> container of QxOrm l...
qx::trait::is_qx_dao_ptr<T>::value : return true if T is a qx::dao::ptr<> smart-pointer of QxOrm libr...
qx::trait::is_qx_pod<T>::value : return true if T is a POD type and not a pointer
qx::trait::is_qx_registered<T>::value : return true if T is registered into QxOrm context to provide ...
qx::trait::is_smart_ptr<T>::value : return true if T is a smart-pointer of boost, Qt or QxOrm librari...
qx::trait::is_std_list<T>::value : return true if T is a std::list<> container of stl library,...
qx::trait::is_std_map<T>::value : return true if T is a std::map<> container of stl library,...
qx::trait::is_std_set<T>::value : return true if T is a std::set<> container of stl library,...
qx::trait::is_std_shared_ptr<T>::value : return true if T is a std::shared_ptr<> smart-pointer,...
qx::trait::is_std_unique_ptr<T>::value : return true if T is a std::unique_ptr<> smart-pointer,...
qx::trait::is_std_unordered_map<T>::value : return true if T is a std::unordered_map<> or std::unorde...
qx::trait::is_std_unordered_set<T>::value : return true if T is a std::unordered_set<> or std::unorde...
qx::trait::is_std_vector<T>::value : return true if T is a std::vector<> container of stl library,...
qx::trait::is_std_weak_ptr<T>::value : return true if T is a std::weak_ptr<> smart-pointer,...
qx::trait::is_valid_primary_key<T>(const T & t) : return true if t can be a valid primary key to be i...
qx::trait::qt_meta_object<T>::get() : if T is based on QObject class, then return QMetaObject instanc...
qx::trait::remove_attr<T>::type : return a type without pointer, const, reference and/or volatile att...
qx::trait::remove_smart_ptr<T>::type : return a type without smart-pointer attribute from boost,...