Make Names API return void not bool, rescan for Python Bindings
This commit is contained in:
@@ -479,34 +479,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]
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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,6 +78,14 @@ def register_Ns3TapBridge_methods(root_module, cls):
|
||||
cls.add_method('Stop',
|
||||
'void',
|
||||
[param('ns3::Time', 'tStop')])
|
||||
## tap-bridge.h: void ns3::TapBridge::SetMode(ns3::TapBridge::Mode mode) [member function]
|
||||
cls.add_method('SetMode',
|
||||
'void',
|
||||
[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::SetName(std::string const name) [member function]
|
||||
cls.add_method('SetName',
|
||||
'void',
|
||||
|
||||
Reference in New Issue
Block a user