From 5325b5ba762865ad63e76595cf3e7c0562a7f76b Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 13 Apr 2010 21:12:14 -0300 Subject: Added qHash, operator<<(QTextStream,Include) and operator== to class Include. --- typesystem.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'typesystem.h') diff --git a/typesystem.h b/typesystem.h index be2852bd9..b47a20030 100644 --- a/typesystem.h +++ b/typesystem.h @@ -60,11 +60,20 @@ struct APIEXTRACTOR_API Include QString toString() const; - bool operator<(const Include &other) const + bool operator<(const Include& other) const { return name < other.name; } + + bool operator==(const Include& other) const + { + return type == other.type && name == other.name; + } }; + +APIEXTRACTOR_API uint qHash(const Include& inc); +APIEXTRACTOR_API QTextStream& operator<<(QTextStream& out, const Include& include); + typedef QList IncludeList; typedef QMap ArgumentMap; -- cgit v1.2.3