src/propagation/bindings/modulegen__gcc_LP64.py
changeset 10795 29506f2221e2
parent 10686 62079cdaafc4
child 10956 fa4be182ef17
equal deleted inserted replaced
10794:14430d46a1a6 10795:29506f2221e2
    38     module.add_class('ObjectDeleter', import_from_module='ns.core')
    38     module.add_class('ObjectDeleter', import_from_module='ns.core')
    39     ## propagation-cache.h (module 'propagation'): ns3::PropagationCache<ns3::JakesProcess> [class]
    39     ## propagation-cache.h (module 'propagation'): ns3::PropagationCache<ns3::JakesProcess> [class]
    40     module.add_class('PropagationCache', template_parameters=['ns3::JakesProcess'])
    40     module.add_class('PropagationCache', template_parameters=['ns3::JakesProcess'])
    41     ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
    41     ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
    42     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'))
    42     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'))
       
    43     ## nstime.h (module 'core'): ns3::TimeWithUnit [class]
       
    44     module.add_class('TimeWithUnit', import_from_module='ns.core')
    43     ## type-id.h (module 'core'): ns3::TypeId [class]
    45     ## type-id.h (module 'core'): ns3::TypeId [class]
    44     module.add_class('TypeId', import_from_module='ns.core')
    46     module.add_class('TypeId', import_from_module='ns.core')
    45     ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
    47     ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
    46     module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
    48     module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
    47     ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct]
    49     ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct]
   184     module.add_class('Vector2DValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
   186     module.add_class('Vector2DValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
   185     ## vector.h (module 'core'): ns3::Vector3DChecker [class]
   187     ## vector.h (module 'core'): ns3::Vector3DChecker [class]
   186     module.add_class('Vector3DChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
   188     module.add_class('Vector3DChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
   187     ## vector.h (module 'core'): ns3::Vector3DValue [class]
   189     ## vector.h (module 'core'): ns3::Vector3DValue [class]
   188     module.add_class('Vector3DValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
   190     module.add_class('Vector3DValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
       
   191     typehandlers.add_type_alias(u'ns3::Vector3D', u'ns3::Vector')
       
   192     typehandlers.add_type_alias(u'ns3::Vector3D*', u'ns3::Vector*')
       
   193     typehandlers.add_type_alias(u'ns3::Vector3D&', u'ns3::Vector&')
       
   194     module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
   189     typehandlers.add_type_alias(u'ns3::Vector3DValue', u'ns3::VectorValue')
   195     typehandlers.add_type_alias(u'ns3::Vector3DValue', u'ns3::VectorValue')
   190     typehandlers.add_type_alias(u'ns3::Vector3DValue*', u'ns3::VectorValue*')
   196     typehandlers.add_type_alias(u'ns3::Vector3DValue*', u'ns3::VectorValue*')
   191     typehandlers.add_type_alias(u'ns3::Vector3DValue&', u'ns3::VectorValue&')
   197     typehandlers.add_type_alias(u'ns3::Vector3DValue&', u'ns3::VectorValue&')
   192     module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
   198     module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
   193     typehandlers.add_type_alias(u'ns3::Vector3D', u'ns3::Vector')
       
   194     typehandlers.add_type_alias(u'ns3::Vector3D*', u'ns3::Vector*')
       
   195     typehandlers.add_type_alias(u'ns3::Vector3D&', u'ns3::Vector&')
       
   196     module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
       
   197     typehandlers.add_type_alias(u'ns3::Vector3DChecker', u'ns3::VectorChecker')
   199     typehandlers.add_type_alias(u'ns3::Vector3DChecker', u'ns3::VectorChecker')
   198     typehandlers.add_type_alias(u'ns3::Vector3DChecker*', u'ns3::VectorChecker*')
   200     typehandlers.add_type_alias(u'ns3::Vector3DChecker*', u'ns3::VectorChecker*')
   199     typehandlers.add_type_alias(u'ns3::Vector3DChecker&', u'ns3::VectorChecker&')
   201     typehandlers.add_type_alias(u'ns3::Vector3DChecker&', u'ns3::VectorChecker&')
   200     module.add_typedef(root_module['ns3::Vector3DChecker'], 'VectorChecker')
   202     module.add_typedef(root_module['ns3::Vector3DChecker'], 'VectorChecker')
   201     
   203     
   252     register_Ns3Hasher_methods(root_module, root_module['ns3::Hasher'])
   254     register_Ns3Hasher_methods(root_module, root_module['ns3::Hasher'])
   253     register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
   255     register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
   254     register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
   256     register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
   255     register_Ns3PropagationCache__Ns3JakesProcess_methods(root_module, root_module['ns3::PropagationCache< ns3::JakesProcess >'])
   257     register_Ns3PropagationCache__Ns3JakesProcess_methods(root_module, root_module['ns3::PropagationCache< ns3::JakesProcess >'])
   256     register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
   258     register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
       
   259     register_Ns3TimeWithUnit_methods(root_module, root_module['ns3::TimeWithUnit'])
   257     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   260     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   258     register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
   261     register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
   259     register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation'])
   262     register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation'])
   260     register_Ns3Vector2D_methods(root_module, root_module['ns3::Vector2D'])
   263     register_Ns3Vector2D_methods(root_module, root_module['ns3::Vector2D'])
   261     register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
   264     register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
   515                    'void', 
   518                    'void', 
   516                    [], 
   519                    [], 
   517                    is_static=True)
   520                    is_static=True)
   518     return
   521     return
   519 
   522 
       
   523 def register_Ns3TimeWithUnit_methods(root_module, cls):
       
   524     cls.add_output_stream_operator()
       
   525     ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::TimeWithUnit const & arg0) [copy constructor]
       
   526     cls.add_constructor([param('ns3::TimeWithUnit const &', 'arg0')])
       
   527     ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::Time const time, ns3::Time::Unit const unit) [constructor]
       
   528     cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')])
       
   529     return
       
   530 
   520 def register_Ns3TypeId_methods(root_module, cls):
   531 def register_Ns3TypeId_methods(root_module, cls):
   521     cls.add_binary_comparison_operator('<')
   532     cls.add_binary_comparison_operator('<')
   522     cls.add_binary_comparison_operator('!=')
   533     cls.add_binary_comparison_operator('!=')
   523     cls.add_output_stream_operator()
   534     cls.add_output_stream_operator()
   524     cls.add_binary_comparison_operator('==')
   535     cls.add_binary_comparison_operator('==')
  1210     cls.add_constructor([param('long long unsigned int', 'v')])
  1221     cls.add_constructor([param('long long unsigned int', 'v')])
  1211     ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
  1222     ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
  1212     cls.add_constructor([param('std::string const &', 's')])
  1223     cls.add_constructor([param('std::string const &', 's')])
  1213     ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & value) [constructor]
  1224     ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & value) [constructor]
  1214     cls.add_constructor([param('ns3::int64x64_t const &', 'value')])
  1225     cls.add_constructor([param('ns3::int64x64_t const &', 'value')])
       
  1226     ## nstime.h (module 'core'): ns3::TimeWithUnit ns3::Time::As(ns3::Time::Unit const unit) const [member function]
       
  1227     cls.add_method('As', 
       
  1228                    'ns3::TimeWithUnit', 
       
  1229                    [param('ns3::Time::Unit const', 'unit')], 
       
  1230                    is_const=True)
  1215     ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
  1231     ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
  1216     cls.add_method('Compare', 
  1232     cls.add_method('Compare', 
  1217                    'int', 
  1233                    'int', 
  1218                    [param('ns3::Time const &', 'o')], 
  1234                    [param('ns3::Time const &', 'o')], 
  1219                    is_const=True)
  1235                    is_const=True)