| QxOrm 1.2.1 C++ Object Relational Mapping library

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

is_equal.h
Go to the documentation of this file.

    00001 /****************************************************************************
    00002 **
    00003 ** http://www.qxorm.com/
    00004 ** http://sourceforge.net/projects/qxorm/
    00005 ** Original file by Lionel Marty
    00006 **
    00007 ** This file is part of the QxOrm library
    00008 **
    00009 ** This software is provided 'as-is', without any express or implied
    00010 ** warranty. In no event will the authors be held liable for any
    00011 ** damages arising from the use of this software.
    00012 **
    00013 ** GNU Lesser General Public License Usage
    00014 ** This file must be used under the terms of the GNU Lesser
    00015 ** General Public License version 2.1 as published by the Free Software
    00016 ** Foundation and appearing in the file 'license.lgpl.txt' included in the
    00017 ** packaging of this file.  Please review the following information to
    00018 ** ensure the GNU Lesser General Public License version 2.1 requirements
    00019 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    00020 **
    00021 ** If you have questions regarding the use of this file, please contact :
    00022 ** contact@qxorm.com
    00023 **
    00024 ****************************************************************************/
    00025
    00026 #ifndef _QX_TRAIT_IS_EQUAL_H_
    00027 #define _QX_TRAIT_IS_EQUAL_H_
    00028
    00029 #ifdef _MSC_VER
    00030 #pragma once
    00031 #endif
    00032
    00040 #include <string>
    00041
    00042 #include <boost/shared_ptr.hpp>
    00043 #include <boost/type_traits/is_pointer.hpp>
    00044
    00045 #include <QtCore/qstring.h>
    00046 #include <QtCore/qdatetime.h>
    00047 #include <QtCore/qvariant.h>
    00048 #include <QtCore/qbytearray.h>
    00049 #include <QtCore/qpoint.h>
    00050 #include <QtCore/qrect.h>
    00051 #include <QtCore/qregexp.h>
    00052 #include <QtCore/qsize.h>
    00053 #include <QtCore/qurl.h>
    00054 #include <QtCore/quuid.h>
    00055 #include <QtCore/qsharedpointer.h>
    00056
    00057 #if _QX_ENABLE_QT_GUI_DEPENDENCY
    00058 #include <QtGui/qcolor.h>
    00059 #include <QtGui/qfont.h>
    00060 #include <QtGui/qimage.h>
    00061 #include <QtGui/qbrush.h>
    00062 #include <QtGui/qmatrix.h>
    00063 #include <QtGui/qregion.h>
    00064 #endif // _QX_ENABLE_QT_GUI_DEPENDENCY
    00065
    00066 #include <QxDao/QxDaoPointer.h>
    00067
    00068 namespace qx {
    00069 namespace trait {
    00070
    00075 template <typename T>
    00076 struct has_operator_equal_equal
    00077 { enum { value = boost::is_pointer<T>::value }; };
    00078
    00079 } // namespace trait
    00080 } // namespace qx
    00081
    00082 #define QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(className) \
    00083 namespace qx { namespace trait { \
    00084 template <> \
    00085 struct has_operator_equal_equal< className > { enum { value = true }; }; \
    00086 } } // namespace qx::trait
    00087
    00088 #define QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL_TEMPLATE_1(className) \
    00089 namespace qx { namespace trait { \
    00090 template <typename T> \
    00091 struct has_operator_equal_equal< className<T> > { enum { value = true }; }; \
    00092 } } // namespace qx::trait
    00093
    00094 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(bool)
    00095 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(int)
    00096 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(short)
    00097 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(long)
    00098 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(float)
    00099 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(double)
    00100 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(long double)
    00101 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(char)
    00102 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(unsigned int)
    00103 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(unsigned short)
    00104 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(unsigned long)
    00105 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(unsigned char)
    00106
    00107 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(std::string)
    00108 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(std::wstring)
    00109
    00110 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QString)
    00111 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QByteArray)
    00112 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QDate)
    00113 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QDateTime)
    00114 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QPoint)
    00115 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QRect)
    00116 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QRegExp)
    00117 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QSize)
    00118 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QTime)
    00119 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QUrl)
    00120 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QVariant)
    00121 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QUuid)
    00122
    00123 #if _QX_ENABLE_QT_GUI_DEPENDENCY
    00124 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QColor)
    00125 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QFont)
    00126 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QImage)
    00127 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QBrush)
    00128 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QMatrix)
    00129 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL(QRegion)
    00130 #endif // _QX_ENABLE_QT_GUI_DEPENDENCY
    00131
    00132 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL_TEMPLATE_1(boost::shared_ptr)
    00133 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL_TEMPLATE_1(QSharedPointer)
    00134 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL_TEMPLATE_1(QWeakPointer)
    00135 QX_TYPE_HAS_OPERATOR_EQUAL_EQUAL_TEMPLATE_1(qx::dao::ptr)
    00136
    00137 #endif // _QX_TRAIT_IS_EQUAL_H_

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines