File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 6
6
"""
7
7
template instantiation parser
8
8
9
- This module implements all functionality necessary to parse C++ template
10
- instantiations.In other words this module is able to extract next information from
11
- the string like this `std::vector<int>`.
12
- - name ( `std::vector` )
13
- - list of arguments ( `int` )
9
+ This module provides functionality necessary to
14
10
15
- This module also defines few convenience function like :func:split and :func:join.
11
+ * :func:`parse <pygccxml.declarations.templates.parse>`
12
+ * :func:`split <pygccxml.declarations.templates.split>`
13
+ * :func:`join <pygccxml.declarations.templates.join>`
14
+ * :func:`normalize <pygccxml.declarations.templates.normalize>`
15
+
16
+ C++ template instantiations
16
17
"""
17
18
18
19
import pattern_parser
Original file line number Diff line number Diff line change 4
4
# http://www.boost.org/LICENSE_1_0.txt)
5
5
6
6
"""
7
- defines few algorithms, that deals with different properties of C++ types
7
+ defines few algorithms, that deals with different C++ type properties
8
8
9
- Do you aware of boost::type_traits library? pygccxml has functionality similar to
10
- it. Using functions defined in this module you can
11
- - find out some properties of the type
12
- - modify type
9
+ 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>`_
10
+ library? pygccxml implements the same functionality.
11
+
12
+ This module contains a set of very specific traits functions\\ classes, each of
13
+ which encapsulate a single trait from the C++ type system. For example:
14
+ * is a type a pointer or a reference type ?
15
+ * does a type have a trivial constructor ?
16
+ * does a type have a const-qualifier ?
13
17
14
- Those functions are very valuable for code generation. Almost all functions
15
- within this module works on :class:`type_t` class hierarchy and\\ or :class:class_t.
16
18
"""
17
19
18
20
import os
@@ -891,7 +893,7 @@ def is_noncopyable( class_ ):
891
893
def is_defined_in_xxx ( xxx , cls ):
892
894
"""
893
895
small helper function, that checks whether the class `cls` is defined under `::xxx` namespace
894
- """
896
+ """
895
897
if not cls .parent :
896
898
return False
897
899
You can’t perform that action at this time.
0 commit comments