bindings/python/ns3_module_point_to_point.py
changeset 4218 debf1a8a96d3
parent 4073 b7c683c2479e
child 4241 c35796bc0b4b
equal deleted inserted replaced
4084:dd514b5e0bc6 4218:debf1a8a96d3
    55     register_Ns3PointToPointChannel_methods(root_module, root_module['ns3::PointToPointChannel'])
    55     register_Ns3PointToPointChannel_methods(root_module, root_module['ns3::PointToPointChannel'])
    56     register_Ns3PointToPointNetDevice_methods(root_module, root_module['ns3::PointToPointNetDevice'])
    56     register_Ns3PointToPointNetDevice_methods(root_module, root_module['ns3::PointToPointNetDevice'])
    57     return
    57     return
    58 
    58 
    59 def register_Ns3PppHeader_methods(root_module, cls):
    59 def register_Ns3PppHeader_methods(root_module, cls):
    60     ## ppp-header.h: ns3::PppHeader::PppHeader(ns3::PppHeader const & arg0) [copy constructor]
       
    61     cls.add_constructor([param('ns3::PppHeader const &', 'arg0')])
       
    62     ## ppp-header.h: ns3::PppHeader::PppHeader() [constructor]
    60     ## ppp-header.h: ns3::PppHeader::PppHeader() [constructor]
    63     cls.add_constructor([])
    61     cls.add_constructor([])
    64     ## ppp-header.h: static ns3::TypeId ns3::PppHeader::GetTypeId() [member function]
    62     ## ppp-header.h: static ns3::TypeId ns3::PppHeader::GetTypeId() [member function]
    65     cls.add_method('GetTypeId', 
    63     cls.add_method('GetTypeId', 
    66                    'ns3::TypeId', 
    64                    'ns3::TypeId', 
    89     ## ppp-header.h: uint32_t ns3::PppHeader::GetSerializedSize() const [member function]
    87     ## ppp-header.h: uint32_t ns3::PppHeader::GetSerializedSize() const [member function]
    90     cls.add_method('GetSerializedSize', 
    88     cls.add_method('GetSerializedSize', 
    91                    'uint32_t', 
    89                    'uint32_t', 
    92                    [], 
    90                    [], 
    93                    is_const=True, is_virtual=True)
    91                    is_const=True, is_virtual=True)
       
    92     cls.add_copy_constructor()
    94     return
    93     return
    95 
    94 
    96 def register_Ns3PointToPointChannel_methods(root_module, cls):
    95 def register_Ns3PointToPointChannel_methods(root_module, cls):
    97     ## point-to-point-channel.h: ns3::PointToPointChannel::PointToPointChannel(ns3::PointToPointChannel const & arg0) [copy constructor]
       
    98     cls.add_constructor([param('ns3::PointToPointChannel const &', 'arg0')])
       
    99     ## point-to-point-channel.h: static ns3::TypeId ns3::PointToPointChannel::GetTypeId() [member function]
    96     ## point-to-point-channel.h: static ns3::TypeId ns3::PointToPointChannel::GetTypeId() [member function]
   100     cls.add_method('GetTypeId', 
    97     cls.add_method('GetTypeId', 
   101                    'ns3::TypeId', 
    98                    'ns3::TypeId', 
   102                    [], 
    99                    [], 
   103                    is_static=True)
   100                    is_static=True)
   124     ## point-to-point-channel.h: ns3::Ptr<ns3::NetDevice> ns3::PointToPointChannel::GetDevice(uint32_t i) const [member function]
   121     ## point-to-point-channel.h: ns3::Ptr<ns3::NetDevice> ns3::PointToPointChannel::GetDevice(uint32_t i) const [member function]
   125     cls.add_method('GetDevice', 
   122     cls.add_method('GetDevice', 
   126                    'ns3::Ptr< ns3::NetDevice >', 
   123                    'ns3::Ptr< ns3::NetDevice >', 
   127                    [param('uint32_t', 'i')], 
   124                    [param('uint32_t', 'i')], 
   128                    is_const=True, is_virtual=True)
   125                    is_const=True, is_virtual=True)
       
   126     cls.add_copy_constructor()
   129     return
   127     return
   130 
   128 
   131 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
   129 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
   132     ## point-to-point-net-device.h: ns3::PointToPointNetDevice::PointToPointNetDevice(ns3::PointToPointNetDevice const & arg0) [copy constructor]
       
   133     cls.add_constructor([param('ns3::PointToPointNetDevice const &', 'arg0')])
       
   134     ## point-to-point-net-device.h: static ns3::TypeId ns3::PointToPointNetDevice::GetTypeId() [member function]
   130     ## point-to-point-net-device.h: static ns3::TypeId ns3::PointToPointNetDevice::GetTypeId() [member function]
   135     cls.add_method('GetTypeId', 
   131     cls.add_method('GetTypeId', 
   136                    'ns3::TypeId', 
   132                    'ns3::TypeId', 
   137                    [], 
   133                    [], 
   138                    is_static=True)
   134                    is_static=True)
   303     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   299     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   304     cls.add_method('DoDispose', 
   300     cls.add_method('DoDispose', 
   305                    'void', 
   301                    'void', 
   306                    [], 
   302                    [], 
   307                    visibility='private', is_virtual=True)
   303                    visibility='private', is_virtual=True)
       
   304     cls.add_copy_constructor()
   308     return
   305     return
   309 
   306 
   310 def register_functions(root_module):
   307 def register_functions(root_module):
   311     module = root_module
   308     module = root_module
   312     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
   309     register_functions_ns3_Config(module.get_submodule('Config'), root_module)