aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-30 19:11:38 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:08 -0300
commit7ba853bece5756a361b6ed8a69d3dc2f43a0ac75 (patch)
tree640d988195ab48d6911c411109c884652a51de12 /typesystem.h
parentb55c812e620e4c31c0b4658534c74930124995a4 (diff)
Created function to discovery when a class implement a container type.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/typesystem.h b/typesystem.h
index a5c954a9c..4a0e6c7ce 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -932,6 +932,7 @@ public:
return m_version;
}
+
private:
QString m_name;
Type m_type;
@@ -1378,7 +1379,8 @@ public:
m_genericClass(false),
m_typeFlags(0),
m_copyableFlag(Unknown),
- m_hashFunction("")
+ m_hashFunction(""),
+ m_baseContainerType(0)
{
}
@@ -1399,6 +1401,7 @@ public:
centry->setDefaultSuperclass(defaultSuperclass());
centry->setCodeSnips(codeSnips());
centry->setTargetLangPackage(targetLangPackage());
+ centry->setBaseContainerType(baseContainerType());
return centry;
}
@@ -1579,6 +1582,16 @@ public:
m_hashFunction = hashFunction;
}
+ void setBaseContainerType(const ComplexTypeEntry *baseContainer)
+ {
+ m_baseContainerType = baseContainer;
+ }
+
+ const ComplexTypeEntry* baseContainerType() const
+ {
+ return m_baseContainerType;
+ }
+
private:
AddedFunctionList m_addedFunctions;
@@ -1601,6 +1614,8 @@ private:
TypeFlags m_typeFlags;
CopyableFlag m_copyableFlag;
QString m_hashFunction;
+
+ const ComplexTypeEntry* m_baseContainerType;
};
class APIEXTRACTOR_API ContainerTypeEntry : public ComplexTypeEntry