bindings/python/ns3_module_bridge.py
changeset 3972 a84f2ab246e6
parent 3951 561a37800333
child 4073 b7c683c2479e
equal deleted inserted replaced
3971:d97b4527ec9b 3972:a84f2ab246e6
    52     register_Ns3BridgeChannel_methods(root_module, root_module['ns3::BridgeChannel'])
    52     register_Ns3BridgeChannel_methods(root_module, root_module['ns3::BridgeChannel'])
    53     register_Ns3BridgeNetDevice_methods(root_module, root_module['ns3::BridgeNetDevice'])
    53     register_Ns3BridgeNetDevice_methods(root_module, root_module['ns3::BridgeNetDevice'])
    54     return
    54     return
    55 
    55 
    56 def register_Ns3BridgeChannel_methods(root_module, cls):
    56 def register_Ns3BridgeChannel_methods(root_module, cls):
       
    57     ## bridge-channel.h: ns3::BridgeChannel::BridgeChannel(ns3::BridgeChannel const & arg0) [copy constructor]
       
    58     cls.add_constructor([param('ns3::BridgeChannel const &', 'arg0')])
    57     ## bridge-channel.h: static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
    59     ## bridge-channel.h: static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
    58     cls.add_method('GetTypeId', 
    60     cls.add_method('GetTypeId', 
    59                    'ns3::TypeId', 
    61                    'ns3::TypeId', 
    60                    [], 
    62                    [], 
    61                    is_static=True)
    63                    is_static=True)
    73     ## bridge-channel.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeChannel::GetDevice(uint32_t i) const [member function]
    75     ## bridge-channel.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeChannel::GetDevice(uint32_t i) const [member function]
    74     cls.add_method('GetDevice', 
    76     cls.add_method('GetDevice', 
    75                    'ns3::Ptr< ns3::NetDevice >', 
    77                    'ns3::Ptr< ns3::NetDevice >', 
    76                    [param('uint32_t', 'i')], 
    78                    [param('uint32_t', 'i')], 
    77                    is_const=True, is_virtual=True)
    79                    is_const=True, is_virtual=True)
    78     cls.add_copy_constructor()
       
    79     return
    80     return
    80 
    81 
    81 def register_Ns3BridgeNetDevice_methods(root_module, cls):
    82 def register_Ns3BridgeNetDevice_methods(root_module, cls):
       
    83     ## bridge-net-device.h: ns3::BridgeNetDevice::BridgeNetDevice(ns3::BridgeNetDevice const & arg0) [copy constructor]
       
    84     cls.add_constructor([param('ns3::BridgeNetDevice const &', 'arg0')])
    82     ## bridge-net-device.h: static ns3::TypeId ns3::BridgeNetDevice::GetTypeId() [member function]
    85     ## bridge-net-device.h: static ns3::TypeId ns3::BridgeNetDevice::GetTypeId() [member function]
    83     cls.add_method('GetTypeId', 
    86     cls.add_method('GetTypeId', 
    84                    'ns3::TypeId', 
    87                    'ns3::TypeId', 
    85                    [], 
    88                    [], 
    86                    is_static=True)
    89                    is_static=True)
   253     ## bridge-net-device.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeNetDevice::GetLearnedState(ns3::Mac48Address source) [member function]
   256     ## bridge-net-device.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeNetDevice::GetLearnedState(ns3::Mac48Address source) [member function]
   254     cls.add_method('GetLearnedState', 
   257     cls.add_method('GetLearnedState', 
   255                    'ns3::Ptr< ns3::NetDevice >', 
   258                    'ns3::Ptr< ns3::NetDevice >', 
   256                    [param('ns3::Mac48Address', 'source')], 
   259                    [param('ns3::Mac48Address', 'source')], 
   257                    visibility='protected')
   260                    visibility='protected')
   258     cls.add_copy_constructor()
       
   259     return
   261     return
   260 
   262 
   261 def register_functions(root_module):
   263 def register_functions(root_module):
   262     module = root_module
   264     module = root_module
   263     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
   265     register_functions_ns3_Config(module.get_submodule('Config'), root_module)