108 module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network') |
108 module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network') |
109 ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class] |
109 ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class] |
110 module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network') |
110 module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network') |
111 ## random-variable.h (module 'core'): ns3::RandomVariable [class] |
111 ## random-variable.h (module 'core'): ns3::RandomVariable [class] |
112 module.add_class('RandomVariable', import_from_module='ns.core') |
112 module.add_class('RandomVariable', import_from_module='ns.core') |
113 ## random-variable.h (module 'core'): ns3::SeedManager [class] |
113 ## rng-seed-manager.h (module 'core'): ns3::RngSeedManager [class] |
114 module.add_class('SeedManager', import_from_module='ns.core') |
114 module.add_class('RngSeedManager', import_from_module='ns.core') |
115 ## random-variable.h (module 'core'): ns3::SequentialVariable [class] |
115 ## random-variable.h (module 'core'): ns3::SequentialVariable [class] |
116 module.add_class('SequentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable']) |
116 module.add_class('SequentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable']) |
117 ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class] |
117 ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class] |
118 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')) |
118 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')) |
119 ## simulator.h (module 'core'): ns3::Simulator [class] |
119 ## simulator.h (module 'core'): ns3::Simulator [class] |
282 module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) |
282 module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) |
283 ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice [class] |
283 ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice [class] |
284 module.add_class('CsmaNetDevice', parent=root_module['ns3::NetDevice']) |
284 module.add_class('CsmaNetDevice', parent=root_module['ns3::NetDevice']) |
285 ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice::EncapsulationMode [enumeration] |
285 ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice::EncapsulationMode [enumeration] |
286 module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::CsmaNetDevice']) |
286 module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::CsmaNetDevice']) |
|
287 typehandlers.add_type_alias('ns3::RngSeedManager', 'ns3::SeedManager') |
|
288 typehandlers.add_type_alias('ns3::RngSeedManager*', 'ns3::SeedManager*') |
|
289 typehandlers.add_type_alias('ns3::RngSeedManager&', 'ns3::SeedManager&') |
|
290 module.add_typedef(root_module['ns3::RngSeedManager'], 'SeedManager') |
287 |
291 |
288 ## Register a nested module for the namespace FatalImpl |
292 ## Register a nested module for the namespace FatalImpl |
289 |
293 |
290 nested_module = module.add_cpp_namespace('FatalImpl') |
294 nested_module = module.add_cpp_namespace('FatalImpl') |
291 register_types_ns3_FatalImpl(nested_module) |
295 register_types_ns3_FatalImpl(nested_module) |
332 register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData']) |
336 register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData']) |
333 register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) |
337 register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) |
334 register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper']) |
338 register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper']) |
335 register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice']) |
339 register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice']) |
336 register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable']) |
340 register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable']) |
337 register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager']) |
341 register_Ns3RngSeedManager_methods(root_module, root_module['ns3::RngSeedManager']) |
338 register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable']) |
342 register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable']) |
339 register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) |
343 register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) |
340 register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator']) |
344 register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator']) |
341 register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) |
345 register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) |
342 register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) |
346 register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) |
2178 'double', |
2182 'double', |
2179 [], |
2183 [], |
2180 is_const=True) |
2184 is_const=True) |
2181 return |
2185 return |
2182 |
2186 |
2183 def register_Ns3SeedManager_methods(root_module, cls): |
2187 def register_Ns3RngSeedManager_methods(root_module, cls): |
2184 ## random-variable.h (module 'core'): ns3::SeedManager::SeedManager() [constructor] |
2188 ## rng-seed-manager.h (module 'core'): ns3::RngSeedManager::RngSeedManager() [constructor] |
2185 cls.add_constructor([]) |
2189 cls.add_constructor([]) |
2186 ## random-variable.h (module 'core'): ns3::SeedManager::SeedManager(ns3::SeedManager const & arg0) [copy constructor] |
2190 ## rng-seed-manager.h (module 'core'): ns3::RngSeedManager::RngSeedManager(ns3::RngSeedManager const & arg0) [copy constructor] |
2187 cls.add_constructor([param('ns3::SeedManager const &', 'arg0')]) |
2191 cls.add_constructor([param('ns3::RngSeedManager const &', 'arg0')]) |
2188 ## random-variable.h (module 'core'): static bool ns3::SeedManager::CheckSeed(uint32_t seed) [member function] |
2192 ## rng-seed-manager.h (module 'core'): static uint64_t ns3::RngSeedManager::GetNextStreamIndex() [member function] |
2189 cls.add_method('CheckSeed', |
2193 cls.add_method('GetNextStreamIndex', |
2190 'bool', |
2194 'uint64_t', |
2191 [param('uint32_t', 'seed')], |
2195 [], |
2192 is_static=True) |
2196 is_static=True) |
2193 ## random-variable.h (module 'core'): static uint32_t ns3::SeedManager::GetRun() [member function] |
2197 ## rng-seed-manager.h (module 'core'): static uint64_t ns3::RngSeedManager::GetRun() [member function] |
2194 cls.add_method('GetRun', |
2198 cls.add_method('GetRun', |
2195 'uint32_t', |
2199 'uint64_t', |
2196 [], |
2200 [], |
2197 is_static=True) |
2201 is_static=True) |
2198 ## random-variable.h (module 'core'): static uint32_t ns3::SeedManager::GetSeed() [member function] |
2202 ## rng-seed-manager.h (module 'core'): static uint32_t ns3::RngSeedManager::GetSeed() [member function] |
2199 cls.add_method('GetSeed', |
2203 cls.add_method('GetSeed', |
2200 'uint32_t', |
2204 'uint32_t', |
2201 [], |
2205 [], |
2202 is_static=True) |
2206 is_static=True) |
2203 ## random-variable.h (module 'core'): static void ns3::SeedManager::SetRun(uint32_t run) [member function] |
2207 ## rng-seed-manager.h (module 'core'): static void ns3::RngSeedManager::SetRun(uint64_t run) [member function] |
2204 cls.add_method('SetRun', |
2208 cls.add_method('SetRun', |
2205 'void', |
2209 'void', |
2206 [param('uint32_t', 'run')], |
2210 [param('uint64_t', 'run')], |
2207 is_static=True) |
2211 is_static=True) |
2208 ## random-variable.h (module 'core'): static void ns3::SeedManager::SetSeed(uint32_t seed) [member function] |
2212 ## rng-seed-manager.h (module 'core'): static void ns3::RngSeedManager::SetSeed(uint32_t seed) [member function] |
2209 cls.add_method('SetSeed', |
2213 cls.add_method('SetSeed', |
2210 'void', |
2214 'void', |
2211 [param('uint32_t', 'seed')], |
2215 [param('uint32_t', 'seed')], |
2212 is_static=True) |
2216 is_static=True) |
2213 return |
2217 return |