297 ## Register a nested module for the namespace Hash |
297 ## Register a nested module for the namespace Hash |
298 |
298 |
299 nested_module = module.add_cpp_namespace('Hash') |
299 nested_module = module.add_cpp_namespace('Hash') |
300 register_types_ns3_Hash(nested_module) |
300 register_types_ns3_Hash(nested_module) |
301 |
301 |
|
302 |
|
303 ## Register a nested module for the namespace TracedValueCallback |
|
304 |
|
305 nested_module = module.add_cpp_namespace('TracedValueCallback') |
|
306 register_types_ns3_TracedValueCallback(nested_module) |
|
307 |
302 |
308 |
303 def register_types_ns3_FatalImpl(module): |
309 def register_types_ns3_FatalImpl(module): |
304 root_module = module.get_root() |
310 root_module = module.get_root() |
305 |
311 |
306 |
312 |
331 module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) |
337 module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) |
332 ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class] |
338 ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class] |
333 module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) |
339 module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) |
334 ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class] |
340 ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class] |
335 module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) |
341 module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) |
|
342 |
|
343 def register_types_ns3_TracedValueCallback(module): |
|
344 root_module = module.get_root() |
|
345 |
|
346 typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *', u'ns3::TracedValueCallback::Time') |
|
347 typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) **', u'ns3::TracedValueCallback::Time*') |
|
348 typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *&', u'ns3::TracedValueCallback::Time&') |
336 |
349 |
337 def register_methods(root_module): |
350 def register_methods(root_module): |
338 register_Ns3Address_methods(root_module, root_module['ns3::Address']) |
351 register_Ns3Address_methods(root_module, root_module['ns3::Address']) |
339 register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList']) |
352 register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList']) |
340 register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item']) |
353 register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item']) |
920 [], |
933 [], |
921 is_const=True) |
934 is_const=True) |
922 ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor] |
935 ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor] |
923 cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], |
936 cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], |
924 visibility='protected') |
937 visibility='protected') |
925 ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function] |
|
926 cls.add_method('Demangle', |
|
927 'std::string', |
|
928 [param('std::string const &', 'mangled')], |
|
929 is_static=True, visibility='protected') |
|
930 return |
938 return |
931 |
939 |
932 def register_Ns3EventId_methods(root_module, cls): |
940 def register_Ns3EventId_methods(root_module, cls): |
933 cls.add_binary_comparison_operator('!=') |
941 cls.add_binary_comparison_operator('!=') |
934 cls.add_binary_comparison_operator('==') |
942 cls.add_binary_comparison_operator('==') |
2139 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor] |
2147 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor] |
2140 cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')]) |
2148 cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')]) |
2141 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable] |
2149 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable] |
2142 cls.add_instance_attribute('count', 'uint32_t', is_const=False) |
2150 cls.add_instance_attribute('count', 'uint32_t', is_const=False) |
2143 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable] |
2151 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable] |
2144 cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False) |
2152 cls.add_instance_attribute('data', 'uint8_t [ 21 ]', is_const=False) |
2145 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable] |
2153 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable] |
2146 cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False) |
2154 cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False) |
2147 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable] |
2155 ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable] |
2148 cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) |
2156 cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) |
2149 return |
2157 return |
4046 def register_Ns3CallbackImplBase_methods(root_module, cls): |
4054 def register_Ns3CallbackImplBase_methods(root_module, cls): |
4047 ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor] |
4055 ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor] |
4048 cls.add_constructor([]) |
4056 cls.add_constructor([]) |
4049 ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] |
4057 ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] |
4050 cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) |
4058 cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) |
|
4059 ## callback.h (module 'core'): std::string ns3::CallbackImplBase::GetTypeid() const [member function] |
|
4060 cls.add_method('GetTypeid', |
|
4061 'std::string', |
|
4062 [], |
|
4063 is_pure_virtual=True, is_const=True, is_virtual=True) |
4051 ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function] |
4064 ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function] |
4052 cls.add_method('IsEqual', |
4065 cls.add_method('IsEqual', |
4053 'bool', |
4066 'bool', |
4054 [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], |
4067 [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], |
4055 is_pure_virtual=True, is_const=True, is_virtual=True) |
4068 is_pure_virtual=True, is_const=True, is_virtual=True) |
|
4069 ## callback.h (module 'core'): static std::string ns3::CallbackImplBase::Demangle(std::string const & mangled) [member function] |
|
4070 cls.add_method('Demangle', |
|
4071 'std::string', |
|
4072 [param('std::string const &', 'mangled')], |
|
4073 is_static=True, visibility='protected') |
4056 return |
4074 return |
4057 |
4075 |
4058 def register_Ns3CallbackValue_methods(root_module, cls): |
4076 def register_Ns3CallbackValue_methods(root_module, cls): |
4059 ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor] |
4077 ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor] |
4060 cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')]) |
4078 cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')]) |
5736 |
5754 |
5737 def register_functions(root_module): |
5755 def register_functions(root_module): |
5738 module = root_module |
5756 module = root_module |
5739 register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module) |
5757 register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module) |
5740 register_functions_ns3_Hash(module.get_submodule('Hash'), root_module) |
5758 register_functions_ns3_Hash(module.get_submodule('Hash'), root_module) |
|
5759 register_functions_ns3_TracedValueCallback(module.get_submodule('TracedValueCallback'), root_module) |
5741 return |
5760 return |
5742 |
5761 |
5743 def register_functions_ns3_FatalImpl(module, root_module): |
5762 def register_functions_ns3_FatalImpl(module, root_module): |
5744 return |
5763 return |
5745 |
5764 |
5746 def register_functions_ns3_Hash(module, root_module): |
5765 def register_functions_ns3_Hash(module, root_module): |
5747 register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module) |
5766 register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module) |
5748 return |
5767 return |
5749 |
5768 |
5750 def register_functions_ns3_Hash_Function(module, root_module): |
5769 def register_functions_ns3_Hash_Function(module, root_module): |
|
5770 return |
|
5771 |
|
5772 def register_functions_ns3_TracedValueCallback(module, root_module): |
5751 return |
5773 return |
5752 |
5774 |
5753 def main(): |
5775 def main(): |
5754 out = FileCodeSink(sys.stdout) |
5776 out = FileCodeSink(sys.stdout) |
5755 root_module = module_init() |
5777 root_module = module_init() |