kleopatra
#include <qglobal.h>
Include dependency graph for kdtoolsglobal.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros | |
#define | KDAB_DISABLE_COPY(x) private: x( const x & ); x & operator=( const x & ) |
#define | KDAB_IMPLEMENT_SAFE_BOOL_OPERATOR(func) |
#define | KDAB_SET_OBJECT_NAME(x) __kdtools__dereference_for_methodcall( x ).setObjectName( QLatin1String( #x ) ) |
#define | KDAB_SYNCHRONIZED(mutex) |
#define | KDTOOLS_MAKE_RELATION_OPERATORS(Class, linkage) |
Functions | |
template<typename T > | |
T & | __kdtools__dereference_for_methodcall (T &o) |
template<typename T > | |
T & | __kdtools__dereference_for_methodcall (T *o) |
Macro Definition Documentation
#define KDAB_DISABLE_COPY | ( | x | ) | private: x( const x & ); x & operator=( const x & ) |
Definition at line 28 of file kdtoolsglobal.h.
#define KDAB_IMPLEMENT_SAFE_BOOL_OPERATOR | ( | func | ) |
Value:
private: struct __safe_bool_dummy__ { void nonnull(); }; \
typedef void ( __safe_bool_dummy__::*unspecified_bool_type )(); \
public: \
operator unspecified_bool_type() const { \
return ( func ) ? &__safe_bool_dummy__::nonnull : 0 ; \
}
Definition at line 33 of file kdtoolsglobal.h.
#define KDAB_SET_OBJECT_NAME | ( | x | ) | __kdtools__dereference_for_methodcall( x ).setObjectName( QLatin1String( #x ) ) |
Definition at line 66 of file kdtoolsglobal.h.
#define KDAB_SYNCHRONIZED | ( | mutex | ) |
Value:
if ( bool __counter_##__LINE__ = false ) {} else \
for ( QMutexLocker __locker_##__LINE__( &__kdtools__dereference_for_methodcall( mutex ) ) ; !__counter_##__LINE__ ; __counter_##__LINE__ = true )
T & __kdtools__dereference_for_methodcall(T &o)
Definition: kdtoolsglobal.h:57
Definition at line 68 of file kdtoolsglobal.h.
#define KDTOOLS_MAKE_RELATION_OPERATORS | ( | Class, | |
linkage | |||
) |
Value:
linkage bool operator>( const Class & lhs, const Class & rhs ) { \
return operator<( lhs, rhs ); \
} \
return !operator==( lhs, rhs ); \
} \
linkage bool operator<=( const Class & lhs, const Class & rhs ) { \
return !operator>( lhs, rhs ); \
} \
linkage bool operator>=( const Class & lhs, const Class & rhs ) { \
return !operator<( lhs, rhs ); \
}
bool operator!=(const Recipient &lhs, const Recipient &rhs)
Definition: recipient.h:92
static bool operator==(const AddrSpec &lhs, const AddrSpec &rhs)
Definition: recipient.cpp:55
Definition at line 42 of file kdtoolsglobal.h.
Function Documentation
template<typename T >
|
inline |
Definition at line 57 of file kdtoolsglobal.h.
template<typename T >
|
inline |
Definition at line 62 of file kdtoolsglobal.h.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.