[pygccxml-commit] SF.net SVN: pygccxml:[1665]
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-02-09 11:16:11
|
Revision: 1665 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1665&view=rev Author: roman_yakovenko Date: 2009-02-09 11:16:07 +0000 (Mon, 09 Feb 2009) Log Message: ----------- sphinx Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/templates.py pygccxml_dev/pygccxml/declarations/type_traits.py sphinx/conf.py Modified: pygccxml_dev/pygccxml/declarations/templates.py =================================================================== --- pygccxml_dev/pygccxml/declarations/templates.py 2009-02-09 09:48:27 UTC (rev 1664) +++ pygccxml_dev/pygccxml/declarations/templates.py 2009-02-09 11:16:07 UTC (rev 1665) @@ -6,13 +6,14 @@ """ template instantiation parser -This module implements all functionality necessary to parse C++ template -instantiations.In other words this module is able to extract next information from -the string like this `std::vector<int>`. - - name ( `std::vector` ) - - list of arguments ( `int` ) +This module provides functionality necessary to -This module also defines few convenience function like :func:split and :func:join. +* :func:`parse <pygccxml.declarations.templates.parse>` +* :func:`split <pygccxml.declarations.templates.split>` +* :func:`join <pygccxml.declarations.templates.join>` +* :func:`normalize <pygccxml.declarations.templates.normalize>` + +C++ template instantiations """ import pattern_parser Modified: pygccxml_dev/pygccxml/declarations/type_traits.py =================================================================== --- pygccxml_dev/pygccxml/declarations/type_traits.py 2009-02-09 09:48:27 UTC (rev 1664) +++ pygccxml_dev/pygccxml/declarations/type_traits.py 2009-02-09 11:16:07 UTC (rev 1665) @@ -4,15 +4,17 @@ # http://www.boost.org/LICENSE_1_0.txt) """ -defines few algorithms, that deals with different properties of C++ types +defines few algorithms, that deals with different C++ type properties -Do you aware of boost::type_traits library? pygccxml has functionality similar to -it. Using functions defined in this module you can - - find out some properties of the type - - modify type +Do you aware of `boost::type_traits <http://www.boost.org/doc/libs/1_37_0/libs/type_traits/doc/html/boost_typetraits/intro.html>`_ +library? pygccxml implements the same functionality. -Those functions are very valuable for code generation. Almost all functions -within this module works on :class:`type_t` class hierarchy and\\or :class:class_t. +This module contains a set of very specific traits functions\\classes, each of +which encapsulate a single trait from the C++ type system. For example: +* is a type a pointer or a reference type ? +* does a type have a trivial constructor ? +* does a type have a const-qualifier ? + """ import os @@ -891,7 +893,7 @@ def is_defined_in_xxx( xxx, cls ): """ small helper function, that checks whether the class `cls` is defined under `::xxx` namespace - """ + """ if not cls.parent: return False Modified: sphinx/conf.py =================================================================== --- sphinx/conf.py 2009-02-09 09:48:27 UTC (rev 1664) +++ sphinx/conf.py 2009-02-09 11:16:07 UTC (rev 1665) @@ -48,13 +48,16 @@ else: shutil.copy( os.path.join( project_root, 'index.rest' ), doc_project_root ) -import pydsc -#report errors related to the project only -pydsc.include_paths( project_root ) -pydsc.ignore_dictionary( 'ignore_dictionary.txt' ) -pydsc.set_text_preprocessor( pydsc.sphinx_preprocessor ) -import pygccxml -import pyplusplus +try: + import pydsc + #report errors related to the project only + pydsc.include_paths( project_root ) + pydsc.ignore_dictionary( 'ignore_dictionary.txt' ) + pydsc.set_text_preprocessor( pydsc.sphinx_preprocessor ) + import pygccxml + import pyplusplus +except: + pass #it is possible that pyenchant is not installed # General configuration This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |