bindings/python/ns3_module_point_to_point.py
changeset 3457 2ff6f05b9467
parent 3408 2cc40b3e4fa5
child 3460 99698bc858e8
equal deleted inserted replaced
3456:7f2d5300ad02 3457:2ff6f05b9467
     2 
     2 
     3 def register_types(module):
     3 def register_types(module):
     4     root_module = module.get_root()
     4     root_module = module.get_root()
     5     
     5     
     6     ## point-to-point-channel.h: ns3::PointToPointChannel [class]
     6     ## point-to-point-channel.h: ns3::PointToPointChannel [class]
     7     module.add_class('PointToPointChannel', allow_subclassing=True, parent=root_module['ns3::Channel'])
     7     module.add_class('PointToPointChannel', parent=root_module['ns3::Channel'])
     8     ## point-to-point-net-device.h: ns3::PointToPointNetDevice [class]
     8     ## point-to-point-net-device.h: ns3::PointToPointNetDevice [class]
     9     module.add_class('PointToPointNetDevice', allow_subclassing=True, parent=root_module['ns3::NetDevice'])
     9     module.add_class('PointToPointNetDevice', parent=root_module['ns3::NetDevice'])
    10     
    10     
    11     ## Register a nested module for the namespace internal
    11     ## Register a nested module for the namespace internal
    12     
    12     
    13     nested_module = module.add_cpp_namespace('internal')
    13     nested_module = module.add_cpp_namespace('internal')
    14     register_types_ns3_internal(nested_module)
    14     register_types_ns3_internal(nested_module)
   121     cls.add_method('MakeMulticastAddress', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_const=True, is_virtual=True)
   121     cls.add_method('MakeMulticastAddress', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_const=True, is_virtual=True)
   122     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsPointToPoint() const [member function]
   122     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsPointToPoint() const [member function]
   123     cls.add_method('IsPointToPoint', 'bool', [], is_const=True, is_virtual=True)
   123     cls.add_method('IsPointToPoint', 'bool', [], is_const=True, is_virtual=True)
   124     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   124     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   125     cls.add_method('Send', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], is_virtual=True)
   125     cls.add_method('Send', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], is_virtual=True)
       
   126     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
       
   127     cls.add_method('SendFrom', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'source', is_const=True), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], is_virtual=True)
   126     ## point-to-point-net-device.h: ns3::Ptr<ns3::Node> ns3::PointToPointNetDevice::GetNode() const [member function]
   128     ## point-to-point-net-device.h: ns3::Ptr<ns3::Node> ns3::PointToPointNetDevice::GetNode() const [member function]
   127     cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_const=True, is_virtual=True)
   129     cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_const=True, is_virtual=True)
   128     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   130     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   129     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_virtual=True)
   131     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_virtual=True)
   130     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::NeedsArp() const [member function]
   132     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::NeedsArp() const [member function]
   131     cls.add_method('NeedsArp', 'bool', [], is_const=True, is_virtual=True)
   133     cls.add_method('NeedsArp', 'bool', [], is_const=True, is_virtual=True)
   132     ## 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]
   134     ## 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::Address const&, ns3::NetDevice::PacketType> cb) [member function]
   133     cls.add_method('SetReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'cb')], is_virtual=True)
   135     cls.add_method('SetReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'cb')], is_virtual=True)
   134     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   136     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   135     cls.add_method('DoDispose', 'void', [], visibility='private', is_virtual=True)
   137     cls.add_method('DoDispose', 'void', [], visibility='private', is_virtual=True)
   136     return
   138     return
   137 
   139 
   138 def register_functions(root_module):
   140 def register_functions(root_module):