Revision: 380
Author: roman_yakovenko
Date: 2006-08-03 06:33:06 -0700 (Thu, 03 Aug 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=380&view=rev
Log Message:
-----------
adding/updating documentation
Modified Paths:
--------------
pyplusplus_dev/docs/documentation/how_to.rest
Added Paths:
-----------
pyplusplus_dev/docs/documentation/hints.rest
Added: pyplusplus_dev/docs/documentation/hints.rest
===================================================================
--- pyplusplus_dev/docs/documentation/hints.rest (rev 0)
+++ pyplusplus_dev/docs/documentation/hints.rest 2006-08-03 13:33:06 UTC (rev 380)
@@ -0,0 +1,52 @@
+=====
+Hints
+=====
+
+.. contents:: Table of contents
+
+----------------------------------
+Class template instantiation alias
+----------------------------------
+
+`pyplusplus`_ has nice feature. If you define ``typedef`` for instantiated class
+template, than `pyplusplus`_ will use it as a `Python`_ class name.
+
+For example:
+::
+
+ #include <vector>
+
+::
+
+ typedef std::vector< int > numbers;
+
+::
+
+ numbers generate_n(){
+ ...
+ }
+
+`pyplusplus`_ will use "numbers" as Python class name:
+
+::
+
+ using boost::python;
+ class_< std::vector< int > >( "numbers" )
+ ...
+ ;
+
+This feature will work only in case there is only one such ``typedef``. Using class
+property ``aliases`` you can get access to all ``typedef``'s of the class.
+
+.. _`pyplusplus` : ./../pyplusplus.html
+.. _`boost.python`: http://www.boost.org/libs/python/doc/index.html
+.. _`Python`: http://www.python.org
+.. _`GCC-XML`: http://www.gccxml.org
+
+..
+ Local Variables:
+ mode: indented-text
+ indent-tabs-mode: nil
+ sentence-end-double-space: t
+ fill-column: 70
+ End:
Modified: pyplusplus_dev/docs/documentation/how_to.rest
===================================================================
--- pyplusplus_dev/docs/documentation/how_to.rest 2006-08-03 12:56:43 UTC (rev 379)
+++ pyplusplus_dev/docs/documentation/how_to.rest 2006-08-03 13:33:06 UTC (rev 380)
@@ -106,10 +106,28 @@
window = mb.class_( "window_t" )
window.member_function( "get_size" ).exclude()
window.add_wrapper_code( wrapper_code )
- window.add_code( registration_code )
+ window.registration_code( registration_code )
That's all.
+------------------------------------------------------------
+Fatal error C1204:Compiler limit:internal structure overflow
+------------------------------------------------------------
+
+If you get this error, that the generated file is too big. You will have to split
+it to few files. Well, not you but `pyplusplus`_ you will only have to tell that
+to it.
+
+If you are using ``module_builder_t.write_module`` method, consider to switch
+to ``module_builder_t.split_module``.
+
+If you are using ``split_method``, but still generated code for some specific
+class could not be compiled because of error, you can ask `pyplusplus`_ to split
+class registration code to few cpp files.
+
+For more information, please read the documentation.
+
+
.. _`pyplusplus` : ./../pyplusplus.html
.. _`boost.python`: http://www.boost.org/libs/python/doc/index.html
.. _`Python`: http://www.python.org
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|