#include <QtCore/qalgorithms.h>
#include <QtCore/qhash.h>
#include <QtCore/qlist.h>
#include <QtCore/qmap.h>
#include <QtCore/qpair.h>
#include <QtCore/qtextstream.h>
#include <QtCore/qstring.h>
#include <QtCore/qvector.h>
#include <QtCore/qset.h>
#include <QtCore/qcontiguouscache.h>
Go to the source code of this file.
|
template<class T > |
QDebug | operator<< (QDebug debug, const QList< T > &list) |
|
template<typename T > |
QDebug | operator<< (QDebug debug, const QVector< T > &vec) |
|
template<class aKey , class aT > |
QDebug | operator<< (QDebug debug, const QMap< aKey, aT > &map) |
|
template<class aKey , class aT > |
QDebug | operator<< (QDebug debug, const QHash< aKey, aT > &hash) |
|
template<class T1 , class T2 > |
QDebug | operator<< (QDebug debug, const QPair< T1, T2 > &pair) |
|
template<typename T > |
QDebug | operator<< (QDebug debug, const QSet< T > &set) |
|
template<class T > |
QDebug | operator<< (QDebug debug, const QContiguousCache< T > &cache) |
|
template<class T > |
QDebug | operator<< (QDebug debug, const QFlags< T > &flags) |
|
Q_CORE_EXPORT_INLINE QDebug | qCritical () |
|
Q_CORE_EXPORT_INLINE QDebug | qDebug () |
|
Q_CORE_EXPORT_INLINE QDebug | qWarning () |
|
◆ operator<<() [1/8]
Definition at line 160 of file qdebug.h.
Referenced by operator<<().
170 return debug.
space();
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
int count(const T &t) const
Returns the number of occurrences of value in the list.
int size_type
Typedef for int.
const T & at(int i) const
Returns the item at index position i in the list.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
◆ operator<<() [2/8]
Definition at line 178 of file qdebug.h.
QList< T > toList() const
Returns a QList object with the data contained in this QVector.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
QDataStream & operator<<(QDataStream &out, const QUrl &url)
Writes url url to the stream out and returns a reference to the stream.
◆ operator<<() [3/8]
template<class aKey , class aT >
Definition at line 190 of file qdebug.h.
196 debug <<
'(' <<
it.key() <<
", " <<
it.value() <<
')';
199 return debug.
space();
#define it(className, varName)
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the map.
The QMap::const_iterator class provides an STL-style const iterator for QMap and QMultiMap.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the map...
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
◆ operator<<() [4/8]
template<class aKey , class aT >
Definition at line 207 of file qdebug.h.
213 debug <<
'(' <<
it.key() <<
", " <<
it.value() <<
')';
215 return debug.
space();
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
#define it(className, varName)
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the hash.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
◆ operator<<() [5/8]
template<class T1 , class T2 >
Definition at line 223 of file qdebug.h.
227 return debug.
space();
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
◆ operator<<() [6/8]
Definition at line 231 of file qdebug.h.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
static QList< QVariant > toList(char **buf, int count, T *=0)
QDataStream & operator<<(QDataStream &out, const QUrl &url)
Writes url url to the stream out and returns a reference to the stream.
◆ operator<<() [7/8]
Definition at line 242 of file qdebug.h.
245 debug.
nospace() <<
"QContiguousCache(";
248 if (i != cache.lastIndex())
252 return debug.
space();
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
int firstIndex() const
Returns the first valid index in the cache.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
int lastIndex() const
Returns the last valid index in the cache.
◆ operator<<() [8/8]
Definition at line 260 of file qdebug.h.
264 bool needSeparator =
false;
265 for (
uint i = 0; i <
sizeof(T) * 8; ++i) {
270 needSeparator =
true;
275 return debug.
space();
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
bool testFlag(Enum f) const
Returns true if the flag is set, otherwise false.
const char * constData() const
Returns a pointer to the data stored in the byte array.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
static QByteArray number(int, int base=10)
Returns a byte array containing the string equivalent of the number n to base base (10 by default)...
◆ qCritical()
Definition at line 144 of file qdebug.h.
The QDebug class provides an output stream for debugging information.
◆ qDebug()
Definition at line 279 of file qdebug.h.
The QDebug class provides an output stream for debugging information.
◆ qWarning()
Definition at line 289 of file qdebug.h.
The QDebug class provides an output stream for debugging information.