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