aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-06-07 18:48:49 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-06-09 14:16:16 -0300
commit4e58a45ea523118bef5e746edb7383c799d65a27 (patch)
tree87cc87a2b1d1b9831ac5fbcc79cad06e264d449b /shibokengenerator.h
parentb5e3a03a2f5907fb1cf6673dd0c2c29930f5eb64 (diff)
Added Converter<T>::checkType.
This method is needed because you can not call Converter<T>::isConvertible inside a Converter<Y>::isConvertible implementation, otherwise it'll create a 2-step implicit conversion.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r--shibokengenerator.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h
index 786ace335..3985c95be 100644
--- a/shibokengenerator.h
+++ b/shibokengenerator.h
@@ -247,13 +247,15 @@ public:
QString cpythonTypeName(const TypeEntry* type);
QString cpythonTypeNameExt(const TypeEntry* type);
QString cpythonCheckFunction(const TypeEntry* type, bool genericNumberType = false, bool checkExact = false);
- QString cpythonCheckFunction(const AbstractMetaType* metaType, bool genericNumberType = false, bool checkExact = false);
+ QString cpythonCheckFunction(const AbstractMetaType* metaType, bool genericNumberType = false);
QString guessCPythonCheckFunction(const QString& type);
- QString cpythonIsConvertibleFunction(const TypeEntry* type);
- QString cpythonIsConvertibleFunction(const AbstractMetaType* metaType);
- QString cpythonIsConvertibleFunction(const AbstractMetaArgument* metaArg) {
- return cpythonIsConvertibleFunction(metaArg->type());
+ QString cpythonIsConvertibleFunction(const TypeEntry* type, bool genericNumberType = false, bool checkExact = false);
+ QString cpythonIsConvertibleFunction(const AbstractMetaType* metaType, bool genericNumberType = false);
+ QString cpythonIsConvertibleFunction(const AbstractMetaArgument* metaArg, bool genericNumberType = false)
+ {
+ return cpythonIsConvertibleFunction(metaArg->type(), genericNumberType);
}
+ QString guessCPythonIsConvertible(const QString& type);
QString cpythonFunctionName(const AbstractMetaFunction* func);
QString cpythonMethodDefinitionName(const AbstractMetaFunction* func);
QString cpythonGettersSettersDefinitionName(const AbstractMetaClass* metaClass);