bindings/python/ns3_module_internet_stack.py
changeset 3408 2cc40b3e4fa5
child 3416 926ccb845111
equal deleted inserted replaced
3396:0d83aa14b65d 3408:2cc40b3e4fa5
       
     1 from pybindgen import Module, FileCodeSink, write_preamble, param, retval
       
     2 
       
     3 def register_types(module):
       
     4     root_module = module.get_root()
       
     5     
       
     6     ## ipv4-interface.h: ns3::Ipv4Interface [class]
       
     7     module.add_class('Ipv4Interface', allow_subclassing=True, parent=root_module['ns3::Object'])
       
     8     ## udp-header.h: ns3::UdpHeader [class]
       
     9     module.add_class('UdpHeader', allow_subclassing=True, parent=root_module['ns3::Header'])
       
    10     ## tcp-header.h: ns3::TcpHeader [class]
       
    11     module.add_class('TcpHeader', allow_subclassing=True, parent=root_module['ns3::Header'])
       
    12     ## tcp-header.h: ns3::TcpHeader::Flags_t [enumeration]
       
    13     module.add_enum('Flags_t', ['NONE', 'FIN', 'SYN', 'RST', 'PSH', 'ACK', 'URG'], outer_class=root_module['ns3::TcpHeader'])
       
    14     ## ipv4-static-routing.h: ns3::Ipv4StaticRouting [class]
       
    15     module.add_class('Ipv4StaticRouting', allow_subclassing=True, parent=root_module['ns3::Ipv4RoutingProtocol'])
       
    16     ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol [class]
       
    17     module.add_class('Ipv4L3Protocol', allow_subclassing=True, parent=root_module['ns3::Object'])
       
    18     
       
    19     ## Register a nested module for the namespace internal
       
    20     
       
    21     nested_module = module.add_cpp_namespace('internal')
       
    22     register_types_ns3_internal(nested_module)
       
    23     
       
    24     
       
    25     ## Register a nested module for the namespace TimeStepPrecision
       
    26     
       
    27     nested_module = module.add_cpp_namespace('TimeStepPrecision')
       
    28     register_types_ns3_TimeStepPrecision(nested_module)
       
    29     
       
    30     
       
    31     ## Register a nested module for the namespace Config
       
    32     
       
    33     nested_module = module.add_cpp_namespace('Config')
       
    34     register_types_ns3_Config(nested_module)
       
    35     
       
    36     
       
    37     ## Register a nested module for the namespace olsr
       
    38     
       
    39     nested_module = module.add_cpp_namespace('olsr')
       
    40     register_types_ns3_olsr(nested_module)
       
    41     
       
    42 
       
    43 def register_types_ns3_internal(module):
       
    44     root_module = module.get_root()
       
    45     
       
    46 
       
    47 def register_types_ns3_TimeStepPrecision(module):
       
    48     root_module = module.get_root()
       
    49     
       
    50 
       
    51 def register_types_ns3_Config(module):
       
    52     root_module = module.get_root()
       
    53     
       
    54 
       
    55 def register_types_ns3_olsr(module):
       
    56     root_module = module.get_root()
       
    57     
       
    58 
       
    59 def register_methods(root_module):
       
    60     register_Ns3Ipv4Interface_methods(root_module, root_module['ns3::Ipv4Interface'])
       
    61     register_Ns3UdpHeader_methods(root_module, root_module['ns3::UdpHeader'])
       
    62     register_Ns3TcpHeader_methods(root_module, root_module['ns3::TcpHeader'])
       
    63     register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting'])
       
    64     register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol'])
       
    65     return
       
    66 
       
    67 def register_Ns3Ipv4Interface_methods(root_module, cls):
       
    68     ## ipv4-interface.h: static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function]
       
    69     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
    70     ## ipv4-interface.h: ns3::Ipv4Interface::Ipv4Interface() [constructor]
       
    71     cls.add_constructor([], visibility='public')
       
    72     ## ipv4-interface.h: ns3::Ptr<ns3::NetDevice> ns3::Ipv4Interface::GetDevice() const [member function]
       
    73     cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [], is_pure_virtual=True, is_const=True, is_virtual=True)
       
    74     ## ipv4-interface.h: void ns3::Ipv4Interface::SetAddress(ns3::Ipv4Address a) [member function]
       
    75     cls.add_method('SetAddress', 'void', [param('ns3::Ipv4Address', 'a')])
       
    76     ## ipv4-interface.h: void ns3::Ipv4Interface::SetNetworkMask(ns3::Ipv4Mask mask) [member function]
       
    77     cls.add_method('SetNetworkMask', 'void', [param('ns3::Ipv4Mask', 'mask')])
       
    78     ## ipv4-interface.h: ns3::Ipv4Address ns3::Ipv4Interface::GetBroadcast() const [member function]
       
    79     cls.add_method('GetBroadcast', 'ns3::Ipv4Address', [], is_const=True)
       
    80     ## ipv4-interface.h: ns3::Ipv4Mask ns3::Ipv4Interface::GetNetworkMask() const [member function]
       
    81     cls.add_method('GetNetworkMask', 'ns3::Ipv4Mask', [], is_const=True)
       
    82     ## ipv4-interface.h: void ns3::Ipv4Interface::SetMetric(uint16_t metric) [member function]
       
    83     cls.add_method('SetMetric', 'void', [param('uint16_t', 'metric')])
       
    84     ## ipv4-interface.h: uint16_t ns3::Ipv4Interface::GetMetric() const [member function]
       
    85     cls.add_method('GetMetric', 'uint16_t', [], is_const=True)
       
    86     ## ipv4-interface.h: ns3::Ipv4Address ns3::Ipv4Interface::GetAddress() const [member function]
       
    87     cls.add_method('GetAddress', 'ns3::Ipv4Address', [], is_const=True)
       
    88     ## ipv4-interface.h: uint16_t ns3::Ipv4Interface::GetMtu() const [member function]
       
    89     cls.add_method('GetMtu', 'uint16_t', [], is_const=True)
       
    90     ## ipv4-interface.h: bool ns3::Ipv4Interface::IsUp() const [member function]
       
    91     cls.add_method('IsUp', 'bool', [], is_const=True)
       
    92     ## ipv4-interface.h: bool ns3::Ipv4Interface::IsDown() const [member function]
       
    93     cls.add_method('IsDown', 'bool', [], is_const=True)
       
    94     ## ipv4-interface.h: void ns3::Ipv4Interface::SetUp() [member function]
       
    95     cls.add_method('SetUp', 'void', [])
       
    96     ## ipv4-interface.h: void ns3::Ipv4Interface::SetDown() [member function]
       
    97     cls.add_method('SetDown', 'void', [])
       
    98     ## ipv4-interface.h: void ns3::Ipv4Interface::Send(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function]
       
    99     cls.add_method('Send', 'void', [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')])
       
   100     ## ipv4-interface.h: void ns3::Ipv4Interface::DoDispose() [member function]
       
   101     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
       
   102     ## ipv4-interface.h: void ns3::Ipv4Interface::SendTo(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function]
       
   103     cls.add_method('SendTo', 'void', [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')], is_pure_virtual=True, visibility='private', is_virtual=True)
       
   104     return
       
   105 
       
   106 def register_Ns3UdpHeader_methods(root_module, cls):
       
   107     ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor]
       
   108     cls.add_constructor([], visibility='public')
       
   109     ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function]
       
   110     cls.add_method('EnableChecksums', 'void', [])
       
   111     ## udp-header.h: void ns3::UdpHeader::SetDestinationPort(uint16_t port) [member function]
       
   112     cls.add_method('SetDestinationPort', 'void', [param('uint16_t', 'port')])
       
   113     ## udp-header.h: void ns3::UdpHeader::SetSourcePort(uint16_t port) [member function]
       
   114     cls.add_method('SetSourcePort', 'void', [param('uint16_t', 'port')])
       
   115     ## udp-header.h: uint16_t ns3::UdpHeader::GetSourcePort() const [member function]
       
   116     cls.add_method('GetSourcePort', 'uint16_t', [], is_const=True)
       
   117     ## udp-header.h: uint16_t ns3::UdpHeader::GetDestinationPort() const [member function]
       
   118     cls.add_method('GetDestinationPort', 'uint16_t', [], is_const=True)
       
   119     ## udp-header.h: void ns3::UdpHeader::SetPayloadSize(uint16_t size) [member function]
       
   120     cls.add_method('SetPayloadSize', 'void', [param('uint16_t', 'size')])
       
   121     ## udp-header.h: void ns3::UdpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
       
   122     cls.add_method('InitializeChecksum', 'void', [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
       
   123     ## udp-header.h: static ns3::TypeId ns3::UdpHeader::GetTypeId() [member function]
       
   124     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
   125     ## udp-header.h: ns3::TypeId ns3::UdpHeader::GetInstanceTypeId() const [member function]
       
   126     cls.add_method('GetInstanceTypeId', 'ns3::TypeId', [], is_const=True, is_virtual=True)
       
   127     ## udp-header.h: void ns3::UdpHeader::Print(std::ostream & os) const [member function]
       
   128     cls.add_method('Print', 'void', [param('std::ostream&', 'os')], is_const=True, is_virtual=True)
       
   129     ## udp-header.h: uint32_t ns3::UdpHeader::GetSerializedSize() const [member function]
       
   130     cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True, is_virtual=True)
       
   131     ## udp-header.h: void ns3::UdpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
       
   132     cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_const=True, is_virtual=True)
       
   133     ## udp-header.h: uint32_t ns3::UdpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
       
   134     cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_virtual=True)
       
   135     ## udp-header.h: bool ns3::UdpHeader::IsChecksumOk() const [member function]
       
   136     cls.add_method('IsChecksumOk', 'bool', [], is_const=True)
       
   137     return
       
   138 
       
   139 def register_Ns3TcpHeader_methods(root_module, cls):
       
   140     ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor]
       
   141     cls.add_constructor([], visibility='public')
       
   142     ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function]
       
   143     cls.add_method('EnableChecksums', 'void', [])
       
   144     ## tcp-header.h: void ns3::TcpHeader::SetSourcePort(uint16_t port) [member function]
       
   145     cls.add_method('SetSourcePort', 'void', [param('uint16_t', 'port')])
       
   146     ## tcp-header.h: void ns3::TcpHeader::SetDestinationPort(uint16_t port) [member function]
       
   147     cls.add_method('SetDestinationPort', 'void', [param('uint16_t', 'port')])
       
   148     ## tcp-header.h: void ns3::TcpHeader::SetSequenceNumber(SequenceNumber sequenceNumber) [member function]
       
   149     cls.add_method('SetSequenceNumber', 'void', [param('SequenceNumber', 'sequenceNumber')])
       
   150     ## tcp-header.h: void ns3::TcpHeader::SetAckNumber(SequenceNumber ackNumber) [member function]
       
   151     cls.add_method('SetAckNumber', 'void', [param('SequenceNumber', 'ackNumber')])
       
   152     ## tcp-header.h: void ns3::TcpHeader::SetLength(uint8_t length) [member function]
       
   153     cls.add_method('SetLength', 'void', [param('uint8_t', 'length')])
       
   154     ## tcp-header.h: void ns3::TcpHeader::SetFlags(uint8_t flags) [member function]
       
   155     cls.add_method('SetFlags', 'void', [param('uint8_t', 'flags')])
       
   156     ## tcp-header.h: void ns3::TcpHeader::SetWindowSize(uint16_t windowSize) [member function]
       
   157     cls.add_method('SetWindowSize', 'void', [param('uint16_t', 'windowSize')])
       
   158     ## tcp-header.h: void ns3::TcpHeader::SetChecksum(uint16_t checksum) [member function]
       
   159     cls.add_method('SetChecksum', 'void', [param('uint16_t', 'checksum')])
       
   160     ## tcp-header.h: void ns3::TcpHeader::SetUrgentPointer(uint16_t urgentPointer) [member function]
       
   161     cls.add_method('SetUrgentPointer', 'void', [param('uint16_t', 'urgentPointer')])
       
   162     ## tcp-header.h: uint16_t ns3::TcpHeader::GetSourcePort() const [member function]
       
   163     cls.add_method('GetSourcePort', 'uint16_t', [], is_const=True)
       
   164     ## tcp-header.h: uint16_t ns3::TcpHeader::GetDestinationPort() const [member function]
       
   165     cls.add_method('GetDestinationPort', 'uint16_t', [], is_const=True)
       
   166     ## tcp-header.h: SequenceNumber ns3::TcpHeader::GetSequenceNumber() const [member function]
       
   167     cls.add_method('GetSequenceNumber', 'SequenceNumber', [], is_const=True)
       
   168     ## tcp-header.h: SequenceNumber ns3::TcpHeader::GetAckNumber() const [member function]
       
   169     cls.add_method('GetAckNumber', 'SequenceNumber', [], is_const=True)
       
   170     ## tcp-header.h: uint8_t ns3::TcpHeader::GetLength() const [member function]
       
   171     cls.add_method('GetLength', 'uint8_t', [], is_const=True)
       
   172     ## tcp-header.h: uint8_t ns3::TcpHeader::GetFlags() const [member function]
       
   173     cls.add_method('GetFlags', 'uint8_t', [], is_const=True)
       
   174     ## tcp-header.h: uint16_t ns3::TcpHeader::GetWindowSize() const [member function]
       
   175     cls.add_method('GetWindowSize', 'uint16_t', [], is_const=True)
       
   176     ## tcp-header.h: uint16_t ns3::TcpHeader::GetChecksum() const [member function]
       
   177     cls.add_method('GetChecksum', 'uint16_t', [], is_const=True)
       
   178     ## tcp-header.h: uint16_t ns3::TcpHeader::GetUrgentPointer() const [member function]
       
   179     cls.add_method('GetUrgentPointer', 'uint16_t', [], is_const=True)
       
   180     ## tcp-header.h: void ns3::TcpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
       
   181     cls.add_method('InitializeChecksum', 'void', [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
       
   182     ## tcp-header.h: static ns3::TypeId ns3::TcpHeader::GetTypeId() [member function]
       
   183     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
   184     ## tcp-header.h: ns3::TypeId ns3::TcpHeader::GetInstanceTypeId() const [member function]
       
   185     cls.add_method('GetInstanceTypeId', 'ns3::TypeId', [], is_const=True, is_virtual=True)
       
   186     ## tcp-header.h: void ns3::TcpHeader::Print(std::ostream & os) const [member function]
       
   187     cls.add_method('Print', 'void', [param('std::ostream&', 'os')], is_const=True, is_virtual=True)
       
   188     ## tcp-header.h: uint32_t ns3::TcpHeader::GetSerializedSize() const [member function]
       
   189     cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True, is_virtual=True)
       
   190     ## tcp-header.h: void ns3::TcpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
       
   191     cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_const=True, is_virtual=True)
       
   192     ## tcp-header.h: uint32_t ns3::TcpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
       
   193     cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_virtual=True)
       
   194     ## tcp-header.h: void ns3::TcpHeader::SetPayloadSize(uint16_t size) [member function]
       
   195     cls.add_method('SetPayloadSize', 'void', [param('uint16_t', 'size')])
       
   196     ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function]
       
   197     cls.add_method('IsChecksumOk', 'bool', [], is_const=True)
       
   198     return
       
   199 
       
   200 def register_Ns3Ipv4StaticRouting_methods(root_module, cls):
       
   201     ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor]
       
   202     cls.add_constructor([], visibility='public')
       
   203     ## 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> routeReply) [member function]
       
   204     cls.add_method('RequestRoute', 'bool', [param('uint32_t', 'ifIndex'), param('ns3::Ipv4Header&', 'ipHeader', is_const=True), param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Callback< void, bool, const ns3::Ipv4Route&, ns3::Ptr< ns3::Packet >, const ns3::Ipv4Header&, ns3::empty, ns3::empty >', 'routeReply')], is_virtual=True)
       
   205     ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RequestIfIndex(ns3::Ipv4Address destination, uint32_t & ifIndex) [member function]
       
   206     cls.add_method('RequestIfIndex', 'bool', [param('ns3::Ipv4Address', 'destination'), param('uint32_t&', 'ifIndex')], is_virtual=True)
       
   207     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
       
   208     cls.add_method('AddHostRouteTo', 'void', [param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
       
   209     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function]
       
   210     cls.add_method('AddHostRouteTo', 'void', [param('ns3::Ipv4Address', 'dest'), param('uint32_t', 'interface')])
       
   211     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
       
   212     cls.add_method('AddNetworkRouteTo', 'void', [param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
       
   213     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, uint32_t interface) [member function]
       
   214     cls.add_method('AddNetworkRouteTo', 'void', [param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('uint32_t', 'interface')])
       
   215     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::SetDefaultRoute(ns3::Ipv4Address nextHop, uint32_t interface) [member function]
       
   216     cls.add_method('SetDefaultRoute', 'void', [param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
       
   217     ## ipv4-static-routing.h: uint32_t ns3::Ipv4StaticRouting::GetNRoutes() [member function]
       
   218     cls.add_method('GetNRoutes', 'uint32_t', [])
       
   219     ## ipv4-static-routing.h: ns3::Ipv4Route * ns3::Ipv4StaticRouting::GetDefaultRoute() [member function]
       
   220     cls.add_method('GetDefaultRoute', 'ns3::Ipv4Route *', [])
       
   221     ## ipv4-static-routing.h: ns3::Ipv4Route * ns3::Ipv4StaticRouting::GetRoute(uint32_t i) [member function]
       
   222     cls.add_method('GetRoute', 'ns3::Ipv4Route *', [param('uint32_t', 'i')])
       
   223     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::RemoveRoute(uint32_t i) [member function]
       
   224     cls.add_method('RemoveRoute', 'void', [param('uint32_t', 'i')])
       
   225     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::AddMulticastRoute(ns3::Ipv4Address origin, ns3::Ipv4Address group, uint32_t inputInterface, std::vector<unsigned int, std::allocator<unsigned int> > outputInterfaces) [member function]
       
   226     cls.add_method('AddMulticastRoute', 'void', [param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group'), param('uint32_t', 'inputInterface'), param('std::vector< unsigned int, std::allocator< unsigned int > >', 'outputInterfaces')])
       
   227     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::SetDefaultMulticastRoute(uint32_t outputInterface) [member function]
       
   228     cls.add_method('SetDefaultMulticastRoute', 'void', [param('uint32_t', 'outputInterface')])
       
   229     ## ipv4-static-routing.h: uint32_t ns3::Ipv4StaticRouting::GetNMulticastRoutes() const [member function]
       
   230     cls.add_method('GetNMulticastRoutes', 'uint32_t', [], is_const=True)
       
   231     ## ipv4-static-routing.h: ns3::Ipv4MulticastRoute * ns3::Ipv4StaticRouting::GetMulticastRoute(uint32_t i) const [member function]
       
   232     cls.add_method('GetMulticastRoute', 'ns3::Ipv4MulticastRoute *', [param('uint32_t', 'i')], is_const=True)
       
   233     ## ipv4-static-routing.h: ns3::Ipv4MulticastRoute * ns3::Ipv4StaticRouting::GetDefaultMulticastRoute() const [member function]
       
   234     cls.add_method('GetDefaultMulticastRoute', 'ns3::Ipv4MulticastRoute *', [], is_const=True)
       
   235     ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RemoveMulticastRoute(ns3::Ipv4Address origin, ns3::Ipv4Address group, uint32_t inputInterface) [member function]
       
   236     cls.add_method('RemoveMulticastRoute', 'bool', [param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group'), param('uint32_t', 'inputInterface')])
       
   237     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::RemoveMulticastRoute(uint32_t index) [member function]
       
   238     cls.add_method('RemoveMulticastRoute', 'void', [param('uint32_t', 'index')])
       
   239     ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::DoDispose() [member function]
       
   240     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
       
   241     return
       
   242 
       
   243 def register_Ns3Ipv4L3Protocol_methods(root_module, cls):
       
   244     ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable]
       
   245     cls.add_static_attribute('PROT_NUMBER', retval('uint16_t', is_const=True), is_const=True)
       
   246     ## ipv4-l3-protocol.h: static ns3::TypeId ns3::Ipv4L3Protocol::GetTypeId() [member function]
       
   247     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
   248     ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::Ipv4L3Protocol() [constructor]
       
   249     cls.add_constructor([], visibility='public')
       
   250     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
       
   251     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')])
       
   252     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetDefaultTtl(uint8_t ttl) [member function]
       
   253     cls.add_method('SetDefaultTtl', 'void', [param('uint8_t', 'ttl')])
       
   254     ## ipv4-l3-protocol.h: ns3::Ptr<ns3::Ipv4Interface> ns3::Ipv4L3Protocol::FindInterfaceForDevice(ns3::Ptr<const ns3::NetDevice> device) [member function]
       
   255     cls.add_method('FindInterfaceForDevice', 'ns3::Ptr< ns3::Ipv4Interface >', [param('ns3::Ptr< const ns3::NetDevice >', 'device')])
       
   256     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::Receive(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::Packet> p, uint16_t protocol, ns3::Address const & from) [member function]
       
   257     cls.add_method('Receive', 'void', [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet >', 'p'), param('uint16_t', 'protocol'), param('ns3::Address&', 'from', is_const=True)])
       
   258     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
       
   259     cls.add_method('Send', 'void', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
       
   260     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
       
   261     cls.add_method('AddHostRouteTo', 'void', [param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
       
   262     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function]
       
   263     cls.add_method('AddHostRouteTo', 'void', [param('ns3::Ipv4Address', 'dest'), param('uint32_t', 'interface')])
       
   264     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
       
   265     cls.add_method('AddNetworkRouteTo', 'void', [param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
       
   266     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, uint32_t interface) [member function]
       
   267     cls.add_method('AddNetworkRouteTo', 'void', [param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('uint32_t', 'interface')])
       
   268     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetDefaultRoute(ns3::Ipv4Address nextHop, uint32_t interface) [member function]
       
   269     cls.add_method('SetDefaultRoute', 'void', [param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
       
   270     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::Lookup(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> routeReply) [member function]
       
   271     cls.add_method('Lookup', 'void', [param('ns3::Ipv4Header&', 'ipHeader', is_const=True), param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Callback< void, bool, const ns3::Ipv4Route&, ns3::Ptr< ns3::Packet >, const ns3::Ipv4Header&, ns3::empty, ns3::empty >', 'routeReply')])
       
   272     ## ipv4-l3-protocol.h: uint32_t ns3::Ipv4L3Protocol::GetNRoutes() [member function]
       
   273     cls.add_method('GetNRoutes', 'uint32_t', [])
       
   274     ## ipv4-l3-protocol.h: ns3::Ipv4Route * ns3::Ipv4L3Protocol::GetRoute(uint32_t i) [member function]
       
   275     cls.add_method('GetRoute', 'ns3::Ipv4Route *', [param('uint32_t', 'i')])
       
   276     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::RemoveRoute(uint32_t i) [member function]
       
   277     cls.add_method('RemoveRoute', 'void', [param('uint32_t', 'i')])
       
   278     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddMulticastRoute(ns3::Ipv4Address origin, ns3::Ipv4Address group, uint32_t inputInterface, std::vector<unsigned int, std::allocator<unsigned int> > outputInterfaces) [member function]
       
   279     cls.add_method('AddMulticastRoute', 'void', [param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group'), param('uint32_t', 'inputInterface'), param('std::vector< unsigned int, std::allocator< unsigned int > >', 'outputInterfaces')])
       
   280     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetDefaultMulticastRoute(uint32_t onputInterface) [member function]
       
   281     cls.add_method('SetDefaultMulticastRoute', 'void', [param('uint32_t', 'onputInterface')])
       
   282     ## ipv4-l3-protocol.h: uint32_t ns3::Ipv4L3Protocol::GetNMulticastRoutes() const [member function]
       
   283     cls.add_method('GetNMulticastRoutes', 'uint32_t', [], is_const=True)
       
   284     ## ipv4-l3-protocol.h: ns3::Ipv4MulticastRoute * ns3::Ipv4L3Protocol::GetMulticastRoute(uint32_t i) const [member function]
       
   285     cls.add_method('GetMulticastRoute', 'ns3::Ipv4MulticastRoute *', [param('uint32_t', 'i')], is_const=True)
       
   286     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::RemoveMulticastRoute(ns3::Ipv4Address origin, ns3::Ipv4Address group, uint32_t inputInterface) [member function]
       
   287     cls.add_method('RemoveMulticastRoute', 'void', [param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group'), param('uint32_t', 'inputInterface')])
       
   288     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::RemoveMulticastRoute(uint32_t i) [member function]
       
   289     cls.add_method('RemoveMulticastRoute', 'void', [param('uint32_t', 'i')])
       
   290     ## ipv4-l3-protocol.h: uint32_t ns3::Ipv4L3Protocol::AddInterface(ns3::Ptr<ns3::NetDevice> device) [member function]
       
   291     cls.add_method('AddInterface', 'uint32_t', [param('ns3::Ptr< ns3::NetDevice >', 'device')])
       
   292     ## ipv4-l3-protocol.h: ns3::Ptr<ns3::Ipv4Interface> ns3::Ipv4L3Protocol::GetInterface(uint32_t i) const [member function]
       
   293     cls.add_method('GetInterface', 'ns3::Ptr< ns3::Ipv4Interface >', [param('uint32_t', 'i')], is_const=True)
       
   294     ## ipv4-l3-protocol.h: uint32_t ns3::Ipv4L3Protocol::GetNInterfaces() const [member function]
       
   295     cls.add_method('GetNInterfaces', 'uint32_t', [], is_const=True)
       
   296     ## ipv4-l3-protocol.h: uint32_t ns3::Ipv4L3Protocol::FindInterfaceForAddr(ns3::Ipv4Address addr) const [member function]
       
   297     cls.add_method('FindInterfaceForAddr', 'uint32_t', [param('ns3::Ipv4Address', 'addr')], is_const=True)
       
   298     ## ipv4-l3-protocol.h: uint32_t ns3::Ipv4L3Protocol::FindInterfaceForAddr(ns3::Ipv4Address addr, ns3::Ipv4Mask mask) const [member function]
       
   299     cls.add_method('FindInterfaceForAddr', 'uint32_t', [param('ns3::Ipv4Address', 'addr'), param('ns3::Ipv4Mask', 'mask')], is_const=True)
       
   300     ## ipv4-l3-protocol.h: int32_t ns3::Ipv4L3Protocol::FindInterfaceIndexForDevice(ns3::Ptr<ns3::NetDevice> device) const [member function]
       
   301     cls.add_method('FindInterfaceIndexForDevice', 'int32_t', [param('ns3::Ptr< ns3::NetDevice >', 'device')], is_const=True)
       
   302     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::JoinMulticastGroup(ns3::Ipv4Address origin, ns3::Ipv4Address group) [member function]
       
   303     cls.add_method('JoinMulticastGroup', 'void', [param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group')])
       
   304     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::LeaveMulticastGroup(ns3::Ipv4Address origin, ns3::Ipv4Address group) [member function]
       
   305     cls.add_method('LeaveMulticastGroup', 'void', [param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group')])
       
   306     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetAddress(uint32_t i, ns3::Ipv4Address address) [member function]
       
   307     cls.add_method('SetAddress', 'void', [param('uint32_t', 'i'), param('ns3::Ipv4Address', 'address')])
       
   308     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetNetworkMask(uint32_t i, ns3::Ipv4Mask mask) [member function]
       
   309     cls.add_method('SetNetworkMask', 'void', [param('uint32_t', 'i'), param('ns3::Ipv4Mask', 'mask')])
       
   310     ## ipv4-l3-protocol.h: ns3::Ipv4Mask ns3::Ipv4L3Protocol::GetNetworkMask(uint32_t t) const [member function]
       
   311     cls.add_method('GetNetworkMask', 'ns3::Ipv4Mask', [param('uint32_t', 't')], is_const=True)
       
   312     ## ipv4-l3-protocol.h: ns3::Ipv4Address ns3::Ipv4L3Protocol::GetAddress(uint32_t i) const [member function]
       
   313     cls.add_method('GetAddress', 'ns3::Ipv4Address', [param('uint32_t', 'i')], is_const=True)
       
   314     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetMetric(uint32_t i, uint16_t metric) [member function]
       
   315     cls.add_method('SetMetric', 'void', [param('uint32_t', 'i'), param('uint16_t', 'metric')])
       
   316     ## ipv4-l3-protocol.h: uint16_t ns3::Ipv4L3Protocol::GetMetric(uint32_t i) const [member function]
       
   317     cls.add_method('GetMetric', 'uint16_t', [param('uint32_t', 'i')], is_const=True)
       
   318     ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::GetIfIndexForDestination(ns3::Ipv4Address destination, uint32_t & ifIndex) const [member function]
       
   319     cls.add_method('GetIfIndexForDestination', 'bool', [param('ns3::Ipv4Address', 'destination'), param('uint32_t&', 'ifIndex')], is_const=True)
       
   320     ## ipv4-l3-protocol.h: uint16_t ns3::Ipv4L3Protocol::GetMtu(uint32_t i) const [member function]
       
   321     cls.add_method('GetMtu', 'uint16_t', [param('uint32_t', 'i')], is_const=True)
       
   322     ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::IsUp(uint32_t i) const [member function]
       
   323     cls.add_method('IsUp', 'bool', [param('uint32_t', 'i')], is_const=True)
       
   324     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetUp(uint32_t i) [member function]
       
   325     cls.add_method('SetUp', 'void', [param('uint32_t', 'i')])
       
   326     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetDown(uint32_t i) [member function]
       
   327     cls.add_method('SetDown', 'void', [param('uint32_t', 'i')])
       
   328     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int priority) [member function]
       
   329     cls.add_method('AddRoutingProtocol', 'void', [param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int', 'priority')])
       
   330     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::DoDispose() [member function]
       
   331     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
       
   332     return
       
   333 
       
   334 def register_functions(root_module):
       
   335     module = root_module
       
   336     ## internet-stack.h: extern void ns3::AddInternetStack(ns3::Ptr<ns3::Node> node) [free function]
       
   337     module.add_function('AddInternetStack', 'void', [param('ns3::Ptr< ns3::Node >', 'node')])
       
   338     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
       
   339     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
       
   340     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
       
   341     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
       
   342     return
       
   343 
       
   344 def register_functions_ns3_internal(module, root_module):
       
   345     return
       
   346 
       
   347 def register_functions_ns3_TimeStepPrecision(module, root_module):
       
   348     return
       
   349 
       
   350 def register_functions_ns3_Config(module, root_module):
       
   351     return
       
   352 
       
   353 def register_functions_ns3_olsr(module, root_module):
       
   354     return
       
   355