1
2
3
4
5
6 import os
7 import algorithm
8 import declaration_based
9 import registration_based
10 from pygccxml import declarations
11
12 templates = declarations.templates
13
15 """ Helper class that can hold name of smart_ptr type and create
16 identifier for held type from that given a creator.
17 """
19 """ smart_ptr: string of ptr type. Ex: 'boost::shared_ptr' """
20 object.__init__( self )
21 self._smart_ptr = smart_ptr
22
24 return self._smart_ptr
27 smart_ptr = property( _get_smart_ptr, _set_smart_ptr )
28
36
39 """ Convertor for boost::python::register_ptr_to_python<PTR>.
40 Lets boost python know that it can use smart_ptr to hold a an object.
41 See: http://www.boost.org/libs/python/doc/v2/register_ptr_to_python.html
42 """
43 - def __init__( self, smart_ptr, class_creator ):