src/buildings/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_class('ObjectFactory', import_from_module='ns.core')
    70     module.add_class('ObjectFactory', import_from_module='ns.core')
    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]
   348     register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
   350     register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
   349     register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
   351     register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
   350     register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
   352     register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
   351     register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
   353     register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
   352     register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
   354     register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
       
   355     register_Ns3TimeWithUnit_methods(root_module, root_module['ns3::TimeWithUnit'])
   353     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   356     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   354     register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
   357     register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
   355     register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation'])
   358     register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation'])
   356     register_Ns3Vector2D_methods(root_module, root_module['ns3::Vector2D'])
   359     register_Ns3Vector2D_methods(root_module, root_module['ns3::Vector2D'])
   357     register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
   360     register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
  1480     cls.add_method('WriteU8', 
  1483     cls.add_method('WriteU8', 
  1481                    'void', 
  1484                    'void', 
  1482                    [param('uint8_t', 'v')])
  1485                    [param('uint8_t', 'v')])
  1483     return
  1486     return
  1484 
  1487 
       
  1488 def register_Ns3TimeWithUnit_methods(root_module, cls):
       
  1489     cls.add_output_stream_operator()
       
  1490     ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::TimeWithUnit const & arg0) [copy constructor]
       
  1491     cls.add_constructor([param('ns3::TimeWithUnit const &', 'arg0')])
       
  1492     ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::Time const time, ns3::Time::Unit const unit) [constructor]
       
  1493     cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')])
       
  1494     return
       
  1495 
  1485 def register_Ns3TypeId_methods(root_module, cls):
  1496 def register_Ns3TypeId_methods(root_module, cls):
  1486     cls.add_binary_comparison_operator('<')
  1497     cls.add_binary_comparison_operator('<')
  1487     cls.add_binary_comparison_operator('!=')
  1498     cls.add_binary_comparison_operator('!=')
  1488     cls.add_output_stream_operator()
  1499     cls.add_output_stream_operator()
  1489     cls.add_binary_comparison_operator('==')
  1500     cls.add_binary_comparison_operator('==')
  2319     cls.add_constructor([param('long long unsigned int', 'v')])
  2330     cls.add_constructor([param('long long unsigned int', 'v')])
  2320     ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
  2331     ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
  2321     cls.add_constructor([param('std::string const &', 's')])
  2332     cls.add_constructor([param('std::string const &', 's')])
  2322     ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & value) [constructor]
  2333     ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & value) [constructor]
  2323     cls.add_constructor([param('ns3::int64x64_t const &', 'value')])
  2334     cls.add_constructor([param('ns3::int64x64_t const &', 'value')])
       
  2335     ## nstime.h (module 'core'): ns3::TimeWithUnit ns3::Time::As(ns3::Time::Unit const unit) const [member function]
       
  2336     cls.add_method('As', 
       
  2337                    'ns3::TimeWithUnit', 
       
  2338                    [param('ns3::Time::Unit const', 'unit')], 
       
  2339                    is_const=True)
  2324     ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
  2340     ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
  2325     cls.add_method('Compare', 
  2341     cls.add_method('Compare', 
  2326                    'int', 
  2342                    'int', 
  2327                    [param('ns3::Time const &', 'o')], 
  2343                    [param('ns3::Time const &', 'o')], 
  2328                    is_const=True)
  2344                    is_const=True)