bindings/python/ns3_module_internet_stack.py
changeset 4218 debf1a8a96d3
parent 4073 b7c683c2479e
child 4241 c35796bc0b4b
equal deleted inserted replaced
4084:dd514b5e0bc6 4218:debf1a8a96d3
    84     register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting'])
    84     register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting'])
    85     register_Ns3Ipv4GlobalRouting_methods(root_module, root_module['ns3::Ipv4GlobalRouting'])
    85     register_Ns3Ipv4GlobalRouting_methods(root_module, root_module['ns3::Ipv4GlobalRouting'])
    86     return
    86     return
    87 
    87 
    88 def register_Ns3Icmpv4DestinationUnreachable_methods(root_module, cls):
    88 def register_Ns3Icmpv4DestinationUnreachable_methods(root_module, cls):
    89     ## icmpv4.h: ns3::Icmpv4DestinationUnreachable::Icmpv4DestinationUnreachable(ns3::Icmpv4DestinationUnreachable const & arg0) [copy constructor]
       
    90     cls.add_constructor([param('ns3::Icmpv4DestinationUnreachable const &', 'arg0')])
       
    91     ## icmpv4.h: static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function]
    89     ## icmpv4.h: static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function]
    92     cls.add_method('GetTypeId', 
    90     cls.add_method('GetTypeId', 
    93                    'ns3::TypeId', 
    91                    'ns3::TypeId', 
    94                    [], 
    92                    [], 
    95                    is_static=True)
    93                    is_static=True)
   145     ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function]
   143     ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function]
   146     cls.add_method('Print', 
   144     cls.add_method('Print', 
   147                    'void', 
   145                    'void', 
   148                    [param('std::ostream &', 'os')], 
   146                    [param('std::ostream &', 'os')], 
   149                    is_const=True, visibility='private', is_virtual=True)
   147                    is_const=True, visibility='private', is_virtual=True)
       
   148     cls.add_copy_constructor()
   150     return
   149     return
   151 
   150 
   152 def register_Ns3Icmpv4Echo_methods(root_module, cls):
   151 def register_Ns3Icmpv4Echo_methods(root_module, cls):
   153     ## icmpv4.h: ns3::Icmpv4Echo::Icmpv4Echo(ns3::Icmpv4Echo const & arg0) [copy constructor]
       
   154     cls.add_constructor([param('ns3::Icmpv4Echo const &', 'arg0')])
       
   155     ## icmpv4.h: void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function]
   152     ## icmpv4.h: void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function]
   156     cls.add_method('SetIdentifier', 
   153     cls.add_method('SetIdentifier', 
   157                    'void', 
   154                    'void', 
   158                    [param('uint16_t', 'id')])
   155                    [param('uint16_t', 'id')])
   159     ## icmpv4.h: void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function]
   156     ## icmpv4.h: void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function]
   209     ## icmpv4.h: void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function]
   206     ## icmpv4.h: void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function]
   210     cls.add_method('Print', 
   207     cls.add_method('Print', 
   211                    'void', 
   208                    'void', 
   212                    [param('std::ostream &', 'os')], 
   209                    [param('std::ostream &', 'os')], 
   213                    is_const=True, is_virtual=True)
   210                    is_const=True, is_virtual=True)
       
   211     cls.add_copy_constructor()
   214     return
   212     return
   215 
   213 
   216 def register_Ns3Icmpv4Header_methods(root_module, cls):
   214 def register_Ns3Icmpv4Header_methods(root_module, cls):
   217     ## icmpv4.h: ns3::Icmpv4Header::Icmpv4Header(ns3::Icmpv4Header const & arg0) [copy constructor]
       
   218     cls.add_constructor([param('ns3::Icmpv4Header const &', 'arg0')])
       
   219     ## icmpv4.h: void ns3::Icmpv4Header::EnableChecksum() [member function]
   215     ## icmpv4.h: void ns3::Icmpv4Header::EnableChecksum() [member function]
   220     cls.add_method('EnableChecksum', 
   216     cls.add_method('EnableChecksum', 
   221                    'void', 
   217                    'void', 
   222                    [])
   218                    [])
   223     ## icmpv4.h: void ns3::Icmpv4Header::SetType(uint8_t type) [member function]
   219     ## icmpv4.h: void ns3::Icmpv4Header::SetType(uint8_t type) [member function]
   268     ## icmpv4.h: void ns3::Icmpv4Header::Print(std::ostream & os) const [member function]
   264     ## icmpv4.h: void ns3::Icmpv4Header::Print(std::ostream & os) const [member function]
   269     cls.add_method('Print', 
   265     cls.add_method('Print', 
   270                    'void', 
   266                    'void', 
   271                    [param('std::ostream &', 'os')], 
   267                    [param('std::ostream &', 'os')], 
   272                    is_const=True, is_virtual=True)
   268                    is_const=True, is_virtual=True)
       
   269     cls.add_copy_constructor()
   273     return
   270     return
   274 
   271 
   275 def register_Ns3Icmpv4TimeExceeded_methods(root_module, cls):
   272 def register_Ns3Icmpv4TimeExceeded_methods(root_module, cls):
   276     ## icmpv4.h: ns3::Icmpv4TimeExceeded::Icmpv4TimeExceeded(ns3::Icmpv4TimeExceeded const & arg0) [copy constructor]
       
   277     cls.add_constructor([param('ns3::Icmpv4TimeExceeded const &', 'arg0')])
       
   278     ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<const ns3::Packet> data) [member function]
   273     ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<const ns3::Packet> data) [member function]
   279     cls.add_method('SetData', 
   274     cls.add_method('SetData', 
   280                    'void', 
   275                    'void', 
   281                    [param('ns3::Ptr< ns3::Packet const >', 'data')])
   276                    [param('ns3::Ptr< ns3::Packet const >', 'data')])
   282     ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function]
   277     ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function]
   323     ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function]
   318     ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function]
   324     cls.add_method('Print', 
   319     cls.add_method('Print', 
   325                    'void', 
   320                    'void', 
   326                    [param('std::ostream &', 'os')], 
   321                    [param('std::ostream &', 'os')], 
   327                    is_const=True, is_virtual=True)
   322                    is_const=True, is_virtual=True)
       
   323     cls.add_copy_constructor()
   328     return
   324     return
   329 
   325 
   330 def register_Ns3TcpHeader_methods(root_module, cls):
   326 def register_Ns3TcpHeader_methods(root_module, cls):
   331     ## tcp-header.h: ns3::TcpHeader::TcpHeader(ns3::TcpHeader const & arg0) [copy constructor]
       
   332     cls.add_constructor([param('ns3::TcpHeader const &', 'arg0')])
       
   333     ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor]
   327     ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor]
   334     cls.add_constructor([])
   328     cls.add_constructor([])
   335     ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function]
   329     ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function]
   336     cls.add_method('EnableChecksums', 
   330     cls.add_method('EnableChecksums', 
   337                    'void', 
   331                    'void', 
   445     ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function]
   439     ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function]
   446     cls.add_method('IsChecksumOk', 
   440     cls.add_method('IsChecksumOk', 
   447                    'bool', 
   441                    'bool', 
   448                    [], 
   442                    [], 
   449                    is_const=True)
   443                    is_const=True)
       
   444     cls.add_copy_constructor()
   450     return
   445     return
   451 
   446 
   452 def register_Ns3UdpHeader_methods(root_module, cls):
   447 def register_Ns3UdpHeader_methods(root_module, cls):
   453     ## udp-header.h: ns3::UdpHeader::UdpHeader(ns3::UdpHeader const & arg0) [copy constructor]
       
   454     cls.add_constructor([param('ns3::UdpHeader const &', 'arg0')])
       
   455     ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor]
   448     ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor]
   456     cls.add_constructor([])
   449     cls.add_constructor([])
   457     ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function]
   450     ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function]
   458     cls.add_method('EnableChecksums', 
   451     cls.add_method('EnableChecksums', 
   459                    'void', 
   452                    'void', 
   513     ## udp-header.h: bool ns3::UdpHeader::IsChecksumOk() const [member function]
   506     ## udp-header.h: bool ns3::UdpHeader::IsChecksumOk() const [member function]
   514     cls.add_method('IsChecksumOk', 
   507     cls.add_method('IsChecksumOk', 
   515                    'bool', 
   508                    'bool', 
   516                    [], 
   509                    [], 
   517                    is_const=True)
   510                    is_const=True)
       
   511     cls.add_copy_constructor()
   518     return
   512     return
   519 
   513 
   520 def register_Ns3Ipv4Interface_methods(root_module, cls):
   514 def register_Ns3Ipv4Interface_methods(root_module, cls):
   521     ## ipv4-interface.h: ns3::Ipv4Interface::Ipv4Interface(ns3::Ipv4Interface const & arg0) [copy constructor]
       
   522     cls.add_constructor([param('ns3::Ipv4Interface const &', 'arg0')])
       
   523     ## ipv4-interface.h: static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function]
   515     ## ipv4-interface.h: static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function]
   524     cls.add_method('GetTypeId', 
   516     cls.add_method('GetTypeId', 
   525                    'ns3::TypeId', 
   517                    'ns3::TypeId', 
   526                    [], 
   518                    [], 
   527                    is_static=True)
   519                    is_static=True)
   599     ## ipv4-interface.h: void ns3::Ipv4Interface::SendTo(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function]
   591     ## ipv4-interface.h: void ns3::Ipv4Interface::SendTo(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function]
   600     cls.add_method('SendTo', 
   592     cls.add_method('SendTo', 
   601                    'void', 
   593                    'void', 
   602                    [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')], 
   594                    [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')], 
   603                    is_pure_virtual=True, visibility='private', is_virtual=True)
   595                    is_pure_virtual=True, visibility='private', is_virtual=True)
       
   596     cls.add_copy_constructor()
   604     return
   597     return
   605 
   598 
   606 def register_Ns3Ipv4L3Protocol_methods(root_module, cls):
   599 def register_Ns3Ipv4L3Protocol_methods(root_module, cls):
   607     ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable]
   600     ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable]
   608     cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True)
   601     cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True)
   813                    [], 
   806                    [], 
   814                    visibility='protected', is_virtual=True)
   807                    visibility='protected', is_virtual=True)
   815     return
   808     return
   816 
   809 
   817 def register_Ns3Ipv4StaticRouting_methods(root_module, cls):
   810 def register_Ns3Ipv4StaticRouting_methods(root_module, cls):
   818     ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting(ns3::Ipv4StaticRouting const & arg0) [copy constructor]
       
   819     cls.add_constructor([param('ns3::Ipv4StaticRouting const &', 'arg0')])
       
   820     ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor]
   811     ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor]
   821     cls.add_constructor([])
   812     cls.add_constructor([])
   822     ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RequestRoute(uint32_t ifIndex, ns3::Ipv4Header const & ipHeader, ns3::Ptr<ns3::Packet> packet, ns3::Callback<void,bool,const ns3::Ipv4Route&,ns3::Ptr<ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> routeReply) [member function]
   813     ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RequestRoute(uint32_t ifIndex, ns3::Ipv4Header const & ipHeader, ns3::Ptr<ns3::Packet> packet, ns3::Callback<void,bool,const ns3::Ipv4Route&,ns3::Ptr<ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> routeReply) [member function]
   823     cls.add_method('RequestRoute', 
   814     cls.add_method('RequestRoute', 
   824                    'bool', 
   815                    'bool', 
   899     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::DoDispose() [member function]
   890     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::DoDispose() [member function]
   900     cls.add_method('DoDispose', 
   891     cls.add_method('DoDispose', 
   901                    'void', 
   892                    'void', 
   902                    [], 
   893                    [], 
   903                    visibility='protected', is_virtual=True)
   894                    visibility='protected', is_virtual=True)
       
   895     cls.add_copy_constructor()
   904     return
   896     return
   905 
   897 
   906 def register_Ns3Ipv4GlobalRouting_methods(root_module, cls):
   898 def register_Ns3Ipv4GlobalRouting_methods(root_module, cls):
   907     ## ipv4-global-routing.h: ns3::Ipv4GlobalRouting::Ipv4GlobalRouting(ns3::Ipv4GlobalRouting const & arg0) [copy constructor]
       
   908     cls.add_constructor([param('ns3::Ipv4GlobalRouting const &', 'arg0')])
       
   909     ## ipv4-global-routing.h: static ns3::TypeId ns3::Ipv4GlobalRouting::GetTypeId() [member function]
   899     ## ipv4-global-routing.h: static ns3::TypeId ns3::Ipv4GlobalRouting::GetTypeId() [member function]
   910     cls.add_method('GetTypeId', 
   900     cls.add_method('GetTypeId', 
   911                    'ns3::TypeId', 
   901                    'ns3::TypeId', 
   912                    [], 
   902                    [], 
   913                    is_static=True)
   903                    is_static=True)
   954     ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::DoDispose() [member function]
   944     ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::DoDispose() [member function]
   955     cls.add_method('DoDispose', 
   945     cls.add_method('DoDispose', 
   956                    'void', 
   946                    'void', 
   957                    [], 
   947                    [], 
   958                    visibility='protected', is_virtual=True)
   948                    visibility='protected', is_virtual=True)
       
   949     cls.add_copy_constructor()
   959     return
   950     return
   960 
   951 
   961 def register_functions(root_module):
   952 def register_functions(root_module):
   962     module = root_module
   953     module = root_module
   963     ## internet-stack.h: extern void ns3::AddInternetStack(ns3::Ptr<ns3::Node> node) [free function]
   954     ## internet-stack.h: extern void ns3::AddInternetStack(ns3::Ptr<ns3::Node> node) [free function]