src/propagation/bindings/modulegen__gcc_ILP32.py
changeset 11654 5db1372be9a3
parent 11579 4ded0610ab25
equal deleted inserted replaced
11653:11763913913e 11654:5db1372be9a3
   208     ## Register a nested module for the namespace Hash
   208     ## Register a nested module for the namespace Hash
   209     
   209     
   210     nested_module = module.add_cpp_namespace('Hash')
   210     nested_module = module.add_cpp_namespace('Hash')
   211     register_types_ns3_Hash(nested_module)
   211     register_types_ns3_Hash(nested_module)
   212     
   212     
       
   213     
       
   214     ## Register a nested module for the namespace TracedValueCallback
       
   215     
       
   216     nested_module = module.add_cpp_namespace('TracedValueCallback')
       
   217     register_types_ns3_TracedValueCallback(nested_module)
       
   218     
   213 
   219 
   214 def register_types_ns3_FatalImpl(module):
   220 def register_types_ns3_FatalImpl(module):
   215     root_module = module.get_root()
   221     root_module = module.get_root()
   216     
   222     
   217 
   223 
   242     module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   248     module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   243     ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class]
   249     ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class]
   244     module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   250     module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   245     ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class]
   251     ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class]
   246     module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   252     module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
       
   253 
       
   254 def register_types_ns3_TracedValueCallback(module):
       
   255     root_module = module.get_root()
       
   256     
       
   257     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *', u'ns3::TracedValueCallback::Time')
       
   258     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) **', u'ns3::TracedValueCallback::Time*')
       
   259     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *&', u'ns3::TracedValueCallback::Time&')
   247 
   260 
   248 def register_methods(root_module):
   261 def register_methods(root_module):
   249     register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList'])
   262     register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList'])
   250     register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item'])
   263     register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item'])
   251     register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase'])
   264     register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase'])
   380                    [], 
   393                    [], 
   381                    is_const=True)
   394                    is_const=True)
   382     ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
   395     ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
   383     cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], 
   396     cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], 
   384                         visibility='protected')
   397                         visibility='protected')
   385     ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
       
   386     cls.add_method('Demangle', 
       
   387                    'std::string', 
       
   388                    [param('std::string const &', 'mangled')], 
       
   389                    is_static=True, visibility='protected')
       
   390     return
   398     return
   391 
   399 
   392 def register_Ns3Hasher_methods(root_module, cls):
   400 def register_Ns3Hasher_methods(root_module, cls):
   393     ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Hasher const & arg0) [copy constructor]
   401     ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Hasher const & arg0) [copy constructor]
   394     cls.add_constructor([param('ns3::Hasher const &', 'arg0')])
   402     cls.add_constructor([param('ns3::Hasher const &', 'arg0')])
  1773 def register_Ns3CallbackImplBase_methods(root_module, cls):
  1781 def register_Ns3CallbackImplBase_methods(root_module, cls):
  1774     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
  1782     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
  1775     cls.add_constructor([])
  1783     cls.add_constructor([])
  1776     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
  1784     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
  1777     cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
  1785     cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
       
  1786     ## callback.h (module 'core'): std::string ns3::CallbackImplBase::GetTypeid() const [member function]
       
  1787     cls.add_method('GetTypeid', 
       
  1788                    'std::string', 
       
  1789                    [], 
       
  1790                    is_pure_virtual=True, is_const=True, is_virtual=True)
  1778     ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
  1791     ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
  1779     cls.add_method('IsEqual', 
  1792     cls.add_method('IsEqual', 
  1780                    'bool', 
  1793                    'bool', 
  1781                    [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], 
  1794                    [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], 
  1782                    is_pure_virtual=True, is_const=True, is_virtual=True)
  1795                    is_pure_virtual=True, is_const=True, is_virtual=True)
       
  1796     ## callback.h (module 'core'): static std::string ns3::CallbackImplBase::Demangle(std::string const & mangled) [member function]
       
  1797     cls.add_method('Demangle', 
       
  1798                    'std::string', 
       
  1799                    [param('std::string const &', 'mangled')], 
       
  1800                    is_static=True, visibility='protected')
  1783     return
  1801     return
  1784 
  1802 
  1785 def register_Ns3CallbackValue_methods(root_module, cls):
  1803 def register_Ns3CallbackValue_methods(root_module, cls):
  1786     ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
  1804     ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
  1787     cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
  1805     cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
  2903 
  2921 
  2904 def register_functions(root_module):
  2922 def register_functions(root_module):
  2905     module = root_module
  2923     module = root_module
  2906     register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
  2924     register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
  2907     register_functions_ns3_Hash(module.get_submodule('Hash'), root_module)
  2925     register_functions_ns3_Hash(module.get_submodule('Hash'), root_module)
       
  2926     register_functions_ns3_TracedValueCallback(module.get_submodule('TracedValueCallback'), root_module)
  2908     return
  2927     return
  2909 
  2928 
  2910 def register_functions_ns3_FatalImpl(module, root_module):
  2929 def register_functions_ns3_FatalImpl(module, root_module):
  2911     return
  2930     return
  2912 
  2931 
  2913 def register_functions_ns3_Hash(module, root_module):
  2932 def register_functions_ns3_Hash(module, root_module):
  2914     register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module)
  2933     register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module)
  2915     return
  2934     return
  2916 
  2935 
  2917 def register_functions_ns3_Hash_Function(module, root_module):
  2936 def register_functions_ns3_Hash_Function(module, root_module):
       
  2937     return
       
  2938 
       
  2939 def register_functions_ns3_TracedValueCallback(module, root_module):
  2918     return
  2940     return
  2919 
  2941 
  2920 def main():
  2942 def main():
  2921     out = FileCodeSink(sys.stdout)
  2943     out = FileCodeSink(sys.stdout)
  2922     root_module = module_init()
  2944     root_module = module_init()