src/visualizer/bindings/modulegen__gcc_ILP32.py
changeset 11654 5db1372be9a3
parent 11579 4ded0610ab25
equal deleted inserted replaced
11653:11763913913e 11654:5db1372be9a3
   309     ## Register a nested module for the namespace Hash
   309     ## Register a nested module for the namespace Hash
   310     
   310     
   311     nested_module = module.add_cpp_namespace('Hash')
   311     nested_module = module.add_cpp_namespace('Hash')
   312     register_types_ns3_Hash(nested_module)
   312     register_types_ns3_Hash(nested_module)
   313     
   313     
       
   314     
       
   315     ## Register a nested module for the namespace TracedValueCallback
       
   316     
       
   317     nested_module = module.add_cpp_namespace('TracedValueCallback')
       
   318     register_types_ns3_TracedValueCallback(nested_module)
       
   319     
   314 
   320 
   315 def register_types_ns3_FatalImpl(module):
   321 def register_types_ns3_FatalImpl(module):
   316     root_module = module.get_root()
   322     root_module = module.get_root()
   317     
   323     
   318 
   324 
   343     module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   349     module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   344     ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class]
   350     ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class]
   345     module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   351     module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   346     ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class]
   352     ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class]
   347     module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
   353     module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation'])
       
   354 
       
   355 def register_types_ns3_TracedValueCallback(module):
       
   356     root_module = module.get_root()
       
   357     
       
   358     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *', u'ns3::TracedValueCallback::Time')
       
   359     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) **', u'ns3::TracedValueCallback::Time*')
       
   360     typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *&', u'ns3::TracedValueCallback::Time&')
   348 
   361 
   349 def register_methods(root_module):
   362 def register_methods(root_module):
   350     register_Ns3Address_methods(root_module, root_module['ns3::Address'])
   363     register_Ns3Address_methods(root_module, root_module['ns3::Address'])
   351     register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList'])
   364     register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList'])
   352     register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item'])
   365     register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item'])
   934                    [], 
   947                    [], 
   935                    is_const=True)
   948                    is_const=True)
   936     ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
   949     ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
   937     cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], 
   950     cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], 
   938                         visibility='protected')
   951                         visibility='protected')
   939     ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
       
   940     cls.add_method('Demangle', 
       
   941                    'std::string', 
       
   942                    [param('std::string const &', 'mangled')], 
       
   943                    is_static=True, visibility='protected')
       
   944     return
   952     return
   945 
   953 
   946 def register_Ns3EventId_methods(root_module, cls):
   954 def register_Ns3EventId_methods(root_module, cls):
   947     cls.add_binary_comparison_operator('!=')
   955     cls.add_binary_comparison_operator('!=')
   948     cls.add_binary_comparison_operator('==')
   956     cls.add_binary_comparison_operator('==')
  1955     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
  1963     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
  1956     cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
  1964     cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
  1957     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
  1965     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
  1958     cls.add_instance_attribute('count', 'uint32_t', is_const=False)
  1966     cls.add_instance_attribute('count', 'uint32_t', is_const=False)
  1959     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
  1967     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
  1960     cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
  1968     cls.add_instance_attribute('data', 'uint8_t [ 21 ]', is_const=False)
  1961     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
  1969     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
  1962     cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
  1970     cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
  1963     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
  1971     ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
  1964     cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
  1972     cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
  1965     return
  1973     return
  4024 def register_Ns3CallbackImplBase_methods(root_module, cls):
  4032 def register_Ns3CallbackImplBase_methods(root_module, cls):
  4025     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
  4033     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
  4026     cls.add_constructor([])
  4034     cls.add_constructor([])
  4027     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
  4035     ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
  4028     cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
  4036     cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
       
  4037     ## callback.h (module 'core'): std::string ns3::CallbackImplBase::GetTypeid() const [member function]
       
  4038     cls.add_method('GetTypeid', 
       
  4039                    'std::string', 
       
  4040                    [], 
       
  4041                    is_pure_virtual=True, is_const=True, is_virtual=True)
  4029     ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
  4042     ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
  4030     cls.add_method('IsEqual', 
  4043     cls.add_method('IsEqual', 
  4031                    'bool', 
  4044                    'bool', 
  4032                    [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], 
  4045                    [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], 
  4033                    is_pure_virtual=True, is_const=True, is_virtual=True)
  4046                    is_pure_virtual=True, is_const=True, is_virtual=True)
       
  4047     ## callback.h (module 'core'): static std::string ns3::CallbackImplBase::Demangle(std::string const & mangled) [member function]
       
  4048     cls.add_method('Demangle', 
       
  4049                    'std::string', 
       
  4050                    [param('std::string const &', 'mangled')], 
       
  4051                    is_static=True, visibility='protected')
  4034     return
  4052     return
  4035 
  4053 
  4036 def register_Ns3CallbackValue_methods(root_module, cls):
  4054 def register_Ns3CallbackValue_methods(root_module, cls):
  4037     ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
  4055     ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
  4038     cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
  4056     cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
  5586 
  5604 
  5587 def register_functions(root_module):
  5605 def register_functions(root_module):
  5588     module = root_module
  5606     module = root_module
  5589     register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
  5607     register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
  5590     register_functions_ns3_Hash(module.get_submodule('Hash'), root_module)
  5608     register_functions_ns3_Hash(module.get_submodule('Hash'), root_module)
       
  5609     register_functions_ns3_TracedValueCallback(module.get_submodule('TracedValueCallback'), root_module)
  5591     return
  5610     return
  5592 
  5611 
  5593 def register_functions_ns3_FatalImpl(module, root_module):
  5612 def register_functions_ns3_FatalImpl(module, root_module):
  5594     return
  5613     return
  5595 
  5614 
  5596 def register_functions_ns3_Hash(module, root_module):
  5615 def register_functions_ns3_Hash(module, root_module):
  5597     register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module)
  5616     register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module)
  5598     return
  5617     return
  5599 
  5618 
  5600 def register_functions_ns3_Hash_Function(module, root_module):
  5619 def register_functions_ns3_Hash_Function(module, root_module):
       
  5620     return
       
  5621 
       
  5622 def register_functions_ns3_TracedValueCallback(module, root_module):
  5601     return
  5623     return
  5602 
  5624 
  5603 def main():
  5625 def main():
  5604     out = FileCodeSink(sys.stdout)
  5626     out = FileCodeSink(sys.stdout)
  5605     root_module = module_init()
  5627     root_module = module_init()