From 48d617eb9dba3f0c9a25e2aadad94689ab3c8ea2 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 16 Apr 2009 11:10:27 +0200 Subject: [PATCH] rescan python --- bindings/python/ns3_module_bridge.py | 10 ----- bindings/python/ns3_module_core.py | 44 ++++++++++++++++++++ bindings/python/ns3_module_csma.py | 10 ----- bindings/python/ns3_module_emu.py | 10 ----- bindings/python/ns3_module_node.py | 30 ------------- bindings/python/ns3_module_point_to_point.py | 10 ----- bindings/python/ns3_module_tap_bridge.py | 10 ----- bindings/python/ns3_module_wifi.py | 10 ----- 8 files changed, 44 insertions(+), 90 deletions(-) diff --git a/bindings/python/ns3_module_bridge.py b/bindings/python/ns3_module_bridge.py index 013863812..647193174 100644 --- a/bindings/python/ns3_module_bridge.py +++ b/bindings/python/ns3_module_bridge.py @@ -103,16 +103,6 @@ def register_Ns3BridgeNetDevice_methods(root_module, cls): 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'n')], is_const=True) - ## bridge-net-device.h: void ns3::BridgeNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## bridge-net-device.h: std::string ns3::BridgeNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## bridge-net-device.h: void ns3::BridgeNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff --git a/bindings/python/ns3_module_core.py b/bindings/python/ns3_module_core.py index 82c9a71c1..e108eba13 100644 --- a/bindings/python/ns3_module_core.py +++ b/bindings/python/ns3_module_core.py @@ -115,8 +115,12 @@ def register_types(module): module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker']) ## enum.h: ns3::EnumValue [class] module.add_class('EnumValue', parent=root_module['ns3::AttributeValue']) + ## random-variable.h: ns3::ErlangVariable [class] + module.add_class('ErlangVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::ExponentialVariable [class] module.add_class('ExponentialVariable', parent=root_module['ns3::RandomVariable']) + ## random-variable.h: ns3::GammaVariable [class] + module.add_class('GammaVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::IntEmpiricalVariable [class] module.add_class('IntEmpiricalVariable', parent=root_module['ns3::EmpiricalVariable']) ## integer.h: ns3::IntegerValue [class] @@ -261,7 +265,9 @@ def register_methods(root_module): register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue']) register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker']) register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue']) + register_Ns3ErlangVariable_methods(root_module, root_module['ns3::ErlangVariable']) register_Ns3ExponentialVariable_methods(root_module, root_module['ns3::ExponentialVariable']) + register_Ns3GammaVariable_methods(root_module, root_module['ns3::GammaVariable']) register_Ns3IntEmpiricalVariable_methods(root_module, root_module['ns3::IntEmpiricalVariable']) register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue']) register_Ns3LogNormalVariable_methods(root_module, root_module['ns3::LogNormalVariable']) @@ -1497,6 +1503,25 @@ def register_Ns3EnumValue_methods(root_module, cls): is_virtual=True) return +def register_Ns3ErlangVariable_methods(root_module, cls): + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(unsigned int k, double lambda) [constructor] + cls.add_constructor([param('unsigned int', 'k'), param('double', 'lambda')]) + ## random-variable.h: double ns3::ErlangVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::ErlangVariable::GetValue(unsigned int k, double lambda) const [member function] + cls.add_method('GetValue', + 'double', + [param('unsigned int', 'k'), param('double', 'lambda')], + is_const=True) + return + def register_Ns3ExponentialVariable_methods(root_module, cls): ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')]) @@ -1508,6 +1533,25 @@ def register_Ns3ExponentialVariable_methods(root_module, cls): cls.add_constructor([param('double', 'm'), param('double', 'b')]) return +def register_Ns3GammaVariable_methods(root_module, cls): + ## random-variable.h: ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')]) + ## random-variable.h: ns3::GammaVariable::GammaVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::GammaVariable::GammaVariable(double alpha, double beta) [constructor] + cls.add_constructor([param('double', 'alpha'), param('double', 'beta')]) + ## random-variable.h: double ns3::GammaVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::GammaVariable::GetValue(double alpha, double beta) const [member function] + cls.add_method('GetValue', + 'double', + [param('double', 'alpha'), param('double', 'beta')], + is_const=True) + return + def register_Ns3IntEmpiricalVariable_methods(root_module, cls): ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable(ns3::IntEmpiricalVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::IntEmpiricalVariable const &', 'arg0')]) diff --git a/bindings/python/ns3_module_csma.py b/bindings/python/ns3_module_csma.py index 17494ae9e..d7e8e9b4f 100644 --- a/bindings/python/ns3_module_csma.py +++ b/bindings/python/ns3_module_csma.py @@ -273,16 +273,6 @@ def register_Ns3CsmaNetDevice_methods(root_module, cls): cls.add_method('GetEncapsulationMode', 'ns3::CsmaNetDevice::EncapsulationMode', []) - ## csma-net-device.h: void ns3::CsmaNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## csma-net-device.h: std::string ns3::CsmaNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## csma-net-device.h: void ns3::CsmaNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff --git a/bindings/python/ns3_module_emu.py b/bindings/python/ns3_module_emu.py index 54ffede89..4fa5d12a1 100644 --- a/bindings/python/ns3_module_emu.py +++ b/bindings/python/ns3_module_emu.py @@ -80,16 +80,6 @@ def register_Ns3EmuNetDevice_methods(root_module, cls): cls.add_method('SetAddress', 'void', [param('ns3::Mac48Address', 'addr')]) - ## emu-net-device.h: void ns3::EmuNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## emu-net-device.h: std::string ns3::EmuNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## emu-net-device.h: void ns3::EmuNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff --git a/bindings/python/ns3_module_node.py b/bindings/python/ns3_module_node.py index b214fcda6..d1421012f 100644 --- a/bindings/python/ns3_module_node.py +++ b/bindings/python/ns3_module_node.py @@ -2310,16 +2310,6 @@ def register_Ns3Channel_methods(root_module, cls): is_static=True) ## channel.h: ns3::Channel::Channel() [constructor] cls.add_constructor([]) - ## channel.h: ns3::Channel::Channel(std::string name) [constructor] - cls.add_constructor([param('std::string', 'name')]) - ## channel.h: void ns3::Channel::SetName(std::string arg0) [member function] - cls.add_method('SetName', - 'void', - [param('std::string', 'arg0')]) - ## channel.h: std::string ns3::Channel::GetName() [member function] - cls.add_method('GetName', - 'std::string', - []) ## channel.h: uint32_t ns3::Channel::GetNDevices() const [member function] cls.add_method('GetNDevices', 'uint32_t', @@ -2749,16 +2739,6 @@ def register_Ns3NetDevice_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## net-device.h: void ns3::NetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h: std::string ns3::NetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h: void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', @@ -3015,16 +2995,6 @@ def register_Ns3SimpleNetDevice_methods(root_module, cls): cls.add_method('SetAddress', 'void', [param('ns3::Mac48Address', 'address')]) - ## simple-net-device.h: void ns3::SimpleNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## simple-net-device.h: std::string ns3::SimpleNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## simple-net-device.h: void ns3::SimpleNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff --git a/bindings/python/ns3_module_point_to_point.py b/bindings/python/ns3_module_point_to_point.py index 1541d7d25..2360f1f62 100644 --- a/bindings/python/ns3_module_point_to_point.py +++ b/bindings/python/ns3_module_point_to_point.py @@ -175,16 +175,6 @@ def register_Ns3PointToPointNetDevice_methods(root_module, cls): 'uint16_t', [], is_const=True) - ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## point-to-point-net-device.h: std::string ns3::PointToPointNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff --git a/bindings/python/ns3_module_tap_bridge.py b/bindings/python/ns3_module_tap_bridge.py index 49b6e651f..060f909a6 100644 --- a/bindings/python/ns3_module_tap_bridge.py +++ b/bindings/python/ns3_module_tap_bridge.py @@ -86,16 +86,6 @@ def register_Ns3TapBridge_methods(root_module, cls): cls.add_method('GetMode', 'ns3::TapBridge::Mode', []) - ## tap-bridge.h: void ns3::TapBridge::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## tap-bridge.h: std::string ns3::TapBridge::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## tap-bridge.h: void ns3::TapBridge::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff --git a/bindings/python/ns3_module_wifi.py b/bindings/python/ns3_module_wifi.py index 85394a0a4..f4c2301e5 100644 --- a/bindings/python/ns3_module_wifi.py +++ b/bindings/python/ns3_module_wifi.py @@ -2697,16 +2697,6 @@ def register_Ns3WifiNetDevice_methods(root_module, cls): 'ns3::Ptr< ns3::WifiRemoteStationManager >', [], is_const=True) - ## wifi-net-device.h: void ns3::WifiNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## wifi-net-device.h: std::string ns3::WifiNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## wifi-net-device.h: void ns3::WifiNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void',