Created
February 2, 2011 15:28
-
-
Save daminetreg/807839 to your computer and use it in GitHub Desktop.
This patch allows to generate reflex dictionary of C++ types with the protected and private method informations too. The dictionnary informations (YourClass_rflx.cpp) have to be compiled with g++ -fno-access-control to let it access protected and public
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: python/genreflex/gendict.py | |
=================================================================== | |
--- python/genreflex/gendict.py (revision 37933) | |
+++ python/genreflex/gendict.py (working copy) | |
@@ -691,9 +691,9 @@ | |
#----Filter any non-public data members for minimal interpreter dict ----- | |
if self.interpreter and elem in ('Field') and 'access' in attrs : # assumes that the default is "public" | |
return 0 | |
- #----Filter any non public method | |
+ #----Filter any non public Constructor, Desctructor or Converter | |
if attrs.get('access') in ('protected', 'private') : | |
- if elem in ('Constructor','Destructor','Method','OperatorMethod','Converter') : return 0 | |
+ if elem in ('Constructor','Destructor','Converter') : return 0 | |
#----Filter any copy constructor with a private copy constructor in any base | |
if elem == 'Constructor' and len(args) == 1 and 'name' in args[0] and args[0]['name'] == '_ctor_arg' : | |
if self.isConstructorPrivate(attrs['context']) : return 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment