Skip to content

Commit e71d02a

Browse files
author
roman_yakovenko
committed
sphinx
1 parent 36a5d17 commit e71d02a

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

pygccxml/declarations/templates.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
"""
77
template instantiation parser
88
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
1410
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
1617
"""
1718

1819
import pattern_parser

pygccxml/declarations/type_traits.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
# http://www.boost.org/LICENSE_1_0.txt)
55

66
"""
7-
defines few algorithms, that deals with different properties of C++ types
7+
defines few algorithms, that deals with different C++ type properties
88
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 ?
1317
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.
1618
"""
1719

1820
import os
@@ -891,7 +893,7 @@ def is_noncopyable( class_ ):
891893
def is_defined_in_xxx( xxx, cls ):
892894
"""
893895
small helper function, that checks whether the class `cls` is defined under `::xxx` namespace
894-
"""
896+
"""
895897
if not cls.parent:
896898
return False
897899

0 commit comments

Comments
 (0)