aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-09 14:38:53 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-10 08:43:17 -0300
commite823354fc4e1b5518d47d986bd25b1533637e64f (patch)
tree7269a5c40480e2cdcacf8e31ca9ee2d410458b7c /shibokengenerator.h
parent8eb50faa234bc5d26ac721ca8fe5f263cf55230d (diff)
Adds 2 convenience methods to ShibokenGenerator to check for refcount mods.
The new expressively named methods hasMethodsWithReferenceCountModifications and needsReferenceCountControl returns boolean values to help generation of code for reference counting support.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r--shibokengenerator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h
index a675aa749..cae9943b1 100644
--- a/shibokengenerator.h
+++ b/shibokengenerator.h
@@ -177,6 +177,12 @@ public:
/// Returns true if there are cases of multiple inheritance in any of its ancestors.
bool hasMultipleInheritanceInAncestry(const AbstractMetaClass* metaClass);
+ /// Returns true if the class needs reference counting control.
+ bool needsReferenceCountControl(const AbstractMetaClass* metaClass);
+
+ /// Returns true if the class has any method that modifies the reference counting of any of its arguments.
+ bool hasMethodsWithReferenceCountModifications(const AbstractMetaClass* metaClass);
+
/// Returns true if the class needs to have a getattro function.
bool classNeedsGetattroFunction(const AbstractMetaClass* metaClass);