1 /****************************************************************************
3 ** Copyright (C) Qxt Foundation. Some rights reserved.
5 ** This file is part of the QxtCore module of the Qt eXTension library
7 ** This library is free software; you can redistribute it and/or modify it
8 ** under the terms of th Common Public License, version 1.0, as published by
11 ** This file is provided "AS IS", without WARRANTIES OR CONDITIONS OF ANY
12 ** KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
13 ** WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR
14 ** FITNESS FOR A PARTICULAR PURPOSE.
16 ** You should have received a copy of the CPL along with this file.
17 ** See the LICENSE file and the cpl1.0.txt file included with the source
18 ** distribution for more information. If you did not receive a copy of the
19 ** license, contact the Qxt Foundation.
21 ** <http://libqxt.sourceforge.net> <foundation@libqxt.org>
23 ****************************************************************************/
26 \class QxtHyperMacros QxtHyperMacros
30 \brief some helper macros for your daily work
32 hypermacros use templates in order to work
38 #ifndef HEADER_GUARDS_QxtHyperMacros_H
39 #define HEADER_GUARDS_QxtHyperMacros_H
42 /*! \relates QxtHyperMacros
43 * just do something n times
45 #define fortimes(times) for (QxtHyperValue<typeof(times)> hyperhyperthingyhopefullynooneusesthisnamehere=QxtHyperValue<typeof(times)>(0); hyperhyperthingyhopefullynooneusesthisnamehere<times; hyperhyperthingyhopefullynooneusesthisnamehere++)
55 QxtHyperValue(const T& p)
60 QxtHyperValue<T> & operator=(const QxtHyperValue<T> &rhs)
71 const QxtHyperValue<T>& operator++()
76 const QxtHyperValue<T>& operator--()
81 const QxtHyperValue<T> operator++(int)
83 QxtHyperValue<T> clone = *this;
87 const QxtHyperValue<T> operator--(int)
89 QxtHyperValue<T> clone = *this;
94 bool operator== ( T& v)
99 bool operator> ( T& v)
104 bool operator< ( T& v)