27 module.add_class('Ipv4Interface', parent=root_module['ns3::Object']) |
27 module.add_class('Ipv4Interface', parent=root_module['ns3::Object']) |
28 ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol [class] |
28 ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol [class] |
29 module.add_class('Ipv4L3Protocol', parent=root_module['ns3::Object']) |
29 module.add_class('Ipv4L3Protocol', parent=root_module['ns3::Object']) |
30 ## ipv4-static-routing.h: ns3::Ipv4StaticRouting [class] |
30 ## ipv4-static-routing.h: ns3::Ipv4StaticRouting [class] |
31 module.add_class('Ipv4StaticRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) |
31 module.add_class('Ipv4StaticRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) |
|
32 ## ipv4-global-routing.h: ns3::Ipv4GlobalRouting [class] |
|
33 module.add_class('Ipv4GlobalRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) |
32 |
34 |
33 ## Register a nested module for the namespace Config |
35 ## Register a nested module for the namespace Config |
34 |
36 |
35 nested_module = module.add_cpp_namespace('Config') |
37 nested_module = module.add_cpp_namespace('Config') |
36 register_types_ns3_Config(nested_module) |
38 register_types_ns3_Config(nested_module) |
78 register_Ns3TcpHeader_methods(root_module, root_module['ns3::TcpHeader']) |
80 register_Ns3TcpHeader_methods(root_module, root_module['ns3::TcpHeader']) |
79 register_Ns3UdpHeader_methods(root_module, root_module['ns3::UdpHeader']) |
81 register_Ns3UdpHeader_methods(root_module, root_module['ns3::UdpHeader']) |
80 register_Ns3Ipv4Interface_methods(root_module, root_module['ns3::Ipv4Interface']) |
82 register_Ns3Ipv4Interface_methods(root_module, root_module['ns3::Ipv4Interface']) |
81 register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol']) |
83 register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol']) |
82 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']) |
83 return |
86 return |
84 |
87 |
85 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')]) |
86 ## icmpv4.h: static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function] |
91 ## icmpv4.h: static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function] |
87 cls.add_method('GetTypeId', |
92 cls.add_method('GetTypeId', |
88 'ns3::TypeId', |
93 'ns3::TypeId', |
89 [], |
94 [], |
90 is_static=True) |
95 is_static=True) |
140 ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function] |
145 ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function] |
141 cls.add_method('Print', |
146 cls.add_method('Print', |
142 'void', |
147 'void', |
143 [param('std::ostream &', 'os')], |
148 [param('std::ostream &', 'os')], |
144 is_const=True, visibility='private', is_virtual=True) |
149 is_const=True, visibility='private', is_virtual=True) |
145 cls.add_copy_constructor() |
|
146 return |
150 return |
147 |
151 |
148 def register_Ns3Icmpv4Echo_methods(root_module, cls): |
152 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')]) |
149 ## icmpv4.h: void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function] |
155 ## icmpv4.h: void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function] |
150 cls.add_method('SetIdentifier', |
156 cls.add_method('SetIdentifier', |
151 'void', |
157 'void', |
152 [param('uint16_t', 'id')]) |
158 [param('uint16_t', 'id')]) |
153 ## icmpv4.h: void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function] |
159 ## icmpv4.h: void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function] |
203 ## icmpv4.h: void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function] |
209 ## icmpv4.h: void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function] |
204 cls.add_method('Print', |
210 cls.add_method('Print', |
205 'void', |
211 'void', |
206 [param('std::ostream &', 'os')], |
212 [param('std::ostream &', 'os')], |
207 is_const=True, is_virtual=True) |
213 is_const=True, is_virtual=True) |
208 cls.add_copy_constructor() |
|
209 return |
214 return |
210 |
215 |
211 def register_Ns3Icmpv4Header_methods(root_module, cls): |
216 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')]) |
212 ## icmpv4.h: void ns3::Icmpv4Header::EnableChecksum() [member function] |
219 ## icmpv4.h: void ns3::Icmpv4Header::EnableChecksum() [member function] |
213 cls.add_method('EnableChecksum', |
220 cls.add_method('EnableChecksum', |
214 'void', |
221 'void', |
215 []) |
222 []) |
216 ## icmpv4.h: void ns3::Icmpv4Header::SetType(uint8_t type) [member function] |
223 ## icmpv4.h: void ns3::Icmpv4Header::SetType(uint8_t type) [member function] |
261 ## icmpv4.h: void ns3::Icmpv4Header::Print(std::ostream & os) const [member function] |
268 ## icmpv4.h: void ns3::Icmpv4Header::Print(std::ostream & os) const [member function] |
262 cls.add_method('Print', |
269 cls.add_method('Print', |
263 'void', |
270 'void', |
264 [param('std::ostream &', 'os')], |
271 [param('std::ostream &', 'os')], |
265 is_const=True, is_virtual=True) |
272 is_const=True, is_virtual=True) |
266 cls.add_copy_constructor() |
|
267 return |
273 return |
268 |
274 |
269 def register_Ns3Icmpv4TimeExceeded_methods(root_module, cls): |
275 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')]) |
270 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<const ns3::Packet> data) [member function] |
278 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<const ns3::Packet> data) [member function] |
271 cls.add_method('SetData', |
279 cls.add_method('SetData', |
272 'void', |
280 'void', |
273 [param('ns3::Ptr< ns3::Packet const >', 'data')]) |
281 [param('ns3::Ptr< ns3::Packet const >', 'data')]) |
274 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function] |
282 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function] |
315 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function] |
323 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function] |
316 cls.add_method('Print', |
324 cls.add_method('Print', |
317 'void', |
325 'void', |
318 [param('std::ostream &', 'os')], |
326 [param('std::ostream &', 'os')], |
319 is_const=True, is_virtual=True) |
327 is_const=True, is_virtual=True) |
320 cls.add_copy_constructor() |
|
321 return |
328 return |
322 |
329 |
323 def register_Ns3TcpHeader_methods(root_module, cls): |
330 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')]) |
324 ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor] |
333 ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor] |
325 cls.add_constructor([]) |
334 cls.add_constructor([]) |
326 ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function] |
335 ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function] |
327 cls.add_method('EnableChecksums', |
336 cls.add_method('EnableChecksums', |
328 'void', |
337 'void', |
436 ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function] |
445 ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function] |
437 cls.add_method('IsChecksumOk', |
446 cls.add_method('IsChecksumOk', |
438 'bool', |
447 'bool', |
439 [], |
448 [], |
440 is_const=True) |
449 is_const=True) |
441 cls.add_copy_constructor() |
|
442 return |
450 return |
443 |
451 |
444 def register_Ns3UdpHeader_methods(root_module, cls): |
452 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')]) |
445 ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor] |
455 ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor] |
446 cls.add_constructor([]) |
456 cls.add_constructor([]) |
447 ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function] |
457 ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function] |
448 cls.add_method('EnableChecksums', |
458 cls.add_method('EnableChecksums', |
449 'void', |
459 'void', |
588 ## ipv4-interface.h: void ns3::Ipv4Interface::SendTo(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function] |
599 ## ipv4-interface.h: void ns3::Ipv4Interface::SendTo(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function] |
589 cls.add_method('SendTo', |
600 cls.add_method('SendTo', |
590 'void', |
601 'void', |
591 [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')], |
602 [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')], |
592 is_pure_virtual=True, visibility='private', is_virtual=True) |
603 is_pure_virtual=True, visibility='private', is_virtual=True) |
593 cls.add_copy_constructor() |
|
594 return |
604 return |
595 |
605 |
596 def register_Ns3Ipv4L3Protocol_methods(root_module, cls): |
606 def register_Ns3Ipv4L3Protocol_methods(root_module, cls): |
597 ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable] |
607 ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable] |
598 cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True) |
608 cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True) |
803 [], |
813 [], |
804 visibility='protected', is_virtual=True) |
814 visibility='protected', is_virtual=True) |
805 return |
815 return |
806 |
816 |
807 def register_Ns3Ipv4StaticRouting_methods(root_module, cls): |
817 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')]) |
808 ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor] |
820 ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor] |
809 cls.add_constructor([]) |
821 cls.add_constructor([]) |
810 ## 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] |
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> routeReply) [member function] |
811 cls.add_method('RequestRoute', |
823 cls.add_method('RequestRoute', |
812 'bool', |
824 'bool', |
887 ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::DoDispose() [member function] |
899 ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::DoDispose() [member function] |
888 cls.add_method('DoDispose', |
900 cls.add_method('DoDispose', |
889 'void', |
901 'void', |
890 [], |
902 [], |
891 visibility='protected', is_virtual=True) |
903 visibility='protected', is_virtual=True) |
892 cls.add_copy_constructor() |
904 return |
|
905 |
|
906 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] |
|
910 cls.add_method('GetTypeId', |
|
911 'ns3::TypeId', |
|
912 [], |
|
913 is_static=True) |
|
914 ## ipv4-global-routing.h: ns3::Ipv4GlobalRouting::Ipv4GlobalRouting() [constructor] |
|
915 cls.add_constructor([]) |
|
916 ## ipv4-global-routing.h: bool ns3::Ipv4GlobalRouting::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] |
|
917 cls.add_method('RequestRoute', |
|
918 'bool', |
|
919 [param('uint32_t', 'ifIndex'), param('ns3::Ipv4Header const &', 'ipHeader'), param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Callback< void, bool, ns3::Ipv4Route const &, ns3::Ptr< ns3::Packet >, ns3::Ipv4Header const &, ns3::empty, ns3::empty >', 'routeReply')], |
|
920 is_virtual=True) |
|
921 ## ipv4-global-routing.h: bool ns3::Ipv4GlobalRouting::RequestIfIndex(ns3::Ipv4Address destination, uint32_t & ifIndex) [member function] |
|
922 cls.add_method('RequestIfIndex', |
|
923 'bool', |
|
924 [param('ns3::Ipv4Address', 'destination'), param('uint32_t &', 'ifIndex')], |
|
925 is_virtual=True) |
|
926 ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function] |
|
927 cls.add_method('AddHostRouteTo', |
|
928 'void', |
|
929 [param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')]) |
|
930 ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function] |
|
931 cls.add_method('AddHostRouteTo', |
|
932 'void', |
|
933 [param('ns3::Ipv4Address', 'dest'), param('uint32_t', 'interface')]) |
|
934 ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function] |
|
935 cls.add_method('AddNetworkRouteTo', |
|
936 'void', |
|
937 [param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')]) |
|
938 ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, uint32_t interface) [member function] |
|
939 cls.add_method('AddNetworkRouteTo', |
|
940 'void', |
|
941 [param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('uint32_t', 'interface')]) |
|
942 ## ipv4-global-routing.h: uint32_t ns3::Ipv4GlobalRouting::GetNRoutes() [member function] |
|
943 cls.add_method('GetNRoutes', |
|
944 'uint32_t', |
|
945 []) |
|
946 ## ipv4-global-routing.h: ns3::Ipv4Route * ns3::Ipv4GlobalRouting::GetRoute(uint32_t i) [member function] |
|
947 cls.add_method('GetRoute', |
|
948 'ns3::Ipv4Route *', |
|
949 [param('uint32_t', 'i')]) |
|
950 ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::RemoveRoute(uint32_t i) [member function] |
|
951 cls.add_method('RemoveRoute', |
|
952 'void', |
|
953 [param('uint32_t', 'i')]) |
|
954 ## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::DoDispose() [member function] |
|
955 cls.add_method('DoDispose', |
|
956 'void', |
|
957 [], |
|
958 visibility='protected', is_virtual=True) |
893 return |
959 return |
894 |
960 |
895 def register_functions(root_module): |
961 def register_functions(root_module): |
896 module = root_module |
962 module = root_module |
897 ## internet-stack.h: extern void ns3::AddInternetStack(ns3::Ptr<ns3::Node> node) [free function] |
963 ## internet-stack.h: extern void ns3::AddInternetStack(ns3::Ptr<ns3::Node> node) [free function] |