src/energy/bindings/modulegen__gcc_LP64.py
changeset 11654 5db1372be9a3
parent 11579 4ded0610ab25
equal deleted inserted replaced
11653:11763913913e 11654:5db1372be9a3
   251     
   251     
   252     nested_module = module.add_cpp_namespace('Hash')
   252     nested_module = module.add_cpp_namespace('Hash')
   253     register_types_ns3_Hash(nested_module)
   253     register_types_ns3_Hash(nested_module)
   254     
   254     
   255     
   255     
       
   256     ## Register a nested module for the namespace TracedValueCallback
       
   257     
       
   258     nested_module = module.add_cpp_namespace('TracedValueCallback')
       
   259     register_types_ns3_TracedValueCallback(nested_module)
       
   260     
       
   261     
   256     ## Register a nested module for the namespace internal
   262     ## Register a nested module for the namespace internal
   257     
   263     
   258     nested_module = module.add_cpp_namespace('internal')
   264     nested_module = module.add_cpp_namespace('internal')
   259     register_types_ns3_internal(nested_module)
   265     register_types_ns3_internal(nested_module)
   260     
   266     
   290     module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   296     module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   291     ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class]
   297     ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class]
   292     module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   298     module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   293     ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class]
   299     ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class]
   294     module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   300     module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
       
   301 
       
   302 def register_types_ns3_TracedValueCallback(module):
       
   303     root_module = module.get_root()
       
   304     
       
   305     typehandlers.add_type_alias(u'void ( * ) ( bool, bool ) *', u'ns3::TracedValueCallback::Bool')
       
   306     typehandlers.add_type_alias(u'void ( * ) ( bool, bool ) **', u'ns3::TracedValueCallback::Bool*')
       
   307     typehandlers.add_type_alias(u'void ( * ) ( bool, bool ) *&', u'ns3::TracedValueCallback::Bool&')
       
   308     typehandlers.add_type_alias(u'void ( * ) ( double, double ) *', u'ns3::TracedValueCallback::Double')
       
   309     typehandlers.add_type_alias(u'void ( * ) ( double, double ) **', u'ns3::TracedValueCallback::Double*')
       
   310     typehandlers.add_type_alias(u'void ( * ) ( double, double ) *&', u'ns3::TracedValueCallback::Double&')
       
   311     typehandlers.add_type_alias(u'void ( * ) ( int8_t, int8_t ) *', u'ns3::TracedValueCallback::Int8')
       
   312     typehandlers.add_type_alias(u'void ( * ) ( int8_t, int8_t ) **', u'ns3::TracedValueCallback::Int8*')
       
   313     typehandlers.add_type_alias(u'void ( * ) ( int8_t, int8_t ) *&', u'ns3::TracedValueCallback::Int8&')
       
   314     typehandlers.add_type_alias(u'void ( * ) ( uint8_t, uint8_t ) *', u'ns3::TracedValueCallback::Uint8')
       
   315     typehandlers.add_type_alias(u'void ( * ) ( uint8_t, uint8_t ) **', u'ns3::TracedValueCallback::Uint8*')
       
   316     typehandlers.add_type_alias(u'void ( * ) ( uint8_t, uint8_t ) *&', u'ns3::TracedValueCallback::Uint8&')
       
   317     typehandlers.add_type_alias(u'void ( * ) ( uint32_t, uint32_t ) *', u'ns3::TracedValueCallback::Uint32')
       
   318     typehandlers.add_type_alias(u'void ( * ) ( uint32_t, uint32_t ) **', u'ns3::TracedValueCallback::Uint32*')
       
   319     typehandlers.add_type_alias(u'void ( * ) ( uint32_t, uint32_t ) *&', u'ns3::TracedValueCallback::Uint32&')
       
   320     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *', u'ns3::TracedValueCallback::Time')
       
   321     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) **', u'ns3::TracedValueCallback::Time*')
       
   322     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *&', u'ns3::TracedValueCallback::Time&')
       
   323     typehandlers.add_type_alias(u'void ( * ) ( int16_t, int16_t ) *', u'ns3::TracedValueCallback::Int16')
       
   324     typehandlers.add_type_alias(u'void ( * ) ( int16_t, int16_t ) **', u'ns3::TracedValueCallback::Int16*')
       
   325     typehandlers.add_type_alias(u'void ( * ) ( int16_t, int16_t ) *&', u'ns3::TracedValueCallback::Int16&')
       
   326     typehandlers.add_type_alias(u'void ( * ) ( int32_t, int32_t ) *', u'ns3::TracedValueCallback::Int32')
       
   327     typehandlers.add_type_alias(u'void ( * ) ( int32_t, int32_t ) **', u'ns3::TracedValueCallback::Int32*')
       
   328     typehandlers.add_type_alias(u'void ( * ) ( int32_t, int32_t ) *&', u'ns3::TracedValueCallback::Int32&')
       
   329     typehandlers.add_type_alias(u'void ( * ) ( uint16_t, uint16_t ) *', u'ns3::TracedValueCallback::Uint16')
       
   330     typehandlers.add_type_alias(u'void ( * ) ( uint16_t, uint16_t ) **', u'ns3::TracedValueCallback::Uint16*')
       
   331     typehandlers.add_type_alias(u'void ( * ) ( uint16_t, uint16_t ) *&', u'ns3::TracedValueCallback::Uint16&')
   295 
   332 
   296 def register_types_ns3_internal(module):
   333 def register_types_ns3_internal(module):
   297     root_module = module.get_root()
   334     root_module = module.get_root()
   298     
   335     
   299 
   336 
   526                    [], 
   563                    [], 
   527                    is_const=True)
   564                    is_const=True)
   528     ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
   565     ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
   529     cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], 
   566     cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], 
   530                         visibility='protected')
   567                         visibility='protected')
   531     ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
       
   532     cls.add_method('Demangle', 
       
   533                    'std::string', 
       
   534                    [param('std::string const &', 'mangled')], 
       
   535                    is_static=True, visibility='protected')
       
   536     return
   568     return
   537 
   569 
   538 def register_Ns3DeviceEnergyModelContainer_methods(root_module, cls):
   570 def register_Ns3DeviceEnergyModelContainer_methods(root_module, cls):
   539     ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & arg0) [copy constructor]
   571     ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & arg0) [copy constructor]
   540     cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'arg0')])
   572     cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'arg0')])
  2676 def register_Ns3CallbackImplBase_methods(root_module, cls):
  2708 def register_Ns3CallbackImplBase_methods(root_module, cls):
  2677     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
  2709     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
  2678     cls.add_constructor([])
  2710     cls.add_constructor([])
  2679     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
  2711     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
  2680     cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
  2712     cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
       
  2713     ## callback.h (module 'core'): std::string ns3::CallbackImplBase::GetTypeid() const [member function]
       
  2714     cls.add_method('GetTypeid', 
       
  2715                    'std::string', 
       
  2716                    [], 
       
  2717                    is_pure_virtual=True, is_const=True, is_virtual=True)
  2681     ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
  2718     ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
  2682     cls.add_method('IsEqual', 
  2719     cls.add_method('IsEqual', 
  2683                    'bool', 
  2720                    'bool', 
  2684                    [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], 
  2721                    [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], 
  2685                    is_pure_virtual=True, is_const=True, is_virtual=True)
  2722                    is_pure_virtual=True, is_const=True, is_virtual=True)
       
  2723     ## callback.h (module 'core'): static std::string ns3::CallbackImplBase::Demangle(std::string const & mangled) [member function]
       
  2724     cls.add_method('Demangle', 
       
  2725                    'std::string', 
       
  2726                    [param('std::string const &', 'mangled')], 
       
  2727                    is_static=True, visibility='protected')
  2686     return
  2728     return
  2687 
  2729 
  2688 def register_Ns3CallbackValue_methods(root_module, cls):
  2730 def register_Ns3CallbackValue_methods(root_module, cls):
  2689     ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
  2731     ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
  2690     cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
  2732     cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
  4564 
  4606 
  4565 def register_functions(root_module):
  4607 def register_functions(root_module):
  4566     module = root_module
  4608     module = root_module
  4567     register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
  4609     register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
  4568     register_functions_ns3_Hash(module.get_submodule('Hash'), root_module)
  4610     register_functions_ns3_Hash(module.get_submodule('Hash'), root_module)
       
  4611     register_functions_ns3_TracedValueCallback(module.get_submodule('TracedValueCallback'), root_module)
  4569     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
  4612     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
  4570     return
  4613     return
  4571 
  4614 
  4572 def register_functions_ns3_FatalImpl(module, root_module):
  4615 def register_functions_ns3_FatalImpl(module, root_module):
  4573     return
  4616     return
  4575 def register_functions_ns3_Hash(module, root_module):
  4618 def register_functions_ns3_Hash(module, root_module):
  4576     register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module)
  4619     register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module)
  4577     return
  4620     return
  4578 
  4621 
  4579 def register_functions_ns3_Hash_Function(module, root_module):
  4622 def register_functions_ns3_Hash_Function(module, root_module):
       
  4623     return
       
  4624 
       
  4625 def register_functions_ns3_TracedValueCallback(module, root_module):
  4580     return
  4626     return
  4581 
  4627 
  4582 def register_functions_ns3_internal(module, root_module):
  4628 def register_functions_ns3_internal(module, root_module):
  4583     return
  4629     return
  4584 
  4630