src/mobility/bindings/modulegen__gcc_ILP32.py
changeset 10795 29506f2221e2
parent 10631 a258a16d4793
child 10956 fa4be182ef17
equal deleted inserted replaced
10794:14430d46a1a6 10795:29506f2221e2
    70     module.add_enum('Side', ['RIGHT', 'LEFT', 'TOP', 'BOTTOM'], outer_class=root_module['ns3::Rectangle'])
    70     module.add_enum('Side', ['RIGHT', 'LEFT', 'TOP', 'BOTTOM'], outer_class=root_module['ns3::Rectangle'])
    71     ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
    71     ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
    72     module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
    72     module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
    73     ## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
    73     ## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
    74     module.add_class('TagBuffer', import_from_module='ns.network')
    74     module.add_class('TagBuffer', import_from_module='ns.network')
       
    75     ## nstime.h (module 'core'): ns3::TimeWithUnit [class]
       
    76     module.add_class('TimeWithUnit', import_from_module='ns.core')
    75     ## type-id.h (module 'core'): ns3::TypeId [class]
    77     ## type-id.h (module 'core'): ns3::TypeId [class]
    76     module.add_class('TypeId', import_from_module='ns.core')
    78     module.add_class('TypeId', import_from_module='ns.core')
    77     ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
    79     ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
    78     module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
    80     module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
    79     ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct]
    81     ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct]
   345     register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
   347     register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
   346     register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
   348     register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
   347     register_Ns3Rectangle_methods(root_module, root_module['ns3::Rectangle'])
   349     register_Ns3Rectangle_methods(root_module, root_module['ns3::Rectangle'])
   348     register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
   350     register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
   349     register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
   351     register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
       
   352     register_Ns3TimeWithUnit_methods(root_module, root_module['ns3::TimeWithUnit'])
   350     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   353     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   351     register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
   354     register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
   352     register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation'])
   355     register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation'])
   353     register_Ns3Vector2D_methods(root_module, root_module['ns3::Vector2D'])
   356     register_Ns3Vector2D_methods(root_module, root_module['ns3::Vector2D'])
   354     register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
   357     register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
  1529     cls.add_method('WriteU8', 
  1532     cls.add_method('WriteU8', 
  1530                    'void', 
  1533                    'void', 
  1531                    [param('uint8_t', 'v')])
  1534                    [param('uint8_t', 'v')])
  1532     return
  1535     return
  1533 
  1536 
       
  1537 def register_Ns3TimeWithUnit_methods(root_module, cls):
       
  1538     cls.add_output_stream_operator()
       
  1539     ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::TimeWithUnit const & arg0) [copy constructor]
       
  1540     cls.add_constructor([param('ns3::TimeWithUnit const &', 'arg0')])
       
  1541     ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::Time const time, ns3::Time::Unit const unit) [constructor]
       
  1542     cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')])
       
  1543     return
       
  1544 
  1534 def register_Ns3TypeId_methods(root_module, cls):
  1545 def register_Ns3TypeId_methods(root_module, cls):
  1535     cls.add_binary_comparison_operator('<')
  1546     cls.add_binary_comparison_operator('<')
  1536     cls.add_binary_comparison_operator('!=')
  1547     cls.add_binary_comparison_operator('!=')
  1537     cls.add_output_stream_operator()
  1548     cls.add_output_stream_operator()
  1538     cls.add_binary_comparison_operator('==')
  1549     cls.add_binary_comparison_operator('==')
  2241     cls.add_constructor([param('long long unsigned int', 'v')])
  2252     cls.add_constructor([param('long long unsigned int', 'v')])
  2242     ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
  2253     ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
  2243     cls.add_constructor([param('std::string const &', 's')])
  2254     cls.add_constructor([param('std::string const &', 's')])
  2244     ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & value) [constructor]
  2255     ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & value) [constructor]
  2245     cls.add_constructor([param('ns3::int64x64_t const &', 'value')])
  2256     cls.add_constructor([param('ns3::int64x64_t const &', 'value')])
       
  2257     ## nstime.h (module 'core'): ns3::TimeWithUnit ns3::Time::As(ns3::Time::Unit const unit) const [member function]
       
  2258     cls.add_method('As', 
       
  2259                    'ns3::TimeWithUnit', 
       
  2260                    [param('ns3::Time::Unit const', 'unit')], 
       
  2261                    is_const=True)
  2246     ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
  2262     ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
  2247     cls.add_method('Compare', 
  2263     cls.add_method('Compare', 
  2248                    'int', 
  2264                    'int', 
  2249                    [param('ns3::Time const &', 'o')], 
  2265                    [param('ns3::Time const &', 'o')], 
  2250                    is_const=True)
  2266                    is_const=True)