merge
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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'])
|
||||
@@ -479,34 +485,34 @@ def register_Ns3Names_methods(root_module, cls):
|
||||
cls.add_constructor([param('ns3::Names const &', 'arg0')])
|
||||
## names.h: ns3::Names::Names() [constructor]
|
||||
cls.add_constructor([])
|
||||
## names.h: static bool ns3::Names::Add(std::string name, ns3::Ptr<ns3::Object> obj) [member function]
|
||||
## names.h: static void ns3::Names::Add(std::string name, ns3::Ptr<ns3::Object> obj) [member function]
|
||||
cls.add_method('Add',
|
||||
'bool',
|
||||
'void',
|
||||
[param('std::string', 'name'), param('ns3::Ptr< ns3::Object >', 'obj')],
|
||||
is_static=True)
|
||||
## names.h: static bool ns3::Names::Add(std::string path, std::string name, ns3::Ptr<ns3::Object> object) [member function]
|
||||
## names.h: static void ns3::Names::Add(std::string path, std::string name, ns3::Ptr<ns3::Object> object) [member function]
|
||||
cls.add_method('Add',
|
||||
'bool',
|
||||
'void',
|
||||
[param('std::string', 'path'), param('std::string', 'name'), param('ns3::Ptr< ns3::Object >', 'object')],
|
||||
is_static=True)
|
||||
## names.h: static bool ns3::Names::Add(ns3::Ptr<ns3::Object> context, std::string name, ns3::Ptr<ns3::Object> object) [member function]
|
||||
## names.h: static void ns3::Names::Add(ns3::Ptr<ns3::Object> context, std::string name, ns3::Ptr<ns3::Object> object) [member function]
|
||||
cls.add_method('Add',
|
||||
'bool',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Object >', 'context'), param('std::string', 'name'), param('ns3::Ptr< ns3::Object >', 'object')],
|
||||
is_static=True)
|
||||
## names.h: static bool ns3::Names::Rename(std::string oldpath, std::string newname) [member function]
|
||||
## names.h: static void ns3::Names::Rename(std::string oldpath, std::string newname) [member function]
|
||||
cls.add_method('Rename',
|
||||
'bool',
|
||||
'void',
|
||||
[param('std::string', 'oldpath'), param('std::string', 'newname')],
|
||||
is_static=True)
|
||||
## names.h: static bool ns3::Names::Rename(std::string path, std::string oldname, std::string newname) [member function]
|
||||
## names.h: static void ns3::Names::Rename(std::string path, std::string oldname, std::string newname) [member function]
|
||||
cls.add_method('Rename',
|
||||
'bool',
|
||||
'void',
|
||||
[param('std::string', 'path'), param('std::string', 'oldname'), param('std::string', 'newname')],
|
||||
is_static=True)
|
||||
## names.h: static bool ns3::Names::Rename(ns3::Ptr<ns3::Object> context, std::string oldname, std::string newname) [member function]
|
||||
## names.h: static void ns3::Names::Rename(ns3::Ptr<ns3::Object> context, std::string oldname, std::string newname) [member function]
|
||||
cls.add_method('Rename',
|
||||
'bool',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Object >', 'context'), param('std::string', 'oldname'), param('std::string', 'newname')],
|
||||
is_static=True)
|
||||
## names.h: static std::string ns3::Names::FindName(ns3::Ptr<ns3::Object> object) [member function]
|
||||
@@ -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')])
|
||||
@@ -1984,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<unsigned int>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
|
||||
## traced-value.h: void ns3::TracedValue<unsigned int>::Connect(ns3::CallbackBase const & cb, std::string path) [member function]
|
||||
cls.add_method('Connect',
|
||||
'void',
|
||||
[param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
|
||||
@@ -1992,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<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
|
||||
## traced-value.h: void ns3::TracedValue<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::string path) [member function]
|
||||
cls.add_method('Disconnect',
|
||||
'void',
|
||||
[param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
|
||||
@@ -2140,7 +2184,7 @@ def register_functions(root_module):
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
[],
|
||||
template_parameters=['long'])
|
||||
template_parameters=['long long'])
|
||||
## type-name.h: extern std::string ns3::TypeNameGet() [free function]
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
@@ -2160,7 +2204,7 @@ def register_functions(root_module):
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
[],
|
||||
template_parameters=['unsigned long'])
|
||||
template_parameters=['unsigned long long'])
|
||||
## type-name.h: extern std::string ns3::TypeNameGet() [free function]
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -946,6 +946,8 @@ def register_Ns3StaticMulticastRouteHelper_methods(root_module, cls):
|
||||
def register_Ns3TapBridgeHelper_methods(root_module, cls):
|
||||
## tap-bridge-helper.h: ns3::TapBridgeHelper::TapBridgeHelper(ns3::TapBridgeHelper const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TapBridgeHelper const &', 'arg0')])
|
||||
## tap-bridge-helper.h: ns3::TapBridgeHelper::TapBridgeHelper() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tap-bridge-helper.h: ns3::TapBridgeHelper::TapBridgeHelper(ns3::Ipv4Address gateway) [constructor]
|
||||
cls.add_constructor([param('ns3::Ipv4Address', 'gateway')])
|
||||
## tap-bridge-helper.h: void ns3::TapBridgeHelper::SetAttribute(std::string n1, ns3::AttributeValue const & v1) [member function]
|
||||
@@ -968,6 +970,10 @@ def register_Ns3TapBridgeHelper_methods(root_module, cls):
|
||||
cls.add_method('Install',
|
||||
'ns3::Ptr< ns3::NetDevice >',
|
||||
[param('std::string', 'nodeName'), param('std::string', 'ndName')])
|
||||
## tap-bridge-helper.h: ns3::Ptr<ns3::NetDevice> ns3::TapBridgeHelper::Install(ns3::Ptr<ns3::Node> node, ns3::Ptr<ns3::NetDevice> nd, ns3::AttributeValue const & v1) [member function]
|
||||
cls.add_method('Install',
|
||||
'ns3::Ptr< ns3::NetDevice >',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('ns3::AttributeValue const &', 'v1')])
|
||||
return
|
||||
|
||||
def register_Ns3UdpEchoClientHelper_methods(root_module, cls):
|
||||
|
||||
@@ -2311,16 +2311,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',
|
||||
@@ -2750,16 +2740,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',
|
||||
@@ -3016,16 +2996,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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -5,6 +5,8 @@ def register_types(module):
|
||||
|
||||
## tap-bridge.h: ns3::TapBridge [class]
|
||||
module.add_class('TapBridge', parent=root_module['ns3::NetDevice'])
|
||||
## tap-bridge.h: ns3::TapBridge::Mode [enumeration]
|
||||
module.add_enum('Mode', ['ILLEGAL', 'CONFIGURE_LOCAL', 'USE_LOCAL', 'USE_BRIDGE'], outer_class=root_module['ns3::TapBridge'])
|
||||
|
||||
## Register a nested module for the namespace Config
|
||||
|
||||
@@ -76,16 +78,14 @@ def register_Ns3TapBridge_methods(root_module, cls):
|
||||
cls.add_method('Stop',
|
||||
'void',
|
||||
[param('ns3::Time', 'tStop')])
|
||||
## tap-bridge.h: void ns3::TapBridge::SetName(std::string const name) [member function]
|
||||
cls.add_method('SetName',
|
||||
## tap-bridge.h: void ns3::TapBridge::SetMode(ns3::TapBridge::Mode mode) [member function]
|
||||
cls.add_method('SetMode',
|
||||
'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)
|
||||
[param('ns3::TapBridge::Mode', 'mode')])
|
||||
## tap-bridge.h: ns3::TapBridge::Mode ns3::TapBridge::GetMode() [member function]
|
||||
cls.add_method('GetMode',
|
||||
'ns3::TapBridge::Mode',
|
||||
[])
|
||||
## tap-bridge.h: void ns3::TapBridge::SetIfIndex(uint32_t const index) [member function]
|
||||
cls.add_method('SetIfIndex',
|
||||
'void',
|
||||
|
||||
@@ -228,8 +228,8 @@ def register_Ns3InterferenceHelper_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::ErrorRateModel >',
|
||||
[],
|
||||
is_const=True)
|
||||
## interference-helper.h: double ns3::InterferenceHelper::GetNoiseFloorW() const [member function]
|
||||
cls.add_method('GetNoiseFloorW',
|
||||
## interference-helper.h: double ns3::InterferenceHelper::GetNoiseFigure() const [member function]
|
||||
cls.add_method('GetNoiseFigure',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
@@ -237,10 +237,10 @@ def register_Ns3InterferenceHelper_methods(root_module, cls):
|
||||
cls.add_method('SetErrorRateModel',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::ErrorRateModel >', 'rate')])
|
||||
## interference-helper.h: void ns3::InterferenceHelper::SetNoiseFloorW(double noiseFloor) [member function]
|
||||
cls.add_method('SetNoiseFloorW',
|
||||
## interference-helper.h: void ns3::InterferenceHelper::SetNoiseFigure(double value) [member function]
|
||||
cls.add_method('SetNoiseFigure',
|
||||
'void',
|
||||
[param('double', 'noiseFloor')])
|
||||
[param('double', 'value')])
|
||||
return
|
||||
|
||||
def register_Ns3InterferenceHelperSnrPer_methods(root_module, cls):
|
||||
@@ -727,8 +727,8 @@ def register_Ns3AmrrWifiRemoteStation_methods(root_module, cls):
|
||||
def register_Ns3ArfWifiRemoteStation_methods(root_module, cls):
|
||||
## arf-wifi-manager.h: ns3::ArfWifiRemoteStation::ArfWifiRemoteStation(ns3::ArfWifiRemoteStation const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::ArfWifiRemoteStation const &', 'arg0')])
|
||||
## arf-wifi-manager.h: ns3::ArfWifiRemoteStation::ArfWifiRemoteStation(ns3::Ptr<ns3::ArfWifiManager> stations, int minTimerTimeout, int minSuccessThreshold) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::ArfWifiManager >', 'stations'), param('int', 'minTimerTimeout'), param('int', 'minSuccessThreshold')])
|
||||
## arf-wifi-manager.h: ns3::ArfWifiRemoteStation::ArfWifiRemoteStation(ns3::Ptr<ns3::ArfWifiManager> manager) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::ArfWifiManager >', 'manager')])
|
||||
## arf-wifi-manager.h: void ns3::ArfWifiRemoteStation::DoReportRxOk(double rxSnr, ns3::WifiMode txMode) [member function]
|
||||
cls.add_method('DoReportRxOk',
|
||||
'void',
|
||||
@@ -1667,6 +1667,11 @@ def register_Ns3WifiRemoteStationManager_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## wifi-remote-station-manager.h: ns3::WifiMode ns3::WifiRemoteStationManager::GetNonUnicastMode() const [member function]
|
||||
cls.add_method('GetNonUnicastMode',
|
||||
'ns3::WifiMode',
|
||||
[],
|
||||
is_const=True)
|
||||
## wifi-remote-station-manager.h: ns3::WifiRemoteStation * ns3::WifiRemoteStationManager::Lookup(ns3::Mac48Address address) [member function]
|
||||
cls.add_method('Lookup',
|
||||
'ns3::WifiRemoteStation *',
|
||||
@@ -1707,10 +1712,10 @@ def register_Ns3YansWifiPhy_methods(root_module, cls):
|
||||
cls.add_method('SetStandard',
|
||||
'void',
|
||||
[param('ns3::WifiPhyStandard', 'standard')])
|
||||
## yans-wifi-phy.h: void ns3::YansWifiPhy::SetRxNoise(double ratio) [member function]
|
||||
cls.add_method('SetRxNoise',
|
||||
## yans-wifi-phy.h: void ns3::YansWifiPhy::SetRxNoiseFigure(double noiseFigureDb) [member function]
|
||||
cls.add_method('SetRxNoiseFigure',
|
||||
'void',
|
||||
[param('double', 'ratio')])
|
||||
[param('double', 'noiseFigureDb')])
|
||||
## yans-wifi-phy.h: void ns3::YansWifiPhy::SetTxPowerStart(double start) [member function]
|
||||
cls.add_method('SetTxPowerStart',
|
||||
'void',
|
||||
@@ -1751,8 +1756,8 @@ def register_Ns3YansWifiPhy_methods(root_module, cls):
|
||||
cls.add_method('SetMobility',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Object >', 'mobility')])
|
||||
## yans-wifi-phy.h: double ns3::YansWifiPhy::GetRxNoise() const [member function]
|
||||
cls.add_method('GetRxNoise',
|
||||
## yans-wifi-phy.h: double ns3::YansWifiPhy::GetRxNoiseFigure() const [member function]
|
||||
cls.add_method('GetRxNoiseFigure',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
@@ -1900,8 +1905,8 @@ def register_Ns3YansWifiPhy_methods(root_module, cls):
|
||||
def register_Ns3AarfWifiRemoteStation_methods(root_module, cls):
|
||||
## aarf-wifi-manager.h: ns3::AarfWifiRemoteStation::AarfWifiRemoteStation(ns3::AarfWifiRemoteStation const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::AarfWifiRemoteStation const &', 'arg0')])
|
||||
## aarf-wifi-manager.h: ns3::AarfWifiRemoteStation::AarfWifiRemoteStation(ns3::Ptr<ns3::AarfWifiManager> stations, uint32_t minTimerThreshold, uint32_t minSuccessThreshold, double successK, uint32_t maxSuccessThreshold, double timerK) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::AarfWifiManager >', 'stations'), param('uint32_t', 'minTimerThreshold'), param('uint32_t', 'minSuccessThreshold'), param('double', 'successK'), param('uint32_t', 'maxSuccessThreshold'), param('double', 'timerK')])
|
||||
## aarf-wifi-manager.h: ns3::AarfWifiRemoteStation::AarfWifiRemoteStation(ns3::Ptr<ns3::AarfWifiManager> stations) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::AarfWifiManager >', 'stations')])
|
||||
## aarf-wifi-manager.h: void ns3::AarfWifiRemoteStation::ReportRecoveryFailure() [member function]
|
||||
cls.add_method('ReportRecoveryFailure',
|
||||
'void',
|
||||
@@ -1912,6 +1917,11 @@ def register_Ns3AarfWifiRemoteStation_methods(root_module, cls):
|
||||
'void',
|
||||
[],
|
||||
visibility='private', is_virtual=True)
|
||||
## aarf-wifi-manager.h: ns3::Ptr<ns3::WifiRemoteStationManager> ns3::AarfWifiRemoteStation::GetManager() const [member function]
|
||||
cls.add_method('GetManager',
|
||||
'ns3::Ptr< ns3::WifiRemoteStationManager >',
|
||||
[],
|
||||
is_const=True, visibility='private', is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3AdhocWifiMac_methods(root_module, cls):
|
||||
@@ -2697,16 +2707,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',
|
||||
|
||||
@@ -145,6 +145,7 @@ def main():
|
||||
if 'TapBridge' not in enabled_features:
|
||||
for clsname in ['TapBridge', 'TapBridgeHelper']:
|
||||
root_module.classes.remove(root_module['ns3::%s' % clsname])
|
||||
root_module.enums.remove(root_module['ns3::TapBridge::Mode'])
|
||||
|
||||
root_module.generate(out, '_ns3')
|
||||
|
||||
|
||||
0
bindings/python/waf
vendored
Normal file → Executable file
0
bindings/python/waf
vendored
Normal file → Executable file
@@ -273,7 +273,7 @@ class all_ns3_headers_taskgen(TaskGen.task_gen):
|
||||
|
||||
def apply(self):
|
||||
## get all of the ns3 headers
|
||||
ns3_dir_node = Build.bld.path.find_dir("ns3")
|
||||
ns3_dir_node = self.bld.path.find_dir("ns3")
|
||||
all_headers_inputs = []
|
||||
|
||||
for filename in self.to_list(self.source):
|
||||
@@ -284,7 +284,7 @@ class all_ns3_headers_taskgen(TaskGen.task_gen):
|
||||
|
||||
## if self.source was empty, include all ns3 headers in enabled modules
|
||||
if not all_headers_inputs:
|
||||
for ns3headers in Build.bld.all_task_gen:
|
||||
for ns3headers in self.bld.all_task_gen:
|
||||
if type(ns3headers).__name__ == 'ns3header_taskgen': # XXX: find less hackish way to compare
|
||||
## skip headers not part of enabled modules
|
||||
if self.env['NS3_ENABLED_MODULES']:
|
||||
@@ -307,7 +307,7 @@ class all_ns3_headers_taskgen(TaskGen.task_gen):
|
||||
pass
|
||||
|
||||
|
||||
def get_modules_and_headers():
|
||||
def get_modules_and_headers(bld):
|
||||
"""
|
||||
Gets a dict of
|
||||
module_name => ([module_dep1, module_dep2, ...], [module_header1, module_header2, ...])
|
||||
@@ -315,13 +315,13 @@ def get_modules_and_headers():
|
||||
"""
|
||||
|
||||
retval = {}
|
||||
for module in Build.bld.all_task_gen:
|
||||
for module in bld.all_task_gen:
|
||||
if not module.name.startswith('ns3-'):
|
||||
continue
|
||||
module_name = module.name[4:] # strip the ns3- prefix
|
||||
## find the headers object for this module
|
||||
headers = []
|
||||
for ns3headers in Build.bld.all_task_gen:
|
||||
for ns3headers in bld.all_task_gen:
|
||||
if type(ns3headers).__name__ != 'ns3header_taskgen': # XXX: find less hackish way to compare
|
||||
continue
|
||||
if ns3headers.module != module_name:
|
||||
@@ -338,8 +338,9 @@ class python_scan_task(Task.TaskBase):
|
||||
"""
|
||||
after = 'gen_everything_h_task'
|
||||
before = 'cc cxx'
|
||||
def __init__(self, curdirnode, env):
|
||||
super(python_scan_task, self).__init__()
|
||||
def __init__(self, curdirnode, env, bld):
|
||||
self.bld = bld
|
||||
super(python_scan_task, self).__init__(generator=self)
|
||||
self.curdirnode = curdirnode
|
||||
self.env = env
|
||||
|
||||
@@ -356,7 +357,7 @@ class python_scan_task(Task.TaskBase):
|
||||
os.path.join(self.curdirnode.abspath(), 'ns3modulegen_generated.py'), # output file
|
||||
]
|
||||
scan = subprocess.Popen(argv, stdin=subprocess.PIPE)
|
||||
scan.stdin.write(repr(get_modules_and_headers()))
|
||||
scan.stdin.write(repr(get_modules_and_headers(self.bld)))
|
||||
scan.stdin.close()
|
||||
retval = scan.wait()
|
||||
print "Scan finished with exit code", retval
|
||||
@@ -365,7 +366,7 @@ class python_scan_task(Task.TaskBase):
|
||||
# signal stop (we generated files into the source dir and WAF
|
||||
# can't cope with it, so we have to force the user to restart
|
||||
# WAF)
|
||||
Build.bld.generator.stop = 1
|
||||
self.bld.generator.stop = 1
|
||||
return 0
|
||||
|
||||
|
||||
@@ -384,7 +385,7 @@ def build(bld):
|
||||
if Options.options.python_scan:
|
||||
if not env['ENABLE_PYTHON_SCANNING']:
|
||||
raise Utils.WafError("Cannot re-scan python bindings: (py)gccxml not available")
|
||||
python_scan_task(bld.path, env)
|
||||
python_scan_task(bld.path, env, bld)
|
||||
return
|
||||
|
||||
## Get a list of scanned modules; the set of scanned modules
|
||||
@@ -412,7 +413,7 @@ def build(bld):
|
||||
'ns3modulegen.log',
|
||||
]
|
||||
argv = ['NS3_ENABLED_FEATURES=${FEATURES}', '${PYTHON}', '${SRC[0]}', '${TGT[0]}']
|
||||
argv.extend(get_modules_and_headers().iterkeys())
|
||||
argv.extend(get_modules_and_headers(bld).iterkeys())
|
||||
for module in scanned_modules:
|
||||
source.append("ns3_module_%s.py" % module)
|
||||
local = "ns3_module_%s__local.py" % module
|
||||
@@ -429,16 +430,13 @@ def build(bld):
|
||||
if was_enabled:
|
||||
features.append(name)
|
||||
|
||||
bindgen = bld.new_task_gen('command', source=source, target=target,
|
||||
command=argv, variables=dict(FEATURES=(','.join(features))))
|
||||
bindgen = bld.new_task_gen('command', source=source, target=target, command=argv)
|
||||
bindgen.env['FEATURES'] = ','.join(features)
|
||||
bindgen.dep_vars = ['FEATURES']
|
||||
bindgen.before = 'cxx'
|
||||
bindgen.after = 'gen_everything_h_task'
|
||||
bindgen.name = "pybindgen-command"
|
||||
|
||||
## we build python bindings if either we have the tools to
|
||||
## generate them or if the pregenerated source file is already
|
||||
## present in the source dir.
|
||||
if env['ENABLE_PYTHON_BINDINGS'] \
|
||||
or os.path.exists(os.path.join(bld.path.abspath(), 'ns3module.cc')):
|
||||
pymod = bld.new_task_gen('cxx', 'shlib', 'pyext')
|
||||
pymod.source = ['ns3module.cc', 'ns3module_helpers.cc']
|
||||
pymod.includes = '.'
|
||||
|
||||
Reference in New Issue
Block a user