bindings/python/ns3_module_point_to_point.py
changeset 3574 b6804efbe16b
parent 3567 728eb3f583b3
child 3584 4eb48239b4dc
equal deleted inserted replaced
3573:352cfe96e593 3574:b6804efbe16b
    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]
    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)])
    58     cls.add_constructor([param('ns3::PointToPointChannel const &', 'arg0')])
    59     ## 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]
    60     cls.add_method('GetTypeId', 
    60     cls.add_method('GetTypeId', 
    61                    'ns3::TypeId', 
    61                    'ns3::TypeId', 
    62                    [], 
    62                    [], 
    63                    is_static=True)
    63                    is_static=True)
    88                    is_const=True, is_virtual=True)
    88                    is_const=True, is_virtual=True)
    89     return
    89     return
    90 
    90 
    91 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]
    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)])
    93     cls.add_constructor([param('ns3::PointToPointNetDevice const &', 'arg0')])
    94     ## 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]
    95     cls.add_method('GetTypeId', 
    95     cls.add_method('GetTypeId', 
    96                    'ns3::TypeId', 
    96                    'ns3::TypeId', 
    97                    [], 
    97                    [], 
    98                    is_static=True)
    98                    is_static=True)
   127                    'void', 
   127                    'void', 
   128                    [param('ns3::Mac48Address', 'addr')])
   128                    [param('ns3::Mac48Address', 'addr')])
   129     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetName(std::string const name) [member function]
   129     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetName(std::string const name) [member function]
   130     cls.add_method('SetName', 
   130     cls.add_method('SetName', 
   131                    'void', 
   131                    'void', 
   132                    [param('std::string', 'name', is_const=True)], 
   132                    [param('std::string const', 'name')], 
   133                    is_virtual=True)
   133                    is_virtual=True)
   134     ## point-to-point-net-device.h: std::string ns3::PointToPointNetDevice::GetName() const [member function]
   134     ## point-to-point-net-device.h: std::string ns3::PointToPointNetDevice::GetName() const [member function]
   135     cls.add_method('GetName', 
   135     cls.add_method('GetName', 
   136                    'std::string', 
   136                    'std::string', 
   137                    [], 
   137                    [], 
   138                    is_const=True, is_virtual=True)
   138                    is_const=True, is_virtual=True)
   139     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetIfIndex(uint32_t const index) [member function]
   139     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetIfIndex(uint32_t const index) [member function]
   140     cls.add_method('SetIfIndex', 
   140     cls.add_method('SetIfIndex', 
   141                    'void', 
   141                    'void', 
   142                    [param('uint32_t', 'index', is_const=True)], 
   142                    [param('uint32_t const', 'index')], 
   143                    is_virtual=True)
   143                    is_virtual=True)
   144     ## point-to-point-net-device.h: uint32_t ns3::PointToPointNetDevice::GetIfIndex() const [member function]
   144     ## point-to-point-net-device.h: uint32_t ns3::PointToPointNetDevice::GetIfIndex() const [member function]
   145     cls.add_method('GetIfIndex', 
   145     cls.add_method('GetIfIndex', 
   146                    'uint32_t', 
   146                    'uint32_t', 
   147                    [], 
   147                    [], 
   157                    [], 
   157                    [], 
   158                    is_const=True, is_virtual=True)
   158                    is_const=True, is_virtual=True)
   159     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SetMtu(uint16_t const mtu) [member function]
   159     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SetMtu(uint16_t const mtu) [member function]
   160     cls.add_method('SetMtu', 
   160     cls.add_method('SetMtu', 
   161                    'bool', 
   161                    'bool', 
   162                    [param('uint16_t', 'mtu', is_const=True)], 
   162                    [param('uint16_t const', 'mtu')], 
   163                    is_virtual=True)
   163                    is_virtual=True)
   164     ## point-to-point-net-device.h: uint16_t ns3::PointToPointNetDevice::GetMtu() const [member function]
   164     ## point-to-point-net-device.h: uint16_t ns3::PointToPointNetDevice::GetMtu() const [member function]
   165     cls.add_method('GetMtu', 
   165     cls.add_method('GetMtu', 
   166                    'uint16_t', 
   166                    'uint16_t', 
   167                    [], 
   167                    [], 
   207                    [], 
   207                    [], 
   208                    is_const=True, is_virtual=True)
   208                    is_const=True, is_virtual=True)
   209     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   209     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   210     cls.add_method('Send', 
   210     cls.add_method('Send', 
   211                    'bool', 
   211                    'bool', 
   212                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], 
   212                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   213                    is_virtual=True)
   213                    is_virtual=True)
   214     ## 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]
   214     ## 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]
   215     cls.add_method('SendFrom', 
   215     cls.add_method('SendFrom', 
   216                    'bool', 
   216                    'bool', 
   217                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'source', is_const=True), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], 
   217                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   218                    is_virtual=True)
   218                    is_virtual=True)
   219     ## point-to-point-net-device.h: ns3::Ptr<ns3::Node> ns3::PointToPointNetDevice::GetNode() const [member function]
   219     ## point-to-point-net-device.h: ns3::Ptr<ns3::Node> ns3::PointToPointNetDevice::GetNode() const [member function]
   220     cls.add_method('GetNode', 
   220     cls.add_method('GetNode', 
   221                    'ns3::Ptr< ns3::Node >', 
   221                    'ns3::Ptr< ns3::Node >', 
   222                    [], 
   222                    [],