aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-13 21:12:14 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:09:59 -0300
commit5325b5ba762865ad63e76595cf3e7c0562a7f76b (patch)
treeca76747a56856a9a1ab902d9f90ce1e20de1ad9d /typesystem.h
parentc3e111369e3c4a60455fe5667d0adce341867dea (diff)
Added qHash, operator<<(QTextStream,Include) and operator== to class Include.
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/typesystem.h b/typesystem.h
index be2852bd..b47a2003 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<Include> IncludeList;
typedef QMap<int, QString> ArgumentMap;