pygccxml-commit Mailing List for C++ Python language bindings (Page 7)
Brought to you by:
mbaas,
roman_yakovenko
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
(190) |
Apr
(166) |
May
(170) |
Jun
(75) |
Jul
(105) |
Aug
(131) |
Sep
(99) |
Oct
(84) |
Nov
(67) |
Dec
(54) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(66) |
Feb
(49) |
Mar
(25) |
Apr
(62) |
May
(21) |
Jun
(34) |
Jul
(9) |
Aug
(21) |
Sep
(5) |
Oct
|
Nov
(63) |
Dec
(34) |
| 2008 |
Jan
(10) |
Feb
(42) |
Mar
(26) |
Apr
(25) |
May
(6) |
Jun
(40) |
Jul
(18) |
Aug
(29) |
Sep
(6) |
Oct
(32) |
Nov
(14) |
Dec
(56) |
| 2009 |
Jan
(127) |
Feb
(52) |
Mar
(2) |
Apr
(10) |
May
(29) |
Jun
(3) |
Jul
|
Aug
(16) |
Sep
(4) |
Oct
(11) |
Nov
(8) |
Dec
(14) |
| 2010 |
Jan
(31) |
Feb
(1) |
Mar
(7) |
Apr
(9) |
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
(8) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <rom...@us...> - 2009-04-24 19:52:54
|
Revision: 1707
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1707&view=rev
Author: roman_yakovenko
Date: 2009-04-24 19:52:44 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
making the generated error to be a little more explicit
Modified Paths:
--------------
pyplusplus_dev/unittests/virtual_inheritance_tester.py
Modified: pyplusplus_dev/unittests/virtual_inheritance_tester.py
===================================================================
--- pyplusplus_dev/unittests/virtual_inheritance_tester.py 2009-04-24 19:51:29 UTC (rev 1706)
+++ pyplusplus_dev/unittests/virtual_inheritance_tester.py 2009-04-24 19:52:44 UTC (rev 1707)
@@ -10,19 +10,21 @@
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
EXTENSION_NAME = 'virtual_inheritance'
-
+
def __init__( self, *args ):
- fundamental_tester_base.fundamental_tester_base_t.__init__(
+ fundamental_tester_base.fundamental_tester_base_t.__init__(
self
, tester_t.EXTENSION_NAME
, *args )
-
+ def customize( self, mb ):
+ mb.classes().always_expose_using_scope = True
+
def run_tests( self, module):
pass
def create_suite():
- suite = unittest.TestSuite()
+ suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
return suite
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-24 19:51:48
|
Revision: 1706
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1706&view=rev
Author: roman_yakovenko
Date: 2009-04-24 19:51:29 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
changing EOF - making MSVC 2008 to be happy
Modified Paths:
--------------
pyplusplus_dev/unittests/precompiled_header_tester.py
Modified: pyplusplus_dev/unittests/precompiled_header_tester.py
===================================================================
--- pyplusplus_dev/unittests/precompiled_header_tester.py 2009-04-24 19:48:52 UTC (rev 1705)
+++ pyplusplus_dev/unittests/precompiled_header_tester.py 2009-04-24 19:51:29 UTC (rev 1706)
@@ -12,31 +12,31 @@
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
EXTENSION_NAME = 'precompiled_header'
-
+
def __init__( self, *args ):
- fundamental_tester_base.fundamental_tester_base_t.__init__(
+ fundamental_tester_base.fundamental_tester_base_t.__init__(
self
, tester_t.EXTENSION_NAME
, *args )
-
+
def customize(self, mb ):
#add precompiled header
mb.build_code_creator( self.EXTENSION_NAME )
- stdafx = code_creators.include_t( 'stdafx.h' )
+ stdafx = code_creators.include_t( 'stdafx.h' )
mb.code_creator.adopt_creator( stdafx, 0 )
-
- f = file( os.path.join( autoconfig.build_dir, 'stdafx.h' ), 'w+' )
- f.writelines( ['//this should be the first header file' + os.linesep] )
+
+ f = file( os.path.join( autoconfig.build_dir, 'stdafx.h' ), 'w+b' )
+ f.write( '//this should be the first header file' + os.linesep )
f.close()
- def run_tests(self, module):
+ def run_tests(self, module):
lines = file( os.path.join( autoconfig.build_dir, 'precompiled_header.cpp' ) ).readlines()
lines = filter( lambda l: l.startswith( '#include' ), lines )
self.failUnless( '#include "stdafx.h"' in lines[0] )
-
-
+
+
def create_suite():
- suite = unittest.TestSuite()
+ suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
return suite
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-24 19:49:02
|
Revision: 1705
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1705&view=rev
Author: roman_yakovenko
Date: 2009-04-24 19:48:52 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
adding test for operator<<
Modified Paths:
--------------
pyplusplus_dev/unittests/autoconfig.py
pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp
Modified: pyplusplus_dev/unittests/autoconfig.py
===================================================================
--- pyplusplus_dev/unittests/autoconfig.py 2009-04-24 19:47:36 UTC (rev 1704)
+++ pyplusplus_dev/unittests/autoconfig.py 2009-04-24 19:48:52 UTC (rev 1705)
@@ -37,6 +37,7 @@
gccxml.define_symbols.append( '__PYGCCXML_%s__' % gccxml.compiler.upper() )
if 'msvc9' == gccxml.compiler:
gccxml.define_symbols.append( '_HAS_TR1=0' )
+ gccxml.include_paths.append( boost.include )
print 'GCCXML configured to simulate compiler ', cxx_parsers_cfg.gccxml.compiler
Modified: pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-04-24 19:47:36 UTC (rev 1704)
+++ pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-04-24 19:48:52 UTC (rev 1705)
@@ -20,6 +20,7 @@
#endif//GCCXML
#endif
+#include <iostream>
#include <vector>
#include <string>
#include <map>
@@ -107,6 +108,13 @@
}
+std::ostream& operator<<( std::ostream& o, const indexing_suites2::set_strings_t& x){
+ for( indexing_suites2::set_strings_t::const_iterator index = x.begin(); index != x.end(); ++index ){
+ o << *index << ',';
+ }
+ return o;
+}
+
namespace pyplusplus{ namespace aliases{
typedef std::vector<indexing_suites2::item_t*> items_ptr_t;
}}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-24 19:47:51
|
Revision: 1704
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1704&view=rev
Author: roman_yakovenko
Date: 2009-04-24 19:47:36 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
update configuration to new environment
Modified Paths:
--------------
pyplusplus_dev/environment.py
Modified: pyplusplus_dev/environment.py
===================================================================
--- pyplusplus_dev/environment.py 2009-04-23 10:29:18 UTC (rev 1703)
+++ pyplusplus_dev/environment.py 2009-04-24 19:47:36 UTC (rev 1704)
@@ -33,10 +33,10 @@
if sys.platform == 'win32':
scons.suffix = '.pyd'
scons.ccflags = ['/MD', '/EHsc', '/GR', '/Zc:wchar_t', '/Zc:forScope', '-DBOOST_PYTHON_NO_PY_SIGNATURES' ]
- boost.libs = [ 'd:/dev/boost_svn/bin.v2/libs/python/build/msvc-7.1/release/threading-multi' ]
- boost.include = 'd:/dev/boost_svn'
- python.libs = 'e:/python25/libs'
- python.include = 'e:/python25/include'
+ boost.libs = [ r'e:\dev\boost_svn\bin.v2\libs\python\build\msvc-9.0\release\threading-multi' ]
+ boost.include = 'e:/dev/boost_svn'
+ python.libs = 'c:/program files/python26/libs'
+ python.include = 'c:/program files/python26/include'
else:
os.nice( 20 )
print 'test process niceness: 20'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-23 10:29:21
|
Revision: 1703
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1703&view=rev
Author: roman_yakovenko
Date: 2009-04-23 10:29:18 +0000 (Thu, 23 Apr 2009)
Log Message:
-----------
porting tests to boost 1.39, Python 2.6 and Visual Studio 2008
Modified Paths:
--------------
pyplusplus_dev/unittests/autoconfig.py
pyplusplus_dev/unittests/test_all.py
Added Paths:
-----------
pyplusplus_dev/unittests/gccxml.cfg
Property Changed:
----------------
pyplusplus_dev/unittests/
Property changes on: pyplusplus_dev/unittests
___________________________________________________________________
Modified: svn:ignore
- *.pyc
+ *.pyc
temp
Modified: pyplusplus_dev/unittests/autoconfig.py
===================================================================
--- pyplusplus_dev/unittests/autoconfig.py 2009-04-23 10:22:07 UTC (rev 1702)
+++ pyplusplus_dev/unittests/autoconfig.py 2009-04-23 10:29:18 UTC (rev 1703)
@@ -44,7 +44,12 @@
libs = []
libpath = [ python.libs ] + boost.libs
cpppath = [ boost.include, python.include, build_directory ] #indexing_suite.include ]
- include_dirs = cpppath + [data_directory]
+ include_dirs = cpppath + [data_directory] + cxx_parsers_cfg.gccxml.include_paths
+ if cxx_parsers_cfg.gccxml.compiler == 'msvc9':
+ libpath.append( r'C:\Program Files\Microsoft Visual Studio 9.0\VC\lib' )
+ libpath.append( r'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib' )
+ include_dirs.append( r'C:\Program Files\Microsoft Visual Studio 9.0\VC\include' )
+ include_dirs.append( r'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include' )
@staticmethod
def create_sconstruct():
Added: pyplusplus_dev/unittests/gccxml.cfg
===================================================================
--- pyplusplus_dev/unittests/gccxml.cfg (rev 0)
+++ pyplusplus_dev/unittests/gccxml.cfg 2009-04-23 10:29:18 UTC (rev 1703)
@@ -0,0 +1,13 @@
+[gccxml]
+#path to gccxml executable file - optional, if not provided, os.environ['PATH']
+#variable is used to find it
+gccxml_path=
+#gccxml working directory - optional, could be set to your source code directory
+working_directory=
+#additional include directories, separated by ';' or ':'
+include_paths=
+#gccxml has a nice algorithms, which selects what C++ compiler to emulate.
+#You can explicitly set what compiler it should emulate.
+#Valid options are: g++, msvc6, msvc7, msvc71, msvc8, cl.
+compiler=msvc9
+#GCC-XML site: http://gccxml.org/
Modified: pyplusplus_dev/unittests/test_all.py
===================================================================
--- pyplusplus_dev/unittests/test_all.py 2009-04-23 10:22:07 UTC (rev 1702)
+++ pyplusplus_dev/unittests/test_all.py 2009-04-23 10:29:18 UTC (rev 1703)
@@ -244,7 +244,7 @@
test_file_name = self.module.__file__
if test_file_name.endswith( 'pyc' ):
test_file_name = test_file_name[:-1]
- command_line = ' '.join([ sys.executable, test_file_name ])
+ command_line = ' '.join([ '"%s"' % sys.executable, test_file_name ])
input_, output = os.popen4( command_line )
input_.close()
report = []
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-23 10:22:08
|
Revision: 1702
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1702&view=rev
Author: roman_yakovenko
Date: 2009-04-23 10:22:07 +0000 (Thu, 23 Apr 2009)
Log Message:
-----------
fixing small bug on Windows, related to parsing configuration file
Modified Paths:
--------------
pygccxml_dev/pygccxml/parser/config.py
Added Paths:
-----------
pygccxml_dev/unittests/gccxml.cfg
Modified: pygccxml_dev/pygccxml/parser/config.py
===================================================================
--- pygccxml_dev/pygccxml/parser/config.py 2009-04-23 10:19:29 UTC (rev 1701)
+++ pygccxml_dev/pygccxml/parser/config.py 2009-04-23 10:22:07 UTC (rev 1702)
@@ -231,7 +231,7 @@
gccxml_path=
#gccxml working directory - optional, could be set to your source code directory
working_directory=
- #additional include directories, separated by ';' or ':'
+ #additional include directories, separated by ';'
include_paths=
#gccxml has a nice algorithms, which selects what C++ compiler to emulate.
#You can explicitly set what compiler it should emulate.
@@ -264,10 +264,9 @@
gccxml_cfg.working_directory = value
elif name == 'include_paths':
for p in value.split( ';' ):
- for pp in p.split( ':' ):
- pp = pp.strip()
- if pp:
- gccxml_cfg.include_paths.append( pp )
+ p = p.strip()
+ if p:
+ gccxml_cfg.include_paths.append( p )
elif name == 'compiler':
gccxml_cfg.compiler = value
else:
Added: pygccxml_dev/unittests/gccxml.cfg
===================================================================
--- pygccxml_dev/unittests/gccxml.cfg (rev 0)
+++ pygccxml_dev/unittests/gccxml.cfg 2009-04-23 10:22:07 UTC (rev 1702)
@@ -0,0 +1,13 @@
+[gccxml]
+#path to gccxml executable file - optional, if not provided, os.environ['PATH']
+#variable is used to find it
+gccxml_path=
+#gccxml working directory - optional, could be set to your source code directory
+working_directory=
+#additional include directories, separated by ';' or ':'
+include_paths=
+#gccxml has a nice algorithms, which selects what C++ compiler to emulate.
+#You can explicitly set what compiler it should emulate.
+#Valid options are: g++, msvc6, msvc7, msvc71, msvc8, cl.
+compiler=msvc71
+#GCC-XML site: http://gccxml.org/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-23 10:19:31
|
Revision: 1701
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1701&view=rev
Author: roman_yakovenko
Date: 2009-04-23 10:19:29 +0000 (Thu, 23 Apr 2009)
Log Message:
-----------
gccxml 1.128
Modified Paths:
--------------
gccxml_bin/v09/win32/bin/gccxml.exe
gccxml_bin/v09/win32/bin/gccxml_cc1plus.exe
gccxml_bin/v09/win32/bin/gccxml_vcconfig.exe
Modified: gccxml_bin/v09/win32/bin/gccxml.exe
===================================================================
(Binary files differ)
Modified: gccxml_bin/v09/win32/bin/gccxml_cc1plus.exe
===================================================================
(Binary files differ)
Modified: gccxml_bin/v09/win32/bin/gccxml_vcconfig.exe
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-16 05:47:51
|
Revision: 1700
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1700&view=rev
Author: roman_yakovenko
Date: 2009-04-16 05:47:47 +0000 (Thu, 16 Apr 2009)
Log Message:
-----------
testing std::pair
Modified Paths:
--------------
pyplusplus_dev/unittests/test_all.py
Added Paths:
-----------
pyplusplus_dev/unittests/data/std_pair_to_be_exported.hpp
pyplusplus_dev/unittests/std_pair_tester.py
Added: pyplusplus_dev/unittests/data/std_pair_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/std_pair_to_be_exported.hpp (rev 0)
+++ pyplusplus_dev/unittests/data/std_pair_to_be_exported.hpp 2009-04-16 05:47:47 UTC (rev 1700)
@@ -0,0 +1,22 @@
+// Copyright 2004-2008 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __std_pair_to_be_exported_hpp__
+#define __std_pair_to_be_exported_hpp__
+
+#include <utility>
+
+struct tester_t{
+ tester_t(int a, int b){
+ pair_.first = a;
+ pair_.second = b;
+ }
+
+ int compute(){return pair_.first + pair_.second;}
+
+ std::pair<int, int> pair_;
+};
+#endif//__std_pair_to_be_exported_hpp__
+
Added: pyplusplus_dev/unittests/std_pair_tester.py
===================================================================
--- pyplusplus_dev/unittests/std_pair_tester.py (rev 0)
+++ pyplusplus_dev/unittests/std_pair_tester.py 2009-04-16 05:47:47 UTC (rev 1700)
@@ -0,0 +1,35 @@
+# Copyright 2004-2008 Roman Yakovenko.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+import os
+import sys
+import unittest
+import fundamental_tester_base
+
+class tester_t(fundamental_tester_base.fundamental_tester_base_t):
+ EXTENSION_NAME = 'std_pair'
+
+ def __init__( self, *args ):
+ fundamental_tester_base.fundamental_tester_base_t.__init__(
+ self
+ , tester_t.EXTENSION_NAME
+ , *args )
+
+ def customize( self, mb ):
+ mb.class_( 'pair< int, int >' ).include()
+
+ def run_tests( self, module):
+ pass
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest( unittest.makeSuite(tester_t))
+ return suite
+
+def run_suite():
+ unittest.TextTestRunner(verbosity=2).run( create_suite() )
+
+if __name__ == "__main__":
+ run_suite()
Modified: pyplusplus_dev/unittests/test_all.py
===================================================================
--- pyplusplus_dev/unittests/test_all.py 2009-04-08 21:10:42 UTC (rev 1699)
+++ pyplusplus_dev/unittests/test_all.py 2009-04-16 05:47:47 UTC (rev 1700)
@@ -114,6 +114,7 @@
import virtual_inheritance_tester
import indexing_suite_v1_tester
import derive_from_deque_tester
+import std_pair_tester
#import ogre_generate_tester
testers = [
@@ -218,6 +219,7 @@
, virtual_inheritance_tester
, indexing_suite_v1_tester
, derive_from_deque_tester
+ , std_pair_tester
# , ogre_generate_tester too much time
]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-04-08 21:10:48
|
Revision: 1699
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1699&view=rev
Author: roman_yakovenko
Date: 2009-04-08 21:10:42 +0000 (Wed, 08 Apr 2009)
Log Message:
-----------
adding new test case
Modified Paths:
--------------
pyplusplus_dev/unittests/test_all.py
Added Paths:
-----------
pyplusplus_dev/unittests/data/derive_from_deque_to_be_exported.hpp
pyplusplus_dev/unittests/derive_from_deque_tester.py
Added: pyplusplus_dev/unittests/data/derive_from_deque_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/derive_from_deque_to_be_exported.hpp (rev 0)
+++ pyplusplus_dev/unittests/data/derive_from_deque_to_be_exported.hpp 2009-04-08 21:10:42 UTC (rev 1699)
@@ -0,0 +1,45 @@
+// Copyright 2004-2008 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __derive_from_deque_to_be_exported_hpp__
+#define __derive_from_deque_to_be_exported_hpp__
+
+#include <iostream>
+#include <vector>
+#include <deque>
+
+
+struct A{
+ A(int a, int b)
+ : a_(a),b_(b)
+ {}
+
+ int a_;
+ int b_;
+
+ int compute(){return a_ + b_;}
+};
+
+struct C : A{
+
+ C(int a, int b)
+ : A(a,b)
+ {}
+};
+
+namespace pyplusplus{ namespace aliases{
+
+ typedef std::deque< C > CDeque;
+ void instantiate( std::deque<C> d){
+ }
+} }
+
+struct F : public std::deque<C>
+{
+ F(){}
+ int dlugosc() {return this->size();}
+};
+
+#endif//__derive_from_deque_to_be_exported_hpp__
Added: pyplusplus_dev/unittests/derive_from_deque_tester.py
===================================================================
--- pyplusplus_dev/unittests/derive_from_deque_tester.py (rev 0)
+++ pyplusplus_dev/unittests/derive_from_deque_tester.py 2009-04-08 21:10:42 UTC (rev 1699)
@@ -0,0 +1,45 @@
+# Copyright 2004-2008 Roman Yakovenko.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+import os
+import sys
+import unittest
+import fundamental_tester_base
+from pygccxml import declarations
+from pyplusplus import module_builder
+
+
+class tester_t(fundamental_tester_base.fundamental_tester_base_t):
+ EXTENSION_NAME = 'derive_from_deque'
+
+ def __init__( self, *args ):
+ fundamental_tester_base.fundamental_tester_base_t.__init__(
+ self
+ , tester_t.EXTENSION_NAME
+ , indexing_suite_version=2
+ , *args)
+
+ def customize(self, mb):
+ pass
+ #~ mb.class_( 'deque<C>' ).include()
+
+
+ def run_tests( self, module):
+ c = module.C( 1,2)
+ f = module.F()
+ f.append(c)
+ c2 = f[0]
+ self.failUnless( c2.a_ == c.a_ and c2.b_ == c.b_ )
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest( unittest.makeSuite(tester_t))
+ return suite
+
+def run_suite():
+ unittest.TextTestRunner(verbosity=2).run( create_suite() )
+
+if __name__ == "__main__":
+ run_suite()
Modified: pyplusplus_dev/unittests/test_all.py
===================================================================
--- pyplusplus_dev/unittests/test_all.py 2009-03-03 13:57:49 UTC (rev 1698)
+++ pyplusplus_dev/unittests/test_all.py 2009-04-08 21:10:42 UTC (rev 1699)
@@ -113,6 +113,7 @@
import indexing_suites_v2_bug_tester
import virtual_inheritance_tester
import indexing_suite_v1_tester
+import derive_from_deque_tester
#import ogre_generate_tester
testers = [
@@ -215,7 +216,8 @@
, refee_refer_tester
, indexing_suites_v2_bug_tester
, virtual_inheritance_tester
- , indexing_suite_v1_tester
+ , indexing_suite_v1_tester
+ , derive_from_deque_tester
# , ogre_generate_tester too much time
]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-03-03 13:58:01
|
Revision: 1698
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1698&view=rev
Author: roman_yakovenko
Date: 2009-03-03 13:57:49 +0000 (Tue, 03 Mar 2009)
Log Message:
-----------
update gccxml
Modified Paths:
--------------
gccxml_bin/v09/win32/bin/gccxml.exe
gccxml_bin/v09/win32/bin/gccxml_cc1plus.exe
Modified: gccxml_bin/v09/win32/bin/gccxml.exe
===================================================================
(Binary files differ)
Modified: gccxml_bin/v09/win32/bin/gccxml_cc1plus.exe
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-03-02 19:35:29
|
Revision: 1697
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1697&view=rev
Author: roman_yakovenko
Date: 2009-03-02 19:35:19 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
update gccxml
Modified Paths:
--------------
gccxml_bin/v09/linux2/bin/gccxml
gccxml_bin/v09/linux2/bin/gccxml_cc1plus
Modified: gccxml_bin/v09/linux2/bin/gccxml
===================================================================
(Binary files differ)
Modified: gccxml_bin/v09/linux2/bin/gccxml_cc1plus
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-22 20:23:34
|
Revision: 1696
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1696&view=rev
Author: roman_yakovenko
Date: 2009-02-22 20:23:32 +0000 (Sun, 22 Feb 2009)
Log Message:
-----------
adding support for hash_map container
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/indexing_suites.py
pyplusplus_dev/pyplusplus/decl_wrappers/indexing_suite2.py
pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp
pyplusplus_dev/unittests/indexing_suites2_tester.py
Modified: pyplusplus_dev/pyplusplus/code_creators/indexing_suites.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/indexing_suites.py 2009-02-22 13:56:26 UTC (rev 1695)
+++ pyplusplus_dev/pyplusplus/code_creators/indexing_suites.py 2009-02-22 20:23:32 UTC (rev 1696)
@@ -100,7 +100,10 @@
if self.declaration.indexing_suite.use_container_suite:
answer.append( bpi + '::container_suite' )
else:
- answer.append( bpi + '::' + self.declaration.name.split( '<' )[0] + '_suite' )
+ container_name = self.declaration.name.split( '<' )[0]
+ if container_name.startswith( 'hash_' ):
+ container_name = container_name[len( 'hash_'):]
+ answer.append( bpi + '::' + container_name + '_suite' )
answer.append( '< ' )
answer.append( self.decl_identifier )
if self.does_user_disable_methods():
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/indexing_suite2.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/indexing_suite2.py 2009-02-22 13:56:26 UTC (rev 1695)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/indexing_suite2.py 2009-02-22 20:23:32 UTC (rev 1696)
@@ -40,9 +40,10 @@
, 'map' : "indexing_suite/map.hpp"
, 'multimap' : "indexing_suite/multimap.hpp"
, 'hash_map' : "indexing_suite/map.hpp"
+ #, 'hash_multimap' : "indexing_suite/multimap.hpp"
, 'set' : "indexing_suite/set.hpp"
, 'hash_set' : "indexing_suite/set.hpp"
- #TODO: queue, priority, stack, hash_multimap, multiset, hash_multiset
+ #TODO: queue, priority, stack, multiset, hash_multiset
}
class indexing_suite2_t( object ):
Modified: pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-02-22 13:56:26 UTC (rev 1695)
+++ pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-02-22 20:23:32 UTC (rev 1696)
@@ -6,7 +6,20 @@
#ifndef __indexing_suites2_to_be_exported_hpp__
#define __indexing_suites2_to_be_exported_hpp__
-#include <hash_map>
+#if defined( __GNUC__ )
+ #include <ext/hash_set>
+ #include <ext/hash_map>
+ #define HASH_XXX_NS __gnu_cxx
+#else
+ #include <hash_set>
+ #include <hash_map>
+ #if defined( __GCCXML__ ) && !defined( __PYGCCXML_MSVC9__ )
+ #define HASH_XXX_NS std
+ #else
+ #define HASH_XXX_NS stdext
+ #endif//GCCXML
+#endif
+
#include <vector>
#include <string>
#include <map>
@@ -59,10 +72,18 @@
typedef std::vector<float> fvector;
fvector empty_fvector(){ return fvector(); }
-stdext::hash_map< int, int > get_int_mapping(){
- return stdext::hash_map< int, int >();
+HASH_XXX_NS::hash_map< int, int > get_int_mapping(){
+ HASH_XXX_NS::hash_map< int, int > x;
+ x[ 1 ] = 1;
+ return x;
}
+HASH_XXX_NS::hash_multimap< int, int > get_int_multimapping(){
+ HASH_XXX_NS::hash_multimap< int, int > x;
+ x.insert( HASH_XXX_NS::hash_multimap< int, int >::value_type( 1,1) );
+ return x;
+}
+
typedef std::map< std::string, std::string > name2value_t;
inline std::string get_first_name( name2value_t const * names ){
if( !names ){
Modified: pyplusplus_dev/unittests/indexing_suites2_tester.py
===================================================================
--- pyplusplus_dev/unittests/indexing_suites2_tester.py 2009-02-22 13:56:26 UTC (rev 1695)
+++ pyplusplus_dev/unittests/indexing_suites2_tester.py 2009-02-22 20:23:32 UTC (rev 1696)
@@ -80,6 +80,14 @@
set_of_strings.add("s1")
set_of_strings.add("s")
+ x = module.get_int_mapping()
+ self.failUnless( x[1] == 1 )
+ try:
+ x = module.get_int_multimapping()
+ self.failUnless( x[1] == 1 )
+ except TypeError:
+ pass
+
def create_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-22 13:56:29
|
Revision: 1695
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1695&view=rev
Author: roman_yakovenko
Date: 2009-02-22 13:56:26 +0000 (Sun, 22 Feb 2009)
Log Message:
-----------
sphinx
Modified Paths:
--------------
index.rest
pydsc_dev/docs/pydsc.rest
pydsc_dev/pydsc.py
pygccxml_dev/docs/apidocs/binary_parsers.rest
pygccxml_dev/docs/apidocs/declarations.rest
pygccxml_dev/docs/apidocs/parser.rest
pygccxml_dev/docs/apidocs/utils.rest
pygccxml_dev/pygccxml/declarations/container_traits.py
pygccxml_dev/pygccxml/declarations/matchers.py
pyplusplus_dev/docs/documentation/apidocs/_logging_.rest
pyplusplus_dev/docs/documentation/apidocs/code_creators.rest
pyplusplus_dev/docs/documentation/apidocs/code_repository/indexing_suite.rest
pyplusplus_dev/docs/documentation/apidocs/code_repository.rest
pyplusplus_dev/docs/documentation/apidocs/creators_factory.rest
pyplusplus_dev/docs/documentation/apidocs/decl_wrappers.rest
pyplusplus_dev/docs/documentation/apidocs/file_writers.rest
pyplusplus_dev/docs/documentation/apidocs/function_transformers.rest
pyplusplus_dev/docs/documentation/apidocs/messages.rest
pyplusplus_dev/docs/documentation/apidocs/module_builder.rest
pyplusplus_dev/docs/documentation/apidocs/utils.rest
pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp
sphinx/conf.py
Removed Paths:
-------------
pydsc_dev/docs/api.rest
Modified: index.rest
===================================================================
--- index.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ index.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -39,11 +39,11 @@
-------------
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
- pygccxml/pygccxml.rest
- pyplusplus/pyplusplus.rest
- pydsc/pydsc.rest
+ pygccxml documentation <pygccxml/pygccxml.rest>
+ Py++ documentation <pyplusplus/pyplusplus.rest>
+ pydsc documentation <pydsc/pydsc.rest>
------------------
Indices and tables
Deleted: pydsc_dev/docs/api.rest
===================================================================
--- pydsc_dev/docs/api.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pydsc_dev/docs/api.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -1,7 +0,0 @@
-=========
-pydsc API
-=========
-
-.. automodule:: pydsc
- :members:
-
Modified: pydsc_dev/docs/pydsc.rest
===================================================================
--- pydsc_dev/docs/pydsc.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pydsc_dev/docs/pydsc.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -66,10 +66,9 @@
API
---
-.. toctree::
- :maxdepth: 1
+.. automodule:: pydsc
+ :undoc-members:
+ :members:
- API <api>
-
.. _`PyEnchant`: http://pyenchant.sourceforge.net/
Modified: pydsc_dev/pydsc.py
===================================================================
--- pydsc_dev/pydsc.py 2009-02-21 12:29:41 UTC (rev 1694)
+++ pydsc_dev/pydsc.py 2009-02-22 13:56:26 UTC (rev 1695)
@@ -86,9 +86,7 @@
"""
initialization method
- During this method, reference to __builtin__.__import__ function is
- saved in one of the members of the class, and replaced with import_
- member function.
+ replaces :func:`__builtin__.__import__` function with :meth:`checker_t.import_`
:param speller: reference to enchant.checker.SpellChecker object
:type speller: enchant.checker.SpellChecker
Modified: pygccxml_dev/docs/apidocs/binary_parsers.rest
===================================================================
--- pygccxml_dev/docs/apidocs/binary_parsers.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pygccxml_dev/docs/apidocs/binary_parsers.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pygccxml.binary_parsers
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,4 +20,5 @@
.. automodule:: pygccxml.binary_parsers.parsers
:members:
+ :undoc-members:
:show-inheritance:
Modified: pygccxml_dev/docs/apidocs/declarations.rest
===================================================================
--- pygccxml_dev/docs/apidocs/declarations.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pygccxml_dev/docs/apidocs/declarations.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pygccxml.declarations
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pygccxml.declarations.algorithm
:members:
+ :undoc-members:
:show-inheritance:
algorithms_cache
@@ -26,6 +28,7 @@
.. automodule:: pygccxml.declarations.algorithms_cache
:members:
+ :undoc-members:
:show-inheritance:
calldef
@@ -33,6 +36,7 @@
.. automodule:: pygccxml.declarations.calldef
:members:
+ :undoc-members:
:show-inheritance:
call_invocation
@@ -40,6 +44,7 @@
.. automodule:: pygccxml.declarations.call_invocation
:members:
+ :undoc-members:
:show-inheritance:
class_declaration
@@ -47,6 +52,7 @@
.. automodule:: pygccxml.declarations.class_declaration
:members:
+ :undoc-members:
:show-inheritance:
compilers
@@ -54,6 +60,7 @@
.. automodule:: pygccxml.declarations.compilers
:members:
+ :undoc-members:
:show-inheritance:
container_traits
@@ -61,6 +68,7 @@
.. automodule:: pygccxml.declarations.container_traits
:members:
+ :undoc-members:
:show-inheritance:
cpptypes
@@ -68,6 +76,7 @@
.. automodule:: pygccxml.declarations.cpptypes
:members:
+ :undoc-members:
:show-inheritance:
declaration
@@ -75,6 +84,7 @@
.. automodule:: pygccxml.declarations.declaration
:members:
+ :undoc-members:
:show-inheritance:
decl_factory
@@ -82,6 +92,7 @@
.. automodule:: pygccxml.declarations.decl_factory
:members:
+ :undoc-members:
:show-inheritance:
decl_printer
@@ -89,6 +100,7 @@
.. automodule:: pygccxml.declarations.decl_printer
:members:
+ :undoc-members:
:show-inheritance:
decl_visitor
@@ -96,6 +108,7 @@
.. automodule:: pygccxml.declarations.decl_visitor
:members:
+ :undoc-members:
:show-inheritance:
dependencies
@@ -103,6 +116,7 @@
.. automodule:: pygccxml.declarations.dependencies
:members:
+ :undoc-members:
:show-inheritance:
enumeration
@@ -110,6 +124,7 @@
.. automodule:: pygccxml.declarations.enumeration
:members:
+ :undoc-members:
:show-inheritance:
function_traits
@@ -117,6 +132,7 @@
.. automodule:: pygccxml.declarations.function_traits
:members:
+ :undoc-members:
:show-inheritance:
matcher
@@ -124,6 +140,7 @@
.. automodule:: pygccxml.declarations.matcher
:members:
+ :undoc-members:
:show-inheritance:
matchers
@@ -131,6 +148,7 @@
.. automodule:: pygccxml.declarations.matchers
:members:
+ :undoc-members:
:show-inheritance:
mdecl_wrapper
@@ -138,6 +156,7 @@
.. automodule:: pygccxml.declarations.mdecl_wrapper
:members:
+ :undoc-members:
:show-inheritance:
namespace
@@ -145,6 +164,7 @@
.. automodule:: pygccxml.declarations.namespace
:members:
+ :undoc-members:
:show-inheritance:
scopedef
@@ -152,6 +172,7 @@
.. automodule:: pygccxml.declarations.scopedef
:members:
+ :undoc-members:
:show-inheritance:
templates
@@ -159,6 +180,7 @@
.. automodule:: pygccxml.declarations.templates
:members:
+ :undoc-members:
:show-inheritance:
typedef
@@ -166,6 +188,7 @@
.. automodule:: pygccxml.declarations.typedef
:members:
+ :undoc-members:
:show-inheritance:
type_traits
@@ -173,6 +196,7 @@
.. automodule:: pygccxml.declarations.type_traits
:members:
+ :undoc-members:
:show-inheritance:
type_visitor
@@ -180,6 +204,7 @@
.. automodule:: pygccxml.declarations.type_visitor
:members:
+ :undoc-members:
:show-inheritance:
variable
@@ -187,5 +212,6 @@
.. automodule:: pygccxml.declarations.variable
:members:
+ :undoc-members:
:show-inheritance:
Modified: pygccxml_dev/docs/apidocs/parser.rest
===================================================================
--- pygccxml_dev/docs/apidocs/parser.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pygccxml_dev/docs/apidocs/parser.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pygccxml.parser
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pygccxml.parser.config
:members:
+ :undoc-members:
:show-inheritance:
declarations_cache
@@ -26,6 +28,7 @@
.. automodule:: pygccxml.parser.declarations_cache
:members:
+ :undoc-members:
:show-inheritance:
directory_cache
@@ -33,6 +36,7 @@
.. automodule:: pygccxml.parser.directory_cache
:members:
+ :undoc-members:
:show-inheritance:
patcher
@@ -40,6 +44,7 @@
.. automodule:: pygccxml.parser.patcher
:members:
+ :undoc-members:
:show-inheritance:
project_reader
@@ -47,6 +52,7 @@
.. automodule:: pygccxml.parser.project_reader
:members:
+ :undoc-members:
:show-inheritance:
@@ -55,4 +61,5 @@
.. automodule:: pygccxml.parser.source_reader
:members:
+ :undoc-members:
:show-inheritance:
Modified: pygccxml_dev/docs/apidocs/utils.rest
===================================================================
--- pygccxml_dev/docs/apidocs/utils.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pygccxml_dev/docs/apidocs/utils.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pygccxml.utils
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,5 +20,6 @@
.. automodule:: pygccxml.utils.fs_utils
:members:
+ :undoc-members:
:show-inheritance:
Modified: pygccxml_dev/pygccxml/declarations/container_traits.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/container_traits.py 2009-02-21 12:29:41 UTC (rev 1694)
+++ pygccxml_dev/pygccxml/declarations/container_traits.py 2009-02-22 13:56:26 UTC (rev 1695)
@@ -243,16 +243,16 @@
class container_traits_impl_t:
- """this class implements the functionality needed for convenient work with
- STD container classes.
+ """
+ implements the functionality needed for convenient work with STD container classes
Implemented functionality:
- - find out whether a declaration is STD container or not
- - find out container value( mapped ) type
+ * find out whether a declaration is STD container or not
+ * find out container value( mapped ) type
This class tries to be useful as much, as possible. For example, for class
declaration( and not definition ) it parsers the class name in order to
- extract all the information.
+ extract the information.
"""
def __init__( self
, container_name
@@ -262,12 +262,11 @@
, key_type_index=None
, key_type_typedef=None ):
"""
- container_name - std container name
- element_type_index - position of value\\mapped type within template
- arguments list
- element_type_typedef - class typedef to the value\\mapped type
- key_type_index - position of key type within template arguments list
- key_type_typedef - class typedef to the key type
+ :param container_name: std container name
+ :param element_type_index: position of value\\mapped type within template arguments list
+ :param element_type_typedef: class typedef to the value\\mapped type
+ :param key_type_index: position of key type within template arguments list
+ :param key_type_typedef: class typedef to the key type
"""
self._name = container_name
self.remove_defaults_impl = defaults_remover
@@ -353,12 +352,18 @@
, 'container_key_type' )
def remove_defaults( self, type_or_string ):
- """remove template defaults from a template class instantiation
+ """
+ removes template defaults from a template class instantiation
For example:
- std::vector< int, std::allocator< int > >
+ .. code-block:: c++
+
+ std::vector< int, std::allocator< int > >
+
will become
- std::vector< int >
+ .. code-block:: c++
+
+ std::vector< int >
"""
name = type_or_string
if not isinstance( type_or_string, types.StringTypes ):
Modified: pygccxml_dev/pygccxml/declarations/matchers.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/matchers.py 2009-02-21 12:29:41 UTC (rev 1694)
+++ pygccxml_dev/pygccxml/declarations/matchers.py 2009-02-22 13:56:26 UTC (rev 1695)
@@ -321,10 +321,10 @@
class calldef_matcher_t( declaration_matcher_t ):
"""
- Instance of this class will match callable by next criteria:
- - :class:`declaration_matcher_t` criteria
- - return type. Example: :class:`int_t` or 'int'
- - argument types
+ Instance of this class will match callable by the following criteria:
+ * :class:`declaration_matcher_t` criteria
+ * return type. For example: :class:`int_t` or 'int'
+ * argument types
"""
def __init__( self, name=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None):
@@ -407,8 +407,8 @@
class operator_matcher_t( calldef_matcher_t ):
"""
Instance of this class will match operators by next criteria:
- - :class:`calldef_matcher_t` criteria
- - operator symbol: =, !=, (), [] and etc
+ * :class:`calldef_matcher_t` criteria
+ * operator symbol: =, !=, (), [] and etc
"""
def __init__( self, name=None, symbol=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None):
"""
@@ -479,14 +479,13 @@
"""
Instance of this class will match declaration by its access type: public,
private or protected. If declarations does not have access type, for example
- free function, then False will be returned.
+ free function, then `False` will be returned.
"""
def __init__( self, access_type ):
"""
- :param access_type: declaration access type
- :type access_type: :class:ACCESS_TYPES defines few constants for your convenience.
- Any way you can pass public, private or protected as argument to this function
+ :param access_type: declaration access type, could be "public", "private", "protected"
+ :type access_type: :class: `str`
"""
matcher_base_t.__init__( self )
self.access_type = access_type
Modified: pyplusplus_dev/docs/documentation/apidocs/_logging_.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/_logging_.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/_logging_.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus._logging_
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,4 +20,5 @@
.. automodule:: pyplusplus._logging_.multi_line_formatter
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/code_creators.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/code_creators.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/code_creators.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.code_creators
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pyplusplus.code_creators.algorithm
:members:
+ :undoc-members:
:show-inheritance:
array_1_registrator
@@ -26,6 +28,7 @@
.. automodule:: pyplusplus.code_creators.array_1_registrator
:members:
+ :undoc-members:
:show-inheritance:
bookmark
@@ -33,6 +36,7 @@
.. automodule:: pyplusplus.code_creators.bookmark
:members:
+ :undoc-members:
:show-inheritance:
calldef
@@ -40,6 +44,7 @@
.. automodule:: pyplusplus.code_creators.calldef
:members:
+ :undoc-members:
:show-inheritance:
calldef_ctypes
@@ -47,6 +52,7 @@
.. automodule:: pyplusplus.code_creators.calldef_ctypes
:members:
+ :undoc-members:
:show-inheritance:
calldef_transformed
@@ -54,6 +60,7 @@
.. automodule:: pyplusplus.code_creators.calldef_transformed
:members:
+ :undoc-members:
:show-inheritance:
calldef_utils
@@ -61,6 +68,7 @@
.. automodule:: pyplusplus.code_creators.calldef_utils
:members:
+ :undoc-members:
:show-inheritance:
class_declaration
@@ -68,6 +76,7 @@
.. automodule:: pyplusplus.code_creators.class_declaration
:members:
+ :undoc-members:
:show-inheritance:
code_creator
@@ -75,6 +84,7 @@
.. automodule:: pyplusplus.code_creators.code_creator
:members:
+ :undoc-members:
:show-inheritance:
compound
@@ -82,6 +92,7 @@
.. automodule:: pyplusplus.code_creators.compound
:members:
+ :undoc-members:
:show-inheritance:
ctypes_formatter
@@ -89,6 +100,7 @@
.. automodule:: pyplusplus.code_creators.ctypes_formatter
:members:
+ :undoc-members:
:show-inheritance:
ctypes_integration_creators
@@ -96,6 +108,7 @@
.. automodule:: pyplusplus.code_creators.ctypes_integration_creators
:members:
+ :undoc-members:
:show-inheritance:
ctypes_module
@@ -103,6 +116,7 @@
.. automodule:: pyplusplus.code_creators.ctypes_module
:members:
+ :undoc-members:
:show-inheritance:
custom
@@ -110,6 +124,7 @@
.. automodule:: pyplusplus.code_creators.custom
:members:
+ :undoc-members:
:show-inheritance:
declaration_based
@@ -117,6 +132,7 @@
.. automodule:: pyplusplus.code_creators.declaration_based
:members:
+ :undoc-members:
:show-inheritance:
embedded_code_repository
@@ -124,6 +140,7 @@
.. automodule:: pyplusplus.code_creators.embedded_code_repository
:members:
+ :undoc-members:
:show-inheritance:
enum
@@ -131,6 +148,7 @@
.. automodule:: pyplusplus.code_creators.enum
:members:
+ :undoc-members:
:show-inheritance:
exception_translator
@@ -138,6 +156,7 @@
.. automodule:: pyplusplus.code_creators.exception_translator
:members:
+ :undoc-members:
:show-inheritance:
global_variable
@@ -145,6 +164,7 @@
.. automodule:: pyplusplus.code_creators.global_variable
:members:
+ :undoc-members:
:show-inheritance:
include
@@ -152,6 +172,7 @@
.. automodule:: pyplusplus.code_creators.include
:members:
+ :undoc-members:
:show-inheritance:
include_directories
@@ -159,6 +180,7 @@
.. automodule:: pyplusplus.code_creators.include_directories
:members:
+ :undoc-members:
:show-inheritance:
indexing_suites
@@ -166,6 +188,7 @@
.. automodule:: pyplusplus.code_creators.indexing_suites
:members:
+ :undoc-members:
:show-inheritance:
instruction
@@ -173,6 +196,7 @@
.. automodule:: pyplusplus.code_creators.instruction
:members:
+ :undoc-members:
:show-inheritance:
library_reference
@@ -180,6 +204,7 @@
.. automodule:: pyplusplus.code_creators.library_reference
:members:
+ :undoc-members:
:show-inheritance:
license
@@ -187,6 +212,7 @@
.. automodule:: pyplusplus.code_creators.license
:members:
+ :undoc-members:
:show-inheritance:
member_variable
@@ -194,6 +220,7 @@
.. automodule:: pyplusplus.code_creators.member_variable
:members:
+ :undoc-members:
:show-inheritance:
module
@@ -201,6 +228,7 @@
.. automodule:: pyplusplus.code_creators.module
:members:
+ :undoc-members:
:show-inheritance:
module_body
@@ -208,6 +236,7 @@
.. automodule:: pyplusplus.code_creators.module_body
:members:
+ :undoc-members:
:show-inheritance:
namespace
@@ -215,6 +244,7 @@
.. automodule:: pyplusplus.code_creators.namespace
:members:
+ :undoc-members:
:show-inheritance:
name_mappings
@@ -222,6 +252,7 @@
.. automodule:: pyplusplus.code_creators.name_mappings
:members:
+ :undoc-members:
:show-inheritance:
opaque_type_registrator
@@ -229,6 +260,7 @@
.. automodule:: pyplusplus.code_creators.opaque_type_registrator
:members:
+ :undoc-members:
:show-inheritance:
properties
@@ -236,6 +268,7 @@
.. automodule:: pyplusplus.code_creators.properties
:members:
+ :undoc-members:
:show-inheritance:
registration_based
@@ -243,6 +276,7 @@
.. automodule:: pyplusplus.code_creators.registration_based
:members:
+ :undoc-members:
:show-inheritance:
scoped
@@ -250,6 +284,7 @@
.. automodule:: pyplusplus.code_creators.scoped
:members:
+ :undoc-members:
:show-inheritance:
smart_pointers
@@ -257,6 +292,7 @@
.. automodule:: pyplusplus.code_creators.smart_pointers
:members:
+ :undoc-members:
:show-inheritance:
target_configuration
@@ -264,6 +300,7 @@
.. automodule:: pyplusplus.code_creators.target_configuration
:members:
+ :undoc-members:
:show-inheritance:
typedef_as_pyvar
@@ -271,6 +308,7 @@
.. automodule:: pyplusplus.code_creators.typedef_as_pyvar
:members:
+ :undoc-members:
:show-inheritance:
unnamed_enum
@@ -278,5 +316,6 @@
.. automodule:: pyplusplus.code_creators.unnamed_enum
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/code_repository/indexing_suite.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/code_repository/indexing_suite.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/code_repository/indexing_suite.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.deque_header
:members:
+ :undoc-members:
:show-inheritance:
element_proxy_header
@@ -26,6 +28,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.element_proxy_header
:members:
+ :undoc-members:
:show-inheritance:
element_proxy_traits_header
@@ -33,6 +36,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.element_proxy_traits_header
:members:
+ :undoc-members:
:show-inheritance:
int_slice_helper_header
@@ -40,6 +44,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.int_slice_helper_header
:members:
+ :undoc-members:
:show-inheritance:
iterator_range_header
@@ -47,6 +52,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.iterator_range_header
:members:
+ :undoc-members:
:show-inheritance:
iterator_traits_header
@@ -54,6 +60,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.iterator_traits_header
:members:
+ :undoc-members:
:show-inheritance:
list_header
@@ -61,6 +68,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.list_header
:members:
+ :undoc-members:
:show-inheritance:
map_header
@@ -68,6 +76,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.map_header
:members:
+ :undoc-members:
:show-inheritance:
methods_header
@@ -75,6 +84,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.methods_header
:members:
+ :undoc-members:
:show-inheritance:
multimap_header
@@ -82,6 +92,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.multimap_header
:members:
+ :undoc-members:
:show-inheritance:
pair_header
@@ -89,6 +100,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.pair_header
:members:
+ :undoc-members:
:show-inheritance:
proxy_iterator_header
@@ -96,6 +108,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.proxy_iterator_header
:members:
+ :undoc-members:
:show-inheritance:
python_iterator_header
@@ -103,6 +116,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.python_iterator_header
:members:
+ :undoc-members:
:show-inheritance:
set_header
@@ -110,6 +124,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.set_header
:members:
+ :undoc-members:
:show-inheritance:
shared_proxy_impl_header
@@ -117,6 +132,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.shared_proxy_impl_header
:members:
+ :undoc-members:
:show-inheritance:
slice_handler_header
@@ -124,6 +140,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.slice_handler_header
:members:
+ :undoc-members:
:show-inheritance:
slice_header
@@ -131,6 +148,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.slice_header
:members:
+ :undoc-members:
:show-inheritance:
suite_utils_header
@@ -138,6 +156,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.suite_utils_header
:members:
+ :undoc-members:
:show-inheritance:
value_traits_header
@@ -145,6 +164,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.value_traits_header
:members:
+ :undoc-members:
:show-inheritance:
vector_header
@@ -152,6 +172,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.vector_header
:members:
+ :undoc-members:
:show-inheritance:
visitor_header
@@ -159,6 +180,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.visitor_header
:members:
+ :undoc-members:
:show-inheritance:
workaround_header
@@ -166,6 +188,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.workaround_header
:members:
+ :undoc-members:
:show-inheritance:
algorithms_header
@@ -173,6 +196,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.algorithms_header
:members:
+ :undoc-members:
:show-inheritance:
container_proxy_header
@@ -180,6 +204,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.container_proxy_header
:members:
+ :undoc-members:
:show-inheritance:
container_suite_header
@@ -187,6 +212,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.container_suite_header
:members:
+ :undoc-members:
:show-inheritance:
container_traits_header
@@ -194,6 +220,7 @@
.. automodule:: pyplusplus.code_repository.indexing_suite.container_traits_header
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/code_repository.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/code_repository.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/code_repository.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.code_repository
:members:
+ :undoc-members:
:show-inheritance:
------------
@@ -27,6 +28,7 @@
.. automodule:: pyplusplus.code_repository.ctypes_integration
:members:
+ :undoc-members:
:show-inheritance:
ctypes_utils
@@ -34,6 +36,7 @@
.. automodule:: pyplusplus.code_repository.ctypes_utils
:members:
+ :undoc-members:
:show-inheritance:
gil_guard
@@ -41,6 +44,7 @@
.. automodule:: pyplusplus.code_repository.gil_guard
:members:
+ :undoc-members:
:show-inheritance:
named_tuple
@@ -48,5 +52,6 @@
.. automodule:: pyplusplus.code_repository.named_tuple
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/creators_factory.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/creators_factory.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/creators_factory.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.creators_factory
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pyplusplus.creators_factory.bpcreator
:members:
+ :undoc-members:
:show-inheritance:
call_policies_resolver
@@ -26,6 +28,7 @@
.. automodule:: pyplusplus.creators_factory.call_policies_resolver
:members:
+ :undoc-members:
:show-inheritance:
creators_wizard
@@ -33,6 +36,7 @@
.. automodule:: pyplusplus.creators_factory.creators_wizard
:members:
+ :undoc-members:
:show-inheritance:
ctypes_creator
@@ -40,6 +44,7 @@
.. automodule:: pyplusplus.creators_factory.ctypes_creator
:members:
+ :undoc-members:
:show-inheritance:
dependencies_manager
@@ -47,6 +52,7 @@
.. automodule:: pyplusplus.creators_factory.dependencies_manager
:members:
+ :undoc-members:
:show-inheritance:
fake_constructors_manager
@@ -54,6 +60,7 @@
.. automodule:: pyplusplus.creators_factory.fake_constructors_manager
:members:
+ :undoc-members:
:show-inheritance:
opaque_types_manager
@@ -61,6 +68,7 @@
.. automodule:: pyplusplus.creators_factory.opaque_types_manager
:members:
+ :undoc-members:
:show-inheritance:
sort_algorithms
@@ -68,6 +76,7 @@
.. automodule:: pyplusplus.creators_factory.sort_algorithms
:members:
+ :undoc-members:
:show-inheritance:
types_database
@@ -75,5 +84,6 @@
.. automodule:: pyplusplus.creators_factory.types_database
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/decl_wrappers.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/decl_wrappers.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/decl_wrappers.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.decl_wrappers
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pyplusplus.decl_wrappers.algorithm
:members:
+ :undoc-members:
:show-inheritance:
calldef_wrapper
@@ -26,6 +28,7 @@
.. automodule:: pyplusplus.decl_wrappers.calldef_wrapper
:members:
+ :undoc-members:
:show-inheritance:
call_policies
@@ -33,6 +36,7 @@
.. automodule:: pyplusplus.decl_wrappers.call_policies
:members:
+ :undoc-members:
:show-inheritance:
class_wrapper
@@ -40,6 +44,7 @@
.. automodule:: pyplusplus.decl_wrappers.class_wrapper
:members:
+ :undoc-members:
:show-inheritance:
decl_wrapper
@@ -47,6 +52,7 @@
.. automodule:: pyplusplus.decl_wrappers.decl_wrapper
:members:
+ :undoc-members:
:show-inheritance:
decl_wrapper_printer
@@ -54,6 +60,7 @@
.. automodule:: pyplusplus.decl_wrappers.decl_wrapper_printer
:members:
+ :undoc-members:
:show-inheritance:
doc_extractor
@@ -61,6 +68,7 @@
.. automodule:: pyplusplus.decl_wrappers.doc_extractor
:members:
+ :undoc-members:
:show-inheritance:
enumeration_wrapper
@@ -68,6 +76,7 @@
.. automodule:: pyplusplus.decl_wrappers.enumeration_wrapper
:members:
+ :undoc-members:
:show-inheritance:
indexing_suite1
@@ -82,6 +91,7 @@
.. automodule:: pyplusplus.decl_wrappers.indexing_suite2
:members:
+ :undoc-members:
:show-inheritance:
namespace_wrapper
@@ -89,6 +99,7 @@
.. automodule:: pyplusplus.decl_wrappers.namespace_wrapper
:members:
+ :undoc-members:
:show-inheritance:
properties
@@ -96,6 +107,7 @@
.. automodule:: pyplusplus.decl_wrappers.properties
:members:
+ :undoc-members:
:show-inheritance:
python_traits
@@ -103,6 +115,7 @@
.. automodule:: pyplusplus.decl_wrappers.python_traits
:members:
+ :undoc-members:
:show-inheritance:
scopedef_wrapper
@@ -110,6 +123,7 @@
.. automodule:: pyplusplus.decl_wrappers.scopedef_wrapper
:members:
+ :undoc-members:
:show-inheritance:
typedef_wrapper
@@ -117,6 +131,7 @@
.. automodule:: pyplusplus.decl_wrappers.typedef_wrapper
:members:
+ :undoc-members:
:show-inheritance:
user_text
@@ -124,6 +139,7 @@
.. automodule:: pyplusplus.decl_wrappers.user_text
:members:
+ :undoc-members:
:show-inheritance:
variable_wrapper
@@ -131,4 +147,5 @@
.. automodule:: pyplusplus.decl_wrappers.variable_wrapper
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/file_writers.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/file_writers.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/file_writers.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.file_writers
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pyplusplus.file_writers.balanced_files
:members:
+ :undoc-members:
:show-inheritance:
class_multiple_files
@@ -26,6 +28,7 @@
.. automodule:: pyplusplus.file_writers.class_multiple_files
:members:
+ :undoc-members:
:show-inheritance:
md5sum_repository
@@ -33,6 +36,7 @@
.. automodule:: pyplusplus.file_writers.md5sum_repository
:members:
+ :undoc-members:
:show-inheritance:
multiple_files
@@ -40,6 +44,7 @@
.. automodule:: pyplusplus.file_writers.multiple_files
:members:
+ :undoc-members:
:show-inheritance:
single_file
@@ -47,6 +52,7 @@
.. automodule:: pyplusplus.file_writers.single_file
:members:
+ :undoc-members:
:show-inheritance:
writer
@@ -54,5 +60,6 @@
.. automodule:: pyplusplus.file_writers.writer
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/function_transformers.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/function_transformers.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/function_transformers.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.function_transformers
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pyplusplus.function_transformers.controllers
:members:
+ :undoc-members:
:show-inheritance:
function_transformation
@@ -26,6 +28,7 @@
.. automodule:: pyplusplus.function_transformers.function_transformation
:members:
+ :undoc-members:
:show-inheritance:
templates
@@ -33,6 +36,7 @@
.. automodule:: pyplusplus.function_transformers.templates
:members:
+ :undoc-members:
:show-inheritance:
transformer
@@ -40,6 +44,7 @@
.. automodule:: pyplusplus.function_transformers.transformer
:members:
+ :undoc-members:
:show-inheritance:
transformers
@@ -47,4 +52,5 @@
.. automodule:: pyplusplus.function_transformers.transformers
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/messages.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/messages.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/messages.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.messages
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,4 +20,5 @@
.. automodule:: pyplusplus.messages.warnings_
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/module_builder.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/module_builder.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/module_builder.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -8,6 +8,7 @@
.. automodule:: pyplusplus.module_builder
:members:
+ :undoc-members:
:show-inheritance:
--------
@@ -19,6 +20,7 @@
.. automodule:: pyplusplus.module_builder.boost_python_builder
:members:
+ :undoc-members:
:show-inheritance:
ctypes_builder
@@ -26,6 +28,7 @@
.. automodule:: pyplusplus.module_builder.ctypes_builder
:members:
+ :undoc-members:
:show-inheritance:
ctypes_decls_dependencies
@@ -33,6 +36,7 @@
.. automodule:: pyplusplus.module_builder.ctypes_decls_dependencies
:members:
+ :undoc-members:
:show-inheritance:
module_builder
@@ -40,4 +44,5 @@
.. automodule:: pyplusplus.module_builder.module_builder
:members:
+ :undoc-members:
:show-inheritance:
Modified: pyplusplus_dev/docs/documentation/apidocs/utils.rest
===================================================================
--- pyplusplus_dev/docs/documentation/apidocs/utils.rest 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/docs/documentation/apidocs/utils.rest 2009-02-22 13:56:26 UTC (rev 1695)
@@ -9,6 +9,7 @@
.. automodule:: pyplusplus.utils
:members:
+ :undoc-members:
:show-inheritance:
--------
Modified: pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-02-21 12:29:41 UTC (rev 1694)
+++ pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-02-22 13:56:26 UTC (rev 1695)
@@ -6,6 +6,7 @@
#ifndef __indexing_suites2_to_be_exported_hpp__
#define __indexing_suites2_to_be_exported_hpp__
+#include <hash_map>
#include <vector>
#include <string>
#include <map>
@@ -17,18 +18,18 @@
inline void do_nothing( const strings_t& ){}
-struct item_t{
+struct item_t{
item_t() : value( -1 ){}
explicit item_t( int v) : value( v ){}
-
- bool operator==(item_t const& item) const {
- return value == item.value;
+
+ bool operator==(item_t const& item) const {
+ return value == item.value;
}
-
- bool operator!=(item_t const& item) const {
- return value != item.value;
- }
-
+
+ bool operator!=(item_t const& item) const {
+ return value != item.value;
+ }
+
int value;
};
@@ -42,7 +43,7 @@
items.push_back( new item_t(1) );
items.push_back( new item_t(2) );
items.push_back( new item_t(3) );
- items.push_back( new item_t(4) );
+ items.push_back( new item_t(4) );
return items;
}
@@ -58,6 +59,10 @@
typedef std::vector<float> fvector;
fvector empty_fvector(){ return fvector(); }
+stdext::hash_map< int, int > get_int_mapping(){
+ return stdext::hash_map< int, int >();
+}
+
typedef std::map< std::string, std::string > name2value_t;
inline std::string get_first_name( name2value_t const * names ){
if( !names ){
Modified: sphinx/conf.py
===================================================================
--- sphinx/conf.py 2009-02-21 12:29:41 UTC (rev 1694)
+++ sphinx/conf.py 2009-02-22 13:56:26 UTC (rev 1695)
@@ -16,7 +16,7 @@
import sys, os, shutil, getopt
-opts, args = getopt.getopt( sys.argv[1:], 'ab:d:c:CD:A:NEqQP')
+opts, args = getopt.getopt( sys.argv[1:], 'ab:d:c:CD:A:NEqQP:w')
print 'opts: ', opts
print 'args: ', args
outdir = args[1]
@@ -44,7 +44,7 @@
if has_true_links:
os.symlink( source, target )
else:
- shutil.copytree( source, target, ignore=shutil.ignore_patterns( r'.svn', '*.pyc', 'osdc2006', 'www_configuration.py' ) )
+ shutil.copytree( source, target, ignore=shutil.ignore_patterns( r'.svn', '*.pyc', 'osdc2006' ) )
if has_true_links:
if os.path.exists(os.path.join( doc_project_root, 'index.rest' )):
os.unlink( os.path.join( doc_project_root, 'index.rest' ) )
@@ -290,3 +290,5 @@
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/dev': None}
+
+autoclass_content = "both"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-21 12:29:47
|
Revision: 1694
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1694&view=rev
Author: roman_yakovenko
Date: 2009-02-21 12:29:41 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
adding ability to generate code for "included" containers
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py
pyplusplus_dev/pyplusplus/creators_factory/types_database.py
pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py
pyplusplus_dev/unittests/indexing_suites2_tester.py
Modified: pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py
===================================================================
--- pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py 2009-02-19 10:54:51 UTC (rev 1693)
+++ pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py 2009-02-21 12:29:41 UTC (rev 1694)
@@ -565,6 +565,9 @@
return exposed
def visit_class(self ):
+ if self.curr_decl.indexing_suite:
+ self.__types_db.update_containers( self.curr_decl )
+ return #it will be exposed later, using other code creators
self.__dependencies_manager.add_exported( self.curr_decl )
cls_decl = self.curr_decl
cls_parent_cc = self.curr_code_creator
Modified: pyplusplus_dev/pyplusplus/creators_factory/types_database.py
===================================================================
--- pyplusplus_dev/pyplusplus/creators_factory/types_database.py 2009-02-19 10:54:51 UTC (rev 1693)
+++ pyplusplus_dev/pyplusplus/creators_factory/types_database.py 2009-02-21 12:29:41 UTC (rev 1694)
@@ -20,6 +20,10 @@
self.__normalize_data = [ ',', '<', '>', '*', '&', '(', ')', '::' ]
self.__containers = set()
+ def update_containers( self, decl ):
+ assert decl.indexing_suite
+ self.__containers.add( decl )
+
def update( self, decl ):
if isinstance( decl, declarations.calldef_t ):
if not isinstance( decl, declarations.constructor_t ):
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py 2009-02-19 10:54:51 UTC (rev 1693)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py 2009-02-21 12:29:41 UTC (rev 1694)
@@ -642,6 +642,8 @@
return explanation
def _readme_impl( self ):
+ if self.indexing_suite:
+ return []
explanation = self.is_wrapper_needed()
for fc in self.fake_constructors:
if fc.ignore:
Modified: pyplusplus_dev/unittests/indexing_suites2_tester.py
===================================================================
--- pyplusplus_dev/unittests/indexing_suites2_tester.py 2009-02-19 10:54:51 UTC (rev 1693)
+++ pyplusplus_dev/unittests/indexing_suites2_tester.py 2009-02-21 12:29:41 UTC (rev 1694)
@@ -25,6 +25,7 @@
items = generator.global_ns.typedef( 'items_t' )
items = declarations.remove_declarated( items.type )
items.alias = "items_t"
+ items.include()
strings = generator.global_ns.typedef( 'strings_t' )
strings = declarations.remove_declarated( strings.type )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-19 10:54:58
|
Revision: 1693
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1693&view=rev
Author: roman_yakovenko
Date: 2009-02-19 10:54:51 +0000 (Thu, 19 Feb 2009)
Log Message:
-----------
update documentation
Modified Paths:
--------------
pygccxml_dev/docs/download.rest
pygccxml_dev/docs/history/history.rest
pyplusplus_dev/docs/documentation/containers.rest
pyplusplus_dev/docs/history/history.rest
Modified: pygccxml_dev/docs/download.rest
===================================================================
--- pygccxml_dev/docs/download.rest 2009-02-18 21:17:50 UTC (rev 1692)
+++ pygccxml_dev/docs/download.rest 2009-02-19 10:54:51 UTC (rev 1693)
@@ -44,14 +44,10 @@
.. _`instructions` : http://gccxml.org/HTML/Install.html
-3. You can use `GCC-XML`_ installer created by me. Go to `download page`_ and get
- `"gccxml_installer.zip"`_ file. You will find installation instructions within
- the file. The setup is basically small Python script, which installs `GCC-XML`_
- to the specified directory. It works pretty well for me on Linux and Windows.
- You don't have to download CMake build system or anything else.
+3. You can use `GCC-XML`_ installer built by me, from the CVS. Go to `download page`_
+ and download "gccxml-setup".
-.. _`download page` : http://sourceforge.net/project/showfiles.php?group_id=118209&package_id=146545
-.. _`"gccxml_installer.zip"` : http://sourceforge.net/project/showfiles.php?group_id=118209&package_id=146545
+.. _`download page` : http://sourceforge.net/project/showfiles.php?group_id=118209
pygccxml
--------
Modified: pygccxml_dev/docs/history/history.rest
===================================================================
--- pygccxml_dev/docs/history/history.rest 2009-02-18 21:17:50 UTC (rev 1692)
+++ pygccxml_dev/docs/history/history.rest 2009-02-19 10:54:51 UTC (rev 1693)
@@ -22,7 +22,6 @@
* Ben Schleimer
* Gustavo Carneiro
-
-----------
Version 1.1
-----------
@@ -38,6 +37,12 @@
4. From now on, :doc:`pygccxml <../pygccxml>` will use `Sphinx <http://sphinx.pocoo.org/>`_
for all documentation.
+5. From now on, `pygccxml` will provide convenient setup for latest `GCC-XML`_
+ version (CVS). See :doc:`download <../download>` document.
+
+6. Bug `[ 2431993 ] pygccxml parses const volatile variable args as just const <http://sourceforge.net/tracker/index.php?func=detail&aid=2431993&group_id=118209&atid=684318>`_
+ was fixed.
+
-----------
Version 1.0
-----------
Modified: pyplusplus_dev/docs/documentation/containers.rest
===================================================================
--- pyplusplus_dev/docs/documentation/containers.rest 2009-02-18 21:17:50 UTC (rev 1692)
+++ pyplusplus_dev/docs/documentation/containers.rest 2009-02-19 10:54:51 UTC (rev 1693)
@@ -63,12 +63,58 @@
How does it work?
-----------------
-In both cases, :doc:`Py++ <../pyplusplus>` provides almost "hands free" solution. :doc:`Py++ <../pyplusplus>`
-keeps track of all exported functions and variables, and if it sees that there is
-a usage of stl container, it exports the container. In both cases, :doc:`Py++ <../pyplusplus>`
-analyzes the container ``value_type`` ( or in case of mapping container
-``mapped_type`` ), in order to set reasonable defaults, when it generates the code.
+In both cases, :doc:`Py++ <../pyplusplus>` provides almost "hands free" solution.
+:doc:`Py++ <../pyplusplus>` keeps track of all exported functions and variables,
+and if it sees that there is a usage of stl container, it exports the container.
+In both cases, :doc:`Py++ <../pyplusplus>` analyzes the container ``value_type``
+( or in case of mapping container ``mapped_type`` ), in order to set reasonable
+defaults, when it generates the code.
+-------------------------------------
+Indexing suite version 2 installation
+-------------------------------------
+
+None :-)
+
+`Py++` version 1.1, introduceds few breaking changes to this indexing suite:
+
+* the suite implements all functionality in the header files only. Few `.cpp` files
+ were dropped
+
+* header files include directive was changed from
+
+ .. code-block:: c++
+
+ #include "boost/python/suite/indexing/..."
+
+ to
+
+ .. code-block:: c++
+
+ #include "indexing_suite/..."
+
+The change was done to simplify the indexing suite installation and redistribution.
+The gain list:
+
+ * no need to deal with patching and rebuilding Boost
+
+ * it is possible to use Boost libraries, which comes with your system
+
+ * you can put the library anywhere you want - just update the include paths in
+ your build script
+
+ * it is easier to redistribute it - just include the library with your sources
+
+ * If you are a happy :doc:`Py++ <../pyplusplus>` user:
+
+ + :doc:`Py++ <../pyplusplus>` will generate the indexing suite source files
+ in the "generated code" directory, under `indexing_suite` directory.
+
+ + :doc:`Py++ <../pyplusplus>` will take care to upgrade the files
+
+The bottom line: :doc:`Py++ <../pyplusplus>` makes C++ STL containers handling fully
+transparent for its users.
+
-------------------
Indexing suites API
-------------------
Modified: pyplusplus_dev/docs/history/history.rest
===================================================================
--- pyplusplus_dev/docs/history/history.rest 2009-02-18 21:17:50 UTC (rev 1692)
+++ pyplusplus_dev/docs/history/history.rest 2009-02-19 10:54:51 UTC (rev 1693)
@@ -1,6 +1,6 @@
-========================
-Py++ development history
-========================
+===================
+Development history
+===================
------------
Contributors
@@ -26,21 +26,28 @@
* Carsten( spom.spom )
-----------
-SVN Version
+Version 1.1
-----------
1. The bug related to exposing free operators was fixed. Many thanks to Andrei Vermel.
2. Few bugs were fixed for 64Bit platform. Many thanks to Carsten.
-3. `ctypes`_ backend was introduced - :doc:`Py++ <../pyplusplus>` is able to generate
- Python code, which uses `ctypes`_ package to call functions in DLLs or shared libraries.
+3. :mod:`ctypes` backend was introduced - :doc:`Py++ <../pyplusplus>` is able to
+ generate Python code, which uses :mod:`ctypes` package to call functions in
+ DLLs or shared libraries.
+ Massive refactoring, which preserve backward compatibility to previous releases,
+ was done.
+
4. From now on, :doc:`Py++ <../pyplusplus>` will use `Sphinx <http://sphinx.pocoo.org/>`_
for all documentation.
+5. :doc:`Indexing Suite V2 <../documentation/indexing_suite_v2.html>` introduces
+ few backward compatibility changes. The indexing suite became "headers only"
+ library and doesn't requier Boost.Python library patching.
+ See ":doc:`../documentation/containers`" document for more information.
-.. _`ctypes` : http://docs.python.org/library/ctypes.html
-----------
Version 1.0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-18 21:17:58
|
Revision: 1692
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1692&view=rev
Author: roman_yakovenko
Date: 2009-02-18 21:17:50 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
fix "operator"s bug
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py
pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp
pyplusplus_dev/unittests/vector3_tester.py
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2009-02-18 14:18:58 UTC (rev 1691)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2009-02-18 21:17:50 UTC (rev 1692)
@@ -425,7 +425,11 @@
arg_2_class = find_class( oper.arguments[1].type )
if arg_1_class:
- return arg_1_class
+ if declarations.is_std_ostream( arg_1_class ) or declarations.is_std_wostream( arg_1_class ):
+ #in most cases users doesn't expose std::ostream class
+ return arg_2_class
+ else:
+ return arg_1_class
else:
return arg_2_class
Modified: pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp 2009-02-18 14:18:58 UTC (rev 1691)
+++ pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp 2009-02-18 21:17:50 UTC (rev 1692)
@@ -1,316 +1,317 @@
-// Copyright 2004-2008 Roman Yakovenko.
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
-#ifndef __vector3_to_be_exported_hpp__
-#define __vector3_to_be_exported_hpp__
-
-#include <iostream>
-
-namespace vector3{
-
-class Vector3
-{
-public:
- union {
- struct {
- float x, y, z;
- };
- float val[3];
- };
-
-public:
- inline Vector3()
- {
- }
-
- inline Vector3( const float fX, const float fY, const float fZ )
- : x( fX ), y( fY ), z( fZ )
- {
- }
-
- inline explicit Vector3( const float afCoordinate[3] )
- : x( afCoordinate[0] ),
- y( afCoordinate[1] ),
- z( afCoordinate[2] )
- {
- }
-
- inline explicit Vector3( const int afCoordinate[3] )
- {
- x = (float)afCoordinate[0];
- y = (float)afCoordinate[1];
- z = (float)afCoordinate[2];
- }
-
- inline explicit Vector3( float* const r )
- : x( r[0] ), y( r[1] ), z( r[2] )
- {
- }
-
- inline explicit Vector3( const float scaler )
- : x( scaler )
- , y( scaler )
- , z( scaler )
- {
- }
-
-
- inline Vector3( const Vector3& rkVector )
- : x( rkVector.x ), y( rkVector.y ), z( rkVector.z )
- {
- }
-
- friend
- std::ostream& operator<<(std::ostream& out, const Vector3& v ){
- out << "( " << v.x << "," << v.y << "," << v.z << ")";
- }
-
- inline float operator [] ( const unsigned int i ) const
- {
- return *(&x+i);
- }
-
- inline float& operator [] ( const unsigned int i )
- {
- return *(&x+i);
- }
-
- /** Assigns the value of the other vector.
- @param
- rkVector The other vector
- */
- inline Vector3& operator = ( const Vector3& rkVector )
- {
- x = rkVector.x;
- y = rkVector.y;
- z = rkVector.z;
-
- return *this;
- }
-
- inline Vector3& operator = ( const float fScaler )
- {
- x = fScaler;
- y = fScaler;
- z = fScaler;
-
- return *this;
- }
-
- inline bool operator == ( const Vector3& rkVector ) const
- {
- return ( x == rkVector.x && y == rkVector.y && z == rkVector.z );
- }
-
- inline bool operator != ( const Vector3& rkVector ) const
- {
- return ( x != rkVector.x || y != rkVector.y || z != rkVector.z );
- }
-
- // arithmetic operations
- inline Vector3 operator + ( const Vector3& rkVector ) const
- {
- Vector3 kSum;
-
- kSum.x = x + rkVector.x;
- kSum.y = y + rkVector.y;
- kSum.z = z + rkVector.z;
-
- return kSum;
- }
-
- inline Vector3 operator - ( const Vector3& rkVector ) const
- {
- Vector3 kDiff;
-
- kDiff.x = x - rkVector.x;
- kDiff.y = y - rkVector.y;
- kDiff.z = z - rkVector.z;
-
- return kDiff;
- }
-
- inline Vector3 operator * ( const float fScalar ) const
- {
- Vector3 kProd;
-
- kProd.x = fScalar*x;
- kProd.y = fScalar*y;
- kProd.z = fScalar*z;
-
- return kProd;
- }
-
- inline Vector3 operator * ( const Vector3& rhs) const
- {
- Vector3 kProd;
-
- kProd.x = rhs.x * x;
- kProd.y = rhs.y * y;
- kProd.z = rhs.z * z;
-
- return kProd;
- }
-
- inline Vector3 operator / ( const float fScalar ) const
- {
- Vector3 kDiv;
-
- float fInv = 1.0 / fScalar;
- kDiv.x = x * fInv;
- kDiv.y = y * fInv;
- kDiv.z = z * fInv;
-
- return kDiv;
- }
-
- inline Vector3 operator / ( const Vector3& rhs) const
- {
- Vector3 kDiv;
-
- kDiv.x = x / rhs.x;
- kDiv.y = y / rhs.y;
- kDiv.z = z / rhs.z;
-
- return kDiv;
- }
-
-
- inline Vector3 operator - () const
- {
- Vector3 kNeg;
-
- kNeg.x = -x;
- kNeg.y = -y;
- kNeg.z = -z;
-
- return kNeg;
- }
-
- // overloaded operators to help Vector3
- inline friend Vector3 operator * ( const float fScalar, const Vector3& rkVector )
- {
- Vector3 kProd;
-
- kProd.x = fScalar * rkVector.x;
- kProd.y = fScalar * rkVector.y;
- kProd.z = fScalar * rkVector.z;
-
- return kProd;
- }
-
- inline friend Vector3 operator + (const Vector3& lhs, const float rhs)
- {
- Vector3 ret(rhs);
- return ret += lhs;
- }
-
- inline friend Vector3 operator + (const float lhs, const Vector3& rhs)
- {
- Vector3 ret(lhs);
- return ret += rhs;
- }
-
- inline friend Vector3 operator - (const Vector3& lhs, const float rhs)
- {
- return lhs - Vector3(rhs);
- }
-
- inline friend Vector3 operator - (const float lhs, const Vector3& rhs)
- {
- Vector3 ret(lhs);
- return ret -= rhs;
- }
-
- // arithmetic updates
- inline Vector3& operator += ( const Vector3& rkVector )
- {
- x += rkVector.x;
- y += rkVector.y;
- z += rkVector.z;
-
- return *this;
- }
-
- inline Vector3& operator += ( const float fScalar )
- {
- x += fScalar;
- y += fScalar;
- z += fScalar;
- return *this;
- }
-
- inline Vector3& operator -= ( const Vector3& rkVector )
- {
- x -= rkVector.x;
- y -= rkVector.y;
- z -= rkVector.z;
-
- return *this;
- }
-
- inline Vector3& operator -= ( const float fScalar )
- {
- x -= fScalar;
- y -= fScalar;
- z -= fScalar;
- return *this;
- }
-
- inline Vector3& operator *= ( const float fScalar )
- {
- x *= fScalar;
- y *= fScalar;
- z *= fScalar;
- return *this;
- }
-
- inline Vector3& operator *= ( const Vector3& rkVector )
- {
- x *= rkVector.x;
- y *= rkVector.y;
- z *= rkVector.z;
-
- return *this;
- }
-
- inline Vector3& operator /= ( const float fScalar )
- {
- float fInv = 1.0 / fScalar;
-
- x *= fInv;
- y *= fInv;
- z *= fInv;
-
- return *this;
- }
-
- inline Vector3& operator /= ( const Vector3& rkVector )
- {
- x /= rkVector.x;
- y /= rkVector.y;
- z /= rkVector.z;
-
- return *this;
- }
-
- inline float squaredLength () const
- {
- return x * x + y * y + z * z;
- }
-
+// Copyright 2004-2008 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __vector3_to_be_exported_hpp__
+#define __vector3_to_be_exported_hpp__
+
+#include <iostream>
+
+namespace vector3{
+
+class Vector3
+{
+public:
+ union {
+ struct {
+ float x, y, z;
+ };
+ float val[3];
+ };
+
+public:
+ inline Vector3()
+ {
+ }
+
+ inline Vector3( const float fX, const float fY, const float fZ )
+ : x( fX ), y( fY ), z( fZ )
+ {
+ }
+
+ inline explicit Vector3( const float afCoordinate[3] )
+ : x( afCoordinate[0] ),
+ y( afCoordinate[1] ),
+ z( afCoordinate[2] )
+ {
+ }
+
+ inline explicit Vector3( const int afCoordinate[3] )
+ {
+ x = (float)afCoordinate[0];
+ y = (float)afCoordinate[1];
+ z = (float)afCoordinate[2];
+ }
+
+ inline explicit Vector3( float* const r )
+ : x( r[0] ), y( r[1] ), z( r[2] )
+ {
+ }
+
+ inline explicit Vector3( const float scaler )
+ : x( scaler )
+ , y( scaler )
+ , z( scaler )
+ {
+ }
+
+
+ inline Vector3( const Vector3& rkVector )
+ : x( rkVector.x ), y( rkVector.y ), z( rkVector.z )
+ {
+ }
+
+ friend
+ std::ostream& operator<<(std::ostream& out, const Vector3& v ){
+ out << "( " << v.x << "," << v.y << "," << v.z << " )";
+ return out;
+ }
+
+ inline float operator [] ( const unsigned int i ) const
+ {
+ return *(&x+i);
+ }
+
+ inline float& operator [] ( const unsigned int i )
+ {
+ return *(&x+i);
+ }
+
+ /** Assigns the value of the other vector.
+ @param
+ rkVector The other vector
+ */
+ inline Vector3& operator = ( const Vector3& rkVector )
+ {
+ x = rkVector.x;
+ y = rkVector.y;
+ z = rkVector.z;
+
+ return *this;
+ }
+
+ inline Vector3& operator = ( const float fScaler )
+ {
+ x = fScaler;
+ y = fScaler;
+ z = fScaler;
+
+ return *this;
+ }
+
+ inline bool operator == ( const Vector3& rkVector ) const
+ {
+ return ( x == rkVector.x && y == rkVector.y && z == rkVector.z );
+ }
+
+ inline bool operator != ( const Vector3& rkVector ) const
+ {
+ return ( x != rkVector.x || y != rkVector.y || z != rkVector.z );
+ }
+
+ // arithmetic operations
+ inline Vector3 operator + ( const Vector3& rkVector ) const
+ {
+ Vector3 kSum;
+
+ kSum.x = x + rkVector.x;
+ kSum.y = y + rkVector.y;
+ kSum.z = z + rkVector.z;
+
+ return kSum;
+ }
+
+ inline Vector3 operator - ( const Vector3& rkVector ) const
+ {
+ Vector3 kDiff;
+
+ kDiff.x = x - rkVector.x;
+ kDiff.y = y - rkVector.y;
+ kDiff.z = z - rkVector.z;
+
+ return kDiff;
+ }
+
+ inline Vector3 operator * ( const float fScalar ) const
+ {
+ Vector3 kProd;
+
+ kProd.x = fScalar*x;
+ kProd.y = fScalar*y;
+ kProd.z = fScalar*z;
+
+ return kProd;
+ }
+
+ inline Vector3 operator * ( const Vector3& rhs) const
+ {
+ Vector3 kProd;
+
+ kProd.x = rhs.x * x;
+ kProd.y = rhs.y * y;
+ kProd.z = rhs.z * z;
+
+ return kProd;
+ }
+
+ inline Vector3 operator / ( const float fScalar ) const
+ {
+ Vector3 kDiv;
+
+ float fInv = 1.0 / fScalar;
+ kDiv.x = x * fInv;
+ kDiv.y = y * fInv;
+ kDiv.z = z * fInv;
+
+ return kDiv;
+ }
+
+ inline Vector3 operator / ( const Vector3& rhs) const
+ {
+ Vector3 kDiv;
+
+ kDiv.x = x / rhs.x;
+ kDiv.y = y / rhs.y;
+ kDiv.z = z / rhs.z;
+
+ return kDiv;
+ }
+
+
+ inline Vector3 operator - () const
+ {
+ Vector3 kNeg;
+
+ kNeg.x = -x;
+ kNeg.y = -y;
+ kNeg.z = -z;
+
+ return kNeg;
+ }
+
+ // overloaded operators to help Vector3
+ inline friend Vector3 operator * ( const float fScalar, const Vector3& rkVector )
+ {
+ Vector3 kProd;
+
+ kProd.x = fScalar * rkVector.x;
+ kProd.y = fScalar * rkVector.y;
+ kProd.z = fScalar * rkVector.z;
+
+ return kProd;
+ }
+
+ inline friend Vector3 operator + (const Vector3& lhs, const float rhs)
+ {
+ Vector3 ret(rhs);
+ return ret += lhs;
+ }
+
+ inline friend Vector3 operator + (const float lhs, const Vector3& rhs)
+ {
+ Vector3 ret(lhs);
+ return ret += rhs;
+ }
+
+ inline friend Vector3 operator - (const Vector3& lhs, const float rhs)
+ {
+ return lhs - Vector3(rhs);
+ }
+
+ inline friend Vector3 operator - (const float lhs, const Vector3& rhs)
+ {
+ Vector3 ret(lhs);
+ return ret -= rhs;
+ }
+
+ // arithmetic updates
+ inline Vector3& operator += ( const Vector3& rkVector )
+ {
+ x += rkVector.x;
+ y += rkVector.y;
+ z += rkVector.z;
+
+ return *this;
+ }
+
+ inline Vector3& operator += ( const float fScalar )
+ {
+ x += fScalar;
+ y += fScalar;
+ z += fScalar;
+ return *this;
+ }
+
+ inline Vector3& operator -= ( const Vector3& rkVector )
+ {
+ x -= rkVector.x;
+ y -= rkVector.y;
+ z -= rkVector.z;
+
+ return *this;
+ }
+
+ inline Vector3& operator -= ( const float fScalar )
+ {
+ x -= fScalar;
+ y -= fScalar;
+ z -= fScalar;
+ return *this;
+ }
+
+ inline Vector3& operator *= ( const float fScalar )
+ {
+ x *= fScalar;
+ y *= fScalar;
+ z *= fScalar;
+ return *this;
+ }
+
+ inline Vector3& operator *= ( const Vector3& rkVector )
+ {
+ x *= rkVector.x;
+ y *= rkVector.y;
+ z *= rkVector.z;
+
+ return *this;
+ }
+
+ inline Vector3& operator /= ( const float fScalar )
+ {
+ float fInv = 1.0 / fScalar;
+
+ x *= fInv;
+ y *= fInv;
+ z *= fInv;
+
+ return *this;
+ }
+
+ inline Vector3& operator /= ( const Vector3& rkVector )
+ {
+ x /= rkVector.x;
+ y /= rkVector.y;
+ z /= rkVector.z;
+
+ return *this;
+ }
+
+ inline float squaredLength () const
+ {
+ return x * x + y * y + z * z;
+ }
+
Vector3 do_smth( const Vector3& x = ZERO ){
return x;
- }
- // special points
- static const Vector3 ZERO;
-
-};
-
-
-
-}
-
-#endif//__class_order_to_be_exported_hpp__
\ No newline at end of file
+ }
+ // special points
+ static const Vector3 ZERO;
+
+};
+
+
+
+}
+
+#endif//__class_order_to_be_exported_hpp__
Modified: pyplusplus_dev/unittests/vector3_tester.py
===================================================================
--- pyplusplus_dev/unittests/vector3_tester.py 2009-02-18 14:18:58 UTC (rev 1691)
+++ pyplusplus_dev/unittests/vector3_tester.py 2009-02-18 21:17:50 UTC (rev 1692)
@@ -35,7 +35,7 @@
self.failUnless( module.Vector3(v3.ZERO) == v3.do_smth() )
x = module.Vector3( 1,2,3)
- print str(x)
+ self.failUnless( '( 1,2,3 )' == str(x) )
def create_suite():
suite = unittest.TestSuite()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-18 14:19:02
|
Revision: 1691
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1691&view=rev
Author: roman_yakovenko
Date: 2009-02-18 14:18:58 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
remove pdb
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py
Modified: pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py
===================================================================
--- pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py 2009-02-18 13:27:04 UTC (rev 1690)
+++ pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py 2009-02-18 14:18:58 UTC (rev 1691)
@@ -170,9 +170,6 @@
pass
else:
assert not "Found %d class code creators" % len(creator)
- import pdb
- if '<<' == operator.symbol:
- pdb.set_trace()
find = code_creators.creator_finder.find_by_declaration
if operator.target_class and operator.target_class.ignore == False:
found = find( lambda decl: operator.target_class is decl
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-18 13:27:09
|
Revision: 1690
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1690&view=rev
Author: roman_yakovenko
Date: 2009-02-18 13:27:04 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
sphinx
Modified Paths:
--------------
pygccxml_dev/docs/history/history.rest
pygccxml_dev/pygccxml/parser/config.py
pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py
pyplusplus_dev/pyplusplus/module_builder/module_builder.py
pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp
pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py
pyplusplus_dev/unittests/vector3_tester.py
Modified: pygccxml_dev/docs/history/history.rest
===================================================================
--- pygccxml_dev/docs/history/history.rest 2009-02-17 20:29:14 UTC (rev 1689)
+++ pygccxml_dev/docs/history/history.rest 2009-02-18 13:27:04 UTC (rev 1690)
@@ -32,7 +32,8 @@
2. Ability to extract different information from binary files ( ``.pdb``, ``.so``,
``.map`` ) and merge it with a declarations tree was added.
-3. Ability to load `GCC-XML`_ configuration from ``.ini`` like file was added
+3. Ability to load `GCC-XML`_ configuration from ``.ini`` like file was added.
+ See :func:`pygccxml.parser.config.load_gccxml_configuration` for details.
4. From now on, :doc:`pygccxml <../pygccxml>` will use `Sphinx <http://sphinx.pocoo.org/>`_
for all documentation.
Modified: pygccxml_dev/pygccxml/parser/config.py
===================================================================
--- pygccxml_dev/pygccxml/parser/config.py 2009-02-17 20:29:14 UTC (rev 1689)
+++ pygccxml_dev/pygccxml/parser/config.py 2009-02-18 13:27:04 UTC (rev 1690)
@@ -198,7 +198,8 @@
config_t = gccxml_configuration_t #backward computability
gccxml_configuration_example = \
-"""[gccxml]
+"""
+[gccxml]
#path to gccxml executable file - optional, if not provided, os.environ['PATH']
#variable is used to find it
gccxml_path=
@@ -210,24 +211,34 @@
#You can explicitly set what compiler it should emulate.
#Valid options are: g++, msvc6, msvc7, msvc71, msvc8, cl.
compiler=
-
-#GCC-XML site: http://gccxml.org/
"""
def load_gccxml_configuration( configuration, **defaults ):
- """loads GCC-XML configuration from a file
+ """
+ loads GCC-XML configuration from an `.ini` file or any other file class
+ :class:`ConfigParser.SafeConfigParser` is able to parse.
- Configuration file sceleton:
+ :param configuration: configuration could be string( configuration file path )
+ or instance of :class:`ConfigParser.SafeConfigParser` class
- >>> start <<<
+ :rtype: :class:`.gccxml_configuration_t`
- %s
+ Configuration file sceleton::
- >>> end <<<
+ [gccxml]
+ #path to gccxml executable file - optional, if not provided, os.environ['PATH']
+ #variable is used to find it
+ gccxml_path=
+ #gccxml working directory - optional, could be set to your source code directory
+ working_directory=
+ #additional include directories, separated by ';' or ':'
+ include_paths=
+ #gccxml has a nice algorithms, which selects what C++ compiler to emulate.
+ #You can explicitly set what compiler it should emulate.
+ #Valid options are: g++, msvc6, msvc7, msvc71, msvc8, cl.
+ compiler=
- configuration could be string( configuration file path ) or instance of
- ConfigParser.SafeConfigParser class
- """ % gccxml_configuration_example
+ """
parser = configuration
if isinstance( configuration, types.StringTypes ):
from ConfigParser import SafeConfigParser
Modified: pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py
===================================================================
--- pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py 2009-02-17 20:29:14 UTC (rev 1689)
+++ pyplusplus_dev/pyplusplus/creators_factory/bpcreator.py 2009-02-18 13:27:04 UTC (rev 1690)
@@ -170,7 +170,9 @@
pass
else:
assert not "Found %d class code creators" % len(creator)
-
+ import pdb
+ if '<<' == operator.symbol:
+ pdb.set_trace()
find = code_creators.creator_finder.find_by_declaration
if operator.target_class and operator.target_class.ignore == False:
found = find( lambda decl: operator.target_class is decl
Modified: pyplusplus_dev/pyplusplus/module_builder/module_builder.py
===================================================================
--- pyplusplus_dev/pyplusplus/module_builder/module_builder.py 2009-02-17 20:29:14 UTC (rev 1689)
+++ pyplusplus_dev/pyplusplus/module_builder/module_builder.py 2009-02-18 13:27:04 UTC (rev 1690)
@@ -131,7 +131,6 @@
"""Please see :class:`decl_wrappers.scopedef_t` class documentation"""
return self.global_ns.operator( name=name
, symbol=symbol
- , decl_type=decl_type
, return_type=return_type
, arg_types=arg_types
, header_dir=header_dir
@@ -142,7 +141,6 @@
"""Please see :class:`decl_wrappers.scopedef_t` class documentation"""
return self.global_ns.operators( name=name
, symbol=symbol
- , decl_type=decl_type
, return_type=return_type
, arg_types=arg_types
, header_dir=header_dir
Modified: pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp 2009-02-17 20:29:14 UTC (rev 1689)
+++ pyplusplus_dev/unittests/data/vector3_to_be_exported.hpp 2009-02-18 13:27:04 UTC (rev 1690)
@@ -6,6 +6,8 @@
#ifndef __vector3_to_be_exported_hpp__
#define __vector3_to_be_exported_hpp__
+#include <iostream>
+
namespace vector3{
class Vector3
@@ -60,6 +62,11 @@
{
}
+ friend
+ std::ostream& operator<<(std::ostream& out, const Vector3& v ){
+ out << "( " << v.x << "," << v.y << "," << v.z << ")";
+ }
+
inline float operator [] ( const unsigned int i ) const
{
return *(&x+i);
@@ -303,6 +310,7 @@
};
+
}
#endif//__class_order_to_be_exported_hpp__
\ No newline at end of file
Modified: pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py
===================================================================
--- pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py 2009-02-17 20:29:14 UTC (rev 1689)
+++ pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py 2009-02-18 13:27:04 UTC (rev 1690)
@@ -4,35 +4,27 @@
# http://www.boost.org/LICENSE_1_0.txt)
import os
-import dl
import sys
import unittest
import autoconfig
import fundamental_tester_base
from pyplusplus import code_creators
-sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
+if 'linux' in sys.platform:
+ import dl
+ sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
-
-
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
def __init__( self, *args ):
fundamental_tester_base.fundamental_tester_base_t.__init__( self, self.EXTENSION_NAME, indexing_suite_version=2, *args )
def run_tests(self, module):
- try:
- v = module.create_vector()
- print self.__class__.__name__
- for i in v:
- print i
- print self.__class__.__name__, ' - done'
- print self.__class__.__name__
- for i in v:
- print i
- print self.__class__.__name__, ' - done(2)'
- except Exception, ex:
- print 'Error: ', str( ex )
-
+ v = module.create_vector()
+ for i in v:
+ i += 1
+ for i in v:
+ i += 1
+
class tester_a_t(tester_t):
EXTENSION_NAME = 'indexing_suites_v2_bug_a'
def __init__( self, *args ):
@@ -44,7 +36,6 @@
def __init__( self, *args ):
tester_t.__init__( self, *args )
-
def create_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_a_t))
Modified: pyplusplus_dev/unittests/vector3_tester.py
===================================================================
--- pyplusplus_dev/unittests/vector3_tester.py 2009-02-17 20:29:14 UTC (rev 1689)
+++ pyplusplus_dev/unittests/vector3_tester.py 2009-02-18 13:27:04 UTC (rev 1690)
@@ -11,9 +11,9 @@
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
EXTENSION_NAME = 'vector3'
-
+
def __init__( self, *args ):
- fundamental_tester_base.fundamental_tester_base_t.__init__(
+ fundamental_tester_base.fundamental_tester_base_t.__init__(
self
, tester_t.EXTENSION_NAME
, *args )
@@ -26,16 +26,19 @@
vec3.add_registration_code( 'add_property( "x", &vector3::Vector3::x)' )
vec3.add_registration_code( 'add_property( "y", &vector3::Vector3::y)' )
vec3.add_registration_code( 'add_property( "z", &vector3::Vector3::z)' )
+ mb.operator( lambda o: o.symbol == '<<' and 'Vector3' in o.decl_string ).include()
-
def run_tests( self, module):
v3 = module.Vector3()
self.failUnless( v3.ZERO == v3.do_smth() )
#test copy constructor
self.failUnless( module.Vector3(v3.ZERO) == v3.do_smth() )
-
+
+ x = module.Vector3( 1,2,3)
+ print str(x)
+
def create_suite():
- suite = unittest.TestSuite()
+ suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
return suite
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-17 20:29:16
|
Revision: 1689
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1689&view=rev
Author: roman_yakovenko
Date: 2009-02-17 20:29:14 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
porting test to linux
Modified Paths:
--------------
pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py
pyplusplus_dev/unittests/test_all.py
Modified: pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py
===================================================================
--- pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py 2009-02-17 19:30:51 UTC (rev 1688)
+++ pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py 2009-02-17 20:29:14 UTC (rev 1689)
@@ -4,21 +4,35 @@
# http://www.boost.org/LICENSE_1_0.txt)
import os
+import dl
import sys
import unittest
import autoconfig
import fundamental_tester_base
from pyplusplus import code_creators
+sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
+
+
+
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
def __init__( self, *args ):
fundamental_tester_base.fundamental_tester_base_t.__init__( self, self.EXTENSION_NAME, indexing_suite_version=2, *args )
def run_tests(self, module):
- v = module.create_vector()
- for i in v:
- print i
-
+ try:
+ v = module.create_vector()
+ print self.__class__.__name__
+ for i in v:
+ print i
+ print self.__class__.__name__, ' - done'
+ print self.__class__.__name__
+ for i in v:
+ print i
+ print self.__class__.__name__, ' - done(2)'
+ except Exception, ex:
+ print 'Error: ', str( ex )
+
class tester_a_t(tester_t):
EXTENSION_NAME = 'indexing_suites_v2_bug_a'
def __init__( self, *args ):
Modified: pyplusplus_dev/unittests/test_all.py
===================================================================
--- pyplusplus_dev/unittests/test_all.py 2009-02-17 19:30:51 UTC (rev 1688)
+++ pyplusplus_dev/unittests/test_all.py 2009-02-17 20:29:14 UTC (rev 1689)
@@ -87,9 +87,6 @@
import templates_tester
import deepcopy_tester
import override_bug_tester
-#gui_tester
-#gui_wizard_tester
-#
import mem_fun_with_exception_tester
import overriden_virtual_functions_bug_tester
import split_module_bug_tester
@@ -114,6 +111,8 @@
import ctypes_tester
import refee_refer_tester
import indexing_suites_v2_bug_tester
+import virtual_inheritance_tester
+import indexing_suite_v1_tester
#import ogre_generate_tester
testers = [
@@ -215,6 +214,8 @@
, ctypes_tester
, refee_refer_tester
, indexing_suites_v2_bug_tester
+ , virtual_inheritance_tester
+ , indexing_suite_v1_tester
# , ogre_generate_tester too much time
]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-17 19:30:55
|
Revision: 1688
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1688&view=rev
Author: roman_yakovenko
Date: 2009-02-17 19:30:51 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
adding new test cases
Added Paths:
-----------
pyplusplus_dev/unittests/data/indexing_suite_v1_to_be_exported.hpp
pyplusplus_dev/unittests/data/virtual_inheritance_to_be_exported.hpp
pyplusplus_dev/unittests/indexing_suite_v1_tester.py
pyplusplus_dev/unittests/virtual_inheritance_tester.py
Added: pyplusplus_dev/unittests/data/indexing_suite_v1_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/indexing_suite_v1_to_be_exported.hpp (rev 0)
+++ pyplusplus_dev/unittests/data/indexing_suite_v1_to_be_exported.hpp 2009-02-17 19:30:51 UTC (rev 1688)
@@ -0,0 +1,23 @@
+// Copyright 2004-2008 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __indexing_suite_v1__to_be_exported_hpp__
+#define __indexing_suite_v1__to_be_exported_hpp__
+
+#include <vector>
+#include "boost/shared_ptr.hpp"
+
+typedef std::vector< boost::shared_ptr< unsigned short* > > ushort_sptr_ptr_t;
+
+inline ushort_sptr_ptr_t get_empty(){
+ ushort_sptr_ptr_t x;
+ typedef unsigned short ushort;
+ ushort * y = new ushort(5);
+ ushort ** yy = new ushort*( y );
+ x.push_back( boost::shared_ptr< unsigned short* >( yy ) );
+ return x;
+}
+
+#endif//__indexing_suite_v1__to_be_exported_hpp__
Added: pyplusplus_dev/unittests/data/virtual_inheritance_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/virtual_inheritance_to_be_exported.hpp (rev 0)
+++ pyplusplus_dev/unittests/data/virtual_inheritance_to_be_exported.hpp 2009-02-17 19:30:51 UTC (rev 1688)
@@ -0,0 +1,17 @@
+// Copyright 2004-2008 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __virtual_inheritance_to_be_exported_hpp__
+#define __virtual_inheritance_to_be_exported_hpp__
+
+struct base{
+ virtual void do_smth() {}
+};
+
+struct derived : virtual public base
+{
+};
+
+#endif//__virtual_inheritance_to_be_exported_hpp__
Added: pyplusplus_dev/unittests/indexing_suite_v1_tester.py
===================================================================
--- pyplusplus_dev/unittests/indexing_suite_v1_tester.py (rev 0)
+++ pyplusplus_dev/unittests/indexing_suite_v1_tester.py 2009-02-17 19:30:51 UTC (rev 1688)
@@ -0,0 +1,49 @@
+# Copyright 2004-2008 Roman Yakovenko.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+import os
+import sys
+import unittest
+import autoconfig
+from pyplusplus import utils
+import fundamental_tester_base
+from pygccxml import declarations
+from pyplusplus import module_builder
+from pyplusplus.module_builder import call_policies
+
+class tester_t(fundamental_tester_base.fundamental_tester_base_t):
+ EXTENSION_NAME = 'indexing_suite_v1'
+
+ def __init__( self, *args ):
+ fundamental_tester_base.fundamental_tester_base_t.__init__(
+ self
+ , tester_t.EXTENSION_NAME
+ , indexing_suite_version=1
+ , *args )
+ self.files = []
+
+ def customize( self, mb ):
+ v = mb.class_( lambda x: x.name.startswith( 'vector' ) )
+ v.exclude()
+
+ def run_tests(self, module):
+ x = module.get_empty()
+ try:
+ for i in x:
+ print i
+ self.fail( "TypeError exception was not raised" )
+ except TypeError:
+ pass
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest( unittest.makeSuite(tester_t))
+ return suite
+
+def run_suite():
+ unittest.TextTestRunner(verbosity=2).run( create_suite() )
+
+if __name__ == "__main__":
+ run_suite()
Added: pyplusplus_dev/unittests/virtual_inheritance_tester.py
===================================================================
--- pyplusplus_dev/unittests/virtual_inheritance_tester.py (rev 0)
+++ pyplusplus_dev/unittests/virtual_inheritance_tester.py 2009-02-17 19:30:51 UTC (rev 1688)
@@ -0,0 +1,33 @@
+# Copyright 2004-2008 Roman Yakovenko.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+import os
+import sys
+import unittest
+import fundamental_tester_base
+
+class tester_t(fundamental_tester_base.fundamental_tester_base_t):
+ EXTENSION_NAME = 'virtual_inheritance'
+
+ def __init__( self, *args ):
+ fundamental_tester_base.fundamental_tester_base_t.__init__(
+ self
+ , tester_t.EXTENSION_NAME
+ , *args )
+
+
+ def run_tests( self, module):
+ pass
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest( unittest.makeSuite(tester_t))
+ return suite
+
+def run_suite():
+ unittest.TextTestRunner(verbosity=2).run( create_suite() )
+
+if __name__ == "__main__":
+ run_suite()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-17 07:16:07
|
Revision: 1687
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1687&view=rev
Author: roman_yakovenko
Date: 2009-02-17 07:16:05 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
fix bug in module_t.update_documentation method
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/module.py
pyplusplus_dev/unittests/unicode_bug.py
Modified: pyplusplus_dev/pyplusplus/code_creators/module.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/module.py 2009-02-17 06:00:16 UTC (rev 1686)
+++ pyplusplus_dev/pyplusplus/code_creators/module.py 2009-02-17 07:16:05 UTC (rev 1687)
@@ -81,7 +81,7 @@
if id( cc.declaration ) in visited:
continue
cc.declaration.documentation = doc_extractor( cc.declaration )
- visited.add( cc.declaration )
+ visited.add( id( cc.declaration ) )
class bpmodule_t(module_t):
"""This class represents the source code for the entire extension module.
Modified: pyplusplus_dev/unittests/unicode_bug.py
===================================================================
--- pyplusplus_dev/unittests/unicode_bug.py 2009-02-17 06:00:16 UTC (rev 1686)
+++ pyplusplus_dev/unittests/unicode_bug.py 2009-02-17 07:16:05 UTC (rev 1687)
@@ -13,12 +13,26 @@
from pyplusplus import function_transformers as ft
-mb = module_builder.module_builder_t(
- [ module_builder.create_text_fc( 'struct x{};' ) ]
- , gccxml_path=autoconfig.gccxml.executable
- , encoding='UTF-8'
- , compiler=autoconfig.cxx_parsers_cfg.gccxml.compiler)
+class tester_t( unittest.TestCase ):
+ def test(self):
+ mb = module_builder.module_builder_t(
+ [ module_builder.create_text_fc( 'struct x{};' ) ]
+ , gccxml_path=autoconfig.gccxml.executable
+ , encoding='UTF-8'
+ , compiler=autoconfig.cxx_parsers_cfg.gccxml.compiler)
-mb.build_code_creator( module_name='unicode_bug' )
-mb.code_creator.license = "//абвгдеёжзийклмнопрстуфхцчшщъыьэюя"
-mb.write_module( os.path.join( autoconfig.build_dir, 'unicode_bug.cpp' ) )
+ mb.build_code_creator( module_name='unicode_bug' )
+ mb.code_creator.license = "//абвгдеёжзийклмнопрстуфхцчшщъыьэюя"
+ mb.write_module( os.path.join( autoconfig.build_dir, 'unicode_bug.cpp' ) )
+
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest( unittest.makeSuite(tester_t))
+ return suite
+
+def run_suite():
+ unittest.TextTestRunner(verbosity=2).run( create_suite() )
+
+if __name__ == "__main__":
+ run_suite()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-17 06:00:28
|
Revision: 1686
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1686&view=rev
Author: roman_yakovenko
Date: 2009-02-17 06:00:16 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
adding new test case
Modified Paths:
--------------
pyplusplus_dev/unittests/test_all.py
Added Paths:
-----------
pyplusplus_dev/unittests/data/indexing_suites_v2_bug_a_to_be_exported.hpp
pyplusplus_dev/unittests/data/indexing_suites_v2_bug_b_to_be_exported.hpp
pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py
Added: pyplusplus_dev/unittests/data/indexing_suites_v2_bug_a_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/indexing_suites_v2_bug_a_to_be_exported.hpp (rev 0)
+++ pyplusplus_dev/unittests/data/indexing_suites_v2_bug_a_to_be_exported.hpp 2009-02-17 06:00:16 UTC (rev 1686)
@@ -0,0 +1,26 @@
+// Copyright 2004-2008 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __indexing_suites_v2_bug_to_be_exported_hpp__
+#define __indexing_suites_v2_bug_to_be_exported_hpp__
+
+#include <vector>
+
+namespace indexing_suites2 {
+
+std::vector<double> create_vector(){
+ std::vector<double> ret;
+ for(size_t i = 0; i < 10; i++)
+ ret.push_back(i);
+ return ret;
+}
+
+}
+
+namespace pyplusplus{ namespace aliases{
+ typedef std::vector< double > numbers_t;
+}}
+
+#endif//__indexing_suites_v2_bug_to_be_exported_hpp__
Added: pyplusplus_dev/unittests/data/indexing_suites_v2_bug_b_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/indexing_suites_v2_bug_b_to_be_exported.hpp (rev 0)
+++ pyplusplus_dev/unittests/data/indexing_suites_v2_bug_b_to_be_exported.hpp 2009-02-17 06:00:16 UTC (rev 1686)
@@ -0,0 +1,26 @@
+// Copyright 2004-2008 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __indexing_suites_v2_bug_to_be_exported_hpp__
+#define __indexing_suites_v2_bug_to_be_exported_hpp__
+
+#include <vector>
+
+namespace indexing_suites2 {
+
+std::vector<double> create_vector(){
+ std::vector<double> ret;
+ for(size_t i = 0; i < 10; i++)
+ ret.push_back(i);
+ return ret;
+}
+
+}
+
+namespace pyplusplus{ namespace aliases{
+ typedef std::vector< double > numbers_t;
+}}
+
+#endif//__indexing_suites_v2_bug_to_be_exported_hpp__
Added: pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py
===================================================================
--- pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py (rev 0)
+++ pyplusplus_dev/unittests/indexing_suites_v2_bug_tester.py 2009-02-17 06:00:16 UTC (rev 1686)
@@ -0,0 +1,44 @@
+# Copyright 2004-2008 Roman Yakovenko.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+import os
+import sys
+import unittest
+import autoconfig
+import fundamental_tester_base
+from pyplusplus import code_creators
+
+class tester_t(fundamental_tester_base.fundamental_tester_base_t):
+ def __init__( self, *args ):
+ fundamental_tester_base.fundamental_tester_base_t.__init__( self, self.EXTENSION_NAME, indexing_suite_version=2, *args )
+
+ def run_tests(self, module):
+ v = module.create_vector()
+ for i in v:
+ print i
+
+class tester_a_t(tester_t):
+ EXTENSION_NAME = 'indexing_suites_v2_bug_a'
+ def __init__( self, *args ):
+ tester_t.__init__( self, *args )
+
+
+class tester_b_t(tester_t):
+ EXTENSION_NAME = 'indexing_suites_v2_bug_b'
+ def __init__( self, *args ):
+ tester_t.__init__( self, *args )
+
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest( unittest.makeSuite(tester_a_t))
+ suite.addTest( unittest.makeSuite(tester_b_t))
+ return suite
+
+def run_suite():
+ unittest.TextTestRunner(verbosity=2).run( create_suite() )
+
+if __name__ == "__main__":
+ run_suite()
Modified: pyplusplus_dev/unittests/test_all.py
===================================================================
--- pyplusplus_dev/unittests/test_all.py 2009-02-16 19:37:12 UTC (rev 1685)
+++ pyplusplus_dev/unittests/test_all.py 2009-02-17 06:00:16 UTC (rev 1686)
@@ -113,6 +113,7 @@
import return_auto_ptr_tester
import ctypes_tester
import refee_refer_tester
+import indexing_suites_v2_bug_tester
#import ogre_generate_tester
testers = [
@@ -213,6 +214,7 @@
, protected_bug_tester
, ctypes_tester
, refee_refer_tester
+ , indexing_suites_v2_bug_tester
# , ogre_generate_tester too much time
]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-16 19:37:19
|
Revision: 1685
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1685&view=rev
Author: roman_yakovenko
Date: 2009-02-16 19:37:12 +0000 (Mon, 16 Feb 2009)
Log Message:
-----------
docs
Modified Paths:
--------------
pygccxml_dev/docs/design.rest
Modified: pygccxml_dev/docs/design.rest
===================================================================
--- pygccxml_dev/docs/design.rest 2009-02-16 11:11:35 UTC (rev 1684)
+++ pygccxml_dev/docs/design.rest 2009-02-16 19:37:12 UTC (rev 1685)
@@ -6,21 +6,26 @@
The view from 10000 fits
------------------------
-:doc:`pygccxml <pygccxml>` has 3 packages:
+:doc:`pygccxml <pygccxml>` has 4 packages:
-* ``declarations`` package defines classes that describe C++ declarations and types
+* :mod:`declarations <pygccxml.declarations>` package defines classes that describe
+ C++ declarations and types
-* ``parser`` package defines classes that parse `GCC-XML`_ generated files. Also
- it defines few classes that will help you to eliminate unnecessary parsing of
- C++ source files.
+* :mod:`parser <pygccxml.parser>` package defines classes that parse `GCC-XML`_
+ generated files. Also it defines few classes that will help you to eliminate
+ unnecessary parsing of C++ source files.
+* :mod:`binary_parsers <pygccxml.binary_parsers>` package extracts some
+ information from binary files ( `.so`, `.dll`, `.map` ) and merges it with
+ the declarations tree.
+
* ``utils`` package defines few functions, I found useful in the whole project.
-------------------------
``declarations`` package
-------------------------
-Please take a look on `UML diagram`_. This `UML diagram`_ describes almost all
+Please take a look on the `UML diagram`_. This `UML diagram`_ describes almost all
classes defined in the package and their relationship. ``declarations`` package
defines two hierarchies of class:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-16 11:11:42
|
Revision: 1684
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1684&view=rev
Author: roman_yakovenko
Date: 2009-02-16 11:11:35 +0000 (Mon, 16 Feb 2009)
Log Message:
-----------
sphinx
Modified Paths:
--------------
sphinx/__templates_www/layout.html
sphinx/conf.py
Modified: sphinx/__templates_www/layout.html
===================================================================
--- sphinx/__templates_www/layout.html 2009-02-16 08:30:56 UTC (rev 1683)
+++ sphinx/__templates_www/layout.html 2009-02-16 11:11:35 UTC (rev 1684)
@@ -23,15 +23,18 @@
{%- block document %}
<div class="document">
<div class="documentwrapper">
- {%- if not embedded %}
+ {%- if not embedded %}{% if not theme_nosidebar|tobool %}
<div class="bodywrapper">
- {%- endif %}
+ {%- endif %}{% endif %}
<div class="body">
{% block body %} {% endblock %}
{% include "bottom_ad_unit.html" %}
</div>
- {%- if not embedded %}
+ {%- if not embedded %}{% if not theme_nosidebar|tobool %}
</div>
- {%- endif %}
+ {%- endif %}{% endif %}
</div>
+ {%- block sidebar2 %}{{ sidebar() }}{% endblock %}
+ <div class="clearer"></div>
+ </div>
{%- endblock %}
Modified: sphinx/conf.py
===================================================================
--- sphinx/conf.py 2009-02-16 08:30:56 UTC (rev 1683)
+++ sphinx/conf.py 2009-02-16 11:11:35 UTC (rev 1684)
@@ -14,7 +14,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os, shutil, atexit, getopt
+import sys, os, shutil, getopt
opts, args = getopt.getopt( sys.argv[1:], 'ab:d:c:CD:A:NEqQP')
print 'opts: ', opts
@@ -64,18 +64,22 @@
except:
pass #it is possible that pyenchant is not installed
-@atexit.register
-def copy_indexing_suite_v2_files():
+def copy_indexing_suite_v2_files(app, exception):
+ if exception:
+ print 'Indexing suite V2 copying was skipped - there were errors during the build process'
+ return
source_dir = os.path.join( project_root, 'pyplusplus_dev', 'docs', 'documentation', 'indexing_suite_v2_files' )
target_dir = os.path.join( doc_project_root, outdir, 'pyplusplus', 'documentation', 'indexing_suite_v2_files' )
if os.path.exists(target_dir):
shutil.rmtree(target_dir)
shutil.copytree( source_dir, target_dir, ignore=shutil.ignore_patterns( r'.svn' ) )
-@atexit.register
-def generate_sitemap():
+def generate_sitemap(app, exception):
if 'www' not in outdir:
return
+ if exception:
+ print 'SITEMAP generation was skipped - there were errors during the build process'
+ return
try:
import sitemap_gen
@@ -105,6 +109,10 @@
print "ERROR(SITEMAP): sitemap file was not generated - ", str(error)
+def setup(app):
+ app.connect('build-finished', copy_indexing_suite_v2_files)
+ app.connect('build-finished', generate_sitemap)
+
# General configuration
# ---------------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rom...@us...> - 2009-02-16 08:31:06
|
Revision: 1683
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1683&view=rev
Author: roman_yakovenko
Date: 2009-02-16 08:30:56 +0000 (Mon, 16 Feb 2009)
Log Message:
-----------
update docs
Modified Paths:
--------------
pygccxml_dev/docs/pygccxml.rest
pygccxml_dev/docs/query_interface.rest
Modified: pygccxml_dev/docs/pygccxml.rest
===================================================================
--- pygccxml_dev/docs/pygccxml.rest 2009-02-15 20:51:18 UTC (rev 1682)
+++ pygccxml_dev/docs/pygccxml.rest 2009-02-16 08:30:56 UTC (rev 1683)
@@ -1,4 +1,4 @@
-================
+================
pygccxml package
================
@@ -96,7 +96,13 @@
second case. `pygccxml` supports both of them. Actually `pygccxml` supports
more caching strategies, read the API documentation for more information.
+Binary files parser
+-------------------
+`pygccxml` contains functionality which allows to extract different information
+from binary files ( `.map`, `.dll`, `.so` ) and integrate it with the existing
+declarations tree.
+
-------
License
-------
Modified: pygccxml_dev/docs/query_interface.rest
===================================================================
--- pygccxml_dev/docs/query_interface.rest 2009-02-15 20:51:18 UTC (rev 1682)
+++ pygccxml_dev/docs/query_interface.rest 2009-02-16 08:30:56 UTC (rev 1683)
@@ -22,7 +22,7 @@
query = query & ~declarations.access_type_matcher_t( 'public' )
global_ns.member_functions( function=query, arg_types=[None, 'int &'] )
-The example is complex, but still readable. In many cases you will find
+The example is complex, but still readable. In many cases you will find
yourself, looking for one or many declarations, using one or two declaration properties.
For example:
@@ -38,11 +38,16 @@
As you already know, ``pygccxml.declarations`` package defines the following classes:
-* ``scopedef_t`` - base class for all classes, that can contain other declarations
+* :class:`scopedef_t <pygccxml.declarations.scopedef.scopedef_t>` - base class
+ for all classes, that can contain other declarations
-* ``namespace_t`` - derives from ``scopedef_t`` class, represents C++ namespace
+* :class:`namespace_t <pygccxml.declarations.namespace.namespace_t>` - derives
+ from :class:`scopedef_t <pygccxml.declarations.scopedef.scopedef_t>` class,
+ represents C++ namespace
-* ``class_t`` - derives from ``scopedef_t`` class, represents C++ class/struct/union.
+* :class:`class_t <pygccxml.declarations.class_declaration.class_t>` - derives
+ from :class:`scopedef_t <pygccxml.declarations.scopedef.scopedef_t>` class,
+ represents C++ class/struct/union.
So, the query methods defined on ``scopedef_t`` class could be used on instances
of ``class_t`` and ``namespace_t`` classes. I am sure you knew that.
@@ -64,9 +69,9 @@
header_dir=None,
header_file=None,
recursive=None )
-
+
mem_fun = member_function #just an alias
-
+
def member_functions( self,
name=None,
function=None,
@@ -76,7 +81,7 @@
header_file=None,
recursive=None,
allow_empty=None )
- mem_funs = member_functions
+ mem_funs = member_functions
As you can see, from the method arguments you can search for member function
@@ -106,13 +111,13 @@
* ``return_type``
- the function return type. This argument can be string or an object that describes
+ the function return type. This argument can be string or an object that describes
C++ type.
.. code-block:: python
mem_funcs = my_class.member_functions( return_type='int' )
-
+
i = declarations.int_t()
ref_i = declarations.reference_t( i )
const_ref_i = declarations.const_t( ref_i )
@@ -128,7 +133,7 @@
.. code-block:: python
- mem_funcs = my_class.member_functions( arg_types=[ None, 'int'] )
+ mem_funcs = my_class.member_functions( arg_types=[ None, 'int'] )
``mem_funcs`` will contain all member functions, which have two arguments
and type of second argument is ``int``.
@@ -286,10 +291,8 @@
.. _`call policies`: http://boost.org/libs/python/doc/tutorial/doc/html/python/functions.html#python.call_policies
.. _`Call policies`: http://boost.org/libs/python/doc/tutorial/doc/html/python/functions.html#python.call_policies
-.. _`SourceForge`: http://sourceforge.net/index.php
.. _`Python`: http://www.python.org
.. _`GCC-XML`: http://www.gccxml.org
.. _`UML diagram` : declarations_uml.png
.. _`parser package UML diagram` : parser_uml.png
-.. _`ReleaseForge` : http://releaseforge.sourceforge.net
.. _`boost::type_traits` : http://www.boost.org/libs/type_traits/index.html
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|