diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2010-11-18 10:54:10 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:08:58 -0300 |
commit | 7e98252ba8e0d2fc72fc569b3ceb82662297ac9d (patch) | |
tree | 6d98c9c36b620f8abc4dbcbbdc1552f6c90b398d /libshiboken/bindingmanager.h | |
parent | 31e6de8c9f237b1902be88baedf91ec9766bce87 (diff) |
Rewrite parent control functions.
Updated generator to new API.
Fix bug #462
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r-- | libshiboken/bindingmanager.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h index c1926e5ee..b6d4ac42b 100644 --- a/libshiboken/bindingmanager.h +++ b/libshiboken/bindingmanager.h @@ -42,26 +42,13 @@ public: void registerWrapper(SbkObject* pyObj, void* cptr); void releaseWrapper(SbkObject* wrapper); + SbkObject* retrieveWrapper(const void* cptr); PyObject* getOverride(const void* cptr, const char* methodName); - /// Invalidate the Python wrapper and removes the relations from C++ pointers to the Python wrapper. - void invalidateWrapper(SbkObject* wrapper); - /// Convenience method to call invalidateWrapper with a properly cast SbkBaseWrapper. - void invalidateWrapper(PyObject* wrapper); - /// Convenience method to invalidate the Python wrapper for a C++ wrapped object. Do nothing if C++ pointer has no Python wrapper. - void invalidateWrapper(const void* cptr); - - /// Transfers the ownership of a Python wrapper to C++. - void transferOwnershipToCpp(SbkObject* wrapper); - /// Convenience method to call transferOwnershipToCpp with a properly cast SbkBaseWrapper. - void transferOwnershipToCpp(PyObject* wrapper); void addClassInheritance(SbkObjectType* parent, SbkObjectType* child); SbkObjectType* resolveType(void* cptr, SbkObjectType* type); - /// Called by wrapper destructor - void destroyWrapper(const void* cptr); - void destroyWrapper(SbkObject* wrapper); std::set<SbkObject*> getAllPyObjects(); private: ~BindingManager(); |