Package pyplusplus :: Package decl_wrappers

# Source Code for Package pyplusplus.decl_wrappers

      1  # Copyright 2004-2008 Roman Yakovenko.
      2  # Distributed under the Boost Software License, Version 1.0. (See
      3  # accompanying file LICENSE_1_0.txt or copy at
      4  # http://www.boost.org/LICENSE_1_0.txt)
      5
      6  """Code generator configuration classes
      7
      8  L{pygccxml.declarations} package contains classes, which describe C++ declarations.
      9  This package contains classes that derive from the L{pygccxml.declarations} classes.
     10  The classes in this package allow you to configure the code generator.
     11  """
     12
     13  import algorithm
     14
     15  from decl_wrapper import decl_wrapper_t
     16
     17  from calldef_wrapper import calldef_t
     18  from calldef_wrapper import member_function_t
     19  from calldef_wrapper import constructor_t
     20  from calldef_wrapper import destructor_t
     21  from calldef_wrapper import member_operator_t
     22  from calldef_wrapper import casting_operator_t
     23  from calldef_wrapper import free_function_t
     24  from calldef_wrapper import free_operator_t
     25
     26  from class_wrapper import class_declaration_t
     27  from class_wrapper import class_t
     28
     29  from enumeration_wrapper import enumeration_t
     30
     31  from namespace_wrapper import namespace_t
     32
     33  from typedef_wrapper import typedef_t
     34
     35  from variable_wrapper import variable_t
     36
     37  from scopedef_wrapper import scopedef_t
     38
     39  from pygccxml import declarations
     40
     41  from call_policies import call_policy_t
     42  from call_policies import default_call_policies_t
     43  from call_policies import default_call_policies
     44  from call_policies import compound_policy_t
     45  from call_policies import return_argument_t
     46  from call_policies import return_arg
     47  from call_policies import return_self
     48  from call_policies import return_internal_reference_t
     49  from call_policies import return_internal_reference
     50  from call_policies import with_custodian_and_ward_t
     51  from call_policies import with_custodian_and_ward
     52  from call_policies import with_custodian_and_ward_postcall_t
     53  from call_policies import with_custodian_and_ward_postcall
     54  from call_policies import return_value_policy_t
     55  from call_policies import copy_const_reference
     56  from call_policies import copy_non_const_reference
     57  from call_policies import manage_new_object
     58  from call_policies import reference_existing_object
     59  from call_policies import return_by_value
     60  from call_policies import return_opaque_pointer
     61  from call_policies import return_value_policy
     62  from call_policies import return_pointee_value
     63  from call_policies import return_addressof
     64  from call_policies import is_return_opaque_pointer_policy
     65  from call_policies import custom_call_policies_t
     66  from call_policies import custom_call_policies
     67  from call_policies import convert_array_to_tuple_t
     68  from call_policies import convert_array_to_tuple
     69  from call_policies import memory_managers
     70  from call_policies import return_range
     71  from call_policies import return_range_t
     72
     73  from decl_wrapper_printer import decl_wrapper_printer_t
     74  from decl_wrapper_printer import print_declarations
     75
     76  from user_text import user_text_t
     77  from user_text import class_user_text_t
     78
     79  from indexing_suite1 import indexing_suite1_t
     80  from indexing_suite2 import indexing_suite2_t
     81
     82  from doc_extractor import doc_extractor_i
     83
     84  from properties import property_t
     85  from properties import property_recognizer_i
     86  from properties import name_based_recognizer_t
     87
     88  import python_traits
     89
     90 -class dwfactory_t( declarations.decl_factory_t ):
     91      """declarations factory class"""
     92 -    def __init__(self):
     93          declarations.decl_factory_t.__init__(self)
     94
     95 -    def create_member_function( self, *arguments, **keywords ):
     96          return member_function_t(*arguments, **keywords)
     97
     98 -    def create_constructor( self, *arguments, **keywords ):
     99          return constructor_t(*arguments, **keywords)
    100
    101 -    def create_destructor( self, *arguments, **keywords ):
    102          return destructor_t(*arguments, **keywords)
    103
    104 -    def create_member_operator( self, *arguments, **keywords ):
    105          return member_operator_t(*arguments, **keywords)
    106
    107 -    def create_casting_operator( self, *arguments, **keywords ):
    108          return casting_operator_t(*arguments, **keywords)
    109
    110 -    def create_free_function( self, *arguments, **keywords ):
    111          return free_function_t(*arguments, **keywords)
    112
    113 -    def create_free_operator( self, *arguments, **keywords ):
    114          return free_operator_t(*arguments, **keywords)
    115
    116 -    def create_class_declaration(self, *arguments, **keywords ):
    117          return class_declaration_t(*arguments, **keywords)
    118
    119 -    def create_class( self, *arguments, **keywords ):
    120          return class_t(*arguments, **keywords)
    121
    122 -    def create_enumeration( self, *arguments, **keywords ):
    123          return enumeration_t(*arguments, **keywords)
    124
    125 -    def create_namespace( self, *arguments, **keywords ):
    126          return namespace_t(*arguments, **keywords)
    127
    128 -    def create_typedef( self, *arguments, **keywords ):
    129          return typedef_t(*arguments, **keywords)
    130
    131 -    def create_variable( self, *arguments, **keywords ):
    132          return variable_t(*arguments, **keywords)
    133