bindings/python/ns3_module_point_to_point.py
changeset 3567 728eb3f583b3
parent 3552 b822851cb95d
child 3574 b6804efbe16b
equal deleted inserted replaced
3566:b96af8dc8abf 3567:728eb3f583b3
    52     register_Ns3PointToPointChannel_methods(root_module, root_module['ns3::PointToPointChannel'])
    52     register_Ns3PointToPointChannel_methods(root_module, root_module['ns3::PointToPointChannel'])
    53     register_Ns3PointToPointNetDevice_methods(root_module, root_module['ns3::PointToPointNetDevice'])
    53     register_Ns3PointToPointNetDevice_methods(root_module, root_module['ns3::PointToPointNetDevice'])
    54     return
    54     return
    55 
    55 
    56 def register_Ns3PointToPointChannel_methods(root_module, cls):
    56 def register_Ns3PointToPointChannel_methods(root_module, cls):
       
    57     ## point-to-point-channel.h: ns3::PointToPointChannel::PointToPointChannel(ns3::PointToPointChannel const & arg0) [copy constructor]
       
    58     cls.add_constructor([param('ns3::PointToPointChannel&', 'arg0', is_const=True)])
    57     ## point-to-point-channel.h: static ns3::TypeId ns3::PointToPointChannel::GetTypeId() [member function]
    59     ## point-to-point-channel.h: static ns3::TypeId ns3::PointToPointChannel::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)
    82     ## point-to-point-channel.h: ns3::Ptr<ns3::NetDevice> ns3::PointToPointChannel::GetDevice(uint32_t i) const [member function]
    84     ## point-to-point-channel.h: ns3::Ptr<ns3::NetDevice> ns3::PointToPointChannel::GetDevice(uint32_t i) const [member function]
    83     cls.add_method('GetDevice', 
    85     cls.add_method('GetDevice', 
    84                    'ns3::Ptr< ns3::NetDevice >', 
    86                    'ns3::Ptr< ns3::NetDevice >', 
    85                    [param('uint32_t', 'i')], 
    87                    [param('uint32_t', 'i')], 
    86                    is_const=True, is_virtual=True)
    88                    is_const=True, is_virtual=True)
    87     cls.add_copy_constructor()
       
    88     return
    89     return
    89 
    90 
    90 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
    91 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
       
    92     ## point-to-point-net-device.h: ns3::PointToPointNetDevice::PointToPointNetDevice(ns3::PointToPointNetDevice const & arg0) [copy constructor]
       
    93     cls.add_constructor([param('ns3::PointToPointNetDevice&', 'arg0', is_const=True)])
    91     ## point-to-point-net-device.h: static ns3::TypeId ns3::PointToPointNetDevice::GetTypeId() [member function]
    94     ## point-to-point-net-device.h: static ns3::TypeId ns3::PointToPointNetDevice::GetTypeId() [member function]
    92     cls.add_method('GetTypeId', 
    95     cls.add_method('GetTypeId', 
    93                    'ns3::TypeId', 
    96                    'ns3::TypeId', 
    94                    [], 
    97                    [], 
    95                    is_static=True)
    98                    is_static=True)
   226     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::NeedsArp() const [member function]
   229     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::NeedsArp() const [member function]
   227     cls.add_method('NeedsArp', 
   230     cls.add_method('NeedsArp', 
   228                    'bool', 
   231                    'bool', 
   229                    [], 
   232                    [], 
   230                    is_const=True, is_virtual=True)
   233                    is_const=True, is_virtual=True)
   231     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   234     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   232     cls.add_method('SetReceiveCallback', 
   235     cls.add_method('SetReceiveCallback', 
   233                    'void', 
   236                    'void', 
   234                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr<const ns3::Packet >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'cb')], 
   237                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'cb')], 
   235                    is_virtual=True)
   238                    is_virtual=True)
   236     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
   239     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
   237     cls.add_method('SetPromiscReceiveCallback', 
   240     cls.add_method('SetPromiscReceiveCallback', 
   238                    'void', 
   241                    'void', 
   239                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr<const ns3::Packet >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'cb')], 
   242                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'cb')], 
   240                    is_virtual=True)
   243                    is_virtual=True)
   241     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SupportsPromiscuous() const [member function]
   244     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SupportsPromiscuous() const [member function]
   242     cls.add_method('SupportsPromiscuous', 
   245     cls.add_method('SupportsPromiscuous', 
   243                    'bool', 
   246                    'bool', 
   244                    [], 
   247                    [], 
   246     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   249     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   247     cls.add_method('DoDispose', 
   250     cls.add_method('DoDispose', 
   248                    'void', 
   251                    'void', 
   249                    [], 
   252                    [], 
   250                    visibility='private', is_virtual=True)
   253                    visibility='private', is_virtual=True)
   251     cls.add_copy_constructor()
       
   252     return
   254     return
   253 
   255 
   254 def register_functions(root_module):
   256 def register_functions(root_module):
   255     module = root_module
   257     module = root_module
   256     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   258     register_functions_ns3_internal(module.get_submodule('internal'), root_module)