aboutsummaryrefslogtreecommitdiffstats
path: root/doc/typesystemvariables.rst
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-06-15 16:08:00 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:26 -0300
commit45a008604122af4e4ff4e7db440d9e65be3093fc (patch)
treed408e2a099208eff155b46e833cfbd8ba07078e2 /doc/typesystemvariables.rst
parent76c2be48edf50c573d1da94879d02c1b97f8c501 (diff)
Added two new type system variables: %ISCONVERTIBLE and %CHECKTYPE.
Currently the variables are replaced as follows: * %ISCONVERTIBLE[CPPTYPE] -> Shiboken::Converter<CPPTYPE>::isConvertible * %CHECKTYPE[CPPTYPE] -> Shiboken::Converter<CPPTYPE>::checkType Future improvements may change that, so having these variables is a good thing. The documentation was updated. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araujo <renato.filho@openbossa.org>
Diffstat (limited to 'doc/typesystemvariables.rst')
-rw-r--r--doc/typesystemvariables.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/typesystemvariables.rst b/doc/typesystemvariables.rst
index 307cb8ca5..205430550 100644
--- a/doc/typesystemvariables.rst
+++ b/doc/typesystemvariables.rst
@@ -136,6 +136,23 @@ Variables
type indicated by ``CPPTYPE`` to the proper Python object.
+.. _isconvertible:
+
+**%ISCONVERTIBLE[CPPTYPE]**
+
+ Replaced by a |project| "isConvertible" call that checks if a Python
+ variable is convertible (via an implicit conversion or cast operator call)
+ to a C++ variable of the type indicated by ``CPPTYPE``.
+
+
+.. _checktype:
+
+**%CHECKTYPE[CPPTYPE]**
+
+ Replaced by a |project| "checkType" call that verifies if a Python
+ if of the type indicated by ``CPPTYPE``.
+
+
.. _cppself:
**%CPPSELF**