changeset 3951 | 561a37800333 |
parent 3855 | 7fdcbeea6c4f |
child 3972 | a84f2ab246e6 |
3950:3d1e71561636 | 3951:561a37800333 |
---|---|
81 register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol']) |
81 register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol']) |
82 register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting']) |
82 register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting']) |
83 return |
83 return |
84 |
84 |
85 def register_Ns3Icmpv4DestinationUnreachable_methods(root_module, cls): |
85 def register_Ns3Icmpv4DestinationUnreachable_methods(root_module, cls): |
86 ## icmpv4.h: ns3::Icmpv4DestinationUnreachable::Icmpv4DestinationUnreachable(ns3::Icmpv4DestinationUnreachable const & arg0) [copy constructor] |
|
87 cls.add_constructor([param('ns3::Icmpv4DestinationUnreachable const &', 'arg0')]) |
|
88 ## icmpv4.h: static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function] |
86 ## icmpv4.h: static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function] |
89 cls.add_method('GetTypeId', |
87 cls.add_method('GetTypeId', |
90 'ns3::TypeId', |
88 'ns3::TypeId', |
91 [], |
89 [], |
92 is_static=True) |
90 is_static=True) |
142 ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function] |
140 ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function] |
143 cls.add_method('Print', |
141 cls.add_method('Print', |
144 'void', |
142 'void', |
145 [param('std::ostream &', 'os')], |
143 [param('std::ostream &', 'os')], |
146 is_const=True, visibility='private', is_virtual=True) |
144 is_const=True, visibility='private', is_virtual=True) |
145 cls.add_copy_constructor() |
|
147 return |
146 return |
148 |
147 |
149 def register_Ns3Icmpv4Echo_methods(root_module, cls): |
148 def register_Ns3Icmpv4Echo_methods(root_module, cls): |
150 ## icmpv4.h: ns3::Icmpv4Echo::Icmpv4Echo(ns3::Icmpv4Echo const & arg0) [copy constructor] |
|
151 cls.add_constructor([param('ns3::Icmpv4Echo const &', 'arg0')]) |
|
152 ## icmpv4.h: void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function] |
149 ## icmpv4.h: void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function] |
153 cls.add_method('SetIdentifier', |
150 cls.add_method('SetIdentifier', |
154 'void', |
151 'void', |
155 [param('uint16_t', 'id')]) |
152 [param('uint16_t', 'id')]) |
156 ## icmpv4.h: void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function] |
153 ## icmpv4.h: void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function] |
206 ## icmpv4.h: void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function] |
203 ## icmpv4.h: void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function] |
207 cls.add_method('Print', |
204 cls.add_method('Print', |
208 'void', |
205 'void', |
209 [param('std::ostream &', 'os')], |
206 [param('std::ostream &', 'os')], |
210 is_const=True, is_virtual=True) |
207 is_const=True, is_virtual=True) |
208 cls.add_copy_constructor() |
|
211 return |
209 return |
212 |
210 |
213 def register_Ns3Icmpv4Header_methods(root_module, cls): |
211 def register_Ns3Icmpv4Header_methods(root_module, cls): |
214 ## icmpv4.h: ns3::Icmpv4Header::Icmpv4Header(ns3::Icmpv4Header const & arg0) [copy constructor] |
|
215 cls.add_constructor([param('ns3::Icmpv4Header const &', 'arg0')]) |
|
216 ## icmpv4.h: void ns3::Icmpv4Header::EnableChecksum() [member function] |
212 ## icmpv4.h: void ns3::Icmpv4Header::EnableChecksum() [member function] |
217 cls.add_method('EnableChecksum', |
213 cls.add_method('EnableChecksum', |
218 'void', |
214 'void', |
219 []) |
215 []) |
220 ## icmpv4.h: void ns3::Icmpv4Header::SetType(uint8_t type) [member function] |
216 ## icmpv4.h: void ns3::Icmpv4Header::SetType(uint8_t type) [member function] |
265 ## icmpv4.h: void ns3::Icmpv4Header::Print(std::ostream & os) const [member function] |
261 ## icmpv4.h: void ns3::Icmpv4Header::Print(std::ostream & os) const [member function] |
266 cls.add_method('Print', |
262 cls.add_method('Print', |
267 'void', |
263 'void', |
268 [param('std::ostream &', 'os')], |
264 [param('std::ostream &', 'os')], |
269 is_const=True, is_virtual=True) |
265 is_const=True, is_virtual=True) |
266 cls.add_copy_constructor() |
|
270 return |
267 return |
271 |
268 |
272 def register_Ns3Icmpv4TimeExceeded_methods(root_module, cls): |
269 def register_Ns3Icmpv4TimeExceeded_methods(root_module, cls): |
273 ## icmpv4.h: ns3::Icmpv4TimeExceeded::Icmpv4TimeExceeded(ns3::Icmpv4TimeExceeded const & arg0) [copy constructor] |
|
274 cls.add_constructor([param('ns3::Icmpv4TimeExceeded const &', 'arg0')]) |
|
275 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<const ns3::Packet> data) [member function] |
270 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<const ns3::Packet> data) [member function] |
276 cls.add_method('SetData', |
271 cls.add_method('SetData', |
277 'void', |
272 'void', |
278 [param('ns3::Ptr< ns3::Packet const >', 'data')]) |
273 [param('ns3::Ptr< ns3::Packet const >', 'data')]) |
279 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function] |
274 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function] |
320 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function] |
315 ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function] |
321 cls.add_method('Print', |
316 cls.add_method('Print', |
322 'void', |
317 'void', |
323 [param('std::ostream &', 'os')], |
318 [param('std::ostream &', 'os')], |
324 is_const=True, is_virtual=True) |
319 is_const=True, is_virtual=True) |
320 cls.add_copy_constructor() |
|
325 return |
321 return |
326 |
322 |
327 def register_Ns3TcpHeader_methods(root_module, cls): |
323 def register_Ns3TcpHeader_methods(root_module, cls): |
328 ## tcp-header.h: ns3::TcpHeader::TcpHeader(ns3::TcpHeader const & arg0) [copy constructor] |
|
329 cls.add_constructor([param('ns3::TcpHeader const &', 'arg0')]) |
|
330 ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor] |
324 ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor] |
331 cls.add_constructor([]) |
325 cls.add_constructor([]) |
332 ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function] |
326 ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function] |
333 cls.add_method('EnableChecksums', |
327 cls.add_method('EnableChecksums', |
334 'void', |
328 'void', |
442 ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function] |
436 ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function] |
443 cls.add_method('IsChecksumOk', |
437 cls.add_method('IsChecksumOk', |
444 'bool', |
438 'bool', |
445 [], |
439 [], |
446 is_const=True) |
440 is_const=True) |
441 cls.add_copy_constructor() |
|
447 return |
442 return |
448 |
443 |
449 def register_Ns3UdpHeader_methods(root_module, cls): |
444 def register_Ns3UdpHeader_methods(root_module, cls): |
450 ## udp-header.h: ns3::UdpHeader::UdpHeader(ns3::UdpHeader const & arg0) [copy constructor] |
|
451 cls.add_constructor([param('ns3::UdpHeader const &', 'arg0')]) |
|
452 ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor] |
445 ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor] |
453 cls.add_constructor([]) |
446 cls.add_constructor([]) |
454 ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function] |
447 ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function] |
455 cls.add_method('EnableChecksums', |
448 cls.add_method('EnableChecksums', |
456 'void', |
449 'void', |
510 ## udp-header.h: bool ns3::UdpHeader::IsChecksumOk() const [member function] |
503 ## udp-header.h: bool ns3::UdpHeader::IsChecksumOk() const [member function] |
511 cls.add_method('IsChecksumOk', |
504 cls.add_method('IsChecksumOk', |
512 'bool', |
505 'bool', |
513 [], |
506 [], |
514 is_const=True) |
507 is_const=True) |
508 cls.add_copy_constructor() |
|
515 return |
509 return |
516 |
510 |
517 def register_Ns3Ipv4Interface_methods(root_module, cls): |
511 def register_Ns3Ipv4Interface_methods(root_module, cls): |
518 ## ipv4-interface.h: ns3::Ipv4Interface::Ipv4Interface(ns3::Ipv4Interface const & arg0) [copy constructor] |
|
519 cls.add_constructor([param('ns3::Ipv4Interface const &', 'arg0')]) |
|
520 ## ipv4-interface.h: static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function] |
512 ## ipv4-interface.h: static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function] |
521 cls.add_method('GetTypeId', |
513 cls.add_method('GetTypeId', |
522 'ns3::TypeId', |
514 'ns3::TypeId', |
523 [], |
515 [], |
524 is_static=True) |
516 is_static=True) |
596 ## ipv4-interface.h: void ns3::Ipv4Interface::SendTo(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function] |
588 ## ipv4-interface.h: void ns3::Ipv4Interface::SendTo(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function] |
597 cls.add_method('SendTo', |
589 cls.add_method('SendTo', |
598 'void', |
590 'void', |
599 [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')], |
591 [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')], |
600 is_pure_virtual=True, visibility='private', is_virtual=True) |
592 is_pure_virtual=True, visibility='private', is_virtual=True) |
593 cls.add_copy_constructor() |
|
601 return |
594 return |
602 |
595 |
603 def register_Ns3Ipv4L3Protocol_methods(root_module, cls): |
596 def register_Ns3Ipv4L3Protocol_methods(root_module, cls): |
604 ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable] |
597 ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable] |
605 cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True) |
598 cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True) |
810 [], |
803 [], |
811 visibility='protected', is_virtual=True) |
804 visibility='protected', is_virtual=True) |
812 return |
805 return |
813 |
806 |
814 def register_Ns3Ipv4StaticRouting_methods(root_module, cls): |
807 def register_Ns3Ipv4StaticRouting_methods(root_module, cls): |
815 ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting(ns3::Ipv4StaticRouting const & arg0) [copy constructor] |
|
816 cls.add_constructor([param('ns3::Ipv4StaticRouting const &', 'arg0')]) |
|
817 ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor] |
808 ## ipv4-static-routing.h: ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor] |
818 cls.add_constructor([]) |
809 cls.add_constructor([]) |
819 ## 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] |
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] |
820 cls.add_method('RequestRoute', |
811 cls.add_method('RequestRoute', |
821 'bool', |
812 'bool', |
896 ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::DoDispose() [member function] |
887 ## ipv4-static-routing.h: void ns3::Ipv4StaticRouting::DoDispose() [member function] |
897 cls.add_method('DoDispose', |
888 cls.add_method('DoDispose', |
898 'void', |
889 'void', |
899 [], |
890 [], |
900 visibility='protected', is_virtual=True) |
891 visibility='protected', is_virtual=True) |
892 cls.add_copy_constructor() |
|
901 return |
893 return |
902 |
894 |
903 def register_functions(root_module): |
895 def register_functions(root_module): |
904 module = root_module |
896 module = root_module |
905 ## internet-stack.h: extern void ns3::AddInternetStack(ns3::Ptr<ns3::Node> node) [free function] |
897 ## internet-stack.h: extern void ns3::AddInternetStack(ns3::Ptr<ns3::Node> node) [free function] |