Krita Source Code Documentation
Loading...
Searching...
No Matches
KoID.h File Reference
#include <QDebug>
#include <QMetaType>
#include <QString>
#include <boost/optional.hpp>
#include <utility>
#include <klocalizedstring.h>
#include <KisLazyStorage.h>
#include "kritaglobal_export.h"

Go to the source code of this file.

Classes

class  KoID
 
struct  KoID::KoIDPrivate
 
struct  KoID::TranslatedString
 

Functions

bool operator!= (const KoID &v1, const KoID &v2)
 
bool operator< (const KoID &v1, const KoID &v2)
 
QDebug operator<< (QDebug dbg, const KoID &id)
 
bool operator== (const KoID &v1, const KoID &v2)
 
bool operator> (const KoID &v1, const KoID &v2)
 

Function Documentation

◆ operator!=()

bool operator!= ( const KoID & v1,
const KoID & v2 )
inline

Definition at line 103 of file KoID.h.

104{
105 return !(v1 == v2);
106}

◆ operator<()

bool operator< ( const KoID & v1,
const KoID & v2 )
inline

Definition at line 108 of file KoID.h.

109{
110 return v1.m_d->id < v2.m_d->id;
111}
QSharedPointer< KoIDPrivate > m_d
Definition KoID.h:93

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const KoID & id )
inline

Definition at line 118 of file KoID.h.

119{
120 dbg.nospace() << id.name() << " (" << id.id() << " )";
121
122 return dbg.space();
123}

◆ operator==()

bool operator== ( const KoID & v1,
const KoID & v2 )
inline

Definition at line 98 of file KoID.h.

99{
100 return v1.m_d == v2.m_d || v1.m_d->id == v2.m_d->id;
101}

◆ operator>()

bool operator> ( const KoID & v1,
const KoID & v2 )
inline

Definition at line 113 of file KoID.h.

114{
115 return v1.m_d->id > v2.m_d->id;;
116}