bindings/python/ns3_module_bridge.py
changeset 3544 3685ab98e4b2
parent 3468 0bb5275704fc
child 3552 b822851cb95d
equal deleted inserted replaced
3543:04315a10b9c1 3544:3685ab98e4b2
   213     ## bridge-net-device.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeNetDevice::GetLearnedState(ns3::Mac48Address source) [member function]
   213     ## bridge-net-device.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeNetDevice::GetLearnedState(ns3::Mac48Address source) [member function]
   214     cls.add_method('GetLearnedState', 
   214     cls.add_method('GetLearnedState', 
   215                    'ns3::Ptr< ns3::NetDevice >', 
   215                    'ns3::Ptr< ns3::NetDevice >', 
   216                    [param('ns3::Mac48Address', 'source')], 
   216                    [param('ns3::Mac48Address', 'source')], 
   217                    visibility='protected')
   217                    visibility='protected')
       
   218     cls.add_copy_constructor()
   218     return
   219     return
   219 
   220 
   220 def register_Ns3BridgeChannel_methods(root_module, cls):
   221 def register_Ns3BridgeChannel_methods(root_module, cls):
   221     ## bridge-channel.h: static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
   222     ## bridge-channel.h: static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
   222     cls.add_method('GetTypeId', 
   223     cls.add_method('GetTypeId', 
   237     ## bridge-channel.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeChannel::GetDevice(uint32_t i) const [member function]
   238     ## bridge-channel.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeChannel::GetDevice(uint32_t i) const [member function]
   238     cls.add_method('GetDevice', 
   239     cls.add_method('GetDevice', 
   239                    'ns3::Ptr< ns3::NetDevice >', 
   240                    'ns3::Ptr< ns3::NetDevice >', 
   240                    [param('uint32_t', 'i')], 
   241                    [param('uint32_t', 'i')], 
   241                    is_const=True, is_virtual=True)
   242                    is_const=True, is_virtual=True)
       
   243     cls.add_copy_constructor()
   242     return
   244     return
   243 
   245 
   244 def register_functions(root_module):
   246 def register_functions(root_module):
   245     module = root_module
   247     module = root_module
   246     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   248     register_functions_ns3_internal(module.get_submodule('internal'), root_module)