diff --git a/bindings/python/ns3_module_bridge.py b/bindings/python/ns3_module_bridge.py index 20f9620a8..e63db6b91 100644 --- a/bindings/python/ns3_module_bridge.py +++ b/bindings/python/ns3_module_bridge.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_common.py b/bindings/python/ns3_module_common.py index 4d6ede6db..46badd328 100644 --- a/bindings/python/ns3_module_common.py +++ b/bindings/python/ns3_module_common.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_contrib.py b/bindings/python/ns3_module_contrib.py index bc01326b9..f334a7a30 100644 --- a/bindings/python/ns3_module_contrib.py +++ b/bindings/python/ns3_module_contrib.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_core.py b/bindings/python/ns3_module_core.py index a55a03694..f92b4d19a 100644 --- a/bindings/python/ns3_module_core.py +++ b/bindings/python/ns3_module_core.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() @@ -2028,7 +2028,7 @@ def register_Ns3TracedValue__Unsigned_int_methods(root_module, cls): cls.add_method('ConnectWithoutContext', 'void', [param('ns3::CallbackBase const &', 'cb')]) - ## traced-value.h: void ns3::TracedValue::Connect(ns3::CallbackBase const & cb, std::string path) [member function] + ## traced-value.h: void ns3::TracedValue::Connect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] cls.add_method('Connect', 'void', [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) @@ -2036,7 +2036,7 @@ def register_Ns3TracedValue__Unsigned_int_methods(root_module, cls): cls.add_method('DisconnectWithoutContext', 'void', [param('ns3::CallbackBase const &', 'cb')]) - ## traced-value.h: void ns3::TracedValue::Disconnect(ns3::CallbackBase const & cb, std::string path) [member function] + ## traced-value.h: void ns3::TracedValue::Disconnect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] cls.add_method('Disconnect', 'void', [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) @@ -2184,7 +2184,7 @@ def register_functions(root_module): module.add_function('TypeNameGet', 'std::string', [], - template_parameters=['long long']) + template_parameters=['long']) ## type-name.h: extern std::string ns3::TypeNameGet() [free function] module.add_function('TypeNameGet', 'std::string', @@ -2204,7 +2204,7 @@ def register_functions(root_module): module.add_function('TypeNameGet', 'std::string', [], - template_parameters=['unsigned long long']) + template_parameters=['unsigned long']) ## type-name.h: extern std::string ns3::TypeNameGet() [free function] module.add_function('TypeNameGet', 'std::string', diff --git a/bindings/python/ns3_module_csma.py b/bindings/python/ns3_module_csma.py index 08fc60f01..d7e8e9b4f 100644 --- a/bindings/python/ns3_module_csma.py +++ b/bindings/python/ns3_module_csma.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_emu.py b/bindings/python/ns3_module_emu.py index 67f067f94..4fa5d12a1 100644 --- a/bindings/python/ns3_module_emu.py +++ b/bindings/python/ns3_module_emu.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_global_routing.py b/bindings/python/ns3_module_global_routing.py index 9b96b618f..c3e0386d5 100644 --- a/bindings/python/ns3_module_global_routing.py +++ b/bindings/python/ns3_module_global_routing.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_helper.py b/bindings/python/ns3_module_helper.py index d75433a4e..09473b2f9 100644 --- a/bindings/python/ns3_module_helper.py +++ b/bindings/python/ns3_module_helper.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_internet_stack.py b/bindings/python/ns3_module_internet_stack.py index b063c6a38..c29a3992a 100644 --- a/bindings/python/ns3_module_internet_stack.py +++ b/bindings/python/ns3_module_internet_stack.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_mobility.py b/bindings/python/ns3_module_mobility.py index c179a685b..ef884b178 100644 --- a/bindings/python/ns3_module_mobility.py +++ b/bindings/python/ns3_module_mobility.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_node.py b/bindings/python/ns3_module_node.py index 11781e8ca..8fa22046a 100644 --- a/bindings/python/ns3_module_node.py +++ b/bindings/python/ns3_module_node.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_olsr.py b/bindings/python/ns3_module_olsr.py index 6d299606a..a4f946822 100644 --- a/bindings/python/ns3_module_olsr.py +++ b/bindings/python/ns3_module_olsr.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() @@ -91,15 +91,6 @@ def register_types_ns3_olsr(module): module.add_class('TwoHopNeighborTuple') module.add_container('std::vector< ns3::olsr::MessageHeader::Hello::LinkMessage >', 'ns3::olsr::MessageHeader::Hello::LinkMessage', container_type='vector') module.add_container('std::vector< ns3::olsr::MessageHeader::Hna::Association >', 'ns3::olsr::MessageHeader::Hna::Association', container_type='vector') - typehandlers.add_type_alias('std::vector< ns3::olsr::DuplicateTuple, std::allocator< ns3::olsr::DuplicateTuple > >', 'ns3::olsr::DuplicateSet') - typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >', 'ns3::olsr::MprSet') - typehandlers.add_type_alias('std::vector< ns3::olsr::MprSelectorTuple, std::allocator< ns3::olsr::MprSelectorTuple > >', 'ns3::olsr::MprSelectorSet') - typehandlers.add_type_alias('std::vector< ns3::olsr::MessageHeader, std::allocator< ns3::olsr::MessageHeader > >', 'ns3::olsr::MessageList') - typehandlers.add_type_alias('std::vector< ns3::olsr::IfaceAssocTuple, std::allocator< ns3::olsr::IfaceAssocTuple > >', 'ns3::olsr::IfaceAssocSet') - typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >', 'ns3::olsr::NeighborSet') - typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >', 'ns3::olsr::TwoHopNeighborSet') - typehandlers.add_type_alias('std::vector< ns3::olsr::TopologyTuple, std::allocator< ns3::olsr::TopologyTuple > >', 'ns3::olsr::TopologySet') - typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >', 'ns3::olsr::LinkSet') def register_methods(root_module): register_Ns3OlsrState_methods(root_module, root_module['ns3::OlsrState']) diff --git a/bindings/python/ns3_module_onoff.py b/bindings/python/ns3_module_onoff.py index 1de43a429..2d253ec6d 100644 --- a/bindings/python/ns3_module_onoff.py +++ b/bindings/python/ns3_module_onoff.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_packet_sink.py b/bindings/python/ns3_module_packet_sink.py index ce901e7a9..8478d79c4 100644 --- a/bindings/python/ns3_module_packet_sink.py +++ b/bindings/python/ns3_module_packet_sink.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_point_to_point.py b/bindings/python/ns3_module_point_to_point.py index 14abbe961..2360f1f62 100644 --- a/bindings/python/ns3_module_point_to_point.py +++ b/bindings/python/ns3_module_point_to_point.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_simulator.py b/bindings/python/ns3_module_simulator.py index 1147dfa79..b2271d232 100644 --- a/bindings/python/ns3_module_simulator.py +++ b/bindings/python/ns3_module_simulator.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() @@ -61,10 +61,6 @@ def register_types(module): module.add_class('RealtimeSimulatorImpl', parent=root_module['ns3::SimulatorImpl']) ## realtime-simulator-impl.h: ns3::RealtimeSimulatorImpl::SynchronizationMode [enumeration] module.add_enum('SynchronizationMode', ['SYNC_BEST_EFFORT', 'SYNC_HARD_LIMIT'], outer_class=root_module['ns3::RealtimeSimulatorImpl']) - typehandlers.add_type_alias('ns3::TimeUnit< 2 >', 'ns3::TimeSquare') - typehandlers.add_type_alias('ns3::TimeUnit< - 1 >', 'ns3::TimeInvert') - typehandlers.add_type_alias('ns3::TimeUnit< 0 >', 'ns3::Scalar') - typehandlers.add_type_alias('ns3::TimeUnit< 1 >', 'ns3::Time') ## Register a nested module for the namespace Config diff --git a/bindings/python/ns3_module_stats.py b/bindings/python/ns3_module_stats.py index d37a6b328..59532ca76 100644 --- a/bindings/python/ns3_module_stats.py +++ b/bindings/python/ns3_module_stats.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() @@ -25,8 +25,6 @@ def register_types(module): module.add_class('CounterCalculator', template_parameters=['unsigned int'], parent=root_module['ns3::DataCalculator']) ## packet-data-calculators.h: ns3::PacketCounterCalculator [class] module.add_class('PacketCounterCalculator', parent=root_module['ns3::CounterCalculator< unsigned int >']) - typehandlers.add_type_alias('std::list< ns3::Ptr< ns3::DataCalculator >, std::allocator< ns3::Ptr< ns3::DataCalculator > > >', 'ns3::DataCalculatorList') - typehandlers.add_type_alias('std::list< std::pair< std::string, std::string >, std::allocator< std::pair< std::string, std::string > > >', 'ns3::MetadataList') ## Register a nested module for the namespace Config diff --git a/bindings/python/ns3_module_tap_bridge.py b/bindings/python/ns3_module_tap_bridge.py index 85cb35479..ba5310e25 100644 --- a/bindings/python/ns3_module_tap_bridge.py +++ b/bindings/python/ns3_module_tap_bridge.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_udp_echo.py b/bindings/python/ns3_module_udp_echo.py index 054694d98..dae92a56e 100644 --- a/bindings/python/ns3_module_udp_echo.py +++ b/bindings/python/ns3_module_udp_echo.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_v4ping.py b/bindings/python/ns3_module_v4ping.py index 3959bc0ee..ec2bc2357 100644 --- a/bindings/python/ns3_module_v4ping.py +++ b/bindings/python/ns3_module_v4ping.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() diff --git a/bindings/python/ns3_module_wifi.py b/bindings/python/ns3_module_wifi.py index 432c47665..e13cc31ea 100644 --- a/bindings/python/ns3_module_wifi.py +++ b/bindings/python/ns3_module_wifi.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass def register_types(module): root_module = module.get_root() @@ -135,7 +135,6 @@ def register_types(module): module.add_class('YansWifiChannel', parent=root_module['ns3::WifiChannel']) ## aarf-wifi-manager.h: ns3::AarfWifiManager [class] module.add_class('AarfWifiManager', parent=root_module['ns3::ArfWifiManager']) - typehandlers.add_type_alias('std::vector< ns3::ThresholdsItem, std::allocator< ns3::ThresholdsItem > >', 'ns3::Thresholds') ## Register a nested module for the namespace Config diff --git a/bindings/python/ns3modulegen_generated.py b/bindings/python/ns3modulegen_generated.py index 4a898b5d9..694befa0b 100644 --- a/bindings/python/ns3modulegen_generated.py +++ b/bindings/python/ns3modulegen_generated.py @@ -1,4 +1,4 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers +from pybindgen import Module, FileCodeSink, param, retval, cppclass import pybindgen.settings