src/network/bindings/modulegen__gcc_ILP32.py
changeset 10956 fa4be182ef17
parent 10904 c094e2b04407
child 10961 de4573473570
equal deleted inserted replaced
10955:8fae7d21dfa8 10956:fa4be182ef17
   764     register_Ns3HashFunctionMurmur3_methods(root_module, root_module['ns3::Hash::Function::Murmur3'])
   764     register_Ns3HashFunctionMurmur3_methods(root_module, root_module['ns3::Hash::Function::Murmur3'])
   765     return
   765     return
   766 
   766 
   767 def register_Ns3Address_methods(root_module, cls):
   767 def register_Ns3Address_methods(root_module, cls):
   768     cls.add_binary_comparison_operator('!=')
   768     cls.add_binary_comparison_operator('!=')
       
   769     cls.add_output_stream_operator()
   769     cls.add_binary_comparison_operator('<')
   770     cls.add_binary_comparison_operator('<')
   770     cls.add_output_stream_operator()
       
   771     cls.add_binary_comparison_operator('==')
   771     cls.add_binary_comparison_operator('==')
   772     ## address.h (module 'network'): ns3::Address::Address() [constructor]
   772     ## address.h (module 'network'): ns3::Address::Address() [constructor]
   773     cls.add_constructor([])
   773     cls.add_constructor([])
   774     ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor]
   774     ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor]
   775     cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
   775     cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
  1735                    [param('uint16_t', 'port')])
  1735                    [param('uint16_t', 'port')])
  1736     return
  1736     return
  1737 
  1737 
  1738 def register_Ns3Ipv4Address_methods(root_module, cls):
  1738 def register_Ns3Ipv4Address_methods(root_module, cls):
  1739     cls.add_binary_comparison_operator('!=')
  1739     cls.add_binary_comparison_operator('!=')
       
  1740     cls.add_output_stream_operator()
  1740     cls.add_binary_comparison_operator('<')
  1741     cls.add_binary_comparison_operator('<')
  1741     cls.add_output_stream_operator()
       
  1742     cls.add_binary_comparison_operator('==')
  1742     cls.add_binary_comparison_operator('==')
  1743     ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
  1743     ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
  1744     cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')])
  1744     cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')])
  1745     ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor]
  1745     ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor]
  1746     cls.add_constructor([])
  1746     cls.add_constructor([])
  1906                    [param('uint32_t', 'mask')])
  1906                    [param('uint32_t', 'mask')])
  1907     return
  1907     return
  1908 
  1908 
  1909 def register_Ns3Ipv6Address_methods(root_module, cls):
  1909 def register_Ns3Ipv6Address_methods(root_module, cls):
  1910     cls.add_binary_comparison_operator('!=')
  1910     cls.add_binary_comparison_operator('!=')
       
  1911     cls.add_output_stream_operator()
  1911     cls.add_binary_comparison_operator('<')
  1912     cls.add_binary_comparison_operator('<')
  1912     cls.add_output_stream_operator()
       
  1913     cls.add_binary_comparison_operator('==')
  1913     cls.add_binary_comparison_operator('==')
  1914     ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
  1914     ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
  1915     cls.add_constructor([])
  1915     cls.add_constructor([])
  1916     ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor]
  1916     ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor]
  1917     cls.add_constructor([param('char const *', 'address')])
  1917     cls.add_constructor([param('char const *', 'address')])
  2163                    is_const=True)
  2163                    is_const=True)
  2164     return
  2164     return
  2165 
  2165 
  2166 def register_Ns3Mac16Address_methods(root_module, cls):
  2166 def register_Ns3Mac16Address_methods(root_module, cls):
  2167     cls.add_binary_comparison_operator('!=')
  2167     cls.add_binary_comparison_operator('!=')
       
  2168     cls.add_output_stream_operator()
  2168     cls.add_binary_comparison_operator('<')
  2169     cls.add_binary_comparison_operator('<')
  2169     cls.add_output_stream_operator()
       
  2170     cls.add_binary_comparison_operator('==')
  2170     cls.add_binary_comparison_operator('==')
  2171     ## mac16-address.h (module 'network'): ns3::Mac16Address::Mac16Address(ns3::Mac16Address const & arg0) [copy constructor]
  2171     ## mac16-address.h (module 'network'): ns3::Mac16Address::Mac16Address(ns3::Mac16Address const & arg0) [copy constructor]
  2172     cls.add_constructor([param('ns3::Mac16Address const &', 'arg0')])
  2172     cls.add_constructor([param('ns3::Mac16Address const &', 'arg0')])
  2173     ## mac16-address.h (module 'network'): ns3::Mac16Address::Mac16Address() [constructor]
  2173     ## mac16-address.h (module 'network'): ns3::Mac16Address::Mac16Address() [constructor]
  2174     cls.add_constructor([])
  2174     cls.add_constructor([])
  2200                    is_static=True)
  2200                    is_static=True)
  2201     return
  2201     return
  2202 
  2202 
  2203 def register_Ns3Mac48Address_methods(root_module, cls):
  2203 def register_Ns3Mac48Address_methods(root_module, cls):
  2204     cls.add_binary_comparison_operator('!=')
  2204     cls.add_binary_comparison_operator('!=')
       
  2205     cls.add_output_stream_operator()
  2205     cls.add_binary_comparison_operator('<')
  2206     cls.add_binary_comparison_operator('<')
  2206     cls.add_output_stream_operator()
       
  2207     cls.add_binary_comparison_operator('==')
  2207     cls.add_binary_comparison_operator('==')
  2208     ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor]
  2208     ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor]
  2209     cls.add_constructor([param('ns3::Mac48Address const &', 'arg0')])
  2209     cls.add_constructor([param('ns3::Mac48Address const &', 'arg0')])
  2210     ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address() [constructor]
  2210     ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address() [constructor]
  2211     cls.add_constructor([])
  2211     cls.add_constructor([])
  2272                    is_static=True)
  2272                    is_static=True)
  2273     return
  2273     return
  2274 
  2274 
  2275 def register_Ns3Mac64Address_methods(root_module, cls):
  2275 def register_Ns3Mac64Address_methods(root_module, cls):
  2276     cls.add_binary_comparison_operator('!=')
  2276     cls.add_binary_comparison_operator('!=')
       
  2277     cls.add_output_stream_operator()
  2277     cls.add_binary_comparison_operator('<')
  2278     cls.add_binary_comparison_operator('<')
  2278     cls.add_output_stream_operator()
       
  2279     cls.add_binary_comparison_operator('==')
  2279     cls.add_binary_comparison_operator('==')
  2280     ## mac64-address.h (module 'network'): ns3::Mac64Address::Mac64Address(ns3::Mac64Address const & arg0) [copy constructor]
  2280     ## mac64-address.h (module 'network'): ns3::Mac64Address::Mac64Address(ns3::Mac64Address const & arg0) [copy constructor]
  2281     cls.add_constructor([param('ns3::Mac64Address const &', 'arg0')])
  2281     cls.add_constructor([param('ns3::Mac64Address const &', 'arg0')])
  2282     ## mac64-address.h (module 'network'): ns3::Mac64Address::Mac64Address() [constructor]
  2282     ## mac64-address.h (module 'network'): ns3::Mac64Address::Mac64Address() [constructor]
  2283     cls.add_constructor([])
  2283     cls.add_constructor([])
  3543     cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')])
  3543     cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')])
  3544     return
  3544     return
  3545 
  3545 
  3546 def register_Ns3TypeId_methods(root_module, cls):
  3546 def register_Ns3TypeId_methods(root_module, cls):
  3547     cls.add_binary_comparison_operator('!=')
  3547     cls.add_binary_comparison_operator('!=')
       
  3548     cls.add_output_stream_operator()
  3548     cls.add_binary_comparison_operator('<')
  3549     cls.add_binary_comparison_operator('<')
  3549     cls.add_output_stream_operator()
       
  3550     cls.add_binary_comparison_operator('==')
  3550     cls.add_binary_comparison_operator('==')
  3551     ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
  3551     ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
  3552     cls.add_constructor([param('char const *', 'name')])
  3552     cls.add_constructor([param('char const *', 'name')])
  3553     ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor]
  3553     ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor]
  3554     cls.add_constructor([])
  3554     cls.add_constructor([])
  3738     ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor]
  3738     ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor]
  3739     cls.add_constructor([param('ns3::empty const &', 'arg0')])
  3739     cls.add_constructor([param('ns3::empty const &', 'arg0')])
  3740     return
  3740     return
  3741 
  3741 
  3742 def register_Ns3Int64x64_t_methods(root_module, cls):
  3742 def register_Ns3Int64x64_t_methods(root_module, cls):
       
  3743     cls.add_binary_comparison_operator('<=')
  3743     cls.add_binary_comparison_operator('!=')
  3744     cls.add_binary_comparison_operator('!=')
  3744     cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', u'right'))
  3745     cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', u'right'))
       
  3746     cls.add_output_stream_operator()
  3745     cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3747     cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3746     cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3748     cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3747     cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3749     cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3748     cls.add_unary_numeric_operator('-')
  3750     cls.add_unary_numeric_operator('-')
  3749     cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3751     cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right'))
  3750     cls.add_binary_comparison_operator('<')
  3752     cls.add_binary_comparison_operator('<')
  3751     cls.add_binary_comparison_operator('>')
  3753     cls.add_binary_comparison_operator('>')
  3752     cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', u'right'))
  3754     cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', u'right'))
  3753     cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', u'right'))
  3755     cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', u'right'))
  3754     cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', u'right'))
  3756     cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', u'right'))
  3755     cls.add_output_stream_operator()
       
  3756     cls.add_binary_comparison_operator('<=')
       
  3757     cls.add_binary_comparison_operator('==')
  3757     cls.add_binary_comparison_operator('==')
  3758     cls.add_binary_comparison_operator('>=')
  3758     cls.add_binary_comparison_operator('>=')
  3759     ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t() [constructor]
  3759     ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t() [constructor]
  3760     cls.add_constructor([])
  3760     cls.add_constructor([])
  3761     ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(double v) [constructor]
  3761     ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(double v) [constructor]
  5383                    [param('ns3::TagBuffer', 'i')], 
  5383                    [param('ns3::TagBuffer', 'i')], 
  5384                    is_const=True, is_virtual=True)
  5384                    is_const=True, is_virtual=True)
  5385     return
  5385     return
  5386 
  5386 
  5387 def register_Ns3Time_methods(root_module, cls):
  5387 def register_Ns3Time_methods(root_module, cls):
       
  5388     cls.add_binary_comparison_operator('<=')
  5388     cls.add_binary_comparison_operator('!=')
  5389     cls.add_binary_comparison_operator('!=')
  5389     cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', u'right'))
  5390     cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', u'right'))
       
  5391     cls.add_output_stream_operator()
  5390     cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right'))
  5392     cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right'))
  5391     cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right'))
  5393     cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right'))
  5392     cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right'))
  5394     cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right'))
  5393     cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right'))
  5395     cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right'))
  5394     cls.add_binary_comparison_operator('<')
  5396     cls.add_binary_comparison_operator('<')
  5395     cls.add_binary_comparison_operator('>')
  5397     cls.add_binary_comparison_operator('>')
  5396     cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', u'right'))
  5398     cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', u'right'))
  5397     cls.add_output_stream_operator()
       
  5398     cls.add_binary_comparison_operator('<=')
       
  5399     cls.add_binary_comparison_operator('==')
  5399     cls.add_binary_comparison_operator('==')
  5400     cls.add_binary_comparison_operator('>=')
  5400     cls.add_binary_comparison_operator('>=')
  5401     ## nstime.h (module 'core'): ns3::Time::Time() [constructor]
  5401     ## nstime.h (module 'core'): ns3::Time::Time() [constructor]
  5402     cls.add_constructor([])
  5402     cls.add_constructor([])
  5403     ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor]
  5403     ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor]