From 94cd3d85422472aeabc423e016e05400004cff9e Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Mon, 6 Oct 2014 14:50:49 -0700 Subject: [PATCH] remove deprecated emu module --- doc/models/Makefile | 1 - doc/models/source/emulation-overview.rst | 4 +- src/emu/bindings/callbacks_list.py | 6 - src/emu/bindings/modulegen__gcc_ILP32.py | 4631 ------------------ src/emu/bindings/modulegen__gcc_LP64.py | 4631 ------------------ src/emu/bindings/modulegen_customizations.py | 10 - src/emu/doc/emu.rst | 316 -- src/emu/examples/emu-ping.cc | 218 - src/emu/examples/emu-udp-echo.cc | 162 - src/emu/examples/wscript | 10 - src/emu/helper/emu-helper.cc | 244 - src/emu/helper/emu-helper.h | 155 - src/emu/model/emu-encode-decode.cc | 111 - src/emu/model/emu-encode-decode.h | 33 - src/emu/model/emu-net-device.cc | 1116 ----- src/emu/model/emu-net-device.h | 534 -- src/emu/model/emu-sock-creator.cc | 247 - src/emu/test/examples-to-run.py | 21 - src/emu/wscript | 57 - src/fd-net-device/doc/fd-net-device.rst | 5 +- 20 files changed, 4 insertions(+), 12508 deletions(-) delete mode 100644 src/emu/bindings/callbacks_list.py delete mode 100644 src/emu/bindings/modulegen__gcc_ILP32.py delete mode 100644 src/emu/bindings/modulegen__gcc_LP64.py delete mode 100644 src/emu/bindings/modulegen_customizations.py delete mode 100644 src/emu/doc/emu.rst delete mode 100644 src/emu/examples/emu-ping.cc delete mode 100644 src/emu/examples/emu-udp-echo.cc delete mode 100644 src/emu/examples/wscript delete mode 100644 src/emu/helper/emu-helper.cc delete mode 100644 src/emu/helper/emu-helper.h delete mode 100644 src/emu/model/emu-encode-decode.cc delete mode 100644 src/emu/model/emu-encode-decode.h delete mode 100644 src/emu/model/emu-net-device.cc delete mode 100644 src/emu/model/emu-net-device.h delete mode 100644 src/emu/model/emu-sock-creator.cc delete mode 100644 src/emu/test/examples-to-run.py delete mode 100644 src/emu/wscript diff --git a/doc/models/Makefile b/doc/models/Makefile index 0224d65de..b65254d4a 100644 --- a/doc/models/Makefile +++ b/doc/models/Makefile @@ -34,7 +34,6 @@ SOURCES = \ $(SRC)/csma/doc/csma.rst \ $(SRC)/dsdv/doc/dsdv.rst \ $(SRC)/dsr/doc/dsr.rst \ - $(SRC)/emu/doc/emu.rst \ $(SRC)/mpi/doc/distributed.rst \ $(SRC)/energy/doc/energy.rst \ $(SRC)/fd-net-device/doc/fd-net-device.rst \ diff --git a/doc/models/source/emulation-overview.rst b/doc/models/source/emulation-overview.rst index 1b8214ca2..8877fd412 100644 --- a/doc/models/source/emulation-overview.rst +++ b/doc/models/source/emulation-overview.rst @@ -18,8 +18,7 @@ any combination of simulated or emulated devices. **Note:** Prior to ns-3.17, the emulation capability was provided by a special device called an ``Emu`` NetDevice; the ``Emu`` NetDevice has -been superseded by the ``FdNetDevice``, and will be deprecated and removed -in future revisions of |ns3|. +been replaced by the ``FdNetDevice``. One of the use-cases we want to support is that of a testbed. A concrete example of an environment of this kind is the ORBIT testbed. ORBIT is a laboratory @@ -83,6 +82,5 @@ simulated |ns3| networks. .. toctree:: - emu fd-net-device tap diff --git a/src/emu/bindings/callbacks_list.py b/src/emu/bindings/callbacks_list.py deleted file mode 100644 index b79ca515b..000000000 --- a/src/emu/bindings/callbacks_list.py +++ /dev/null @@ -1,6 +0,0 @@ -callback_classes = [ - ['void', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['bool', 'ns3::Ptr', 'ns3::Ptr', 'unsigned short', 'ns3::Address const&', 'ns3::Address const&', 'ns3::NetDevice::PacketType', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['bool', 'ns3::Ptr', 'ns3::Ptr', 'unsigned short', 'ns3::Address const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['void', 'ns3::Ptr', 'ns3::Ptr', 'unsigned short', 'ns3::Address const&', 'ns3::Address const&', 'ns3::NetDevice::PacketType', 'ns3::empty', 'ns3::empty', 'ns3::empty'], -] diff --git a/src/emu/bindings/modulegen__gcc_ILP32.py b/src/emu/bindings/modulegen__gcc_ILP32.py deleted file mode 100644 index c0e6a254a..000000000 --- a/src/emu/bindings/modulegen__gcc_ILP32.py +++ /dev/null @@ -1,4631 +0,0 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers - - -import pybindgen.settings -import warnings - -class ErrorHandler(pybindgen.settings.ErrorHandler): - def handle_error(self, wrapper, exception, traceback_): - warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) - return True -pybindgen.settings.error_handler = ErrorHandler() - - -import sys - -def module_init(): - root_module = Module('ns.emu', cpp_namespace='::ns3') - return root_module - -def register_types(module): - root_module = module.get_root() - - ## address.h (module 'network'): ns3::Address [class] - module.add_class('Address', import_from_module='ns.network') - ## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration] - module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper [class] - module.add_class('AsciiTraceHelper', import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice [class] - module.add_class('AsciiTraceHelperForDevice', allow_subclassing=True, import_from_module='ns.network') - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList [class] - module.add_class('AttributeConstructionList', import_from_module='ns.core') - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item [struct] - module.add_class('Item', import_from_module='ns.core', outer_class=root_module['ns3::AttributeConstructionList']) - ## buffer.h (module 'network'): ns3::Buffer [class] - module.add_class('Buffer', import_from_module='ns.network') - ## buffer.h (module 'network'): ns3::Buffer::Iterator [class] - module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer']) - ## packet.h (module 'network'): ns3::ByteTagIterator [class] - module.add_class('ByteTagIterator', import_from_module='ns.network') - ## packet.h (module 'network'): ns3::ByteTagIterator::Item [class] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator']) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList [class] - module.add_class('ByteTagList', import_from_module='ns.network') - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class] - module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList']) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator']) - ## callback.h (module 'core'): ns3::CallbackBase [class] - module.add_class('CallbackBase', import_from_module='ns.core') - ## system-mutex.h (module 'core'): ns3::CriticalSection [class] - module.add_class('CriticalSection', import_from_module='ns.core') - ## data-rate.h (module 'network'): ns3::DataRate [class] - module.add_class('DataRate', import_from_module='ns.network') - ## event-id.h (module 'core'): ns3::EventId [class] - module.add_class('EventId', import_from_module='ns.core') - ## hash.h (module 'core'): ns3::Hasher [class] - module.add_class('Hasher', import_from_module='ns.core') - ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class] - module.add_class('Ipv4Address', import_from_module='ns.network') - ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class] - root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address']) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class] - module.add_class('Ipv4Mask', import_from_module='ns.network') - ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class] - module.add_class('Ipv6Address', import_from_module='ns.network') - ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class] - root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address']) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class] - module.add_class('Ipv6Prefix', import_from_module='ns.network') - ## mac48-address.h (module 'network'): ns3::Mac48Address [class] - module.add_class('Mac48Address', import_from_module='ns.network') - ## mac48-address.h (module 'network'): ns3::Mac48Address [class] - root_module['ns3::Mac48Address'].implicitly_converts_to(root_module['ns3::Address']) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class] - module.add_class('NetDeviceContainer', import_from_module='ns.network') - ## node-container.h (module 'network'): ns3::NodeContainer [class] - module.add_class('NodeContainer', import_from_module='ns.network') - ## object-base.h (module 'core'): ns3::ObjectBase [class] - module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core') - ## object.h (module 'core'): ns3::ObjectDeleter [struct] - module.add_class('ObjectDeleter', import_from_module='ns.core') - ## object-factory.h (module 'core'): ns3::ObjectFactory [class] - module.add_class('ObjectFactory', import_from_module='ns.core') - ## packet-metadata.h (module 'network'): ns3::PacketMetadata [class] - module.add_class('PacketMetadata', import_from_module='ns.network') - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata']) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration] - module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network') - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class] - module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata']) - ## packet.h (module 'network'): ns3::PacketTagIterator [class] - module.add_class('PacketTagIterator', import_from_module='ns.network') - ## packet.h (module 'network'): ns3::PacketTagIterator::Item [class] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator']) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList [class] - module.add_class('PacketTagList', import_from_module='ns.network') - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct] - module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList']) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData_e [enumeration] - module.add_enum('TagData_e', ['MAX_SIZE'], outer_class=root_module['ns3::PacketTagList::TagData'], import_from_module='ns.network') - ## pcap-file.h (module 'network'): ns3::PcapFile [class] - module.add_class('PcapFile', import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::PcapHelper [class] - module.add_class('PcapHelper', import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::PcapHelper [enumeration] - module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO', 'DLT_IEEE802_15_4'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class] - module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network') - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount [class] - 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')) - ## simulator.h (module 'core'): ns3::Simulator [class] - module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core') - ## system-mutex.h (module 'core'): ns3::SystemMutex [class] - module.add_class('SystemMutex', import_from_module='ns.core') - ## tag.h (module 'network'): ns3::Tag [class] - module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase']) - ## tag-buffer.h (module 'network'): ns3::TagBuffer [class] - module.add_class('TagBuffer', import_from_module='ns.network') - ## nstime.h (module 'core'): ns3::TimeWithUnit [class] - module.add_class('TimeWithUnit', import_from_module='ns.core') - ## type-id.h (module 'core'): ns3::TypeId [class] - module.add_class('TypeId', import_from_module='ns.core') - ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration] - module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core') - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct] - module.add_class('AttributeInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId']) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation [struct] - module.add_class('TraceSourceInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId']) - ## empty.h (module 'core'): ns3::empty [class] - module.add_class('empty', import_from_module='ns.core') - ## int64x64-double.h (module 'core'): ns3::int64x64_t [class] - module.add_class('int64x64_t', import_from_module='ns.core') - ## int64x64-double.h (module 'core'): ns3::int64x64_t::impl_type [enumeration] - module.add_enum('impl_type', ['int128_impl', 'cairo_impl', 'ld_impl'], outer_class=root_module['ns3::int64x64_t'], import_from_module='ns.core') - ## chunk.h (module 'network'): ns3::Chunk [class] - module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase']) - ## emu-helper.h (module 'emu'): ns3::EmuHelper [class] - module.add_class('EmuHelper', parent=[root_module['ns3::PcapHelperForDevice'], root_module['ns3::AsciiTraceHelperForDevice']]) - ## header.h (module 'network'): ns3::Header [class] - module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk']) - ## object.h (module 'core'): ns3::Object [class] - module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) - ## object.h (module 'core'): ns3::Object::AggregateIterator [class] - module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object']) - ## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper [class] - module.add_class('PcapFileWrapper', import_from_module='ns.network', parent=root_module['ns3::Object']) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Hash::Implementation', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::OutputStreamWrapper', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::SystemThread', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## system-thread.h (module 'core'): ns3::SystemThread [class] - module.add_class('SystemThread', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter >']) - ## nstime.h (module 'core'): ns3::Time [class] - module.add_class('Time', import_from_module='ns.core') - ## nstime.h (module 'core'): ns3::Time::Unit [enumeration] - module.add_enum('Unit', ['Y', 'D', 'H', 'MIN', 'S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core') - ## nstime.h (module 'core'): ns3::Time [class] - root_module['ns3::Time'].implicitly_converts_to(root_module['ns3::int64x64_t']) - ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor [class] - module.add_class('TraceSourceAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter >']) - ## trailer.h (module 'network'): ns3::Trailer [class] - module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk']) - ## attribute.h (module 'core'): ns3::AttributeAccessor [class] - module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter >']) - ## attribute.h (module 'core'): ns3::AttributeChecker [class] - module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter >']) - ## attribute.h (module 'core'): ns3::AttributeValue [class] - module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter >']) - ## callback.h (module 'core'): ns3::CallbackChecker [class] - module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) - ## callback.h (module 'core'): ns3::CallbackImplBase [class] - module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter >']) - ## callback.h (module 'core'): ns3::CallbackValue [class] - module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## data-rate.h (module 'network'): ns3::DataRateChecker [class] - module.add_class('DataRateChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## data-rate.h (module 'network'): ns3::DataRateValue [class] - module.add_class('DataRateValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## attribute.h (module 'core'): ns3::EmptyAttributeValue [class] - module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## event-impl.h (module 'core'): ns3::EventImpl [class] - module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter >']) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class] - module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class] - module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class] - module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class] - module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class] - module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class] - module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class] - module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class] - module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker [class] - module.add_class('Mac48AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue [class] - module.add_class('Mac48AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## net-device.h (module 'network'): ns3::NetDevice [class] - module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object']) - ## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration] - module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network') - ## nix-vector.h (module 'network'): ns3::NixVector [class] - module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter >']) - ## node.h (module 'network'): ns3::Node [class] - module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object']) - ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class] - module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class] - module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper [class] - module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter >']) - ## packet.h (module 'network'): ns3::Packet [class] - module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter >']) - ## nstime.h (module 'core'): ns3::TimeValue [class] - module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## type-id.h (module 'core'): ns3::TypeIdChecker [class] - module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) - ## type-id.h (module 'core'): ns3::TypeIdValue [class] - module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## address.h (module 'network'): ns3::AddressChecker [class] - module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## address.h (module 'network'): ns3::AddressValue [class] - module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice [class] - module.add_class('EmuNetDevice', parent=root_module['ns3::NetDevice']) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice::EncapsulationMode [enumeration] - module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::EmuNetDevice']) - - ## Register a nested module for the namespace FatalImpl - - nested_module = module.add_cpp_namespace('FatalImpl') - register_types_ns3_FatalImpl(nested_module) - - - ## Register a nested module for the namespace Hash - - nested_module = module.add_cpp_namespace('Hash') - register_types_ns3_Hash(nested_module) - - -def register_types_ns3_FatalImpl(module): - root_module = module.get_root() - - -def register_types_ns3_Hash(module): - root_module = module.get_root() - - ## hash-function.h (module 'core'): ns3::Hash::Implementation [class] - module.add_class('Implementation', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter >']) - typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) *', u'ns3::Hash::Hash32Function_ptr') - typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) **', u'ns3::Hash::Hash32Function_ptr*') - typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) *&', u'ns3::Hash::Hash32Function_ptr&') - typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) *', u'ns3::Hash::Hash64Function_ptr') - typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) **', u'ns3::Hash::Hash64Function_ptr*') - typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) *&', u'ns3::Hash::Hash64Function_ptr&') - - ## Register a nested module for the namespace Function - - nested_module = module.add_cpp_namespace('Function') - register_types_ns3_Hash_Function(nested_module) - - -def register_types_ns3_Hash_Function(module): - root_module = module.get_root() - - ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a [class] - module.add_class('Fnv1a', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32 [class] - module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class] - module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class] - module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - -def register_methods(root_module): - register_Ns3Address_methods(root_module, root_module['ns3::Address']) - register_Ns3AsciiTraceHelper_methods(root_module, root_module['ns3::AsciiTraceHelper']) - register_Ns3AsciiTraceHelperForDevice_methods(root_module, root_module['ns3::AsciiTraceHelperForDevice']) - register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList']) - register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item']) - register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer']) - register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator']) - register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator']) - register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item']) - register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList']) - register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator']) - register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item']) - register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase']) - register_Ns3CriticalSection_methods(root_module, root_module['ns3::CriticalSection']) - register_Ns3DataRate_methods(root_module, root_module['ns3::DataRate']) - register_Ns3EventId_methods(root_module, root_module['ns3::EventId']) - register_Ns3Hasher_methods(root_module, root_module['ns3::Hasher']) - register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address']) - register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask']) - register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address']) - register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix']) - register_Ns3Mac48Address_methods(root_module, root_module['ns3::Mac48Address']) - register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer']) - register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer']) - register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase']) - register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter']) - register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory']) - register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata']) - register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item']) - register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator']) - register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator']) - register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item']) - register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList']) - register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData']) - register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) - register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper']) - register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice']) - register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) - register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator']) - register_Ns3SystemMutex_methods(root_module, root_module['ns3::SystemMutex']) - register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) - register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) - register_Ns3TimeWithUnit_methods(root_module, root_module['ns3::TimeWithUnit']) - register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId']) - register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation']) - register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation']) - register_Ns3Empty_methods(root_module, root_module['ns3::empty']) - register_Ns3Int64x64_t_methods(root_module, root_module['ns3::int64x64_t']) - register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk']) - register_Ns3EmuHelper_methods(root_module, root_module['ns3::EmuHelper']) - register_Ns3Header_methods(root_module, root_module['ns3::Header']) - register_Ns3Object_methods(root_module, root_module['ns3::Object']) - register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator']) - register_Ns3PcapFileWrapper_methods(root_module, root_module['ns3::PcapFileWrapper']) - register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3HashImplementation_Ns3Empty_Ns3DefaultDeleter__lt__ns3HashImplementation__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_Ns3DefaultDeleter__lt__ns3SystemThread__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread']) - register_Ns3Time_methods(root_module, root_module['ns3::Time']) - register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor']) - register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) - register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor']) - register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker']) - register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue']) - register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker']) - register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase']) - register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue']) - register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker']) - register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue']) - register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue']) - register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl']) - register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker']) - register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue']) - register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker']) - register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue']) - register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker']) - register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue']) - register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker']) - register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue']) - register_Ns3Mac48AddressChecker_methods(root_module, root_module['ns3::Mac48AddressChecker']) - register_Ns3Mac48AddressValue_methods(root_module, root_module['ns3::Mac48AddressValue']) - register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice']) - register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector']) - register_Ns3Node_methods(root_module, root_module['ns3::Node']) - register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker']) - register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue']) - register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper']) - register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) - register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue']) - register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker']) - register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue']) - register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker']) - register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue']) - register_Ns3EmuNetDevice_methods(root_module, root_module['ns3::EmuNetDevice']) - register_Ns3HashImplementation_methods(root_module, root_module['ns3::Hash::Implementation']) - register_Ns3HashFunctionFnv1a_methods(root_module, root_module['ns3::Hash::Function::Fnv1a']) - register_Ns3HashFunctionHash32_methods(root_module, root_module['ns3::Hash::Function::Hash32']) - register_Ns3HashFunctionHash64_methods(root_module, root_module['ns3::Hash::Function::Hash64']) - register_Ns3HashFunctionMurmur3_methods(root_module, root_module['ns3::Hash::Function::Murmur3']) - return - -def register_Ns3Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## address.h (module 'network'): ns3::Address::Address() [constructor] - cls.add_constructor([]) - ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor] - cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) - ## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor] - cls.add_constructor([param('ns3::Address const &', 'address')]) - ## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function] - cls.add_method('CheckCompatible', - 'bool', - [param('uint8_t', 'type'), param('uint8_t', 'len')], - is_const=True) - ## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function] - cls.add_method('CopyAllFrom', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) - ## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function] - cls.add_method('CopyAllTo', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint8_t', 'len')], - is_const=True) - ## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function] - cls.add_method('CopyFrom', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) - ## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function] - cls.add_method('CopyTo', - 'uint32_t', - [param('uint8_t *', 'buffer')], - is_const=True) - ## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::TagBuffer', 'buffer')]) - ## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function] - cls.add_method('GetLength', - 'uint8_t', - [], - is_const=True) - ## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function] - cls.add_method('IsInvalid', - 'bool', - [], - is_const=True) - ## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('uint8_t', 'type')], - is_const=True) - ## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function] - cls.add_method('Register', - 'uint8_t', - [], - is_static=True) - ## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::TagBuffer', 'buffer')], - is_const=True) - return - -def register_Ns3AsciiTraceHelper_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper(ns3::AsciiTraceHelper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AsciiTraceHelper const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): ns3::Ptr ns3::AsciiTraceHelper::CreateFileStream(std::string filename, std::_Ios_Openmode filemode=std::ios_base::out) [member function] - cls.add_method('CreateFileStream', - 'ns3::Ptr< ns3::OutputStreamWrapper >', - [param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode', default_value='std::ios_base::out')]) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultDequeueSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultDequeueSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultDropSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultDropSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultEnqueueSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultEnqueueSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultReceiveSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultReceiveSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr device, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromDevice', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')]) - ## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr object, uint32_t interface, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromInterfacePair', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')]) - return - -def register_Ns3AsciiTraceHelperForDevice_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice(ns3::AsciiTraceHelperForDevice const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AsciiTraceHelperForDevice const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::Ptr nd, bool explicitFilename=false) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, ns3::Ptr nd) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ptr< ns3::NetDevice >', 'nd')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, std::string ndName, bool explicitFilename=false) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, std::string ndName) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'ndName')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NetDeviceContainer d) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, ns3::NetDeviceContainer d) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NetDeviceContainer', 'd')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NodeContainer n) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, ns3::NodeContainer n) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NodeContainer', 'n')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool explicitFilename) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'explicitFilename')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, uint32_t nodeid, uint32_t deviceid) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(std::string prefix) [member function] - cls.add_method('EnableAsciiAll', - 'void', - [param('std::string', 'prefix')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(ns3::Ptr stream) [member function] - cls.add_method('EnableAsciiAll', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiInternal(ns3::Ptr stream, std::string prefix, ns3::Ptr nd, bool explicitFilename) [member function] - cls.add_method('EnableAsciiInternal', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], - is_pure_virtual=True, is_virtual=True) - return - -def register_Ns3AttributeConstructionList_methods(root_module, cls): - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList(ns3::AttributeConstructionList const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeConstructionList const &', 'arg0')]) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList() [constructor] - cls.add_constructor([]) - ## attribute-construction-list.h (module 'core'): void ns3::AttributeConstructionList::Add(std::string name, ns3::Ptr checker, ns3::Ptr value) [member function] - cls.add_method('Add', - 'void', - [param('std::string', 'name'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker'), param('ns3::Ptr< ns3::AttributeValue >', 'value')]) - ## attribute-construction-list.h (module 'core'): std::_List_const_iterator ns3::AttributeConstructionList::Begin() const [member function] - cls.add_method('Begin', - 'std::_List_const_iterator< ns3::AttributeConstructionList::Item >', - [], - is_const=True) - ## attribute-construction-list.h (module 'core'): std::_List_const_iterator ns3::AttributeConstructionList::End() const [member function] - cls.add_method('End', - 'std::_List_const_iterator< ns3::AttributeConstructionList::Item >', - [], - is_const=True) - ## attribute-construction-list.h (module 'core'): ns3::Ptr ns3::AttributeConstructionList::Find(ns3::Ptr checker) const [member function] - cls.add_method('Find', - 'ns3::Ptr< ns3::AttributeValue >', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True) - return - -def register_Ns3AttributeConstructionListItem_methods(root_module, cls): - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item() [constructor] - cls.add_constructor([]) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item(ns3::AttributeConstructionList::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeConstructionList::Item const &', 'arg0')]) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::checker [variable] - cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::name [variable] - cls.add_instance_attribute('name', 'std::string', is_const=False) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::value [variable] - cls.add_instance_attribute('value', 'ns3::Ptr< ns3::AttributeValue >', is_const=False) - return - -def register_Ns3Buffer_methods(root_module, cls): - ## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor] - cls.add_constructor([]) - ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor] - cls.add_constructor([param('uint32_t', 'dataSize')]) - ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor] - cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')]) - ## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor] - cls.add_constructor([param('ns3::Buffer const &', 'o')]) - ## buffer.h (module 'network'): bool ns3::Buffer::AddAtEnd(uint32_t end) [member function] - cls.add_method('AddAtEnd', - 'bool', - [param('uint32_t', 'end')]) - ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::Buffer const &', 'o')]) - ## buffer.h (module 'network'): bool ns3::Buffer::AddAtStart(uint32_t start) [member function] - cls.add_method('AddAtStart', - 'bool', - [param('uint32_t', 'start')]) - ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function] - cls.add_method('Begin', - 'ns3::Buffer::Iterator', - [], - is_const=True) - ## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function] - cls.add_method('CopyData', - 'void', - [param('std::ostream *', 'os'), param('uint32_t', 'size')], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function] - cls.add_method('CopyData', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')], - is_const=True) - ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function] - cls.add_method('CreateFragment', - 'ns3::Buffer', - [param('uint32_t', 'start'), param('uint32_t', 'length')], - is_const=True) - ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function] - cls.add_method('CreateFullCopy', - 'ns3::Buffer', - [], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function] - cls.add_method('End', - 'ns3::Buffer::Iterator', - [], - is_const=True) - ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentEndOffset() const [member function] - cls.add_method('GetCurrentEndOffset', - 'int32_t', - [], - is_const=True) - ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentStartOffset() const [member function] - cls.add_method('GetCurrentStartOffset', - 'int32_t', - [], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function] - cls.add_method('PeekData', - 'uint8_t const *', - [], - is_const=True) - ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'end')]) - ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'start')]) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - return - -def register_Ns3BufferIterator_methods(root_module, cls): - ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')]) - ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor] - cls.add_constructor([]) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function] - cls.add_method('CalculateIpChecksum', - 'uint16_t', - [param('uint16_t', 'size')]) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function] - cls.add_method('CalculateIpChecksum', - 'uint16_t', - [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')]) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function] - cls.add_method('GetDistanceFrom', - 'uint32_t', - [param('ns3::Buffer::Iterator const &', 'o')], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function] - cls.add_method('IsEnd', - 'bool', - [], - is_const=True) - ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function] - cls.add_method('IsStart', - 'bool', - [], - is_const=True) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function] - cls.add_method('Next', - 'void', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function] - cls.add_method('Next', - 'void', - [param('uint32_t', 'delta')]) - ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function] - cls.add_method('PeekU8', - 'uint8_t', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function] - cls.add_method('Prev', - 'void', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function] - cls.add_method('Prev', - 'void', - [param('uint32_t', 'delta')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function] - cls.add_method('Read', - 'void', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function] - cls.add_method('Read', - 'void', - [param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function] - cls.add_method('ReadLsbtohU16', - 'uint16_t', - []) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function] - cls.add_method('ReadLsbtohU32', - 'uint32_t', - []) - ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function] - cls.add_method('ReadLsbtohU64', - 'uint64_t', - []) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function] - cls.add_method('ReadNtohU16', - 'uint16_t', - []) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function] - cls.add_method('ReadNtohU32', - 'uint32_t', - []) - ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function] - cls.add_method('ReadNtohU64', - 'uint64_t', - []) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function] - cls.add_method('ReadU16', - 'uint16_t', - []) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function] - cls.add_method('ReadU32', - 'uint32_t', - []) - ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function] - cls.add_method('ReadU64', - 'uint64_t', - []) - ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function] - cls.add_method('ReadU8', - 'uint8_t', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Write', - 'void', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function] - cls.add_method('WriteHtolsbU16', - 'void', - [param('uint16_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function] - cls.add_method('WriteHtolsbU32', - 'void', - [param('uint32_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function] - cls.add_method('WriteHtolsbU64', - 'void', - [param('uint64_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function] - cls.add_method('WriteHtonU16', - 'void', - [param('uint16_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function] - cls.add_method('WriteHtonU32', - 'void', - [param('uint32_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function] - cls.add_method('WriteHtonU64', - 'void', - [param('uint64_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function] - cls.add_method('WriteU16', - 'void', - [param('uint16_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function] - cls.add_method('WriteU32', - 'void', - [param('uint32_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function] - cls.add_method('WriteU64', - 'void', - [param('uint64_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function] - cls.add_method('WriteU8', - 'void', - [param('uint8_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function] - cls.add_method('WriteU8', - 'void', - [param('uint8_t', 'data'), param('uint32_t', 'len')]) - return - -def register_Ns3ByteTagIterator_methods(root_module, cls): - ## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')]) - ## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function] - cls.add_method('Next', - 'ns3::ByteTagIterator::Item', - []) - return - -def register_Ns3ByteTagIteratorItem_methods(root_module, cls): - ## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')]) - ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function] - cls.add_method('GetEnd', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function] - cls.add_method('GetStart', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function] - cls.add_method('GetTag', - 'void', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_const=True) - return - -def register_Ns3ByteTagList_methods(root_module, cls): - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor] - cls.add_constructor([]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor] - cls.add_constructor([param('ns3::ByteTagList const &', 'o')]) - ## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function] - cls.add_method('Add', - 'ns3::TagBuffer', - [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')]) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function] - cls.add_method('Add', - 'void', - [param('ns3::ByteTagList const &', 'o')]) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')]) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function] - cls.add_method('AddAtStart', - 'void', - [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function] - cls.add_method('Begin', - 'ns3::ByteTagList::Iterator', - [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')], - is_const=True) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function] - cls.add_method('RemoveAll', - 'void', - []) - return - -def register_Ns3ByteTagListIterator_methods(root_module, cls): - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')]) - ## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function] - cls.add_method('GetOffsetStart', - 'uint32_t', - [], - is_const=True) - ## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function] - cls.add_method('Next', - 'ns3::ByteTagList::Iterator::Item', - []) - return - -def register_Ns3ByteTagListIteratorItem_methods(root_module, cls): - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor] - cls.add_constructor([param('ns3::TagBuffer', 'buf')]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable] - cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable] - cls.add_instance_attribute('end', 'int32_t', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable] - cls.add_instance_attribute('size', 'uint32_t', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable] - cls.add_instance_attribute('start', 'int32_t', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable] - cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) - return - -def register_Ns3CallbackBase_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')]) - ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::Ptr ns3::CallbackBase::GetImpl() const [member function] - cls.add_method('GetImpl', - 'ns3::Ptr< ns3::CallbackImplBase >', - [], - is_const=True) - ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr impl) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], - visibility='protected') - ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function] - cls.add_method('Demangle', - 'std::string', - [param('std::string const &', 'mangled')], - is_static=True, visibility='protected') - return - -def register_Ns3CriticalSection_methods(root_module, cls): - ## system-mutex.h (module 'core'): ns3::CriticalSection::CriticalSection(ns3::CriticalSection const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CriticalSection const &', 'arg0')]) - ## system-mutex.h (module 'core'): ns3::CriticalSection::CriticalSection(ns3::SystemMutex & mutex) [constructor] - cls.add_constructor([param('ns3::SystemMutex &', 'mutex')]) - return - -def register_Ns3DataRate_methods(root_module, cls): - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('!=') - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('<=') - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('>') - cls.add_binary_comparison_operator('>=') - ## data-rate.h (module 'network'): ns3::DataRate::DataRate(ns3::DataRate const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRate const &', 'arg0')]) - ## data-rate.h (module 'network'): ns3::DataRate::DataRate() [constructor] - cls.add_constructor([]) - ## data-rate.h (module 'network'): ns3::DataRate::DataRate(uint64_t bps) [constructor] - cls.add_constructor([param('uint64_t', 'bps')]) - ## data-rate.h (module 'network'): ns3::DataRate::DataRate(std::string rate) [constructor] - cls.add_constructor([param('std::string', 'rate')]) - ## data-rate.h (module 'network'): double ns3::DataRate::CalculateTxTime(uint32_t bytes) const [member function] - cls.add_method('CalculateTxTime', - 'double', - [param('uint32_t', 'bytes')], - is_const=True) - ## data-rate.h (module 'network'): uint64_t ns3::DataRate::GetBitRate() const [member function] - cls.add_method('GetBitRate', - 'uint64_t', - [], - is_const=True) - return - -def register_Ns3EventId_methods(root_module, cls): - cls.add_binary_comparison_operator('!=') - cls.add_binary_comparison_operator('==') - ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EventId const &', 'arg0')]) - ## event-id.h (module 'core'): ns3::EventId::EventId() [constructor] - cls.add_constructor([]) - ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')]) - ## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function] - cls.add_method('Cancel', - 'void', - []) - ## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function] - cls.add_method('GetContext', - 'uint32_t', - [], - is_const=True) - ## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function] - cls.add_method('GetTs', - 'uint64_t', - [], - is_const=True) - ## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function] - cls.add_method('GetUid', - 'uint32_t', - [], - is_const=True) - ## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function] - cls.add_method('IsExpired', - 'bool', - [], - is_const=True) - ## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function] - cls.add_method('IsRunning', - 'bool', - [], - is_const=True) - ## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function] - cls.add_method('PeekEventImpl', - 'ns3::EventImpl *', - [], - is_const=True) - return - -def register_Ns3Hasher_methods(root_module, cls): - ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Hasher const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hasher const &', 'arg0')]) - ## hash.h (module 'core'): ns3::Hasher::Hasher() [constructor] - cls.add_constructor([]) - ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Ptr hp) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::Hash::Implementation >', 'hp')]) - ## hash.h (module 'core'): uint32_t ns3::Hasher::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')]) - ## hash.h (module 'core'): uint32_t ns3::Hasher::GetHash32(std::string const s) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('std::string const', 's')]) - ## hash.h (module 'core'): uint64_t ns3::Hasher::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')]) - ## hash.h (module 'core'): uint64_t ns3::Hasher::GetHash64(std::string const s) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('std::string const', 's')]) - ## hash.h (module 'core'): ns3::Hasher & ns3::Hasher::clear() [member function] - cls.add_method('clear', - 'ns3::Hasher &', - []) - return - -def register_Ns3Ipv4Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor] - cls.add_constructor([param('uint32_t', 'address')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor] - cls.add_constructor([param('char const *', 'address')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function] - cls.add_method('CombineMask', - 'ns3::Ipv4Address', - [param('ns3::Ipv4Mask const &', 'mask')], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function] - cls.add_method('ConvertFrom', - 'ns3::Ipv4Address', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function] - cls.add_method('Deserialize', - 'ns3::Ipv4Address', - [param('uint8_t const *', 'buf')], - is_static=True) - ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function] - cls.add_method('Get', - 'uint32_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function] - cls.add_method('GetAny', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function] - cls.add_method('GetBroadcast', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function] - cls.add_method('GetSubnetDirectedBroadcast', - 'ns3::Ipv4Address', - [param('ns3::Ipv4Mask const &', 'mask')], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv4Address const &', 'other')], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function] - cls.add_method('IsLocalMulticast', - 'bool', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function] - cls.add_method('IsSubnetDirectedBroadcast', - 'bool', - [param('ns3::Ipv4Mask const &', 'mask')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function] - cls.add_method('Serialize', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function] - cls.add_method('Set', - 'void', - [param('uint32_t', 'address')]) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function] - cls.add_method('Set', - 'void', - [param('char const *', 'address')]) - return - -def register_Ns3Ipv4Mask_methods(root_module, cls): - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor] - cls.add_constructor([param('uint32_t', 'mask')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor] - cls.add_constructor([param('char const *', 'mask')]) - ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function] - cls.add_method('Get', - 'uint32_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function] - cls.add_method('GetInverse', - 'uint32_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv4Mask', - [], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function] - cls.add_method('GetOnes', - 'ns3::Ipv4Mask', - [], - is_static=True) - ## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function] - cls.add_method('GetPrefixLength', - 'uint16_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv4Mask', - [], - is_static=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv4Mask', 'other')], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function] - cls.add_method('IsMatch', - 'bool', - [param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function] - cls.add_method('Set', - 'void', - [param('uint32_t', 'mask')]) - return - -def register_Ns3Ipv6Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor] - cls.add_constructor([param('char const *', 'address')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor] - cls.add_constructor([param('uint8_t *', 'address')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor] - cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor] - cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function] - cls.add_method('CombinePrefix', - 'ns3::Ipv6Address', - [param('ns3::Ipv6Prefix const &', 'prefix')]) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function] - cls.add_method('ConvertFrom', - 'ns3::Ipv6Address', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function] - cls.add_method('Deserialize', - 'ns3::Ipv6Address', - [param('uint8_t const *', 'buf')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function] - cls.add_method('GetAllHostsMulticast', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function] - cls.add_method('GetAllNodesMulticast', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function] - cls.add_method('GetAllRoutersMulticast', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function] - cls.add_method('GetAny', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function] - cls.add_method('GetBytes', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv6-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv6Address::GetIpv4MappedAddress() const [member function] - cls.add_method('GetIpv4MappedAddress', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function] - cls.add_method('GetOnes', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function] - cls.add_method('IsAllHostsMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function] - cls.add_method('IsAllNodesMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function] - cls.add_method('IsAllRoutersMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function] - cls.add_method('IsAny', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsDocumentation() const [member function] - cls.add_method('IsDocumentation', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv6Address const &', 'other')], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsIpv4MappedAddress() const [member function] - cls.add_method('IsIpv4MappedAddress', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function] - cls.add_method('IsLinkLocal', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocalMulticast() const [member function] - cls.add_method('IsLinkLocalMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function] - cls.add_method('IsLocalhost', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function] - cls.add_method('IsSolicitedMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac16Address addr, ns3::Ipv6Address prefix) [member function] - cls.add_method('MakeAutoconfiguredAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac16Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function] - cls.add_method('MakeAutoconfiguredAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac64Address addr, ns3::Ipv6Address prefix) [member function] - cls.add_method('MakeAutoconfiguredAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac64Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac16Address mac) [member function] - cls.add_method('MakeAutoconfiguredLinkLocalAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac16Address', 'mac')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function] - cls.add_method('MakeAutoconfiguredLinkLocalAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac48Address', 'mac')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac64Address mac) [member function] - cls.add_method('MakeAutoconfiguredLinkLocalAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac64Address', 'mac')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeIpv4MappedAddress(ns3::Ipv4Address addr) [member function] - cls.add_method('MakeIpv4MappedAddress', - 'ns3::Ipv6Address', - [param('ns3::Ipv4Address', 'addr')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function] - cls.add_method('MakeSolicitedAddress', - 'ns3::Ipv6Address', - [param('ns3::Ipv6Address', 'addr')], - is_static=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function] - cls.add_method('Serialize', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function] - cls.add_method('Set', - 'void', - [param('char const *', 'address')]) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function] - cls.add_method('Set', - 'void', - [param('uint8_t *', 'address')]) - return - -def register_Ns3Ipv6Prefix_methods(root_module, cls): - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor] - cls.add_constructor([param('uint8_t *', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor] - cls.add_constructor([param('char const *', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor] - cls.add_constructor([param('uint8_t', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')]) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function] - cls.add_method('GetBytes', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv6Prefix', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function] - cls.add_method('GetOnes', - 'ns3::Ipv6Prefix', - [], - is_static=True) - ## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function] - cls.add_method('GetPrefixLength', - 'uint8_t', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv6Prefix', - [], - is_static=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv6Prefix const &', 'other')], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function] - cls.add_method('IsMatch', - 'bool', - [param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')], - is_const=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - return - -def register_Ns3Mac48Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48Address const &', 'arg0')]) - ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address() [constructor] - cls.add_constructor([]) - ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(char const * str) [constructor] - cls.add_constructor([param('char const *', 'str')]) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::Allocate() [member function] - cls.add_method('Allocate', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::ConvertFrom(ns3::Address const & address) [member function] - cls.add_method('ConvertFrom', - 'ns3::Mac48Address', - [param('ns3::Address const &', 'address')], - is_static=True) - ## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyFrom(uint8_t const * buffer) [member function] - cls.add_method('CopyFrom', - 'void', - [param('uint8_t const *', 'buffer')]) - ## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyTo(uint8_t * buffer) const [member function] - cls.add_method('CopyTo', - 'void', - [param('uint8_t *', 'buffer')], - is_const=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetBroadcast() [member function] - cls.add_method('GetBroadcast', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv4Address address) [member function] - cls.add_method('GetMulticast', - 'ns3::Mac48Address', - [param('ns3::Ipv4Address', 'address')], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv6Address address) [member function] - cls.add_method('GetMulticast', - 'ns3::Mac48Address', - [param('ns3::Ipv6Address', 'address')], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast6Prefix() [member function] - cls.add_method('GetMulticast6Prefix', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticastPrefix() [member function] - cls.add_method('GetMulticastPrefix', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_const=True) - ## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsGroup() const [member function] - cls.add_method('IsGroup', - 'bool', - [], - is_const=True) - ## mac48-address.h (module 'network'): static bool ns3::Mac48Address::IsMatchingType(ns3::Address const & address) [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('ns3::Address const &', 'address')], - is_static=True) - return - -def register_Ns3NetDeviceContainer_methods(root_module, cls): - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor] - cls.add_constructor([]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr dev) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor] - cls.add_constructor([param('std::string', 'devName')]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor] - cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')]) - ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function] - cls.add_method('Add', - 'void', - [param('ns3::NetDeviceContainer', 'other')]) - ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr device) [member function] - cls.add_method('Add', - 'void', - [param('ns3::Ptr< ns3::NetDevice >', 'device')]) - ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function] - cls.add_method('Add', - 'void', - [param('std::string', 'deviceName')]) - ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NetDeviceContainer::Begin() const [member function] - cls.add_method('Begin', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >', - [], - is_const=True) - ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NetDeviceContainer::End() const [member function] - cls.add_method('End', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >', - [], - is_const=True) - ## net-device-container.h (module 'network'): ns3::Ptr ns3::NetDeviceContainer::Get(uint32_t i) const [member function] - cls.add_method('Get', - 'ns3::Ptr< ns3::NetDevice >', - [param('uint32_t', 'i')], - is_const=True) - ## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function] - cls.add_method('GetN', - 'uint32_t', - [], - is_const=True) - return - -def register_Ns3NodeContainer_methods(root_module, cls): - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor] - cls.add_constructor([]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr node) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor] - cls.add_constructor([param('std::string', 'nodeName')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function] - cls.add_method('Add', - 'void', - [param('ns3::NodeContainer', 'other')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr node) [member function] - cls.add_method('Add', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function] - cls.add_method('Add', - 'void', - [param('std::string', 'nodeName')]) - ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NodeContainer::Begin() const [member function] - cls.add_method('Begin', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >', - [], - is_const=True) - ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function] - cls.add_method('Create', - 'void', - [param('uint32_t', 'n')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function] - cls.add_method('Create', - 'void', - [param('uint32_t', 'n'), param('uint32_t', 'systemId')]) - ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NodeContainer::End() const [member function] - cls.add_method('End', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >', - [], - is_const=True) - ## node-container.h (module 'network'): ns3::Ptr ns3::NodeContainer::Get(uint32_t i) const [member function] - cls.add_method('Get', - 'ns3::Ptr< ns3::Node >', - [param('uint32_t', 'i')], - is_const=True) - ## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function] - cls.add_method('GetGlobal', - 'ns3::NodeContainer', - [], - is_static=True) - ## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function] - cls.add_method('GetN', - 'uint32_t', - [], - is_const=True) - return - -def register_Ns3ObjectBase_methods(root_module, cls): - ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor] - cls.add_constructor([]) - ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')]) - ## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function] - cls.add_method('GetAttribute', - 'void', - [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')], - is_const=True) - ## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & attribute) const [member function] - cls.add_method('GetAttributeFailSafe', - 'bool', - [param('std::string', 'name'), param('ns3::AttributeValue &', 'attribute')], - is_const=True) - ## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function] - cls.add_method('SetAttribute', - 'void', - [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function] - cls.add_method('SetAttributeFailSafe', - 'bool', - [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceConnect', - 'bool', - [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceConnectWithoutContext', - 'bool', - [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceDisconnect', - 'bool', - [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceDisconnectWithoutContext', - 'bool', - [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeConstructionList const & attributes) [member function] - cls.add_method('ConstructSelf', - 'void', - [param('ns3::AttributeConstructionList const &', 'attributes')], - visibility='protected') - ## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function] - cls.add_method('NotifyConstructionCompleted', - 'void', - [], - visibility='protected', is_virtual=True) - return - -def register_Ns3ObjectDeleter_methods(root_module, cls): - ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor] - cls.add_constructor([]) - ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')]) - ## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function] - cls.add_method('Delete', - 'void', - [param('ns3::Object *', 'object')], - is_static=True) - return - -def register_Ns3ObjectFactory_methods(root_module, cls): - cls.add_output_stream_operator() - ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')]) - ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor] - cls.add_constructor([]) - ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(std::string typeId) [constructor] - cls.add_constructor([param('std::string', 'typeId')]) - ## object-factory.h (module 'core'): ns3::Ptr ns3::ObjectFactory::Create() const [member function] - cls.add_method('Create', - 'ns3::Ptr< ns3::Object >', - [], - is_const=True) - ## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_const=True) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function] - cls.add_method('Set', - 'void', - [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function] - cls.add_method('SetTypeId', - 'void', - [param('ns3::TypeId', 'tid')]) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function] - cls.add_method('SetTypeId', - 'void', - [param('char const *', 'tid')]) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function] - cls.add_method('SetTypeId', - 'void', - [param('std::string', 'tid')]) - return - -def register_Ns3PacketMetadata_methods(root_module, cls): - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor] - cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor] - cls.add_constructor([param('ns3::PacketMetadata const &', 'o')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::PacketMetadata const &', 'o')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function] - cls.add_method('AddHeader', - 'void', - [param('ns3::Header const &', 'header'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function] - cls.add_method('AddPaddingAtEnd', - 'void', - [param('uint32_t', 'end')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function] - cls.add_method('AddTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function] - cls.add_method('BeginItem', - 'ns3::PacketMetadata::ItemIterator', - [param('ns3::Buffer', 'buffer')], - is_const=True) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function] - cls.add_method('CreateFragment', - 'ns3::PacketMetadata', - [param('uint32_t', 'start'), param('uint32_t', 'end')], - is_const=True) - ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function] - cls.add_method('Enable', - 'void', - [], - is_static=True) - ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function] - cls.add_method('EnableChecking', - 'void', - [], - is_static=True) - ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function] - cls.add_method('GetUid', - 'uint64_t', - [], - is_const=True) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'end')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'start')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function] - cls.add_method('RemoveHeader', - 'void', - [param('ns3::Header const &', 'header'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function] - cls.add_method('RemoveTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - return - -def register_Ns3PacketMetadataItem_methods(root_module, cls): - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor] - cls.add_constructor([]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable] - cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable] - cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable] - cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable] - cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable] - cls.add_instance_attribute('isFragment', 'bool', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable] - cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) - return - -def register_Ns3PacketMetadataItemIterator_methods(root_module, cls): - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor] - cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')]) - ## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function] - cls.add_method('Next', - 'ns3::PacketMetadata::Item', - []) - return - -def register_Ns3PacketTagIterator_methods(root_module, cls): - ## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')]) - ## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function] - cls.add_method('Next', - 'ns3::PacketTagIterator::Item', - []) - return - -def register_Ns3PacketTagIteratorItem_methods(root_module, cls): - ## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')]) - ## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function] - cls.add_method('GetTag', - 'void', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_const=True) - return - -def register_Ns3PacketTagList_methods(root_module, cls): - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor] - cls.add_constructor([]) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor] - cls.add_constructor([param('ns3::PacketTagList const &', 'o')]) - ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function] - cls.add_method('Add', - 'void', - [param('ns3::Tag const &', 'tag')], - is_const=True) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function] - cls.add_method('Head', - 'ns3::PacketTagList::TagData const *', - [], - is_const=True) - ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function] - cls.add_method('Peek', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function] - cls.add_method('Remove', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function] - cls.add_method('RemoveAll', - 'void', - []) - ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Replace(ns3::Tag & tag) [member function] - cls.add_method('Replace', - 'bool', - [param('ns3::Tag &', 'tag')]) - return - -def register_Ns3PacketTagListTagData_methods(root_module, cls): - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor] - cls.add_constructor([]) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')]) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable] - cls.add_instance_attribute('count', 'uint32_t', is_const=False) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable] - cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable] - cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable] - cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) - return - -def register_Ns3PcapFile_methods(root_module, cls): - ## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor] - cls.add_constructor([]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Clear() [member function] - cls.add_method('Clear', - 'void', - []) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Close() [member function] - cls.add_method('Close', - 'void', - []) - ## pcap-file.h (module 'network'): static bool ns3::PcapFile::Diff(std::string const & f1, std::string const & f2, uint32_t & sec, uint32_t & usec, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT) [member function] - cls.add_method('Diff', - 'bool', - [param('std::string const &', 'f1'), param('std::string const &', 'f2'), param('uint32_t &', 'sec'), param('uint32_t &', 'usec'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT')], - is_static=True) - ## pcap-file.h (module 'network'): bool ns3::PcapFile::Eof() const [member function] - cls.add_method('Eof', - 'bool', - [], - is_const=True) - ## pcap-file.h (module 'network'): bool ns3::PcapFile::Fail() const [member function] - cls.add_method('Fail', - 'bool', - [], - is_const=True) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetDataLinkType() [member function] - cls.add_method('GetDataLinkType', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetMagic() [member function] - cls.add_method('GetMagic', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSigFigs() [member function] - cls.add_method('GetSigFigs', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSnapLen() [member function] - cls.add_method('GetSnapLen', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): bool ns3::PcapFile::GetSwapMode() [member function] - cls.add_method('GetSwapMode', - 'bool', - []) - ## pcap-file.h (module 'network'): int32_t ns3::PcapFile::GetTimeZoneOffset() [member function] - cls.add_method('GetTimeZoneOffset', - 'int32_t', - []) - ## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMajor() [member function] - cls.add_method('GetVersionMajor', - 'uint16_t', - []) - ## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMinor() [member function] - cls.add_method('GetVersionMinor', - 'uint16_t', - []) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Init(uint32_t dataLinkType, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT, int32_t timeZoneCorrection=ns3::PcapFile::ZONE_DEFAULT, bool swapMode=false) [member function] - cls.add_method('Init', - 'void', - [param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT'), param('int32_t', 'timeZoneCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT'), param('bool', 'swapMode', default_value='false')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Open(std::string const & filename, std::_Ios_Openmode mode) [member function] - cls.add_method('Open', - 'void', - [param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Read(uint8_t * const data, uint32_t maxBytes, uint32_t & tsSec, uint32_t & tsUsec, uint32_t & inclLen, uint32_t & origLen, uint32_t & readLen) [member function] - cls.add_method('Read', - 'void', - [param('uint8_t * const', 'data'), param('uint32_t', 'maxBytes'), param('uint32_t &', 'tsSec'), param('uint32_t &', 'tsUsec'), param('uint32_t &', 'inclLen'), param('uint32_t &', 'origLen'), param('uint32_t &', 'readLen')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, uint8_t const * const data, uint32_t totalLen) [member function] - cls.add_method('Write', - 'void', - [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('uint8_t const * const', 'data'), param('uint32_t', 'totalLen')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Header & header, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Header &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file.h (module 'network'): ns3::PcapFile::SNAPLEN_DEFAULT [variable] - cls.add_static_attribute('SNAPLEN_DEFAULT', 'uint32_t const', is_const=True) - ## pcap-file.h (module 'network'): ns3::PcapFile::ZONE_DEFAULT [variable] - cls.add_static_attribute('ZONE_DEFAULT', 'int32_t const', is_const=True) - return - -def register_Ns3PcapHelper_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper(ns3::PcapHelper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PcapHelper const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): ns3::Ptr ns3::PcapHelper::CreateFile(std::string filename, std::_Ios_Openmode filemode, uint32_t dataLinkType, uint32_t snapLen=65535, int32_t tzCorrection=0) [member function] - cls.add_method('CreateFile', - 'ns3::Ptr< ns3::PcapFileWrapper >', - [param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode'), param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='65535'), param('int32_t', 'tzCorrection', default_value='0')]) - ## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr device, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromDevice', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')]) - ## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr object, uint32_t interface, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromInterfacePair', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')]) - return - -def register_Ns3PcapHelperForDevice_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice(ns3::PcapHelperForDevice const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PcapHelperForDevice const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::Ptr nd, bool promiscuous=false, bool explicitFilename=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, std::string ndName, bool promiscuous=false, bool explicitFilename=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NetDeviceContainer d, bool promiscuous=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NodeContainer n, bool promiscuous=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('ns3::NodeContainer', 'n'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool promiscuous=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapAll(std::string prefix, bool promiscuous=false) [member function] - cls.add_method('EnablePcapAll', - 'void', - [param('std::string', 'prefix'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapInternal(std::string prefix, ns3::Ptr nd, bool promiscuous, bool explicitFilename) [member function] - cls.add_method('EnablePcapInternal', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], - is_pure_virtual=True, is_virtual=True) - return - -def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3Simulator_methods(root_module, cls): - ## simulator.h (module 'core'): ns3::Simulator::Simulator(ns3::Simulator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Simulator const &', 'arg0')]) - ## simulator.h (module 'core'): static void ns3::Simulator::Cancel(ns3::EventId const & id) [member function] - cls.add_method('Cancel', - 'void', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Destroy() [member function] - cls.add_method('Destroy', - 'void', - [], - is_static=True) - ## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetContext() [member function] - cls.add_method('GetContext', - 'uint32_t', - [], - is_static=True) - ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetDelayLeft(ns3::EventId const & id) [member function] - cls.add_method('GetDelayLeft', - 'ns3::Time', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static ns3::Ptr ns3::Simulator::GetImplementation() [member function] - cls.add_method('GetImplementation', - 'ns3::Ptr< ns3::SimulatorImpl >', - [], - is_static=True) - ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetMaximumSimulationTime() [member function] - cls.add_method('GetMaximumSimulationTime', - 'ns3::Time', - [], - is_static=True) - ## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetSystemId() [member function] - cls.add_method('GetSystemId', - 'uint32_t', - [], - is_static=True) - ## simulator.h (module 'core'): static bool ns3::Simulator::IsExpired(ns3::EventId const & id) [member function] - cls.add_method('IsExpired', - 'bool', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static bool ns3::Simulator::IsFinished() [member function] - cls.add_method('IsFinished', - 'bool', - [], - is_static=True) - ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function] - cls.add_method('Now', - 'ns3::Time', - [], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Remove(ns3::EventId const & id) [member function] - cls.add_method('Remove', - 'void', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr impl) [member function] - cls.add_method('SetImplementation', - 'void', - [param('ns3::Ptr< ns3::SimulatorImpl >', 'impl')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] - cls.add_method('SetScheduler', - 'void', - [param('ns3::ObjectFactory', 'schedulerFactory')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Stop() [member function] - cls.add_method('Stop', - 'void', - [], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Stop(ns3::Time const & time) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::Time const &', 'time')], - is_static=True) - return - -def register_Ns3SystemMutex_methods(root_module, cls): - ## system-mutex.h (module 'core'): ns3::SystemMutex::SystemMutex(ns3::SystemMutex const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SystemMutex const &', 'arg0')]) - ## system-mutex.h (module 'core'): ns3::SystemMutex::SystemMutex() [constructor] - cls.add_constructor([]) - ## system-mutex.h (module 'core'): void ns3::SystemMutex::Lock() [member function] - cls.add_method('Lock', - 'void', - []) - ## system-mutex.h (module 'core'): void ns3::SystemMutex::Unlock() [member function] - cls.add_method('Unlock', - 'void', - []) - return - -def register_Ns3Tag_methods(root_module, cls): - ## tag.h (module 'network'): ns3::Tag::Tag() [constructor] - cls.add_constructor([]) - ## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Tag const &', 'arg0')]) - ## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::TagBuffer', 'i')], - is_pure_virtual=True, is_virtual=True) - ## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::TagBuffer', 'i')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3TagBuffer_methods(root_module, cls): - ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')]) - ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor] - cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function] - cls.add_method('CopyFrom', - 'void', - [param('ns3::TagBuffer', 'o')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function] - cls.add_method('Read', - 'void', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')]) - ## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function] - cls.add_method('ReadDouble', - 'double', - []) - ## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function] - cls.add_method('ReadU16', - 'uint16_t', - []) - ## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function] - cls.add_method('ReadU32', - 'uint32_t', - []) - ## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function] - cls.add_method('ReadU64', - 'uint64_t', - []) - ## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function] - cls.add_method('ReadU8', - 'uint8_t', - []) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function] - cls.add_method('TrimAtEnd', - 'void', - [param('uint32_t', 'trim')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Write', - 'void', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function] - cls.add_method('WriteDouble', - 'void', - [param('double', 'v')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function] - cls.add_method('WriteU16', - 'void', - [param('uint16_t', 'data')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function] - cls.add_method('WriteU32', - 'void', - [param('uint32_t', 'data')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function] - cls.add_method('WriteU64', - 'void', - [param('uint64_t', 'v')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function] - cls.add_method('WriteU8', - 'void', - [param('uint8_t', 'v')]) - return - -def register_Ns3TimeWithUnit_methods(root_module, cls): - cls.add_output_stream_operator() - ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::TimeWithUnit const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeWithUnit const &', 'arg0')]) - ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::Time const time, ns3::Time::Unit const unit) [constructor] - cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')]) - return - -def register_Ns3TypeId_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor] - cls.add_constructor([param('char const *', 'name')]) - ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor] - cls.add_constructor([param('ns3::TypeId const &', 'o')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr accessor, ns3::Ptr checker) [member function] - cls.add_method('AddAttribute', - 'ns3::TypeId', - [param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr accessor, ns3::Ptr checker) [member function] - cls.add_method('AddAttribute', - 'ns3::TypeId', - [param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr accessor) [member function] - cls.add_method('AddTraceSource', - 'ns3::TypeId', - [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')]) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation ns3::TypeId::GetAttribute(uint32_t i) const [member function] - cls.add_method('GetAttribute', - 'ns3::TypeId::AttributeInformation', - [param('uint32_t', 'i')], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function] - cls.add_method('GetAttributeFullName', - 'std::string', - [param('uint32_t', 'i')], - is_const=True) - ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function] - cls.add_method('GetAttributeN', - 'uint32_t', - [], - is_const=True) - ## type-id.h (module 'core'): ns3::Callback ns3::TypeId::GetConstructor() const [member function] - cls.add_method('GetConstructor', - 'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', - [], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function] - cls.add_method('GetGroupName', - 'std::string', - [], - is_const=True) - ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetHash() const [member function] - cls.add_method('GetHash', - 'uint32_t', - [], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function] - cls.add_method('GetParent', - 'ns3::TypeId', - [], - is_const=True) - ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function] - cls.add_method('GetRegistered', - 'ns3::TypeId', - [param('uint32_t', 'i')], - is_static=True) - ## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function] - cls.add_method('GetRegisteredN', - 'uint32_t', - [], - is_static=True) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation ns3::TypeId::GetTraceSource(uint32_t i) const [member function] - cls.add_method('GetTraceSource', - 'ns3::TypeId::TraceSourceInformation', - [param('uint32_t', 'i')], - is_const=True) - ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function] - cls.add_method('GetTraceSourceN', - 'uint32_t', - [], - is_const=True) - ## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function] - cls.add_method('GetUid', - 'uint16_t', - [], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function] - cls.add_method('HasConstructor', - 'bool', - [], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function] - cls.add_method('HasParent', - 'bool', - [], - is_const=True) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function] - cls.add_method('HideFromDocumentation', - 'ns3::TypeId', - []) - ## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function] - cls.add_method('IsChildOf', - 'bool', - [param('ns3::TypeId', 'other')], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInformation * info) const [member function] - cls.add_method('LookupAttributeByName', - 'bool', - [param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info', transfer_ownership=False)], - is_const=True) - ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByHash(uint32_t hash) [member function] - cls.add_method('LookupByHash', - 'ns3::TypeId', - [param('uint32_t', 'hash')], - is_static=True) - ## type-id.h (module 'core'): static bool ns3::TypeId::LookupByHashFailSafe(uint32_t hash, ns3::TypeId * tid) [member function] - cls.add_method('LookupByHashFailSafe', - 'bool', - [param('uint32_t', 'hash'), param('ns3::TypeId *', 'tid')], - is_static=True) - ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function] - cls.add_method('LookupByName', - 'ns3::TypeId', - [param('std::string', 'name')], - is_static=True) - ## type-id.h (module 'core'): ns3::Ptr ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function] - cls.add_method('LookupTraceSourceByName', - 'ns3::Ptr< ns3::TraceSourceAccessor const >', - [param('std::string', 'name')], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function] - cls.add_method('MustHideFromDocumentation', - 'bool', - [], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::SetAttributeInitialValue(uint32_t i, ns3::Ptr initialValue) [member function] - cls.add_method('SetAttributeInitialValue', - 'bool', - [param('uint32_t', 'i'), param('ns3::Ptr< ns3::AttributeValue const >', 'initialValue')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function] - cls.add_method('SetGroupName', - 'ns3::TypeId', - [param('std::string', 'groupName')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function] - cls.add_method('SetParent', - 'ns3::TypeId', - [param('ns3::TypeId', 'tid')]) - ## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function] - cls.add_method('SetUid', - 'void', - [param('uint16_t', 'tid')]) - return - -def register_Ns3TypeIdAttributeInformation_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation(ns3::TypeId::AttributeInformation const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeId::AttributeInformation const &', 'arg0')]) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::accessor [variable] - cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::checker [variable] - cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::flags [variable] - cls.add_instance_attribute('flags', 'uint32_t', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::help [variable] - cls.add_instance_attribute('help', 'std::string', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::initialValue [variable] - cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::name [variable] - cls.add_instance_attribute('name', 'std::string', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::originalInitialValue [variable] - cls.add_instance_attribute('originalInitialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False) - return - -def register_Ns3TypeIdTraceSourceInformation_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation(ns3::TypeId::TraceSourceInformation const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeId::TraceSourceInformation const &', 'arg0')]) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::accessor [variable] - cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::TraceSourceAccessor const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::help [variable] - cls.add_instance_attribute('help', 'std::string', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::name [variable] - cls.add_instance_attribute('name', 'std::string', is_const=False) - return - -def register_Ns3Empty_methods(root_module, cls): - ## empty.h (module 'core'): ns3::empty::empty() [constructor] - cls.add_constructor([]) - ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor] - cls.add_constructor([param('ns3::empty const &', 'arg0')]) - return - -def register_Ns3Int64x64_t_methods(root_module, cls): - cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_unary_numeric_operator('-') - cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('>') - cls.add_binary_comparison_operator('!=') - cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', u'right')) - cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', u'right')) - cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', u'right')) - cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', u'right')) - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('<=') - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('>=') - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t() [constructor] - cls.add_constructor([]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(double v) [constructor] - cls.add_constructor([param('double', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long double v) [constructor] - cls.add_constructor([param('long double', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int v) [constructor] - cls.add_constructor([param('int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long int v) [constructor] - cls.add_constructor([param('long int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long int v) [constructor] - cls.add_constructor([param('long long int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(unsigned int v) [constructor] - cls.add_constructor([param('unsigned int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long unsigned int v) [constructor] - cls.add_constructor([param('long unsigned int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long unsigned int v) [constructor] - cls.add_constructor([param('long long unsigned int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int64_t hi, uint64_t lo) [constructor] - cls.add_constructor([param('int64_t', 'hi'), param('uint64_t', 'lo')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(ns3::int64x64_t const & o) [copy constructor] - cls.add_constructor([param('ns3::int64x64_t const &', 'o')]) - ## int64x64-double.h (module 'core'): double ns3::int64x64_t::GetDouble() const [member function] - cls.add_method('GetDouble', - 'double', - [], - is_const=True) - ## int64x64-double.h (module 'core'): int64_t ns3::int64x64_t::GetHigh() const [member function] - cls.add_method('GetHigh', - 'int64_t', - [], - is_const=True) - ## int64x64-double.h (module 'core'): uint64_t ns3::int64x64_t::GetLow() const [member function] - cls.add_method('GetLow', - 'uint64_t', - [], - is_const=True) - ## int64x64-double.h (module 'core'): static ns3::int64x64_t ns3::int64x64_t::Invert(uint64_t v) [member function] - cls.add_method('Invert', - 'ns3::int64x64_t', - [param('uint64_t', 'v')], - is_static=True) - ## int64x64-double.h (module 'core'): void ns3::int64x64_t::MulByInvert(ns3::int64x64_t const & o) [member function] - cls.add_method('MulByInvert', - 'void', - [param('ns3::int64x64_t const &', 'o')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::implementation [variable] - cls.add_static_attribute('implementation', 'ns3::int64x64_t::impl_type const', is_const=True) - return - -def register_Ns3Chunk_methods(root_module, cls): - ## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor] - cls.add_constructor([]) - ## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Chunk const &', 'arg0')]) - ## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_virtual=True) - ## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3EmuHelper_methods(root_module, cls): - ## emu-helper.h (module 'emu'): ns3::EmuHelper::EmuHelper(ns3::EmuHelper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EmuHelper const &', 'arg0')]) - ## emu-helper.h (module 'emu'): ns3::EmuHelper::EmuHelper() [constructor] - cls.add_constructor([]) - ## emu-helper.h (module 'emu'): ns3::NetDeviceContainer ns3::EmuHelper::Install(ns3::Ptr node) const [member function] - cls.add_method('Install', - 'ns3::NetDeviceContainer', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_const=True) - ## emu-helper.h (module 'emu'): ns3::NetDeviceContainer ns3::EmuHelper::Install(std::string nodeName) const [member function] - cls.add_method('Install', - 'ns3::NetDeviceContainer', - [param('std::string', 'nodeName')], - is_const=True) - ## emu-helper.h (module 'emu'): ns3::NetDeviceContainer ns3::EmuHelper::Install(ns3::NodeContainer const & c) const [member function] - cls.add_method('Install', - 'ns3::NetDeviceContainer', - [param('ns3::NodeContainer const &', 'c')], - is_const=True) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::SetAttribute(std::string n1, ns3::AttributeValue const & v1) [member function] - cls.add_method('SetAttribute', - 'void', - [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')]) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::SetQueue(std::string type, std::string n1="", ns3::AttributeValue const & v1=ns3::EmptyAttributeValue(), std::string n2="", ns3::AttributeValue const & v2=ns3::EmptyAttributeValue(), std::string n3="", ns3::AttributeValue const & v3=ns3::EmptyAttributeValue(), std::string n4="", ns3::AttributeValue const & v4=ns3::EmptyAttributeValue()) [member function] - cls.add_method('SetQueue', - 'void', - [param('std::string', 'type'), param('std::string', 'n1', default_value='""'), param('ns3::AttributeValue const &', 'v1', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n2', default_value='""'), param('ns3::AttributeValue const &', 'v2', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n3', default_value='""'), param('ns3::AttributeValue const &', 'v3', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n4', default_value='""'), param('ns3::AttributeValue const &', 'v4', default_value='ns3::EmptyAttributeValue()')]) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::EnableAsciiInternal(ns3::Ptr stream, std::string prefix, ns3::Ptr nd, bool explicitFilename) [member function] - cls.add_method('EnableAsciiInternal', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], - visibility='private', is_virtual=True) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::EnablePcapInternal(std::string prefix, ns3::Ptr nd, bool promiscuous, bool explicitFilename) [member function] - cls.add_method('EnablePcapInternal', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], - visibility='private', is_virtual=True) - return - -def register_Ns3Header_methods(root_module, cls): - cls.add_output_stream_operator() - ## header.h (module 'network'): ns3::Header::Header() [constructor] - cls.add_constructor([]) - ## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Header const &', 'arg0')]) - ## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_virtual=True) - ## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3Object_methods(root_module, cls): - ## object.h (module 'core'): ns3::Object::Object() [constructor] - cls.add_constructor([]) - ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr other) [member function] - cls.add_method('AggregateObject', - 'void', - [param('ns3::Ptr< ns3::Object >', 'other')]) - ## object.h (module 'core'): void ns3::Object::Dispose() [member function] - cls.add_method('Dispose', - 'void', - []) - ## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function] - cls.add_method('GetAggregateIterator', - 'ns3::Object::AggregateIterator', - [], - is_const=True) - ## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_const=True, is_virtual=True) - ## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## object.h (module 'core'): void ns3::Object::Initialize() [member function] - cls.add_method('Initialize', - 'void', - []) - ## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor] - cls.add_constructor([param('ns3::Object const &', 'o')], - visibility='protected') - ## object.h (module 'core'): void ns3::Object::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h (module 'core'): void ns3::Object::DoInitialize() [member function] - cls.add_method('DoInitialize', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function] - cls.add_method('NotifyNewAggregate', - 'void', - [], - visibility='protected', is_virtual=True) - return - -def register_Ns3ObjectAggregateIterator_methods(root_module, cls): - ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')]) - ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor] - cls.add_constructor([]) - ## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## object.h (module 'core'): ns3::Ptr ns3::Object::AggregateIterator::Next() [member function] - cls.add_method('Next', - 'ns3::Ptr< ns3::Object const >', - []) - return - -def register_Ns3PcapFileWrapper_methods(root_module, cls): - ## pcap-file-wrapper.h (module 'network'): static ns3::TypeId ns3::PcapFileWrapper::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper::PcapFileWrapper() [constructor] - cls.add_constructor([]) - ## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Fail() const [member function] - cls.add_method('Fail', - 'bool', - [], - is_const=True) - ## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Eof() const [member function] - cls.add_method('Eof', - 'bool', - [], - is_const=True) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Clear() [member function] - cls.add_method('Clear', - 'void', - []) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Open(std::string const & filename, std::_Ios_Openmode mode) [member function] - cls.add_method('Open', - 'void', - [param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Close() [member function] - cls.add_method('Close', - 'void', - []) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Init(uint32_t dataLinkType, uint32_t snapLen=std::numeric_limits::max(), int32_t tzCorrection=ns3::PcapFile::ZONE_DEFAULT) [member function] - cls.add_method('Init', - 'void', - [param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='std::numeric_limits::max()'), param('int32_t', 'tzCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Time', 't'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Header & header, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Time', 't'), param('ns3::Header &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, uint8_t const * buffer, uint32_t length) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Time', 't'), param('uint8_t const *', 'buffer'), param('uint32_t', 'length')]) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetMagic() [member function] - cls.add_method('GetMagic', - 'uint32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMajor() [member function] - cls.add_method('GetVersionMajor', - 'uint16_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMinor() [member function] - cls.add_method('GetVersionMinor', - 'uint16_t', - []) - ## pcap-file-wrapper.h (module 'network'): int32_t ns3::PcapFileWrapper::GetTimeZoneOffset() [member function] - cls.add_method('GetTimeZoneOffset', - 'int32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSigFigs() [member function] - cls.add_method('GetSigFigs', - 'uint32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSnapLen() [member function] - cls.add_method('GetSnapLen', - 'uint32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetDataLinkType() [member function] - cls.add_method('GetDataLinkType', - 'uint32_t', - []) - return - -def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3HashImplementation_Ns3Empty_Ns3DefaultDeleter__lt__ns3HashImplementation__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter< ns3::Hash::Implementation > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter< ns3::OutputStreamWrapper > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_Ns3DefaultDeleter__lt__ns3SystemThread__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter< ns3::SystemThread > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter< ns3::TraceSourceAccessor > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SystemThread_methods(root_module, cls): - ## system-thread.h (module 'core'): ns3::SystemThread::SystemThread(ns3::SystemThread const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SystemThread const &', 'arg0')]) - ## system-thread.h (module 'core'): ns3::SystemThread::SystemThread(ns3::Callback callback) [constructor] - cls.add_constructor([param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')]) - ## system-thread.h (module 'core'): static bool ns3::SystemThread::Equals(pthread_t id) [member function] - cls.add_method('Equals', - 'bool', - [param('pthread_t', 'id')], - is_static=True) - ## system-thread.h (module 'core'): void ns3::SystemThread::Join() [member function] - cls.add_method('Join', - 'void', - []) - ## system-thread.h (module 'core'): static pthread_t ns3::SystemThread::Self() [member function] - cls.add_method('Self', - 'pthread_t', - [], - is_static=True) - ## system-thread.h (module 'core'): void ns3::SystemThread::Start() [member function] - cls.add_method('Start', - 'void', - []) - return - -def register_Ns3Time_methods(root_module, cls): - cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right')) - cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right')) - cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right')) - cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right')) - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('>') - cls.add_binary_comparison_operator('!=') - cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', u'right')) - cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', u'right')) - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('<=') - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('>=') - ## nstime.h (module 'core'): ns3::Time::Time() [constructor] - cls.add_constructor([]) - ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor] - cls.add_constructor([param('ns3::Time const &', 'o')]) - ## nstime.h (module 'core'): ns3::Time::Time(double v) [constructor] - cls.add_constructor([param('double', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(int v) [constructor] - cls.add_constructor([param('int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long int v) [constructor] - cls.add_constructor([param('long int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long long int v) [constructor] - cls.add_constructor([param('long long int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(unsigned int v) [constructor] - cls.add_constructor([param('unsigned int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long unsigned int v) [constructor] - cls.add_constructor([param('long unsigned int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long long unsigned int v) [constructor] - cls.add_constructor([param('long long unsigned int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & v) [constructor] - cls.add_constructor([param('ns3::int64x64_t const &', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor] - cls.add_constructor([param('std::string const &', 's')]) - ## nstime.h (module 'core'): ns3::TimeWithUnit ns3::Time::As(ns3::Time::Unit const unit) const [member function] - cls.add_method('As', - 'ns3::TimeWithUnit', - [param('ns3::Time::Unit const', 'unit')], - is_const=True) - ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function] - cls.add_method('Compare', - 'int', - [param('ns3::Time const &', 'o')], - is_const=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & value) [member function] - cls.add_method('From', - 'ns3::Time', - [param('ns3::int64x64_t const &', 'value')], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & value, ns3::Time::Unit unit) [member function] - cls.add_method('From', - 'ns3::Time', - [param('ns3::int64x64_t const &', 'value'), param('ns3::Time::Unit', 'unit')], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit unit) [member function] - cls.add_method('FromDouble', - 'ns3::Time', - [param('double', 'value'), param('ns3::Time::Unit', 'unit')], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit unit) [member function] - cls.add_method('FromInteger', - 'ns3::Time', - [param('uint64_t', 'value'), param('ns3::Time::Unit', 'unit')], - is_static=True) - ## nstime.h (module 'core'): double ns3::Time::GetDays() const [member function] - cls.add_method('GetDays', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetDouble() const [member function] - cls.add_method('GetDouble', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function] - cls.add_method('GetFemtoSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetHours() const [member function] - cls.add_method('GetHours', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetInteger() const [member function] - cls.add_method('GetInteger', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function] - cls.add_method('GetMicroSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function] - cls.add_method('GetMilliSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetMinutes() const [member function] - cls.add_method('GetMinutes', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function] - cls.add_method('GetNanoSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function] - cls.add_method('GetPicoSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function] - cls.add_method('GetResolution', - 'ns3::Time::Unit', - [], - is_static=True) - ## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function] - cls.add_method('GetSeconds', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function] - cls.add_method('GetTimeStep', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetYears() const [member function] - cls.add_method('GetYears', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function] - cls.add_method('IsNegative', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function] - cls.add_method('IsPositive', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function] - cls.add_method('IsStrictlyNegative', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function] - cls.add_method('IsStrictlyPositive', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function] - cls.add_method('IsZero', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::Max() [member function] - cls.add_method('Max', - 'ns3::Time', - [], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::Min() [member function] - cls.add_method('Min', - 'ns3::Time', - [], - is_static=True) - ## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function] - cls.add_method('SetResolution', - 'void', - [param('ns3::Time::Unit', 'resolution')], - is_static=True) - ## nstime.h (module 'core'): static bool ns3::Time::StaticInit() [member function] - cls.add_method('StaticInit', - 'bool', - [], - is_static=True) - ## nstime.h (module 'core'): ns3::int64x64_t ns3::Time::To(ns3::Time::Unit unit) const [member function] - cls.add_method('To', - 'ns3::int64x64_t', - [param('ns3::Time::Unit', 'unit')], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::ToDouble(ns3::Time::Unit unit) const [member function] - cls.add_method('ToDouble', - 'double', - [param('ns3::Time::Unit', 'unit')], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::ToInteger(ns3::Time::Unit unit) const [member function] - cls.add_method('ToInteger', - 'int64_t', - [param('ns3::Time::Unit', 'unit')], - is_const=True) - return - -def register_Ns3TraceSourceAccessor_methods(root_module, cls): - ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')]) - ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor] - cls.add_constructor([]) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Connect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function] - cls.add_method('Connect', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::ConnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function] - cls.add_method('ConnectWithoutContext', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Disconnect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function] - cls.add_method('Disconnect', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::DisconnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function] - cls.add_method('DisconnectWithoutContext', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3Trailer_methods(root_module, cls): - cls.add_output_stream_operator() - ## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor] - cls.add_constructor([]) - ## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Trailer const &', 'arg0')]) - ## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'end')], - is_pure_virtual=True, is_virtual=True) - ## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3AttributeAccessor_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function] - cls.add_method('Get', - 'bool', - [param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function] - cls.add_method('HasGetter', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function] - cls.add_method('HasSetter', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function] - cls.add_method('Set', - 'bool', - [param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3AttributeChecker_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function] - cls.add_method('Check', - 'bool', - [param('ns3::AttributeValue const &', 'value')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function] - cls.add_method('Copy', - 'bool', - [param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): ns3::Ptr ns3::AttributeChecker::Create() const [member function] - cls.add_method('Create', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): ns3::Ptr ns3::AttributeChecker::CreateValidValue(ns3::AttributeValue const & value) const [member function] - cls.add_method('CreateValidValue', - 'ns3::Ptr< ns3::AttributeValue >', - [param('ns3::AttributeValue const &', 'value')], - is_const=True) - ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function] - cls.add_method('GetUnderlyingTypeInformation', - 'std::string', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function] - cls.add_method('GetValueTypeName', - 'std::string', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function] - cls.add_method('HasUnderlyingTypeInformation', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3AttributeValue_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): ns3::Ptr ns3::AttributeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_pure_virtual=True, is_virtual=True) - ## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3CallbackChecker_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')]) - return - -def register_Ns3CallbackImplBase_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) - ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3CallbackValue_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')]) - ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor] - cls.add_constructor([param('ns3::CallbackBase const &', 'base')]) - ## callback.h (module 'core'): ns3::Ptr ns3::CallbackValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function] - cls.add_method('Set', - 'void', - [param('ns3::CallbackBase', 'base')]) - return - -def register_Ns3DataRateChecker_methods(root_module, cls): - ## data-rate.h (module 'network'): ns3::DataRateChecker::DataRateChecker() [constructor] - cls.add_constructor([]) - ## data-rate.h (module 'network'): ns3::DataRateChecker::DataRateChecker(ns3::DataRateChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRateChecker const &', 'arg0')]) - return - -def register_Ns3DataRateValue_methods(root_module, cls): - ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue() [constructor] - cls.add_constructor([]) - ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')]) - ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor] - cls.add_constructor([param('ns3::DataRate const &', 'value')]) - ## data-rate.h (module 'network'): ns3::Ptr ns3::DataRateValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## data-rate.h (module 'network'): bool ns3::DataRateValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## data-rate.h (module 'network'): ns3::DataRate ns3::DataRateValue::Get() const [member function] - cls.add_method('Get', - 'ns3::DataRate', - [], - is_const=True) - ## data-rate.h (module 'network'): std::string ns3::DataRateValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## data-rate.h (module 'network'): void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::DataRate const &', 'value')]) - return - -def register_Ns3EmptyAttributeValue_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): ns3::Ptr ns3::EmptyAttributeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, visibility='private', is_virtual=True) - ## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - visibility='private', is_virtual=True) - ## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, visibility='private', is_virtual=True) - return - -def register_Ns3EventImpl_methods(root_module, cls): - ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EventImpl const &', 'arg0')]) - ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor] - cls.add_constructor([]) - ## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function] - cls.add_method('Cancel', - 'void', - []) - ## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function] - cls.add_method('Invoke', - 'void', - []) - ## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function] - cls.add_method('IsCancelled', - 'bool', - []) - ## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function] - cls.add_method('Notify', - 'void', - [], - is_pure_virtual=True, visibility='protected', is_virtual=True) - return - -def register_Ns3Ipv4AddressChecker_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')]) - return - -def register_Ns3Ipv4AddressValue_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Address const &', 'value')]) - ## ipv4-address.h (module 'network'): ns3::Ptr ns3::Ipv4AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Address const &', 'value')]) - return - -def register_Ns3Ipv4MaskChecker_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')]) - return - -def register_Ns3Ipv4MaskValue_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')]) - ## ipv4-address.h (module 'network'): ns3::Ptr ns3::Ipv4MaskValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Mask', - [], - is_const=True) - ## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Mask const &', 'value')]) - return - -def register_Ns3Ipv6AddressChecker_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')]) - return - -def register_Ns3Ipv6AddressValue_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Address const &', 'value')]) - ## ipv6-address.h (module 'network'): ns3::Ptr ns3::Ipv6AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Address const &', 'value')]) - return - -def register_Ns3Ipv6PrefixChecker_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')]) - return - -def register_Ns3Ipv6PrefixValue_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')]) - ## ipv6-address.h (module 'network'): ns3::Ptr ns3::Ipv6PrefixValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Prefix', - [], - is_const=True) - ## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Prefix const &', 'value')]) - return - -def register_Ns3Mac48AddressChecker_methods(root_module, cls): - ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor] - cls.add_constructor([]) - ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker(ns3::Mac48AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48AddressChecker const &', 'arg0')]) - return - -def register_Ns3Mac48AddressValue_methods(root_module, cls): - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue() [constructor] - cls.add_constructor([]) - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')]) - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor] - cls.add_constructor([param('ns3::Mac48Address const &', 'value')]) - ## mac48-address.h (module 'network'): ns3::Ptr ns3::Mac48AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## mac48-address.h (module 'network'): bool ns3::Mac48AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## mac48-address.h (module 'network'): ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Mac48Address', - [], - is_const=True) - ## mac48-address.h (module 'network'): std::string ns3::Mac48AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## mac48-address.h (module 'network'): void ns3::Mac48AddressValue::Set(ns3::Mac48Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Mac48Address const &', 'value')]) - return - -def register_Ns3NetDevice_methods(root_module, cls): - ## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor] - cls.add_constructor([]) - ## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NetDevice const &', 'arg0')]) - ## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback callback) [member function] - cls.add_method('AddLinkChangeCallback', - 'void', - [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function] - cls.add_method('GetAddress', - 'ns3::Address', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function] - cls.add_method('GetBroadcast', - 'ns3::Address', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Ptr ns3::NetDevice::GetChannel() const [member function] - cls.add_method('GetChannel', - 'ns3::Ptr< ns3::Channel >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function] - cls.add_method('GetIfIndex', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function] - cls.add_method('GetMtu', - 'uint16_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv4Address', 'multicastGroup')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv6Address', 'addr')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Ptr ns3::NetDevice::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function] - cls.add_method('IsBridge', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function] - cls.add_method('IsLinkUp', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function] - cls.add_method('IsPointToPoint', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function] - cls.add_method('NeedsArp', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr packet, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('Send', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('SendFrom', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function] - cls.add_method('SetAddress', - 'void', - [param('ns3::Address', 'address')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function] - cls.add_method('SetIfIndex', - 'void', - [param('uint32_t const', 'index')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function] - cls.add_method('SetMtu', - 'bool', - [param('uint16_t const', 'mtu')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetPromiscReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function] - cls.add_method('SupportsSendFrom', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3NixVector_methods(root_module, cls): - cls.add_output_stream_operator() - ## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor] - cls.add_constructor([]) - ## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor] - cls.add_constructor([param('ns3::NixVector const &', 'o')]) - ## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function] - cls.add_method('AddNeighborIndex', - 'void', - [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')]) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function] - cls.add_method('BitCount', - 'uint32_t', - [param('uint32_t', 'numberOfNeighbors')], - is_const=True) - ## nix-vector.h (module 'network'): ns3::Ptr ns3::NixVector::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::NixVector >', - [], - is_const=True) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('uint32_t const *', 'buffer'), param('uint32_t', 'size')]) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function] - cls.add_method('ExtractNeighborIndex', - 'uint32_t', - [param('uint32_t', 'numberOfBits')]) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function] - cls.add_method('GetRemainingBits', - 'uint32_t', - []) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - return - -def register_Ns3Node_methods(root_module, cls): - ## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Node const &', 'arg0')]) - ## node.h (module 'network'): ns3::Node::Node() [constructor] - cls.add_constructor([]) - ## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor] - cls.add_constructor([param('uint32_t', 'systemId')]) - ## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr application) [member function] - cls.add_method('AddApplication', - 'uint32_t', - [param('ns3::Ptr< ns3::Application >', 'application')]) - ## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr device) [member function] - cls.add_method('AddDevice', - 'uint32_t', - [param('ns3::Ptr< ns3::NetDevice >', 'device')]) - ## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function] - cls.add_method('ChecksumEnabled', - 'bool', - [], - is_static=True) - ## node.h (module 'network'): ns3::Ptr ns3::Node::GetApplication(uint32_t index) const [member function] - cls.add_method('GetApplication', - 'ns3::Ptr< ns3::Application >', - [param('uint32_t', 'index')], - is_const=True) - ## node.h (module 'network'): ns3::Ptr ns3::Node::GetDevice(uint32_t index) const [member function] - cls.add_method('GetDevice', - 'ns3::Ptr< ns3::NetDevice >', - [param('uint32_t', 'index')], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function] - cls.add_method('GetId', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function] - cls.add_method('GetNApplications', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function] - cls.add_method('GetNDevices', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function] - cls.add_method('GetSystemId', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## node.h (module 'network'): void ns3::Node::RegisterDeviceAdditionListener(ns3::Callback,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function] - cls.add_method('RegisterDeviceAdditionListener', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')]) - ## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr device, bool promiscuous=false) [member function] - cls.add_method('RegisterProtocolHandler', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')]) - ## node.h (module 'network'): void ns3::Node::UnregisterDeviceAdditionListener(ns3::Callback,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function] - cls.add_method('UnregisterDeviceAdditionListener', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')]) - ## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function] - cls.add_method('UnregisterProtocolHandler', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')]) - ## node.h (module 'network'): void ns3::Node::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## node.h (module 'network'): void ns3::Node::DoInitialize() [member function] - cls.add_method('DoInitialize', - 'void', - [], - visibility='protected', is_virtual=True) - return - -def register_Ns3ObjectFactoryChecker_methods(root_module, cls): - ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor] - cls.add_constructor([]) - ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')]) - return - -def register_Ns3ObjectFactoryValue_methods(root_module, cls): - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor] - cls.add_constructor([]) - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')]) - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor] - cls.add_constructor([param('ns3::ObjectFactory const &', 'value')]) - ## object-factory.h (module 'core'): ns3::Ptr ns3::ObjectFactoryValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function] - cls.add_method('Get', - 'ns3::ObjectFactory', - [], - is_const=True) - ## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::ObjectFactory const &', 'value')]) - return - -def register_Ns3OutputStreamWrapper_methods(root_module, cls): - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(ns3::OutputStreamWrapper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::OutputStreamWrapper const &', 'arg0')]) - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::string filename, std::_Ios_Openmode filemode) [constructor] - cls.add_constructor([param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode')]) - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::ostream * os) [constructor] - cls.add_constructor([param('std::ostream *', 'os')]) - ## output-stream-wrapper.h (module 'network'): std::ostream * ns3::OutputStreamWrapper::GetStream() [member function] - cls.add_method('GetStream', - 'std::ostream *', - []) - return - -def register_Ns3Packet_methods(root_module, cls): - cls.add_output_stream_operator() - ## packet.h (module 'network'): ns3::Packet::Packet() [constructor] - cls.add_constructor([]) - ## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor] - cls.add_constructor([param('ns3::Packet const &', 'o')]) - ## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor] - cls.add_constructor([param('uint32_t', 'size')]) - ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor] - cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')]) - ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor] - cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr packet) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::Ptr< ns3::Packet const >', 'packet')]) - ## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function] - cls.add_method('AddByteTag', - 'void', - [param('ns3::Tag const &', 'tag')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function] - cls.add_method('AddHeader', - 'void', - [param('ns3::Header const &', 'header')]) - ## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function] - cls.add_method('AddPacketTag', - 'void', - [param('ns3::Tag const &', 'tag')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function] - cls.add_method('AddPaddingAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function] - cls.add_method('AddTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer')]) - ## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function] - cls.add_method('BeginItem', - 'ns3::PacketMetadata::ItemIterator', - [], - is_const=True) - ## packet.h (module 'network'): ns3::Ptr ns3::Packet::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::Packet >', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function] - cls.add_method('CopyData', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function] - cls.add_method('CopyData', - 'void', - [param('std::ostream *', 'os'), param('uint32_t', 'size')], - is_const=True) - ## packet.h (module 'network'): ns3::Ptr ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function] - cls.add_method('CreateFragment', - 'ns3::Ptr< ns3::Packet >', - [param('uint32_t', 'start'), param('uint32_t', 'length')], - is_const=True) - ## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function] - cls.add_method('EnableChecking', - 'void', - [], - is_static=True) - ## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function] - cls.add_method('EnablePrinting', - 'void', - [], - is_static=True) - ## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function] - cls.add_method('FindFirstMatchingByteTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function] - cls.add_method('GetByteTagIterator', - 'ns3::ByteTagIterator', - [], - is_const=True) - ## packet.h (module 'network'): ns3::Ptr ns3::Packet::GetNixVector() const [member function] - cls.add_method('GetNixVector', - 'ns3::Ptr< ns3::NixVector >', - [], - is_const=True) - ## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function] - cls.add_method('GetPacketTagIterator', - 'ns3::PacketTagIterator', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function] - cls.add_method('GetUid', - 'uint64_t', - [], - is_const=True) - ## packet.h (module 'network'): uint8_t const * ns3::Packet::PeekData() const [member function] - cls.add_method('PeekData', - 'uint8_t const *', - [], - deprecated=True, is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function] - cls.add_method('PeekHeader', - 'uint32_t', - [param('ns3::Header &', 'header')], - is_const=True) - ## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function] - cls.add_method('PeekPacketTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('PeekTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function] - cls.add_method('PrintByteTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function] - cls.add_method('PrintPacketTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function] - cls.add_method('RemoveAllByteTags', - 'void', - []) - ## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function] - cls.add_method('RemoveAllPacketTags', - 'void', - []) - ## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'size')]) - ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function] - cls.add_method('RemoveHeader', - 'uint32_t', - [param('ns3::Header &', 'header')]) - ## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function] - cls.add_method('RemovePacketTag', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('RemoveTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h (module 'network'): bool ns3::Packet::ReplacePacketTag(ns3::Tag & tag) [member function] - cls.add_method('ReplacePacketTag', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr nixVector) [member function] - cls.add_method('SetNixVector', - 'void', - [param('ns3::Ptr< ns3::NixVector >', 'nixVector')]) - return - -def register_Ns3TimeValue_methods(root_module, cls): - ## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor] - cls.add_constructor([]) - ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeValue const &', 'arg0')]) - ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor] - cls.add_constructor([param('ns3::Time const &', 'value')]) - ## nstime.h (module 'core'): ns3::Ptr ns3::TimeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Time', - [], - is_const=True) - ## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Time const &', 'value')]) - return - -def register_Ns3TypeIdChecker_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')]) - return - -def register_Ns3TypeIdValue_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')]) - ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor] - cls.add_constructor([param('ns3::TypeId const &', 'value')]) - ## type-id.h (module 'core'): ns3::Ptr ns3::TypeIdValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function] - cls.add_method('Get', - 'ns3::TypeId', - [], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::TypeId const &', 'value')]) - return - -def register_Ns3AddressChecker_methods(root_module, cls): - ## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor] - cls.add_constructor([]) - ## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')]) - return - -def register_Ns3AddressValue_methods(root_module, cls): - ## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor] - cls.add_constructor([]) - ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AddressValue const &', 'arg0')]) - ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor] - cls.add_constructor([param('ns3::Address const &', 'value')]) - ## address.h (module 'network'): ns3::Ptr ns3::AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Address', - [], - is_const=True) - ## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Address const &', 'value')]) - return - -def register_Ns3EmuNetDevice_methods(root_module, cls): - ## emu-net-device.h (module 'emu'): static ns3::TypeId ns3::EmuNetDevice::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice::EmuNetDevice() [constructor] - cls.add_constructor([]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetDataRate(ns3::DataRate bps) [member function] - cls.add_method('SetDataRate', - 'void', - [param('ns3::DataRate', 'bps')]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::Start(ns3::Time tStart) [member function] - cls.add_method('Start', - 'void', - [param('ns3::Time', 'tStart')]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::Stop(ns3::Time tStop) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::Time', 'tStop')]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetQueue(ns3::Ptr queue) [member function] - cls.add_method('SetQueue', - 'void', - [param('ns3::Ptr< ns3::Queue >', 'queue')]) - ## emu-net-device.h (module 'emu'): ns3::Ptr ns3::EmuNetDevice::GetQueue() const [member function] - cls.add_method('GetQueue', - 'ns3::Ptr< ns3::Queue >', - [], - is_const=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetIfIndex(uint32_t const index) [member function] - cls.add_method('SetIfIndex', - 'void', - [param('uint32_t const', 'index')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): uint32_t ns3::EmuNetDevice::GetIfIndex() const [member function] - cls.add_method('GetIfIndex', - 'uint32_t', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Ptr ns3::EmuNetDevice::GetChannel() const [member function] - cls.add_method('GetChannel', - 'ns3::Ptr< ns3::Channel >', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetAddress(ns3::Address address) [member function] - cls.add_method('SetAddress', - 'void', - [param('ns3::Address', 'address')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetAddress() const [member function] - cls.add_method('GetAddress', - 'ns3::Address', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::SetMtu(uint16_t const mtu) [member function] - cls.add_method('SetMtu', - 'bool', - [param('uint16_t const', 'mtu')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): uint16_t ns3::EmuNetDevice::GetMtu() const [member function] - cls.add_method('GetMtu', - 'uint16_t', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsLinkUp() const [member function] - cls.add_method('IsLinkUp', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::AddLinkChangeCallback(ns3::Callback callback) [member function] - cls.add_method('AddLinkChangeCallback', - 'void', - [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetBroadcast() const [member function] - cls.add_method('GetBroadcast', - 'ns3::Address', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv4Address', 'multicastGroup')], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv6Address', 'addr')], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsPointToPoint() const [member function] - cls.add_method('IsPointToPoint', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsBridge() const [member function] - cls.add_method('IsBridge', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::Send(ns3::Ptr packet, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('Send', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::SendFrom(ns3::Ptr packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('SendFrom', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Ptr ns3::EmuNetDevice::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::NeedsArp() const [member function] - cls.add_method('NeedsArp', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetPromiscReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetPromiscReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::SupportsSendFrom() const [member function] - cls.add_method('SupportsSendFrom', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetEncapsulationMode(ns3::EmuNetDevice::EncapsulationMode mode) [member function] - cls.add_method('SetEncapsulationMode', - 'void', - [param('ns3::EmuNetDevice::EncapsulationMode', 'mode')]) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice::EncapsulationMode ns3::EmuNetDevice::GetEncapsulationMode() const [member function] - cls.add_method('GetEncapsulationMode', - 'ns3::EmuNetDevice::EncapsulationMode', - [], - is_const=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='private', is_virtual=True) - return - -def register_Ns3HashImplementation_methods(root_module, cls): - ## hash-function.h (module 'core'): ns3::Hash::Implementation::Implementation(ns3::Hash::Implementation const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Implementation const &', 'arg0')]) - ## hash-function.h (module 'core'): ns3::Hash::Implementation::Implementation() [constructor] - cls.add_constructor([]) - ## hash-function.h (module 'core'): uint32_t ns3::Hash::Implementation::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_pure_virtual=True, is_virtual=True) - ## hash-function.h (module 'core'): uint64_t ns3::Hash::Implementation::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): void ns3::Hash::Implementation::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_pure_virtual=True, is_virtual=True) - return - -def register_Ns3HashFunctionFnv1a_methods(root_module, cls): - ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a::Fnv1a(ns3::Hash::Function::Fnv1a const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Fnv1a const &', 'arg0')]) - ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a::Fnv1a() [constructor] - cls.add_constructor([]) - ## hash-fnv.h (module 'core'): uint32_t ns3::Hash::Function::Fnv1a::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-fnv.h (module 'core'): uint64_t ns3::Hash::Function::Fnv1a::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-fnv.h (module 'core'): void ns3::Hash::Function::Fnv1a::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_Ns3HashFunctionHash32_methods(root_module, cls): - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32::Hash32(ns3::Hash::Function::Hash32 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Hash32 const &', 'arg0')]) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32::Hash32(ns3::Hash::Hash32Function_ptr hp) [constructor] - cls.add_constructor([param('ns3::Hash::Hash32Function_ptr', 'hp')]) - ## hash-function.h (module 'core'): uint32_t ns3::Hash::Function::Hash32::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): void ns3::Hash::Function::Hash32::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_Ns3HashFunctionHash64_methods(root_module, cls): - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64::Hash64(ns3::Hash::Function::Hash64 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Hash64 const &', 'arg0')]) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64::Hash64(ns3::Hash::Hash64Function_ptr hp) [constructor] - cls.add_constructor([param('ns3::Hash::Hash64Function_ptr', 'hp')]) - ## hash-function.h (module 'core'): uint32_t ns3::Hash::Function::Hash64::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): uint64_t ns3::Hash::Function::Hash64::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): void ns3::Hash::Function::Hash64::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_Ns3HashFunctionMurmur3_methods(root_module, cls): - ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3::Murmur3(ns3::Hash::Function::Murmur3 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Murmur3 const &', 'arg0')]) - ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3::Murmur3() [constructor] - cls.add_constructor([]) - ## hash-murmur3.h (module 'core'): uint32_t ns3::Hash::Function::Murmur3::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-murmur3.h (module 'core'): uint64_t ns3::Hash::Function::Murmur3::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-murmur3.h (module 'core'): void ns3::Hash::Function::Murmur3::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_functions(root_module): - module = root_module - register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module) - register_functions_ns3_Hash(module.get_submodule('Hash'), root_module) - return - -def register_functions_ns3_FatalImpl(module, root_module): - return - -def register_functions_ns3_Hash(module, root_module): - register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module) - return - -def register_functions_ns3_Hash_Function(module, root_module): - return - -def main(): - out = FileCodeSink(sys.stdout) - root_module = module_init() - register_types(root_module) - register_methods(root_module) - register_functions(root_module) - root_module.generate(out) - -if __name__ == '__main__': - main() - diff --git a/src/emu/bindings/modulegen__gcc_LP64.py b/src/emu/bindings/modulegen__gcc_LP64.py deleted file mode 100644 index c0e6a254a..000000000 --- a/src/emu/bindings/modulegen__gcc_LP64.py +++ /dev/null @@ -1,4631 +0,0 @@ -from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers - - -import pybindgen.settings -import warnings - -class ErrorHandler(pybindgen.settings.ErrorHandler): - def handle_error(self, wrapper, exception, traceback_): - warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) - return True -pybindgen.settings.error_handler = ErrorHandler() - - -import sys - -def module_init(): - root_module = Module('ns.emu', cpp_namespace='::ns3') - return root_module - -def register_types(module): - root_module = module.get_root() - - ## address.h (module 'network'): ns3::Address [class] - module.add_class('Address', import_from_module='ns.network') - ## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration] - module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper [class] - module.add_class('AsciiTraceHelper', import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice [class] - module.add_class('AsciiTraceHelperForDevice', allow_subclassing=True, import_from_module='ns.network') - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList [class] - module.add_class('AttributeConstructionList', import_from_module='ns.core') - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item [struct] - module.add_class('Item', import_from_module='ns.core', outer_class=root_module['ns3::AttributeConstructionList']) - ## buffer.h (module 'network'): ns3::Buffer [class] - module.add_class('Buffer', import_from_module='ns.network') - ## buffer.h (module 'network'): ns3::Buffer::Iterator [class] - module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer']) - ## packet.h (module 'network'): ns3::ByteTagIterator [class] - module.add_class('ByteTagIterator', import_from_module='ns.network') - ## packet.h (module 'network'): ns3::ByteTagIterator::Item [class] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator']) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList [class] - module.add_class('ByteTagList', import_from_module='ns.network') - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class] - module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList']) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator']) - ## callback.h (module 'core'): ns3::CallbackBase [class] - module.add_class('CallbackBase', import_from_module='ns.core') - ## system-mutex.h (module 'core'): ns3::CriticalSection [class] - module.add_class('CriticalSection', import_from_module='ns.core') - ## data-rate.h (module 'network'): ns3::DataRate [class] - module.add_class('DataRate', import_from_module='ns.network') - ## event-id.h (module 'core'): ns3::EventId [class] - module.add_class('EventId', import_from_module='ns.core') - ## hash.h (module 'core'): ns3::Hasher [class] - module.add_class('Hasher', import_from_module='ns.core') - ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class] - module.add_class('Ipv4Address', import_from_module='ns.network') - ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class] - root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address']) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class] - module.add_class('Ipv4Mask', import_from_module='ns.network') - ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class] - module.add_class('Ipv6Address', import_from_module='ns.network') - ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class] - root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address']) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class] - module.add_class('Ipv6Prefix', import_from_module='ns.network') - ## mac48-address.h (module 'network'): ns3::Mac48Address [class] - module.add_class('Mac48Address', import_from_module='ns.network') - ## mac48-address.h (module 'network'): ns3::Mac48Address [class] - root_module['ns3::Mac48Address'].implicitly_converts_to(root_module['ns3::Address']) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class] - module.add_class('NetDeviceContainer', import_from_module='ns.network') - ## node-container.h (module 'network'): ns3::NodeContainer [class] - module.add_class('NodeContainer', import_from_module='ns.network') - ## object-base.h (module 'core'): ns3::ObjectBase [class] - module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core') - ## object.h (module 'core'): ns3::ObjectDeleter [struct] - module.add_class('ObjectDeleter', import_from_module='ns.core') - ## object-factory.h (module 'core'): ns3::ObjectFactory [class] - module.add_class('ObjectFactory', import_from_module='ns.core') - ## packet-metadata.h (module 'network'): ns3::PacketMetadata [class] - module.add_class('PacketMetadata', import_from_module='ns.network') - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata']) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration] - module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network') - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class] - module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata']) - ## packet.h (module 'network'): ns3::PacketTagIterator [class] - module.add_class('PacketTagIterator', import_from_module='ns.network') - ## packet.h (module 'network'): ns3::PacketTagIterator::Item [class] - module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator']) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList [class] - module.add_class('PacketTagList', import_from_module='ns.network') - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct] - module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList']) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData_e [enumeration] - module.add_enum('TagData_e', ['MAX_SIZE'], outer_class=root_module['ns3::PacketTagList::TagData'], import_from_module='ns.network') - ## pcap-file.h (module 'network'): ns3::PcapFile [class] - module.add_class('PcapFile', import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::PcapHelper [class] - module.add_class('PcapHelper', import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::PcapHelper [enumeration] - module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO', 'DLT_IEEE802_15_4'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network') - ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class] - module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network') - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount [class] - 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')) - ## simulator.h (module 'core'): ns3::Simulator [class] - module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core') - ## system-mutex.h (module 'core'): ns3::SystemMutex [class] - module.add_class('SystemMutex', import_from_module='ns.core') - ## tag.h (module 'network'): ns3::Tag [class] - module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase']) - ## tag-buffer.h (module 'network'): ns3::TagBuffer [class] - module.add_class('TagBuffer', import_from_module='ns.network') - ## nstime.h (module 'core'): ns3::TimeWithUnit [class] - module.add_class('TimeWithUnit', import_from_module='ns.core') - ## type-id.h (module 'core'): ns3::TypeId [class] - module.add_class('TypeId', import_from_module='ns.core') - ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration] - module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core') - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct] - module.add_class('AttributeInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId']) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation [struct] - module.add_class('TraceSourceInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId']) - ## empty.h (module 'core'): ns3::empty [class] - module.add_class('empty', import_from_module='ns.core') - ## int64x64-double.h (module 'core'): ns3::int64x64_t [class] - module.add_class('int64x64_t', import_from_module='ns.core') - ## int64x64-double.h (module 'core'): ns3::int64x64_t::impl_type [enumeration] - module.add_enum('impl_type', ['int128_impl', 'cairo_impl', 'ld_impl'], outer_class=root_module['ns3::int64x64_t'], import_from_module='ns.core') - ## chunk.h (module 'network'): ns3::Chunk [class] - module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase']) - ## emu-helper.h (module 'emu'): ns3::EmuHelper [class] - module.add_class('EmuHelper', parent=[root_module['ns3::PcapHelperForDevice'], root_module['ns3::AsciiTraceHelperForDevice']]) - ## header.h (module 'network'): ns3::Header [class] - module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk']) - ## object.h (module 'core'): ns3::Object [class] - module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) - ## object.h (module 'core'): ns3::Object::AggregateIterator [class] - module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object']) - ## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper [class] - module.add_class('PcapFileWrapper', import_from_module='ns.network', parent=root_module['ns3::Object']) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Hash::Implementation', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::OutputStreamWrapper', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::SystemThread', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount > [class] - module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) - ## system-thread.h (module 'core'): ns3::SystemThread [class] - module.add_class('SystemThread', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter >']) - ## nstime.h (module 'core'): ns3::Time [class] - module.add_class('Time', import_from_module='ns.core') - ## nstime.h (module 'core'): ns3::Time::Unit [enumeration] - module.add_enum('Unit', ['Y', 'D', 'H', 'MIN', 'S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core') - ## nstime.h (module 'core'): ns3::Time [class] - root_module['ns3::Time'].implicitly_converts_to(root_module['ns3::int64x64_t']) - ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor [class] - module.add_class('TraceSourceAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter >']) - ## trailer.h (module 'network'): ns3::Trailer [class] - module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk']) - ## attribute.h (module 'core'): ns3::AttributeAccessor [class] - module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter >']) - ## attribute.h (module 'core'): ns3::AttributeChecker [class] - module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter >']) - ## attribute.h (module 'core'): ns3::AttributeValue [class] - module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter >']) - ## callback.h (module 'core'): ns3::CallbackChecker [class] - module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) - ## callback.h (module 'core'): ns3::CallbackImplBase [class] - module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter >']) - ## callback.h (module 'core'): ns3::CallbackValue [class] - module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## data-rate.h (module 'network'): ns3::DataRateChecker [class] - module.add_class('DataRateChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## data-rate.h (module 'network'): ns3::DataRateValue [class] - module.add_class('DataRateValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## attribute.h (module 'core'): ns3::EmptyAttributeValue [class] - module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## event-impl.h (module 'core'): ns3::EventImpl [class] - module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter >']) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class] - module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class] - module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class] - module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class] - module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class] - module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class] - module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class] - module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class] - module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker [class] - module.add_class('Mac48AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue [class] - module.add_class('Mac48AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## net-device.h (module 'network'): ns3::NetDevice [class] - module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object']) - ## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration] - module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network') - ## nix-vector.h (module 'network'): ns3::NixVector [class] - module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter >']) - ## node.h (module 'network'): ns3::Node [class] - module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object']) - ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class] - module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class] - module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper [class] - module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter >']) - ## packet.h (module 'network'): ns3::Packet [class] - module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter >']) - ## nstime.h (module 'core'): ns3::TimeValue [class] - module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## type-id.h (module 'core'): ns3::TypeIdChecker [class] - module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) - ## type-id.h (module 'core'): ns3::TypeIdValue [class] - module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) - ## address.h (module 'network'): ns3::AddressChecker [class] - module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) - ## address.h (module 'network'): ns3::AddressValue [class] - module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice [class] - module.add_class('EmuNetDevice', parent=root_module['ns3::NetDevice']) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice::EncapsulationMode [enumeration] - module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::EmuNetDevice']) - - ## Register a nested module for the namespace FatalImpl - - nested_module = module.add_cpp_namespace('FatalImpl') - register_types_ns3_FatalImpl(nested_module) - - - ## Register a nested module for the namespace Hash - - nested_module = module.add_cpp_namespace('Hash') - register_types_ns3_Hash(nested_module) - - -def register_types_ns3_FatalImpl(module): - root_module = module.get_root() - - -def register_types_ns3_Hash(module): - root_module = module.get_root() - - ## hash-function.h (module 'core'): ns3::Hash::Implementation [class] - module.add_class('Implementation', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter >']) - typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) *', u'ns3::Hash::Hash32Function_ptr') - typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) **', u'ns3::Hash::Hash32Function_ptr*') - typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) *&', u'ns3::Hash::Hash32Function_ptr&') - typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) *', u'ns3::Hash::Hash64Function_ptr') - typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) **', u'ns3::Hash::Hash64Function_ptr*') - typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) *&', u'ns3::Hash::Hash64Function_ptr&') - - ## Register a nested module for the namespace Function - - nested_module = module.add_cpp_namespace('Function') - register_types_ns3_Hash_Function(nested_module) - - -def register_types_ns3_Hash_Function(module): - root_module = module.get_root() - - ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a [class] - module.add_class('Fnv1a', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32 [class] - module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class] - module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class] - module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) - -def register_methods(root_module): - register_Ns3Address_methods(root_module, root_module['ns3::Address']) - register_Ns3AsciiTraceHelper_methods(root_module, root_module['ns3::AsciiTraceHelper']) - register_Ns3AsciiTraceHelperForDevice_methods(root_module, root_module['ns3::AsciiTraceHelperForDevice']) - register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList']) - register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item']) - register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer']) - register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator']) - register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator']) - register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item']) - register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList']) - register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator']) - register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item']) - register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase']) - register_Ns3CriticalSection_methods(root_module, root_module['ns3::CriticalSection']) - register_Ns3DataRate_methods(root_module, root_module['ns3::DataRate']) - register_Ns3EventId_methods(root_module, root_module['ns3::EventId']) - register_Ns3Hasher_methods(root_module, root_module['ns3::Hasher']) - register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address']) - register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask']) - register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address']) - register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix']) - register_Ns3Mac48Address_methods(root_module, root_module['ns3::Mac48Address']) - register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer']) - register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer']) - register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase']) - register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter']) - register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory']) - register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata']) - register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item']) - register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator']) - register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator']) - register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item']) - register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList']) - register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData']) - register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) - register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper']) - register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice']) - register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) - register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator']) - register_Ns3SystemMutex_methods(root_module, root_module['ns3::SystemMutex']) - register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) - register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) - register_Ns3TimeWithUnit_methods(root_module, root_module['ns3::TimeWithUnit']) - register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId']) - register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation']) - register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation']) - register_Ns3Empty_methods(root_module, root_module['ns3::empty']) - register_Ns3Int64x64_t_methods(root_module, root_module['ns3::int64x64_t']) - register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk']) - register_Ns3EmuHelper_methods(root_module, root_module['ns3::EmuHelper']) - register_Ns3Header_methods(root_module, root_module['ns3::Header']) - register_Ns3Object_methods(root_module, root_module['ns3::Object']) - register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator']) - register_Ns3PcapFileWrapper_methods(root_module, root_module['ns3::PcapFileWrapper']) - register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3HashImplementation_Ns3Empty_Ns3DefaultDeleter__lt__ns3HashImplementation__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_Ns3DefaultDeleter__lt__ns3SystemThread__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter >']) - register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread']) - register_Ns3Time_methods(root_module, root_module['ns3::Time']) - register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor']) - register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) - register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor']) - register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker']) - register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue']) - register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker']) - register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase']) - register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue']) - register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker']) - register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue']) - register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue']) - register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl']) - register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker']) - register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue']) - register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker']) - register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue']) - register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker']) - register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue']) - register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker']) - register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue']) - register_Ns3Mac48AddressChecker_methods(root_module, root_module['ns3::Mac48AddressChecker']) - register_Ns3Mac48AddressValue_methods(root_module, root_module['ns3::Mac48AddressValue']) - register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice']) - register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector']) - register_Ns3Node_methods(root_module, root_module['ns3::Node']) - register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker']) - register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue']) - register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper']) - register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) - register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue']) - register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker']) - register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue']) - register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker']) - register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue']) - register_Ns3EmuNetDevice_methods(root_module, root_module['ns3::EmuNetDevice']) - register_Ns3HashImplementation_methods(root_module, root_module['ns3::Hash::Implementation']) - register_Ns3HashFunctionFnv1a_methods(root_module, root_module['ns3::Hash::Function::Fnv1a']) - register_Ns3HashFunctionHash32_methods(root_module, root_module['ns3::Hash::Function::Hash32']) - register_Ns3HashFunctionHash64_methods(root_module, root_module['ns3::Hash::Function::Hash64']) - register_Ns3HashFunctionMurmur3_methods(root_module, root_module['ns3::Hash::Function::Murmur3']) - return - -def register_Ns3Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## address.h (module 'network'): ns3::Address::Address() [constructor] - cls.add_constructor([]) - ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor] - cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) - ## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor] - cls.add_constructor([param('ns3::Address const &', 'address')]) - ## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function] - cls.add_method('CheckCompatible', - 'bool', - [param('uint8_t', 'type'), param('uint8_t', 'len')], - is_const=True) - ## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function] - cls.add_method('CopyAllFrom', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) - ## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function] - cls.add_method('CopyAllTo', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint8_t', 'len')], - is_const=True) - ## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function] - cls.add_method('CopyFrom', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) - ## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function] - cls.add_method('CopyTo', - 'uint32_t', - [param('uint8_t *', 'buffer')], - is_const=True) - ## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::TagBuffer', 'buffer')]) - ## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function] - cls.add_method('GetLength', - 'uint8_t', - [], - is_const=True) - ## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function] - cls.add_method('IsInvalid', - 'bool', - [], - is_const=True) - ## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('uint8_t', 'type')], - is_const=True) - ## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function] - cls.add_method('Register', - 'uint8_t', - [], - is_static=True) - ## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::TagBuffer', 'buffer')], - is_const=True) - return - -def register_Ns3AsciiTraceHelper_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper(ns3::AsciiTraceHelper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AsciiTraceHelper const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): ns3::Ptr ns3::AsciiTraceHelper::CreateFileStream(std::string filename, std::_Ios_Openmode filemode=std::ios_base::out) [member function] - cls.add_method('CreateFileStream', - 'ns3::Ptr< ns3::OutputStreamWrapper >', - [param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode', default_value='std::ios_base::out')]) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultDequeueSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultDequeueSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultDropSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultDropSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultEnqueueSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultEnqueueSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithContext(ns3::Ptr file, std::string context, ns3::Ptr p) [member function] - cls.add_method('DefaultReceiveSinkWithContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithoutContext(ns3::Ptr file, ns3::Ptr p) [member function] - cls.add_method('DefaultReceiveSinkWithoutContext', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], - is_static=True) - ## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr device, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromDevice', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')]) - ## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr object, uint32_t interface, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromInterfacePair', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')]) - return - -def register_Ns3AsciiTraceHelperForDevice_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice(ns3::AsciiTraceHelperForDevice const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AsciiTraceHelperForDevice const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::Ptr nd, bool explicitFilename=false) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, ns3::Ptr nd) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ptr< ns3::NetDevice >', 'nd')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, std::string ndName, bool explicitFilename=false) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, std::string ndName) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'ndName')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NetDeviceContainer d) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, ns3::NetDeviceContainer d) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NetDeviceContainer', 'd')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NodeContainer n) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, ns3::NodeContainer n) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NodeContainer', 'n')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool explicitFilename) [member function] - cls.add_method('EnableAscii', - 'void', - [param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'explicitFilename')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr stream, uint32_t nodeid, uint32_t deviceid) [member function] - cls.add_method('EnableAscii', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(std::string prefix) [member function] - cls.add_method('EnableAsciiAll', - 'void', - [param('std::string', 'prefix')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(ns3::Ptr stream) [member function] - cls.add_method('EnableAsciiAll', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')]) - ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiInternal(ns3::Ptr stream, std::string prefix, ns3::Ptr nd, bool explicitFilename) [member function] - cls.add_method('EnableAsciiInternal', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], - is_pure_virtual=True, is_virtual=True) - return - -def register_Ns3AttributeConstructionList_methods(root_module, cls): - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList(ns3::AttributeConstructionList const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeConstructionList const &', 'arg0')]) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList() [constructor] - cls.add_constructor([]) - ## attribute-construction-list.h (module 'core'): void ns3::AttributeConstructionList::Add(std::string name, ns3::Ptr checker, ns3::Ptr value) [member function] - cls.add_method('Add', - 'void', - [param('std::string', 'name'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker'), param('ns3::Ptr< ns3::AttributeValue >', 'value')]) - ## attribute-construction-list.h (module 'core'): std::_List_const_iterator ns3::AttributeConstructionList::Begin() const [member function] - cls.add_method('Begin', - 'std::_List_const_iterator< ns3::AttributeConstructionList::Item >', - [], - is_const=True) - ## attribute-construction-list.h (module 'core'): std::_List_const_iterator ns3::AttributeConstructionList::End() const [member function] - cls.add_method('End', - 'std::_List_const_iterator< ns3::AttributeConstructionList::Item >', - [], - is_const=True) - ## attribute-construction-list.h (module 'core'): ns3::Ptr ns3::AttributeConstructionList::Find(ns3::Ptr checker) const [member function] - cls.add_method('Find', - 'ns3::Ptr< ns3::AttributeValue >', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True) - return - -def register_Ns3AttributeConstructionListItem_methods(root_module, cls): - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item() [constructor] - cls.add_constructor([]) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item(ns3::AttributeConstructionList::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeConstructionList::Item const &', 'arg0')]) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::checker [variable] - cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::name [variable] - cls.add_instance_attribute('name', 'std::string', is_const=False) - ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::value [variable] - cls.add_instance_attribute('value', 'ns3::Ptr< ns3::AttributeValue >', is_const=False) - return - -def register_Ns3Buffer_methods(root_module, cls): - ## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor] - cls.add_constructor([]) - ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor] - cls.add_constructor([param('uint32_t', 'dataSize')]) - ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor] - cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')]) - ## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor] - cls.add_constructor([param('ns3::Buffer const &', 'o')]) - ## buffer.h (module 'network'): bool ns3::Buffer::AddAtEnd(uint32_t end) [member function] - cls.add_method('AddAtEnd', - 'bool', - [param('uint32_t', 'end')]) - ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::Buffer const &', 'o')]) - ## buffer.h (module 'network'): bool ns3::Buffer::AddAtStart(uint32_t start) [member function] - cls.add_method('AddAtStart', - 'bool', - [param('uint32_t', 'start')]) - ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function] - cls.add_method('Begin', - 'ns3::Buffer::Iterator', - [], - is_const=True) - ## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function] - cls.add_method('CopyData', - 'void', - [param('std::ostream *', 'os'), param('uint32_t', 'size')], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function] - cls.add_method('CopyData', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')], - is_const=True) - ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function] - cls.add_method('CreateFragment', - 'ns3::Buffer', - [param('uint32_t', 'start'), param('uint32_t', 'length')], - is_const=True) - ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function] - cls.add_method('CreateFullCopy', - 'ns3::Buffer', - [], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function] - cls.add_method('End', - 'ns3::Buffer::Iterator', - [], - is_const=True) - ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentEndOffset() const [member function] - cls.add_method('GetCurrentEndOffset', - 'int32_t', - [], - is_const=True) - ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentStartOffset() const [member function] - cls.add_method('GetCurrentStartOffset', - 'int32_t', - [], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function] - cls.add_method('PeekData', - 'uint8_t const *', - [], - is_const=True) - ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'end')]) - ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'start')]) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - return - -def register_Ns3BufferIterator_methods(root_module, cls): - ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')]) - ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor] - cls.add_constructor([]) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function] - cls.add_method('CalculateIpChecksum', - 'uint16_t', - [param('uint16_t', 'size')]) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function] - cls.add_method('CalculateIpChecksum', - 'uint16_t', - [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')]) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function] - cls.add_method('GetDistanceFrom', - 'uint32_t', - [param('ns3::Buffer::Iterator const &', 'o')], - is_const=True) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function] - cls.add_method('IsEnd', - 'bool', - [], - is_const=True) - ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function] - cls.add_method('IsStart', - 'bool', - [], - is_const=True) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function] - cls.add_method('Next', - 'void', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function] - cls.add_method('Next', - 'void', - [param('uint32_t', 'delta')]) - ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function] - cls.add_method('PeekU8', - 'uint8_t', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function] - cls.add_method('Prev', - 'void', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function] - cls.add_method('Prev', - 'void', - [param('uint32_t', 'delta')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function] - cls.add_method('Read', - 'void', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function] - cls.add_method('Read', - 'void', - [param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function] - cls.add_method('ReadLsbtohU16', - 'uint16_t', - []) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function] - cls.add_method('ReadLsbtohU32', - 'uint32_t', - []) - ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function] - cls.add_method('ReadLsbtohU64', - 'uint64_t', - []) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function] - cls.add_method('ReadNtohU16', - 'uint16_t', - []) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function] - cls.add_method('ReadNtohU32', - 'uint32_t', - []) - ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function] - cls.add_method('ReadNtohU64', - 'uint64_t', - []) - ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function] - cls.add_method('ReadU16', - 'uint16_t', - []) - ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function] - cls.add_method('ReadU32', - 'uint32_t', - []) - ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function] - cls.add_method('ReadU64', - 'uint64_t', - []) - ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function] - cls.add_method('ReadU8', - 'uint8_t', - []) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Write', - 'void', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function] - cls.add_method('WriteHtolsbU16', - 'void', - [param('uint16_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function] - cls.add_method('WriteHtolsbU32', - 'void', - [param('uint32_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function] - cls.add_method('WriteHtolsbU64', - 'void', - [param('uint64_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function] - cls.add_method('WriteHtonU16', - 'void', - [param('uint16_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function] - cls.add_method('WriteHtonU32', - 'void', - [param('uint32_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function] - cls.add_method('WriteHtonU64', - 'void', - [param('uint64_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function] - cls.add_method('WriteU16', - 'void', - [param('uint16_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function] - cls.add_method('WriteU32', - 'void', - [param('uint32_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function] - cls.add_method('WriteU64', - 'void', - [param('uint64_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function] - cls.add_method('WriteU8', - 'void', - [param('uint8_t', 'data')]) - ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function] - cls.add_method('WriteU8', - 'void', - [param('uint8_t', 'data'), param('uint32_t', 'len')]) - return - -def register_Ns3ByteTagIterator_methods(root_module, cls): - ## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')]) - ## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function] - cls.add_method('Next', - 'ns3::ByteTagIterator::Item', - []) - return - -def register_Ns3ByteTagIteratorItem_methods(root_module, cls): - ## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')]) - ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function] - cls.add_method('GetEnd', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function] - cls.add_method('GetStart', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function] - cls.add_method('GetTag', - 'void', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_const=True) - return - -def register_Ns3ByteTagList_methods(root_module, cls): - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor] - cls.add_constructor([]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor] - cls.add_constructor([param('ns3::ByteTagList const &', 'o')]) - ## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function] - cls.add_method('Add', - 'ns3::TagBuffer', - [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')]) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function] - cls.add_method('Add', - 'void', - [param('ns3::ByteTagList const &', 'o')]) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')]) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function] - cls.add_method('AddAtStart', - 'void', - [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function] - cls.add_method('Begin', - 'ns3::ByteTagList::Iterator', - [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')], - is_const=True) - ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function] - cls.add_method('RemoveAll', - 'void', - []) - return - -def register_Ns3ByteTagListIterator_methods(root_module, cls): - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')]) - ## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function] - cls.add_method('GetOffsetStart', - 'uint32_t', - [], - is_const=True) - ## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function] - cls.add_method('Next', - 'ns3::ByteTagList::Iterator::Item', - []) - return - -def register_Ns3ByteTagListIteratorItem_methods(root_module, cls): - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor] - cls.add_constructor([param('ns3::TagBuffer', 'buf')]) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable] - cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable] - cls.add_instance_attribute('end', 'int32_t', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable] - cls.add_instance_attribute('size', 'uint32_t', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable] - cls.add_instance_attribute('start', 'int32_t', is_const=False) - ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable] - cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) - return - -def register_Ns3CallbackBase_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')]) - ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::Ptr ns3::CallbackBase::GetImpl() const [member function] - cls.add_method('GetImpl', - 'ns3::Ptr< ns3::CallbackImplBase >', - [], - is_const=True) - ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr impl) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], - visibility='protected') - ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function] - cls.add_method('Demangle', - 'std::string', - [param('std::string const &', 'mangled')], - is_static=True, visibility='protected') - return - -def register_Ns3CriticalSection_methods(root_module, cls): - ## system-mutex.h (module 'core'): ns3::CriticalSection::CriticalSection(ns3::CriticalSection const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CriticalSection const &', 'arg0')]) - ## system-mutex.h (module 'core'): ns3::CriticalSection::CriticalSection(ns3::SystemMutex & mutex) [constructor] - cls.add_constructor([param('ns3::SystemMutex &', 'mutex')]) - return - -def register_Ns3DataRate_methods(root_module, cls): - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('!=') - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('<=') - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('>') - cls.add_binary_comparison_operator('>=') - ## data-rate.h (module 'network'): ns3::DataRate::DataRate(ns3::DataRate const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRate const &', 'arg0')]) - ## data-rate.h (module 'network'): ns3::DataRate::DataRate() [constructor] - cls.add_constructor([]) - ## data-rate.h (module 'network'): ns3::DataRate::DataRate(uint64_t bps) [constructor] - cls.add_constructor([param('uint64_t', 'bps')]) - ## data-rate.h (module 'network'): ns3::DataRate::DataRate(std::string rate) [constructor] - cls.add_constructor([param('std::string', 'rate')]) - ## data-rate.h (module 'network'): double ns3::DataRate::CalculateTxTime(uint32_t bytes) const [member function] - cls.add_method('CalculateTxTime', - 'double', - [param('uint32_t', 'bytes')], - is_const=True) - ## data-rate.h (module 'network'): uint64_t ns3::DataRate::GetBitRate() const [member function] - cls.add_method('GetBitRate', - 'uint64_t', - [], - is_const=True) - return - -def register_Ns3EventId_methods(root_module, cls): - cls.add_binary_comparison_operator('!=') - cls.add_binary_comparison_operator('==') - ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EventId const &', 'arg0')]) - ## event-id.h (module 'core'): ns3::EventId::EventId() [constructor] - cls.add_constructor([]) - ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')]) - ## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function] - cls.add_method('Cancel', - 'void', - []) - ## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function] - cls.add_method('GetContext', - 'uint32_t', - [], - is_const=True) - ## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function] - cls.add_method('GetTs', - 'uint64_t', - [], - is_const=True) - ## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function] - cls.add_method('GetUid', - 'uint32_t', - [], - is_const=True) - ## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function] - cls.add_method('IsExpired', - 'bool', - [], - is_const=True) - ## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function] - cls.add_method('IsRunning', - 'bool', - [], - is_const=True) - ## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function] - cls.add_method('PeekEventImpl', - 'ns3::EventImpl *', - [], - is_const=True) - return - -def register_Ns3Hasher_methods(root_module, cls): - ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Hasher const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hasher const &', 'arg0')]) - ## hash.h (module 'core'): ns3::Hasher::Hasher() [constructor] - cls.add_constructor([]) - ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Ptr hp) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::Hash::Implementation >', 'hp')]) - ## hash.h (module 'core'): uint32_t ns3::Hasher::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')]) - ## hash.h (module 'core'): uint32_t ns3::Hasher::GetHash32(std::string const s) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('std::string const', 's')]) - ## hash.h (module 'core'): uint64_t ns3::Hasher::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')]) - ## hash.h (module 'core'): uint64_t ns3::Hasher::GetHash64(std::string const s) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('std::string const', 's')]) - ## hash.h (module 'core'): ns3::Hasher & ns3::Hasher::clear() [member function] - cls.add_method('clear', - 'ns3::Hasher &', - []) - return - -def register_Ns3Ipv4Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor] - cls.add_constructor([param('uint32_t', 'address')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor] - cls.add_constructor([param('char const *', 'address')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function] - cls.add_method('CombineMask', - 'ns3::Ipv4Address', - [param('ns3::Ipv4Mask const &', 'mask')], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function] - cls.add_method('ConvertFrom', - 'ns3::Ipv4Address', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function] - cls.add_method('Deserialize', - 'ns3::Ipv4Address', - [param('uint8_t const *', 'buf')], - is_static=True) - ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function] - cls.add_method('Get', - 'uint32_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function] - cls.add_method('GetAny', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function] - cls.add_method('GetBroadcast', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function] - cls.add_method('GetSubnetDirectedBroadcast', - 'ns3::Ipv4Address', - [param('ns3::Ipv4Mask const &', 'mask')], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv4Address', - [], - is_static=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv4Address const &', 'other')], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function] - cls.add_method('IsLocalMulticast', - 'bool', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function] - cls.add_method('IsSubnetDirectedBroadcast', - 'bool', - [param('ns3::Ipv4Mask const &', 'mask')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function] - cls.add_method('Serialize', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function] - cls.add_method('Set', - 'void', - [param('uint32_t', 'address')]) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function] - cls.add_method('Set', - 'void', - [param('char const *', 'address')]) - return - -def register_Ns3Ipv4Mask_methods(root_module, cls): - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor] - cls.add_constructor([param('uint32_t', 'mask')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor] - cls.add_constructor([param('char const *', 'mask')]) - ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function] - cls.add_method('Get', - 'uint32_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function] - cls.add_method('GetInverse', - 'uint32_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv4Mask', - [], - is_static=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function] - cls.add_method('GetOnes', - 'ns3::Ipv4Mask', - [], - is_static=True) - ## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function] - cls.add_method('GetPrefixLength', - 'uint16_t', - [], - is_const=True) - ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv4Mask', - [], - is_static=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv4Mask', 'other')], - is_const=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function] - cls.add_method('IsMatch', - 'bool', - [param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function] - cls.add_method('Set', - 'void', - [param('uint32_t', 'mask')]) - return - -def register_Ns3Ipv6Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor] - cls.add_constructor([param('char const *', 'address')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor] - cls.add_constructor([param('uint8_t *', 'address')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor] - cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor] - cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function] - cls.add_method('CombinePrefix', - 'ns3::Ipv6Address', - [param('ns3::Ipv6Prefix const &', 'prefix')]) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function] - cls.add_method('ConvertFrom', - 'ns3::Ipv6Address', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function] - cls.add_method('Deserialize', - 'ns3::Ipv6Address', - [param('uint8_t const *', 'buf')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function] - cls.add_method('GetAllHostsMulticast', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function] - cls.add_method('GetAllNodesMulticast', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function] - cls.add_method('GetAllRoutersMulticast', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function] - cls.add_method('GetAny', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function] - cls.add_method('GetBytes', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv6-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv6Address::GetIpv4MappedAddress() const [member function] - cls.add_method('GetIpv4MappedAddress', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function] - cls.add_method('GetOnes', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv6Address', - [], - is_static=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function] - cls.add_method('IsAllHostsMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function] - cls.add_method('IsAllNodesMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function] - cls.add_method('IsAllRoutersMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function] - cls.add_method('IsAny', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsDocumentation() const [member function] - cls.add_method('IsDocumentation', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv6Address const &', 'other')], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsIpv4MappedAddress() const [member function] - cls.add_method('IsIpv4MappedAddress', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function] - cls.add_method('IsLinkLocal', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocalMulticast() const [member function] - cls.add_method('IsLinkLocalMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function] - cls.add_method('IsLocalhost', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('ns3::Address const &', 'address')], - is_static=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function] - cls.add_method('IsSolicitedMulticast', - 'bool', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac16Address addr, ns3::Ipv6Address prefix) [member function] - cls.add_method('MakeAutoconfiguredAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac16Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function] - cls.add_method('MakeAutoconfiguredAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac64Address addr, ns3::Ipv6Address prefix) [member function] - cls.add_method('MakeAutoconfiguredAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac64Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac16Address mac) [member function] - cls.add_method('MakeAutoconfiguredLinkLocalAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac16Address', 'mac')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function] - cls.add_method('MakeAutoconfiguredLinkLocalAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac48Address', 'mac')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac64Address mac) [member function] - cls.add_method('MakeAutoconfiguredLinkLocalAddress', - 'ns3::Ipv6Address', - [param('ns3::Mac64Address', 'mac')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeIpv4MappedAddress(ns3::Ipv4Address addr) [member function] - cls.add_method('MakeIpv4MappedAddress', - 'ns3::Ipv6Address', - [param('ns3::Ipv4Address', 'addr')], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function] - cls.add_method('MakeSolicitedAddress', - 'ns3::Ipv6Address', - [param('ns3::Ipv6Address', 'addr')], - is_static=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function] - cls.add_method('Serialize', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function] - cls.add_method('Set', - 'void', - [param('char const *', 'address')]) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function] - cls.add_method('Set', - 'void', - [param('uint8_t *', 'address')]) - return - -def register_Ns3Ipv6Prefix_methods(root_module, cls): - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor] - cls.add_constructor([param('uint8_t *', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor] - cls.add_constructor([param('char const *', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor] - cls.add_constructor([param('uint8_t', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')]) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function] - cls.add_method('GetBytes', - 'void', - [param('uint8_t *', 'buf')], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function] - cls.add_method('GetLoopback', - 'ns3::Ipv6Prefix', - [], - is_static=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function] - cls.add_method('GetOnes', - 'ns3::Ipv6Prefix', - [], - is_static=True) - ## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function] - cls.add_method('GetPrefixLength', - 'uint8_t', - [], - is_const=True) - ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function] - cls.add_method('GetZero', - 'ns3::Ipv6Prefix', - [], - is_static=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ipv6Prefix const &', 'other')], - is_const=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function] - cls.add_method('IsMatch', - 'bool', - [param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')], - is_const=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - return - -def register_Ns3Mac48Address_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48Address const &', 'arg0')]) - ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address() [constructor] - cls.add_constructor([]) - ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(char const * str) [constructor] - cls.add_constructor([param('char const *', 'str')]) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::Allocate() [member function] - cls.add_method('Allocate', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::ConvertFrom(ns3::Address const & address) [member function] - cls.add_method('ConvertFrom', - 'ns3::Mac48Address', - [param('ns3::Address const &', 'address')], - is_static=True) - ## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyFrom(uint8_t const * buffer) [member function] - cls.add_method('CopyFrom', - 'void', - [param('uint8_t const *', 'buffer')]) - ## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyTo(uint8_t * buffer) const [member function] - cls.add_method('CopyTo', - 'void', - [param('uint8_t *', 'buffer')], - is_const=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetBroadcast() [member function] - cls.add_method('GetBroadcast', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv4Address address) [member function] - cls.add_method('GetMulticast', - 'ns3::Mac48Address', - [param('ns3::Ipv4Address', 'address')], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv6Address address) [member function] - cls.add_method('GetMulticast', - 'ns3::Mac48Address', - [param('ns3::Ipv6Address', 'address')], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast6Prefix() [member function] - cls.add_method('GetMulticast6Prefix', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticastPrefix() [member function] - cls.add_method('GetMulticastPrefix', - 'ns3::Mac48Address', - [], - is_static=True) - ## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_const=True) - ## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsGroup() const [member function] - cls.add_method('IsGroup', - 'bool', - [], - is_const=True) - ## mac48-address.h (module 'network'): static bool ns3::Mac48Address::IsMatchingType(ns3::Address const & address) [member function] - cls.add_method('IsMatchingType', - 'bool', - [param('ns3::Address const &', 'address')], - is_static=True) - return - -def register_Ns3NetDeviceContainer_methods(root_module, cls): - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor] - cls.add_constructor([]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr dev) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor] - cls.add_constructor([param('std::string', 'devName')]) - ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor] - cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')]) - ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function] - cls.add_method('Add', - 'void', - [param('ns3::NetDeviceContainer', 'other')]) - ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr device) [member function] - cls.add_method('Add', - 'void', - [param('ns3::Ptr< ns3::NetDevice >', 'device')]) - ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function] - cls.add_method('Add', - 'void', - [param('std::string', 'deviceName')]) - ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NetDeviceContainer::Begin() const [member function] - cls.add_method('Begin', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >', - [], - is_const=True) - ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NetDeviceContainer::End() const [member function] - cls.add_method('End', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >', - [], - is_const=True) - ## net-device-container.h (module 'network'): ns3::Ptr ns3::NetDeviceContainer::Get(uint32_t i) const [member function] - cls.add_method('Get', - 'ns3::Ptr< ns3::NetDevice >', - [param('uint32_t', 'i')], - is_const=True) - ## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function] - cls.add_method('GetN', - 'uint32_t', - [], - is_const=True) - return - -def register_Ns3NodeContainer_methods(root_module, cls): - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor] - cls.add_constructor([]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr node) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor] - cls.add_constructor([param('std::string', 'nodeName')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')]) - ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor] - cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function] - cls.add_method('Add', - 'void', - [param('ns3::NodeContainer', 'other')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr node) [member function] - cls.add_method('Add', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function] - cls.add_method('Add', - 'void', - [param('std::string', 'nodeName')]) - ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NodeContainer::Begin() const [member function] - cls.add_method('Begin', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >', - [], - is_const=True) - ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function] - cls.add_method('Create', - 'void', - [param('uint32_t', 'n')]) - ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function] - cls.add_method('Create', - 'void', - [param('uint32_t', 'n'), param('uint32_t', 'systemId')]) - ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator*,std::vector, std::allocator > > > ns3::NodeContainer::End() const [member function] - cls.add_method('End', - '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >', - [], - is_const=True) - ## node-container.h (module 'network'): ns3::Ptr ns3::NodeContainer::Get(uint32_t i) const [member function] - cls.add_method('Get', - 'ns3::Ptr< ns3::Node >', - [param('uint32_t', 'i')], - is_const=True) - ## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function] - cls.add_method('GetGlobal', - 'ns3::NodeContainer', - [], - is_static=True) - ## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function] - cls.add_method('GetN', - 'uint32_t', - [], - is_const=True) - return - -def register_Ns3ObjectBase_methods(root_module, cls): - ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor] - cls.add_constructor([]) - ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')]) - ## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function] - cls.add_method('GetAttribute', - 'void', - [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')], - is_const=True) - ## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & attribute) const [member function] - cls.add_method('GetAttributeFailSafe', - 'bool', - [param('std::string', 'name'), param('ns3::AttributeValue &', 'attribute')], - is_const=True) - ## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function] - cls.add_method('SetAttribute', - 'void', - [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function] - cls.add_method('SetAttributeFailSafe', - 'bool', - [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceConnect', - 'bool', - [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceConnectWithoutContext', - 'bool', - [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceDisconnect', - 'bool', - [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function] - cls.add_method('TraceDisconnectWithoutContext', - 'bool', - [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')]) - ## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeConstructionList const & attributes) [member function] - cls.add_method('ConstructSelf', - 'void', - [param('ns3::AttributeConstructionList const &', 'attributes')], - visibility='protected') - ## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function] - cls.add_method('NotifyConstructionCompleted', - 'void', - [], - visibility='protected', is_virtual=True) - return - -def register_Ns3ObjectDeleter_methods(root_module, cls): - ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor] - cls.add_constructor([]) - ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')]) - ## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function] - cls.add_method('Delete', - 'void', - [param('ns3::Object *', 'object')], - is_static=True) - return - -def register_Ns3ObjectFactory_methods(root_module, cls): - cls.add_output_stream_operator() - ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')]) - ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor] - cls.add_constructor([]) - ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(std::string typeId) [constructor] - cls.add_constructor([param('std::string', 'typeId')]) - ## object-factory.h (module 'core'): ns3::Ptr ns3::ObjectFactory::Create() const [member function] - cls.add_method('Create', - 'ns3::Ptr< ns3::Object >', - [], - is_const=True) - ## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_const=True) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function] - cls.add_method('Set', - 'void', - [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function] - cls.add_method('SetTypeId', - 'void', - [param('ns3::TypeId', 'tid')]) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function] - cls.add_method('SetTypeId', - 'void', - [param('char const *', 'tid')]) - ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function] - cls.add_method('SetTypeId', - 'void', - [param('std::string', 'tid')]) - return - -def register_Ns3PacketMetadata_methods(root_module, cls): - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor] - cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor] - cls.add_constructor([param('ns3::PacketMetadata const &', 'o')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::PacketMetadata const &', 'o')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function] - cls.add_method('AddHeader', - 'void', - [param('ns3::Header const &', 'header'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function] - cls.add_method('AddPaddingAtEnd', - 'void', - [param('uint32_t', 'end')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function] - cls.add_method('AddTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function] - cls.add_method('BeginItem', - 'ns3::PacketMetadata::ItemIterator', - [param('ns3::Buffer', 'buffer')], - is_const=True) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function] - cls.add_method('CreateFragment', - 'ns3::PacketMetadata', - [param('uint32_t', 'start'), param('uint32_t', 'end')], - is_const=True) - ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function] - cls.add_method('Enable', - 'void', - [], - is_static=True) - ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function] - cls.add_method('EnableChecking', - 'void', - [], - is_static=True) - ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function] - cls.add_method('GetUid', - 'uint64_t', - [], - is_const=True) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'end')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'start')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function] - cls.add_method('RemoveHeader', - 'void', - [param('ns3::Header const &', 'header'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function] - cls.add_method('RemoveTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')]) - ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - return - -def register_Ns3PacketMetadataItem_methods(root_module, cls): - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor] - cls.add_constructor([]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable] - cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable] - cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable] - cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable] - cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable] - cls.add_instance_attribute('isFragment', 'bool', is_const=False) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable] - cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) - return - -def register_Ns3PacketMetadataItemIterator_methods(root_module, cls): - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')]) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor] - cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')]) - ## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function] - cls.add_method('Next', - 'ns3::PacketMetadata::Item', - []) - return - -def register_Ns3PacketTagIterator_methods(root_module, cls): - ## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')]) - ## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function] - cls.add_method('Next', - 'ns3::PacketTagIterator::Item', - []) - return - -def register_Ns3PacketTagIteratorItem_methods(root_module, cls): - ## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')]) - ## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function] - cls.add_method('GetTag', - 'void', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_const=True) - return - -def register_Ns3PacketTagList_methods(root_module, cls): - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor] - cls.add_constructor([]) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor] - cls.add_constructor([param('ns3::PacketTagList const &', 'o')]) - ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function] - cls.add_method('Add', - 'void', - [param('ns3::Tag const &', 'tag')], - is_const=True) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function] - cls.add_method('Head', - 'ns3::PacketTagList::TagData const *', - [], - is_const=True) - ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function] - cls.add_method('Peek', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function] - cls.add_method('Remove', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function] - cls.add_method('RemoveAll', - 'void', - []) - ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Replace(ns3::Tag & tag) [member function] - cls.add_method('Replace', - 'bool', - [param('ns3::Tag &', 'tag')]) - return - -def register_Ns3PacketTagListTagData_methods(root_module, cls): - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor] - cls.add_constructor([]) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')]) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable] - cls.add_instance_attribute('count', 'uint32_t', is_const=False) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable] - cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable] - cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False) - ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable] - cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) - return - -def register_Ns3PcapFile_methods(root_module, cls): - ## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor] - cls.add_constructor([]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Clear() [member function] - cls.add_method('Clear', - 'void', - []) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Close() [member function] - cls.add_method('Close', - 'void', - []) - ## pcap-file.h (module 'network'): static bool ns3::PcapFile::Diff(std::string const & f1, std::string const & f2, uint32_t & sec, uint32_t & usec, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT) [member function] - cls.add_method('Diff', - 'bool', - [param('std::string const &', 'f1'), param('std::string const &', 'f2'), param('uint32_t &', 'sec'), param('uint32_t &', 'usec'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT')], - is_static=True) - ## pcap-file.h (module 'network'): bool ns3::PcapFile::Eof() const [member function] - cls.add_method('Eof', - 'bool', - [], - is_const=True) - ## pcap-file.h (module 'network'): bool ns3::PcapFile::Fail() const [member function] - cls.add_method('Fail', - 'bool', - [], - is_const=True) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetDataLinkType() [member function] - cls.add_method('GetDataLinkType', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetMagic() [member function] - cls.add_method('GetMagic', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSigFigs() [member function] - cls.add_method('GetSigFigs', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSnapLen() [member function] - cls.add_method('GetSnapLen', - 'uint32_t', - []) - ## pcap-file.h (module 'network'): bool ns3::PcapFile::GetSwapMode() [member function] - cls.add_method('GetSwapMode', - 'bool', - []) - ## pcap-file.h (module 'network'): int32_t ns3::PcapFile::GetTimeZoneOffset() [member function] - cls.add_method('GetTimeZoneOffset', - 'int32_t', - []) - ## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMajor() [member function] - cls.add_method('GetVersionMajor', - 'uint16_t', - []) - ## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMinor() [member function] - cls.add_method('GetVersionMinor', - 'uint16_t', - []) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Init(uint32_t dataLinkType, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT, int32_t timeZoneCorrection=ns3::PcapFile::ZONE_DEFAULT, bool swapMode=false) [member function] - cls.add_method('Init', - 'void', - [param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT'), param('int32_t', 'timeZoneCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT'), param('bool', 'swapMode', default_value='false')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Open(std::string const & filename, std::_Ios_Openmode mode) [member function] - cls.add_method('Open', - 'void', - [param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Read(uint8_t * const data, uint32_t maxBytes, uint32_t & tsSec, uint32_t & tsUsec, uint32_t & inclLen, uint32_t & origLen, uint32_t & readLen) [member function] - cls.add_method('Read', - 'void', - [param('uint8_t * const', 'data'), param('uint32_t', 'maxBytes'), param('uint32_t &', 'tsSec'), param('uint32_t &', 'tsUsec'), param('uint32_t &', 'inclLen'), param('uint32_t &', 'origLen'), param('uint32_t &', 'readLen')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, uint8_t const * const data, uint32_t totalLen) [member function] - cls.add_method('Write', - 'void', - [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('uint8_t const * const', 'data'), param('uint32_t', 'totalLen')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Header & header, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Header &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file.h (module 'network'): ns3::PcapFile::SNAPLEN_DEFAULT [variable] - cls.add_static_attribute('SNAPLEN_DEFAULT', 'uint32_t const', is_const=True) - ## pcap-file.h (module 'network'): ns3::PcapFile::ZONE_DEFAULT [variable] - cls.add_static_attribute('ZONE_DEFAULT', 'int32_t const', is_const=True) - return - -def register_Ns3PcapHelper_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper(ns3::PcapHelper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PcapHelper const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): ns3::Ptr ns3::PcapHelper::CreateFile(std::string filename, std::_Ios_Openmode filemode, uint32_t dataLinkType, uint32_t snapLen=65535, int32_t tzCorrection=0) [member function] - cls.add_method('CreateFile', - 'ns3::Ptr< ns3::PcapFileWrapper >', - [param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode'), param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='65535'), param('int32_t', 'tzCorrection', default_value='0')]) - ## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr device, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromDevice', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')]) - ## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr object, uint32_t interface, bool useObjectNames=true) [member function] - cls.add_method('GetFilenameFromInterfacePair', - 'std::string', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')]) - return - -def register_Ns3PcapHelperForDevice_methods(root_module, cls): - ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice(ns3::PcapHelperForDevice const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PcapHelperForDevice const &', 'arg0')]) - ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice() [constructor] - cls.add_constructor([]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::Ptr nd, bool promiscuous=false, bool explicitFilename=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, std::string ndName, bool promiscuous=false, bool explicitFilename=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NetDeviceContainer d, bool promiscuous=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NodeContainer n, bool promiscuous=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('ns3::NodeContainer', 'n'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool promiscuous=false) [member function] - cls.add_method('EnablePcap', - 'void', - [param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapAll(std::string prefix, bool promiscuous=false) [member function] - cls.add_method('EnablePcapAll', - 'void', - [param('std::string', 'prefix'), param('bool', 'promiscuous', default_value='false')]) - ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapInternal(std::string prefix, ns3::Ptr nd, bool promiscuous, bool explicitFilename) [member function] - cls.add_method('EnablePcapInternal', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], - is_pure_virtual=True, is_virtual=True) - return - -def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3Simulator_methods(root_module, cls): - ## simulator.h (module 'core'): ns3::Simulator::Simulator(ns3::Simulator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Simulator const &', 'arg0')]) - ## simulator.h (module 'core'): static void ns3::Simulator::Cancel(ns3::EventId const & id) [member function] - cls.add_method('Cancel', - 'void', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Destroy() [member function] - cls.add_method('Destroy', - 'void', - [], - is_static=True) - ## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetContext() [member function] - cls.add_method('GetContext', - 'uint32_t', - [], - is_static=True) - ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetDelayLeft(ns3::EventId const & id) [member function] - cls.add_method('GetDelayLeft', - 'ns3::Time', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static ns3::Ptr ns3::Simulator::GetImplementation() [member function] - cls.add_method('GetImplementation', - 'ns3::Ptr< ns3::SimulatorImpl >', - [], - is_static=True) - ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetMaximumSimulationTime() [member function] - cls.add_method('GetMaximumSimulationTime', - 'ns3::Time', - [], - is_static=True) - ## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetSystemId() [member function] - cls.add_method('GetSystemId', - 'uint32_t', - [], - is_static=True) - ## simulator.h (module 'core'): static bool ns3::Simulator::IsExpired(ns3::EventId const & id) [member function] - cls.add_method('IsExpired', - 'bool', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static bool ns3::Simulator::IsFinished() [member function] - cls.add_method('IsFinished', - 'bool', - [], - is_static=True) - ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function] - cls.add_method('Now', - 'ns3::Time', - [], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Remove(ns3::EventId const & id) [member function] - cls.add_method('Remove', - 'void', - [param('ns3::EventId const &', 'id')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr impl) [member function] - cls.add_method('SetImplementation', - 'void', - [param('ns3::Ptr< ns3::SimulatorImpl >', 'impl')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] - cls.add_method('SetScheduler', - 'void', - [param('ns3::ObjectFactory', 'schedulerFactory')], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Stop() [member function] - cls.add_method('Stop', - 'void', - [], - is_static=True) - ## simulator.h (module 'core'): static void ns3::Simulator::Stop(ns3::Time const & time) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::Time const &', 'time')], - is_static=True) - return - -def register_Ns3SystemMutex_methods(root_module, cls): - ## system-mutex.h (module 'core'): ns3::SystemMutex::SystemMutex(ns3::SystemMutex const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SystemMutex const &', 'arg0')]) - ## system-mutex.h (module 'core'): ns3::SystemMutex::SystemMutex() [constructor] - cls.add_constructor([]) - ## system-mutex.h (module 'core'): void ns3::SystemMutex::Lock() [member function] - cls.add_method('Lock', - 'void', - []) - ## system-mutex.h (module 'core'): void ns3::SystemMutex::Unlock() [member function] - cls.add_method('Unlock', - 'void', - []) - return - -def register_Ns3Tag_methods(root_module, cls): - ## tag.h (module 'network'): ns3::Tag::Tag() [constructor] - cls.add_constructor([]) - ## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Tag const &', 'arg0')]) - ## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::TagBuffer', 'i')], - is_pure_virtual=True, is_virtual=True) - ## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::TagBuffer', 'i')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3TagBuffer_methods(root_module, cls): - ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')]) - ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor] - cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function] - cls.add_method('CopyFrom', - 'void', - [param('ns3::TagBuffer', 'o')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function] - cls.add_method('Read', - 'void', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')]) - ## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function] - cls.add_method('ReadDouble', - 'double', - []) - ## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function] - cls.add_method('ReadU16', - 'uint16_t', - []) - ## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function] - cls.add_method('ReadU32', - 'uint32_t', - []) - ## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function] - cls.add_method('ReadU64', - 'uint64_t', - []) - ## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function] - cls.add_method('ReadU8', - 'uint8_t', - []) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function] - cls.add_method('TrimAtEnd', - 'void', - [param('uint32_t', 'trim')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('Write', - 'void', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function] - cls.add_method('WriteDouble', - 'void', - [param('double', 'v')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function] - cls.add_method('WriteU16', - 'void', - [param('uint16_t', 'data')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function] - cls.add_method('WriteU32', - 'void', - [param('uint32_t', 'data')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function] - cls.add_method('WriteU64', - 'void', - [param('uint64_t', 'v')]) - ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function] - cls.add_method('WriteU8', - 'void', - [param('uint8_t', 'v')]) - return - -def register_Ns3TimeWithUnit_methods(root_module, cls): - cls.add_output_stream_operator() - ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::TimeWithUnit const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeWithUnit const &', 'arg0')]) - ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::Time const time, ns3::Time::Unit const unit) [constructor] - cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')]) - return - -def register_Ns3TypeId_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('!=') - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('==') - ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor] - cls.add_constructor([param('char const *', 'name')]) - ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor] - cls.add_constructor([param('ns3::TypeId const &', 'o')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr accessor, ns3::Ptr checker) [member function] - cls.add_method('AddAttribute', - 'ns3::TypeId', - [param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr accessor, ns3::Ptr checker) [member function] - cls.add_method('AddAttribute', - 'ns3::TypeId', - [param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr accessor) [member function] - cls.add_method('AddTraceSource', - 'ns3::TypeId', - [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')]) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation ns3::TypeId::GetAttribute(uint32_t i) const [member function] - cls.add_method('GetAttribute', - 'ns3::TypeId::AttributeInformation', - [param('uint32_t', 'i')], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function] - cls.add_method('GetAttributeFullName', - 'std::string', - [param('uint32_t', 'i')], - is_const=True) - ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function] - cls.add_method('GetAttributeN', - 'uint32_t', - [], - is_const=True) - ## type-id.h (module 'core'): ns3::Callback ns3::TypeId::GetConstructor() const [member function] - cls.add_method('GetConstructor', - 'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', - [], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function] - cls.add_method('GetGroupName', - 'std::string', - [], - is_const=True) - ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetHash() const [member function] - cls.add_method('GetHash', - 'uint32_t', - [], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function] - cls.add_method('GetParent', - 'ns3::TypeId', - [], - is_const=True) - ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function] - cls.add_method('GetRegistered', - 'ns3::TypeId', - [param('uint32_t', 'i')], - is_static=True) - ## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function] - cls.add_method('GetRegisteredN', - 'uint32_t', - [], - is_static=True) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation ns3::TypeId::GetTraceSource(uint32_t i) const [member function] - cls.add_method('GetTraceSource', - 'ns3::TypeId::TraceSourceInformation', - [param('uint32_t', 'i')], - is_const=True) - ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function] - cls.add_method('GetTraceSourceN', - 'uint32_t', - [], - is_const=True) - ## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function] - cls.add_method('GetUid', - 'uint16_t', - [], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function] - cls.add_method('HasConstructor', - 'bool', - [], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function] - cls.add_method('HasParent', - 'bool', - [], - is_const=True) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function] - cls.add_method('HideFromDocumentation', - 'ns3::TypeId', - []) - ## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function] - cls.add_method('IsChildOf', - 'bool', - [param('ns3::TypeId', 'other')], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInformation * info) const [member function] - cls.add_method('LookupAttributeByName', - 'bool', - [param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info', transfer_ownership=False)], - is_const=True) - ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByHash(uint32_t hash) [member function] - cls.add_method('LookupByHash', - 'ns3::TypeId', - [param('uint32_t', 'hash')], - is_static=True) - ## type-id.h (module 'core'): static bool ns3::TypeId::LookupByHashFailSafe(uint32_t hash, ns3::TypeId * tid) [member function] - cls.add_method('LookupByHashFailSafe', - 'bool', - [param('uint32_t', 'hash'), param('ns3::TypeId *', 'tid')], - is_static=True) - ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function] - cls.add_method('LookupByName', - 'ns3::TypeId', - [param('std::string', 'name')], - is_static=True) - ## type-id.h (module 'core'): ns3::Ptr ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function] - cls.add_method('LookupTraceSourceByName', - 'ns3::Ptr< ns3::TraceSourceAccessor const >', - [param('std::string', 'name')], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function] - cls.add_method('MustHideFromDocumentation', - 'bool', - [], - is_const=True) - ## type-id.h (module 'core'): bool ns3::TypeId::SetAttributeInitialValue(uint32_t i, ns3::Ptr initialValue) [member function] - cls.add_method('SetAttributeInitialValue', - 'bool', - [param('uint32_t', 'i'), param('ns3::Ptr< ns3::AttributeValue const >', 'initialValue')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function] - cls.add_method('SetGroupName', - 'ns3::TypeId', - [param('std::string', 'groupName')]) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function] - cls.add_method('SetParent', - 'ns3::TypeId', - [param('ns3::TypeId', 'tid')]) - ## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function] - cls.add_method('SetUid', - 'void', - [param('uint16_t', 'tid')]) - return - -def register_Ns3TypeIdAttributeInformation_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation(ns3::TypeId::AttributeInformation const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeId::AttributeInformation const &', 'arg0')]) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::accessor [variable] - cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::checker [variable] - cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::flags [variable] - cls.add_instance_attribute('flags', 'uint32_t', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::help [variable] - cls.add_instance_attribute('help', 'std::string', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::initialValue [variable] - cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::name [variable] - cls.add_instance_attribute('name', 'std::string', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::originalInitialValue [variable] - cls.add_instance_attribute('originalInitialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False) - return - -def register_Ns3TypeIdTraceSourceInformation_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation(ns3::TypeId::TraceSourceInformation const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeId::TraceSourceInformation const &', 'arg0')]) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::accessor [variable] - cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::TraceSourceAccessor const >', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::help [variable] - cls.add_instance_attribute('help', 'std::string', is_const=False) - ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::name [variable] - cls.add_instance_attribute('name', 'std::string', is_const=False) - return - -def register_Ns3Empty_methods(root_module, cls): - ## empty.h (module 'core'): ns3::empty::empty() [constructor] - cls.add_constructor([]) - ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor] - cls.add_constructor([param('ns3::empty const &', 'arg0')]) - return - -def register_Ns3Int64x64_t_methods(root_module, cls): - cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_unary_numeric_operator('-') - cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('>') - cls.add_binary_comparison_operator('!=') - cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', u'right')) - cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', u'right')) - cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', u'right')) - cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', u'right')) - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('<=') - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('>=') - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t() [constructor] - cls.add_constructor([]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(double v) [constructor] - cls.add_constructor([param('double', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long double v) [constructor] - cls.add_constructor([param('long double', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int v) [constructor] - cls.add_constructor([param('int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long int v) [constructor] - cls.add_constructor([param('long int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long int v) [constructor] - cls.add_constructor([param('long long int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(unsigned int v) [constructor] - cls.add_constructor([param('unsigned int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long unsigned int v) [constructor] - cls.add_constructor([param('long unsigned int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long unsigned int v) [constructor] - cls.add_constructor([param('long long unsigned int', 'v')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int64_t hi, uint64_t lo) [constructor] - cls.add_constructor([param('int64_t', 'hi'), param('uint64_t', 'lo')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(ns3::int64x64_t const & o) [copy constructor] - cls.add_constructor([param('ns3::int64x64_t const &', 'o')]) - ## int64x64-double.h (module 'core'): double ns3::int64x64_t::GetDouble() const [member function] - cls.add_method('GetDouble', - 'double', - [], - is_const=True) - ## int64x64-double.h (module 'core'): int64_t ns3::int64x64_t::GetHigh() const [member function] - cls.add_method('GetHigh', - 'int64_t', - [], - is_const=True) - ## int64x64-double.h (module 'core'): uint64_t ns3::int64x64_t::GetLow() const [member function] - cls.add_method('GetLow', - 'uint64_t', - [], - is_const=True) - ## int64x64-double.h (module 'core'): static ns3::int64x64_t ns3::int64x64_t::Invert(uint64_t v) [member function] - cls.add_method('Invert', - 'ns3::int64x64_t', - [param('uint64_t', 'v')], - is_static=True) - ## int64x64-double.h (module 'core'): void ns3::int64x64_t::MulByInvert(ns3::int64x64_t const & o) [member function] - cls.add_method('MulByInvert', - 'void', - [param('ns3::int64x64_t const &', 'o')]) - ## int64x64-double.h (module 'core'): ns3::int64x64_t::implementation [variable] - cls.add_static_attribute('implementation', 'ns3::int64x64_t::impl_type const', is_const=True) - return - -def register_Ns3Chunk_methods(root_module, cls): - ## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor] - cls.add_constructor([]) - ## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Chunk const &', 'arg0')]) - ## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_virtual=True) - ## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3EmuHelper_methods(root_module, cls): - ## emu-helper.h (module 'emu'): ns3::EmuHelper::EmuHelper(ns3::EmuHelper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EmuHelper const &', 'arg0')]) - ## emu-helper.h (module 'emu'): ns3::EmuHelper::EmuHelper() [constructor] - cls.add_constructor([]) - ## emu-helper.h (module 'emu'): ns3::NetDeviceContainer ns3::EmuHelper::Install(ns3::Ptr node) const [member function] - cls.add_method('Install', - 'ns3::NetDeviceContainer', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_const=True) - ## emu-helper.h (module 'emu'): ns3::NetDeviceContainer ns3::EmuHelper::Install(std::string nodeName) const [member function] - cls.add_method('Install', - 'ns3::NetDeviceContainer', - [param('std::string', 'nodeName')], - is_const=True) - ## emu-helper.h (module 'emu'): ns3::NetDeviceContainer ns3::EmuHelper::Install(ns3::NodeContainer const & c) const [member function] - cls.add_method('Install', - 'ns3::NetDeviceContainer', - [param('ns3::NodeContainer const &', 'c')], - is_const=True) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::SetAttribute(std::string n1, ns3::AttributeValue const & v1) [member function] - cls.add_method('SetAttribute', - 'void', - [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')]) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::SetQueue(std::string type, std::string n1="", ns3::AttributeValue const & v1=ns3::EmptyAttributeValue(), std::string n2="", ns3::AttributeValue const & v2=ns3::EmptyAttributeValue(), std::string n3="", ns3::AttributeValue const & v3=ns3::EmptyAttributeValue(), std::string n4="", ns3::AttributeValue const & v4=ns3::EmptyAttributeValue()) [member function] - cls.add_method('SetQueue', - 'void', - [param('std::string', 'type'), param('std::string', 'n1', default_value='""'), param('ns3::AttributeValue const &', 'v1', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n2', default_value='""'), param('ns3::AttributeValue const &', 'v2', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n3', default_value='""'), param('ns3::AttributeValue const &', 'v3', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n4', default_value='""'), param('ns3::AttributeValue const &', 'v4', default_value='ns3::EmptyAttributeValue()')]) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::EnableAsciiInternal(ns3::Ptr stream, std::string prefix, ns3::Ptr nd, bool explicitFilename) [member function] - cls.add_method('EnableAsciiInternal', - 'void', - [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], - visibility='private', is_virtual=True) - ## emu-helper.h (module 'emu'): void ns3::EmuHelper::EnablePcapInternal(std::string prefix, ns3::Ptr nd, bool promiscuous, bool explicitFilename) [member function] - cls.add_method('EnablePcapInternal', - 'void', - [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], - visibility='private', is_virtual=True) - return - -def register_Ns3Header_methods(root_module, cls): - cls.add_output_stream_operator() - ## header.h (module 'network'): ns3::Header::Header() [constructor] - cls.add_constructor([]) - ## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Header const &', 'arg0')]) - ## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_virtual=True) - ## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3Object_methods(root_module, cls): - ## object.h (module 'core'): ns3::Object::Object() [constructor] - cls.add_constructor([]) - ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr other) [member function] - cls.add_method('AggregateObject', - 'void', - [param('ns3::Ptr< ns3::Object >', 'other')]) - ## object.h (module 'core'): void ns3::Object::Dispose() [member function] - cls.add_method('Dispose', - 'void', - []) - ## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function] - cls.add_method('GetAggregateIterator', - 'ns3::Object::AggregateIterator', - [], - is_const=True) - ## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_const=True, is_virtual=True) - ## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## object.h (module 'core'): void ns3::Object::Initialize() [member function] - cls.add_method('Initialize', - 'void', - []) - ## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor] - cls.add_constructor([param('ns3::Object const &', 'o')], - visibility='protected') - ## object.h (module 'core'): void ns3::Object::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h (module 'core'): void ns3::Object::DoInitialize() [member function] - cls.add_method('DoInitialize', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function] - cls.add_method('NotifyNewAggregate', - 'void', - [], - visibility='protected', is_virtual=True) - return - -def register_Ns3ObjectAggregateIterator_methods(root_module, cls): - ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')]) - ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor] - cls.add_constructor([]) - ## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## object.h (module 'core'): ns3::Ptr ns3::Object::AggregateIterator::Next() [member function] - cls.add_method('Next', - 'ns3::Ptr< ns3::Object const >', - []) - return - -def register_Ns3PcapFileWrapper_methods(root_module, cls): - ## pcap-file-wrapper.h (module 'network'): static ns3::TypeId ns3::PcapFileWrapper::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper::PcapFileWrapper() [constructor] - cls.add_constructor([]) - ## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Fail() const [member function] - cls.add_method('Fail', - 'bool', - [], - is_const=True) - ## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Eof() const [member function] - cls.add_method('Eof', - 'bool', - [], - is_const=True) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Clear() [member function] - cls.add_method('Clear', - 'void', - []) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Open(std::string const & filename, std::_Ios_Openmode mode) [member function] - cls.add_method('Open', - 'void', - [param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Close() [member function] - cls.add_method('Close', - 'void', - []) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Init(uint32_t dataLinkType, uint32_t snapLen=std::numeric_limits::max(), int32_t tzCorrection=ns3::PcapFile::ZONE_DEFAULT) [member function] - cls.add_method('Init', - 'void', - [param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='std::numeric_limits::max()'), param('int32_t', 'tzCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Time', 't'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Header & header, ns3::Ptr p) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Time', 't'), param('ns3::Header &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, uint8_t const * buffer, uint32_t length) [member function] - cls.add_method('Write', - 'void', - [param('ns3::Time', 't'), param('uint8_t const *', 'buffer'), param('uint32_t', 'length')]) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetMagic() [member function] - cls.add_method('GetMagic', - 'uint32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMajor() [member function] - cls.add_method('GetVersionMajor', - 'uint16_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMinor() [member function] - cls.add_method('GetVersionMinor', - 'uint16_t', - []) - ## pcap-file-wrapper.h (module 'network'): int32_t ns3::PcapFileWrapper::GetTimeZoneOffset() [member function] - cls.add_method('GetTimeZoneOffset', - 'int32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSigFigs() [member function] - cls.add_method('GetSigFigs', - 'uint32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSnapLen() [member function] - cls.add_method('GetSnapLen', - 'uint32_t', - []) - ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetDataLinkType() [member function] - cls.add_method('GetDataLinkType', - 'uint32_t', - []) - return - -def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3HashImplementation_Ns3Empty_Ns3DefaultDeleter__lt__ns3HashImplementation__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter< ns3::Hash::Implementation > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter< ns3::OutputStreamWrapper > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_Ns3DefaultDeleter__lt__ns3SystemThread__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter< ns3::SystemThread > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, cls): - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount() [constructor] - cls.add_constructor([]) - ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount >::SimpleRefCount(ns3::SimpleRefCount > const & o) [copy constructor] - cls.add_constructor([param('ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter< ns3::TraceSourceAccessor > > const &', 'o')]) - ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount >::Cleanup() [member function] - cls.add_method('Cleanup', - 'void', - [], - is_static=True) - return - -def register_Ns3SystemThread_methods(root_module, cls): - ## system-thread.h (module 'core'): ns3::SystemThread::SystemThread(ns3::SystemThread const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SystemThread const &', 'arg0')]) - ## system-thread.h (module 'core'): ns3::SystemThread::SystemThread(ns3::Callback callback) [constructor] - cls.add_constructor([param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')]) - ## system-thread.h (module 'core'): static bool ns3::SystemThread::Equals(pthread_t id) [member function] - cls.add_method('Equals', - 'bool', - [param('pthread_t', 'id')], - is_static=True) - ## system-thread.h (module 'core'): void ns3::SystemThread::Join() [member function] - cls.add_method('Join', - 'void', - []) - ## system-thread.h (module 'core'): static pthread_t ns3::SystemThread::Self() [member function] - cls.add_method('Self', - 'pthread_t', - [], - is_static=True) - ## system-thread.h (module 'core'): void ns3::SystemThread::Start() [member function] - cls.add_method('Start', - 'void', - []) - return - -def register_Ns3Time_methods(root_module, cls): - cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right')) - cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right')) - cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right')) - cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right')) - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('>') - cls.add_binary_comparison_operator('!=') - cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', u'right')) - cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', u'right')) - cls.add_output_stream_operator() - cls.add_binary_comparison_operator('<=') - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('>=') - ## nstime.h (module 'core'): ns3::Time::Time() [constructor] - cls.add_constructor([]) - ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor] - cls.add_constructor([param('ns3::Time const &', 'o')]) - ## nstime.h (module 'core'): ns3::Time::Time(double v) [constructor] - cls.add_constructor([param('double', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(int v) [constructor] - cls.add_constructor([param('int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long int v) [constructor] - cls.add_constructor([param('long int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long long int v) [constructor] - cls.add_constructor([param('long long int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(unsigned int v) [constructor] - cls.add_constructor([param('unsigned int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long unsigned int v) [constructor] - cls.add_constructor([param('long unsigned int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(long long unsigned int v) [constructor] - cls.add_constructor([param('long long unsigned int', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & v) [constructor] - cls.add_constructor([param('ns3::int64x64_t const &', 'v')]) - ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor] - cls.add_constructor([param('std::string const &', 's')]) - ## nstime.h (module 'core'): ns3::TimeWithUnit ns3::Time::As(ns3::Time::Unit const unit) const [member function] - cls.add_method('As', - 'ns3::TimeWithUnit', - [param('ns3::Time::Unit const', 'unit')], - is_const=True) - ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function] - cls.add_method('Compare', - 'int', - [param('ns3::Time const &', 'o')], - is_const=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & value) [member function] - cls.add_method('From', - 'ns3::Time', - [param('ns3::int64x64_t const &', 'value')], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & value, ns3::Time::Unit unit) [member function] - cls.add_method('From', - 'ns3::Time', - [param('ns3::int64x64_t const &', 'value'), param('ns3::Time::Unit', 'unit')], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit unit) [member function] - cls.add_method('FromDouble', - 'ns3::Time', - [param('double', 'value'), param('ns3::Time::Unit', 'unit')], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit unit) [member function] - cls.add_method('FromInteger', - 'ns3::Time', - [param('uint64_t', 'value'), param('ns3::Time::Unit', 'unit')], - is_static=True) - ## nstime.h (module 'core'): double ns3::Time::GetDays() const [member function] - cls.add_method('GetDays', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetDouble() const [member function] - cls.add_method('GetDouble', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function] - cls.add_method('GetFemtoSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetHours() const [member function] - cls.add_method('GetHours', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetInteger() const [member function] - cls.add_method('GetInteger', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function] - cls.add_method('GetMicroSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function] - cls.add_method('GetMilliSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetMinutes() const [member function] - cls.add_method('GetMinutes', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function] - cls.add_method('GetNanoSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function] - cls.add_method('GetPicoSeconds', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function] - cls.add_method('GetResolution', - 'ns3::Time::Unit', - [], - is_static=True) - ## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function] - cls.add_method('GetSeconds', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function] - cls.add_method('GetTimeStep', - 'int64_t', - [], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::GetYears() const [member function] - cls.add_method('GetYears', - 'double', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function] - cls.add_method('IsNegative', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function] - cls.add_method('IsPositive', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function] - cls.add_method('IsStrictlyNegative', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function] - cls.add_method('IsStrictlyPositive', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function] - cls.add_method('IsZero', - 'bool', - [], - is_const=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::Max() [member function] - cls.add_method('Max', - 'ns3::Time', - [], - is_static=True) - ## nstime.h (module 'core'): static ns3::Time ns3::Time::Min() [member function] - cls.add_method('Min', - 'ns3::Time', - [], - is_static=True) - ## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function] - cls.add_method('SetResolution', - 'void', - [param('ns3::Time::Unit', 'resolution')], - is_static=True) - ## nstime.h (module 'core'): static bool ns3::Time::StaticInit() [member function] - cls.add_method('StaticInit', - 'bool', - [], - is_static=True) - ## nstime.h (module 'core'): ns3::int64x64_t ns3::Time::To(ns3::Time::Unit unit) const [member function] - cls.add_method('To', - 'ns3::int64x64_t', - [param('ns3::Time::Unit', 'unit')], - is_const=True) - ## nstime.h (module 'core'): double ns3::Time::ToDouble(ns3::Time::Unit unit) const [member function] - cls.add_method('ToDouble', - 'double', - [param('ns3::Time::Unit', 'unit')], - is_const=True) - ## nstime.h (module 'core'): int64_t ns3::Time::ToInteger(ns3::Time::Unit unit) const [member function] - cls.add_method('ToInteger', - 'int64_t', - [param('ns3::Time::Unit', 'unit')], - is_const=True) - return - -def register_Ns3TraceSourceAccessor_methods(root_module, cls): - ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')]) - ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor] - cls.add_constructor([]) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Connect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function] - cls.add_method('Connect', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::ConnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function] - cls.add_method('ConnectWithoutContext', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Disconnect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function] - cls.add_method('Disconnect', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::DisconnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function] - cls.add_method('DisconnectWithoutContext', - 'bool', - [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3Trailer_methods(root_module, cls): - cls.add_output_stream_operator() - ## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor] - cls.add_constructor([]) - ## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Trailer const &', 'arg0')]) - ## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'end')], - is_pure_virtual=True, is_virtual=True) - ## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator', 'start')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3AttributeAccessor_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function] - cls.add_method('Get', - 'bool', - [param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function] - cls.add_method('HasGetter', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function] - cls.add_method('HasSetter', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function] - cls.add_method('Set', - 'bool', - [param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3AttributeChecker_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function] - cls.add_method('Check', - 'bool', - [param('ns3::AttributeValue const &', 'value')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function] - cls.add_method('Copy', - 'bool', - [param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): ns3::Ptr ns3::AttributeChecker::Create() const [member function] - cls.add_method('Create', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): ns3::Ptr ns3::AttributeChecker::CreateValidValue(ns3::AttributeValue const & value) const [member function] - cls.add_method('CreateValidValue', - 'ns3::Ptr< ns3::AttributeValue >', - [param('ns3::AttributeValue const &', 'value')], - is_const=True) - ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function] - cls.add_method('GetUnderlyingTypeInformation', - 'std::string', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function] - cls.add_method('GetValueTypeName', - 'std::string', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function] - cls.add_method('HasUnderlyingTypeInformation', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3AttributeValue_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): ns3::Ptr ns3::AttributeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_pure_virtual=True, is_virtual=True) - ## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3CallbackChecker_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')]) - return - -def register_Ns3CallbackImplBase_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) - ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr other) const [member function] - cls.add_method('IsEqual', - 'bool', - [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3CallbackValue_methods(root_module, cls): - ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')]) - ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor] - cls.add_constructor([]) - ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor] - cls.add_constructor([param('ns3::CallbackBase const &', 'base')]) - ## callback.h (module 'core'): ns3::Ptr ns3::CallbackValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function] - cls.add_method('Set', - 'void', - [param('ns3::CallbackBase', 'base')]) - return - -def register_Ns3DataRateChecker_methods(root_module, cls): - ## data-rate.h (module 'network'): ns3::DataRateChecker::DataRateChecker() [constructor] - cls.add_constructor([]) - ## data-rate.h (module 'network'): ns3::DataRateChecker::DataRateChecker(ns3::DataRateChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRateChecker const &', 'arg0')]) - return - -def register_Ns3DataRateValue_methods(root_module, cls): - ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue() [constructor] - cls.add_constructor([]) - ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')]) - ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor] - cls.add_constructor([param('ns3::DataRate const &', 'value')]) - ## data-rate.h (module 'network'): ns3::Ptr ns3::DataRateValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## data-rate.h (module 'network'): bool ns3::DataRateValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## data-rate.h (module 'network'): ns3::DataRate ns3::DataRateValue::Get() const [member function] - cls.add_method('Get', - 'ns3::DataRate', - [], - is_const=True) - ## data-rate.h (module 'network'): std::string ns3::DataRateValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## data-rate.h (module 'network'): void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::DataRate const &', 'value')]) - return - -def register_Ns3EmptyAttributeValue_methods(root_module, cls): - ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')]) - ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor] - cls.add_constructor([]) - ## attribute.h (module 'core'): ns3::Ptr ns3::EmptyAttributeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, visibility='private', is_virtual=True) - ## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - visibility='private', is_virtual=True) - ## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, visibility='private', is_virtual=True) - return - -def register_Ns3EventImpl_methods(root_module, cls): - ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EventImpl const &', 'arg0')]) - ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor] - cls.add_constructor([]) - ## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function] - cls.add_method('Cancel', - 'void', - []) - ## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function] - cls.add_method('Invoke', - 'void', - []) - ## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function] - cls.add_method('IsCancelled', - 'bool', - []) - ## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function] - cls.add_method('Notify', - 'void', - [], - is_pure_virtual=True, visibility='protected', is_virtual=True) - return - -def register_Ns3Ipv4AddressChecker_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')]) - return - -def register_Ns3Ipv4AddressValue_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Address const &', 'value')]) - ## ipv4-address.h (module 'network'): ns3::Ptr ns3::Ipv4AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Address const &', 'value')]) - return - -def register_Ns3Ipv4MaskChecker_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')]) - return - -def register_Ns3Ipv4MaskValue_methods(root_module, cls): - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')]) - ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')]) - ## ipv4-address.h (module 'network'): ns3::Ptr ns3::Ipv4MaskValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Mask', - [], - is_const=True) - ## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Mask const &', 'value')]) - return - -def register_Ns3Ipv6AddressChecker_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')]) - return - -def register_Ns3Ipv6AddressValue_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Address const &', 'value')]) - ## ipv6-address.h (module 'network'): ns3::Ptr ns3::Ipv6AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Address const &', 'value')]) - return - -def register_Ns3Ipv6PrefixChecker_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')]) - return - -def register_Ns3Ipv6PrefixValue_methods(root_module, cls): - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')]) - ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')]) - ## ipv6-address.h (module 'network'): ns3::Ptr ns3::Ipv6PrefixValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Prefix', - [], - is_const=True) - ## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Prefix const &', 'value')]) - return - -def register_Ns3Mac48AddressChecker_methods(root_module, cls): - ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor] - cls.add_constructor([]) - ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker(ns3::Mac48AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48AddressChecker const &', 'arg0')]) - return - -def register_Ns3Mac48AddressValue_methods(root_module, cls): - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue() [constructor] - cls.add_constructor([]) - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')]) - ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor] - cls.add_constructor([param('ns3::Mac48Address const &', 'value')]) - ## mac48-address.h (module 'network'): ns3::Ptr ns3::Mac48AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## mac48-address.h (module 'network'): bool ns3::Mac48AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## mac48-address.h (module 'network'): ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Mac48Address', - [], - is_const=True) - ## mac48-address.h (module 'network'): std::string ns3::Mac48AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## mac48-address.h (module 'network'): void ns3::Mac48AddressValue::Set(ns3::Mac48Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Mac48Address const &', 'value')]) - return - -def register_Ns3NetDevice_methods(root_module, cls): - ## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor] - cls.add_constructor([]) - ## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NetDevice const &', 'arg0')]) - ## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback callback) [member function] - cls.add_method('AddLinkChangeCallback', - 'void', - [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function] - cls.add_method('GetAddress', - 'ns3::Address', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function] - cls.add_method('GetBroadcast', - 'ns3::Address', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Ptr ns3::NetDevice::GetChannel() const [member function] - cls.add_method('GetChannel', - 'ns3::Ptr< ns3::Channel >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function] - cls.add_method('GetIfIndex', - 'uint32_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function] - cls.add_method('GetMtu', - 'uint16_t', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv4Address', 'multicastGroup')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv6Address', 'addr')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): ns3::Ptr ns3::NetDevice::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function] - cls.add_method('IsBridge', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function] - cls.add_method('IsLinkUp', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function] - cls.add_method('IsPointToPoint', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function] - cls.add_method('NeedsArp', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr packet, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('Send', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('SendFrom', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function] - cls.add_method('SetAddress', - 'void', - [param('ns3::Address', 'address')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function] - cls.add_method('SetIfIndex', - 'void', - [param('uint32_t const', 'index')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function] - cls.add_method('SetMtu', - 'bool', - [param('uint16_t const', 'mtu')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetPromiscReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function] - cls.add_method('SupportsSendFrom', - 'bool', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) - return - -def register_Ns3NixVector_methods(root_module, cls): - cls.add_output_stream_operator() - ## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor] - cls.add_constructor([]) - ## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor] - cls.add_constructor([param('ns3::NixVector const &', 'o')]) - ## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function] - cls.add_method('AddNeighborIndex', - 'void', - [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')]) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function] - cls.add_method('BitCount', - 'uint32_t', - [param('uint32_t', 'numberOfNeighbors')], - is_const=True) - ## nix-vector.h (module 'network'): ns3::Ptr ns3::NixVector::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::NixVector >', - [], - is_const=True) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('uint32_t const *', 'buffer'), param('uint32_t', 'size')]) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function] - cls.add_method('ExtractNeighborIndex', - 'uint32_t', - [param('uint32_t', 'numberOfBits')]) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function] - cls.add_method('GetRemainingBits', - 'uint32_t', - []) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - return - -def register_Ns3Node_methods(root_module, cls): - ## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Node const &', 'arg0')]) - ## node.h (module 'network'): ns3::Node::Node() [constructor] - cls.add_constructor([]) - ## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor] - cls.add_constructor([param('uint32_t', 'systemId')]) - ## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr application) [member function] - cls.add_method('AddApplication', - 'uint32_t', - [param('ns3::Ptr< ns3::Application >', 'application')]) - ## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr device) [member function] - cls.add_method('AddDevice', - 'uint32_t', - [param('ns3::Ptr< ns3::NetDevice >', 'device')]) - ## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function] - cls.add_method('ChecksumEnabled', - 'bool', - [], - is_static=True) - ## node.h (module 'network'): ns3::Ptr ns3::Node::GetApplication(uint32_t index) const [member function] - cls.add_method('GetApplication', - 'ns3::Ptr< ns3::Application >', - [param('uint32_t', 'index')], - is_const=True) - ## node.h (module 'network'): ns3::Ptr ns3::Node::GetDevice(uint32_t index) const [member function] - cls.add_method('GetDevice', - 'ns3::Ptr< ns3::NetDevice >', - [param('uint32_t', 'index')], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function] - cls.add_method('GetId', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function] - cls.add_method('GetNApplications', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function] - cls.add_method('GetNDevices', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function] - cls.add_method('GetSystemId', - 'uint32_t', - [], - is_const=True) - ## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## node.h (module 'network'): void ns3::Node::RegisterDeviceAdditionListener(ns3::Callback,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function] - cls.add_method('RegisterDeviceAdditionListener', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')]) - ## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr device, bool promiscuous=false) [member function] - cls.add_method('RegisterProtocolHandler', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')]) - ## node.h (module 'network'): void ns3::Node::UnregisterDeviceAdditionListener(ns3::Callback,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function] - cls.add_method('UnregisterDeviceAdditionListener', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')]) - ## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function] - cls.add_method('UnregisterProtocolHandler', - 'void', - [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')]) - ## node.h (module 'network'): void ns3::Node::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## node.h (module 'network'): void ns3::Node::DoInitialize() [member function] - cls.add_method('DoInitialize', - 'void', - [], - visibility='protected', is_virtual=True) - return - -def register_Ns3ObjectFactoryChecker_methods(root_module, cls): - ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor] - cls.add_constructor([]) - ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')]) - return - -def register_Ns3ObjectFactoryValue_methods(root_module, cls): - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor] - cls.add_constructor([]) - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')]) - ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor] - cls.add_constructor([param('ns3::ObjectFactory const &', 'value')]) - ## object-factory.h (module 'core'): ns3::Ptr ns3::ObjectFactoryValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function] - cls.add_method('Get', - 'ns3::ObjectFactory', - [], - is_const=True) - ## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::ObjectFactory const &', 'value')]) - return - -def register_Ns3OutputStreamWrapper_methods(root_module, cls): - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(ns3::OutputStreamWrapper const & arg0) [copy constructor] - cls.add_constructor([param('ns3::OutputStreamWrapper const &', 'arg0')]) - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::string filename, std::_Ios_Openmode filemode) [constructor] - cls.add_constructor([param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode')]) - ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::ostream * os) [constructor] - cls.add_constructor([param('std::ostream *', 'os')]) - ## output-stream-wrapper.h (module 'network'): std::ostream * ns3::OutputStreamWrapper::GetStream() [member function] - cls.add_method('GetStream', - 'std::ostream *', - []) - return - -def register_Ns3Packet_methods(root_module, cls): - cls.add_output_stream_operator() - ## packet.h (module 'network'): ns3::Packet::Packet() [constructor] - cls.add_constructor([]) - ## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor] - cls.add_constructor([param('ns3::Packet const &', 'o')]) - ## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor] - cls.add_constructor([param('uint32_t', 'size')]) - ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor] - cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')]) - ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor] - cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr packet) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::Ptr< ns3::Packet const >', 'packet')]) - ## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function] - cls.add_method('AddByteTag', - 'void', - [param('ns3::Tag const &', 'tag')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function] - cls.add_method('AddHeader', - 'void', - [param('ns3::Header const &', 'header')]) - ## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function] - cls.add_method('AddPacketTag', - 'void', - [param('ns3::Tag const &', 'tag')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function] - cls.add_method('AddPaddingAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function] - cls.add_method('AddTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer')]) - ## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function] - cls.add_method('BeginItem', - 'ns3::PacketMetadata::ItemIterator', - [], - is_const=True) - ## packet.h (module 'network'): ns3::Ptr ns3::Packet::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::Packet >', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function] - cls.add_method('CopyData', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'size')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function] - cls.add_method('CopyData', - 'void', - [param('std::ostream *', 'os'), param('uint32_t', 'size')], - is_const=True) - ## packet.h (module 'network'): ns3::Ptr ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function] - cls.add_method('CreateFragment', - 'ns3::Ptr< ns3::Packet >', - [param('uint32_t', 'start'), param('uint32_t', 'length')], - is_const=True) - ## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function] - cls.add_method('EnableChecking', - 'void', - [], - is_static=True) - ## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function] - cls.add_method('EnablePrinting', - 'void', - [], - is_static=True) - ## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function] - cls.add_method('FindFirstMatchingByteTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function] - cls.add_method('GetByteTagIterator', - 'ns3::ByteTagIterator', - [], - is_const=True) - ## packet.h (module 'network'): ns3::Ptr ns3::Packet::GetNixVector() const [member function] - cls.add_method('GetNixVector', - 'ns3::Ptr< ns3::NixVector >', - [], - is_const=True) - ## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function] - cls.add_method('GetPacketTagIterator', - 'ns3::PacketTagIterator', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function] - cls.add_method('GetUid', - 'uint64_t', - [], - is_const=True) - ## packet.h (module 'network'): uint8_t const * ns3::Packet::PeekData() const [member function] - cls.add_method('PeekData', - 'uint8_t const *', - [], - deprecated=True, is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function] - cls.add_method('PeekHeader', - 'uint32_t', - [param('ns3::Header &', 'header')], - is_const=True) - ## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function] - cls.add_method('PeekPacketTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('PeekTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function] - cls.add_method('PrintByteTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function] - cls.add_method('PrintPacketTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function] - cls.add_method('RemoveAllByteTags', - 'void', - []) - ## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function] - cls.add_method('RemoveAllPacketTags', - 'void', - []) - ## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'size')]) - ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function] - cls.add_method('RemoveHeader', - 'uint32_t', - [param('ns3::Header &', 'header')]) - ## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function] - cls.add_method('RemovePacketTag', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('RemoveTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h (module 'network'): bool ns3::Packet::ReplacePacketTag(ns3::Tag & tag) [member function] - cls.add_method('ReplacePacketTag', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] - cls.add_method('Serialize', - 'uint32_t', - [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], - is_const=True) - ## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr nixVector) [member function] - cls.add_method('SetNixVector', - 'void', - [param('ns3::Ptr< ns3::NixVector >', 'nixVector')]) - return - -def register_Ns3TimeValue_methods(root_module, cls): - ## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor] - cls.add_constructor([]) - ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeValue const &', 'arg0')]) - ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor] - cls.add_constructor([param('ns3::Time const &', 'value')]) - ## nstime.h (module 'core'): ns3::Ptr ns3::TimeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Time', - [], - is_const=True) - ## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Time const &', 'value')]) - return - -def register_Ns3TypeIdChecker_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')]) - return - -def register_Ns3TypeIdValue_methods(root_module, cls): - ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor] - cls.add_constructor([]) - ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')]) - ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor] - cls.add_constructor([param('ns3::TypeId const &', 'value')]) - ## type-id.h (module 'core'): ns3::Ptr ns3::TypeIdValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function] - cls.add_method('Get', - 'ns3::TypeId', - [], - is_const=True) - ## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::TypeId const &', 'value')]) - return - -def register_Ns3AddressChecker_methods(root_module, cls): - ## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor] - cls.add_constructor([]) - ## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')]) - return - -def register_Ns3AddressValue_methods(root_module, cls): - ## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor] - cls.add_constructor([]) - ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AddressValue const &', 'arg0')]) - ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor] - cls.add_constructor([param('ns3::Address const &', 'value')]) - ## address.h (module 'network'): ns3::Ptr ns3::AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr checker) [member function] - cls.add_method('DeserializeFromString', - 'bool', - [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_virtual=True) - ## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Address', - [], - is_const=True) - ## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr checker) const [member function] - cls.add_method('SerializeToString', - 'std::string', - [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], - is_const=True, is_virtual=True) - ## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Address const &', 'value')]) - return - -def register_Ns3EmuNetDevice_methods(root_module, cls): - ## emu-net-device.h (module 'emu'): static ns3::TypeId ns3::EmuNetDevice::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice::EmuNetDevice() [constructor] - cls.add_constructor([]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetDataRate(ns3::DataRate bps) [member function] - cls.add_method('SetDataRate', - 'void', - [param('ns3::DataRate', 'bps')]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::Start(ns3::Time tStart) [member function] - cls.add_method('Start', - 'void', - [param('ns3::Time', 'tStart')]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::Stop(ns3::Time tStop) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::Time', 'tStop')]) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetQueue(ns3::Ptr queue) [member function] - cls.add_method('SetQueue', - 'void', - [param('ns3::Ptr< ns3::Queue >', 'queue')]) - ## emu-net-device.h (module 'emu'): ns3::Ptr ns3::EmuNetDevice::GetQueue() const [member function] - cls.add_method('GetQueue', - 'ns3::Ptr< ns3::Queue >', - [], - is_const=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetIfIndex(uint32_t const index) [member function] - cls.add_method('SetIfIndex', - 'void', - [param('uint32_t const', 'index')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): uint32_t ns3::EmuNetDevice::GetIfIndex() const [member function] - cls.add_method('GetIfIndex', - 'uint32_t', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Ptr ns3::EmuNetDevice::GetChannel() const [member function] - cls.add_method('GetChannel', - 'ns3::Ptr< ns3::Channel >', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetAddress(ns3::Address address) [member function] - cls.add_method('SetAddress', - 'void', - [param('ns3::Address', 'address')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetAddress() const [member function] - cls.add_method('GetAddress', - 'ns3::Address', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::SetMtu(uint16_t const mtu) [member function] - cls.add_method('SetMtu', - 'bool', - [param('uint16_t const', 'mtu')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): uint16_t ns3::EmuNetDevice::GetMtu() const [member function] - cls.add_method('GetMtu', - 'uint16_t', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsLinkUp() const [member function] - cls.add_method('IsLinkUp', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::AddLinkChangeCallback(ns3::Callback callback) [member function] - cls.add_method('AddLinkChangeCallback', - 'void', - [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsBroadcast() const [member function] - cls.add_method('IsBroadcast', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetBroadcast() const [member function] - cls.add_method('GetBroadcast', - 'ns3::Address', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsMulticast() const [member function] - cls.add_method('IsMulticast', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv4Address', 'multicastGroup')], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Address ns3::EmuNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function] - cls.add_method('GetMulticast', - 'ns3::Address', - [param('ns3::Ipv6Address', 'addr')], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsPointToPoint() const [member function] - cls.add_method('IsPointToPoint', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::IsBridge() const [member function] - cls.add_method('IsBridge', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::Send(ns3::Ptr packet, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('Send', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::SendFrom(ns3::Ptr packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function] - cls.add_method('SendFrom', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): ns3::Ptr ns3::EmuNetDevice::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::NeedsArp() const [member function] - cls.add_method('NeedsArp', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetPromiscReceiveCallback(ns3::Callback, ns3::Ptr, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function] - cls.add_method('SetPromiscReceiveCallback', - 'void', - [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], - is_virtual=True) - ## emu-net-device.h (module 'emu'): bool ns3::EmuNetDevice::SupportsSendFrom() const [member function] - cls.add_method('SupportsSendFrom', - 'bool', - [], - is_const=True, is_virtual=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::SetEncapsulationMode(ns3::EmuNetDevice::EncapsulationMode mode) [member function] - cls.add_method('SetEncapsulationMode', - 'void', - [param('ns3::EmuNetDevice::EncapsulationMode', 'mode')]) - ## emu-net-device.h (module 'emu'): ns3::EmuNetDevice::EncapsulationMode ns3::EmuNetDevice::GetEncapsulationMode() const [member function] - cls.add_method('GetEncapsulationMode', - 'ns3::EmuNetDevice::EncapsulationMode', - [], - is_const=True) - ## emu-net-device.h (module 'emu'): void ns3::EmuNetDevice::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='private', is_virtual=True) - return - -def register_Ns3HashImplementation_methods(root_module, cls): - ## hash-function.h (module 'core'): ns3::Hash::Implementation::Implementation(ns3::Hash::Implementation const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Implementation const &', 'arg0')]) - ## hash-function.h (module 'core'): ns3::Hash::Implementation::Implementation() [constructor] - cls.add_constructor([]) - ## hash-function.h (module 'core'): uint32_t ns3::Hash::Implementation::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_pure_virtual=True, is_virtual=True) - ## hash-function.h (module 'core'): uint64_t ns3::Hash::Implementation::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): void ns3::Hash::Implementation::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_pure_virtual=True, is_virtual=True) - return - -def register_Ns3HashFunctionFnv1a_methods(root_module, cls): - ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a::Fnv1a(ns3::Hash::Function::Fnv1a const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Fnv1a const &', 'arg0')]) - ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a::Fnv1a() [constructor] - cls.add_constructor([]) - ## hash-fnv.h (module 'core'): uint32_t ns3::Hash::Function::Fnv1a::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-fnv.h (module 'core'): uint64_t ns3::Hash::Function::Fnv1a::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-fnv.h (module 'core'): void ns3::Hash::Function::Fnv1a::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_Ns3HashFunctionHash32_methods(root_module, cls): - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32::Hash32(ns3::Hash::Function::Hash32 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Hash32 const &', 'arg0')]) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32::Hash32(ns3::Hash::Hash32Function_ptr hp) [constructor] - cls.add_constructor([param('ns3::Hash::Hash32Function_ptr', 'hp')]) - ## hash-function.h (module 'core'): uint32_t ns3::Hash::Function::Hash32::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): void ns3::Hash::Function::Hash32::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_Ns3HashFunctionHash64_methods(root_module, cls): - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64::Hash64(ns3::Hash::Function::Hash64 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Hash64 const &', 'arg0')]) - ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64::Hash64(ns3::Hash::Hash64Function_ptr hp) [constructor] - cls.add_constructor([param('ns3::Hash::Hash64Function_ptr', 'hp')]) - ## hash-function.h (module 'core'): uint32_t ns3::Hash::Function::Hash64::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): uint64_t ns3::Hash::Function::Hash64::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-function.h (module 'core'): void ns3::Hash::Function::Hash64::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_Ns3HashFunctionMurmur3_methods(root_module, cls): - ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3::Murmur3(ns3::Hash::Function::Murmur3 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Hash::Function::Murmur3 const &', 'arg0')]) - ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3::Murmur3() [constructor] - cls.add_constructor([]) - ## hash-murmur3.h (module 'core'): uint32_t ns3::Hash::Function::Murmur3::GetHash32(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash32', - 'uint32_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-murmur3.h (module 'core'): uint64_t ns3::Hash::Function::Murmur3::GetHash64(char const * buffer, size_t const size) [member function] - cls.add_method('GetHash64', - 'uint64_t', - [param('char const *', 'buffer'), param('size_t const', 'size')], - is_virtual=True) - ## hash-murmur3.h (module 'core'): void ns3::Hash::Function::Murmur3::clear() [member function] - cls.add_method('clear', - 'void', - [], - is_virtual=True) - return - -def register_functions(root_module): - module = root_module - register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module) - register_functions_ns3_Hash(module.get_submodule('Hash'), root_module) - return - -def register_functions_ns3_FatalImpl(module, root_module): - return - -def register_functions_ns3_Hash(module, root_module): - register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module) - return - -def register_functions_ns3_Hash_Function(module, root_module): - return - -def main(): - out = FileCodeSink(sys.stdout) - root_module = module_init() - register_types(root_module) - register_methods(root_module) - register_functions(root_module) - root_module.generate(out) - -if __name__ == '__main__': - main() - diff --git a/src/emu/bindings/modulegen_customizations.py b/src/emu/bindings/modulegen_customizations.py deleted file mode 100644 index cd8b4caf0..000000000 --- a/src/emu/bindings/modulegen_customizations.py +++ /dev/null @@ -1,10 +0,0 @@ -import os - -def post_register_types(root_module): - enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',') - - if 'EmuNetDevice' not in enabled_features: - for clsname in ['EmuNetDevice', 'EmuHelper']: - root_module.classes.remove(root_module['ns3::%s' % clsname]) - root_module.enums.remove(root_module['ns3::EmuNetDevice::EncapsulationMode']) - diff --git a/src/emu/doc/emu.rst b/src/emu/doc/emu.rst deleted file mode 100644 index 6a9f15602..000000000 --- a/src/emu/doc/emu.rst +++ /dev/null @@ -1,316 +0,0 @@ -.. include:: replace.txt -.. highlight:: cpp - -Emu NetDevice -------------- - -**Note:** The ``EmuNetDevice`` is being deprecated as of ns-3.17. The -:doc:`fd-net-device` and ``EmuFdNetDeviceHelper`` class replaces this functionality and API entirely. - -Behavior -******** - -The ``Emu`` net device allows a simulation node to send and receive packets over -a real network. The emulated net device relies on a specified interface being in -promiscuous mode. It opens a raw socket and binds to that interface. We perform -MAC spoofing to separate simulation network traffic from other -network traffic that may be flowing to and from the host. - -One can use the ``Emu`` net device in a testbed situation where the host on -which the simulation is running has a specific interface of interest which -drives the testbed hardware. You would also need to set this specific interface -into promiscuous mode and provide an appropriate device name to the |ns3| -emulated net device. An example of this environment is the ORBIT testbed as -described above. - -The ``Emu`` net device only works if the underlying interface is up and in -promiscuous mode. Packets will be sent out over the device, but we use MAC -spoofing. The MAC addresses will be generated (by default) using the -Organizationally Unique Identifier (OUI) 00:00:00 as a base. This vendor code is -not assigned to any organization and so should not conflict with any real -hardware. - -It is always up to the user to determine that using these MAC addresses is okay -on your network and won't conflict with anything else (including another -simulation using ``Emu`` devices) on your network. If you are using the emulated -net device in separate simulations you must consider global MAC address -assignment issues and ensure that MAC addresses are unique across all -simulations. The emulated net device respects the MAC address provided in the -``SetAddress`` method so you can do this manually. For larger simulations, you -may want to set the OUI in the MAC address allocation function. - -IP addresses corresponding to the emulated net devices are the addresses -generated in the simulation, which are generated in the usual way via helper -functions. Since we are using MAC spoofing, there will not be a conflict between -|ns3| network stacks and any native network stacks. - -The emulated net device comes with a helper function as all |ns3| devices do. -One unique aspect is that there is no channel associated with the underlying -medium. We really have no idea what this external medium is, and so have not -made an effort to model it abstractly. The primary thing to be aware of is the -implication this has for IPv4 global routing. The global router module attempts -to walk the channels looking for adjacent networks. Since there is no channel, -the global router will be unable to do this and you must then use a dynamic -routing protocol such as OLSR to include routing in ``Emu``-based networks. - -Usage -***** - -Any mixing of |ns3| objects with real objects will typically require that -|ns3| compute checksums in its protocols. By default, checksums are not -computed by |ns3|. To enable checksums (e.g. UDP, TCP, IP), users must set -the attribute ``ChecksumEnabled`` to true, such as follows:: - - GlobalValue::Bind ("ChecksumEnabled", BooleanValue (true)); - -The usage of the ``Emu`` net device is straightforward once the network of -simulations has been configured. Since most of the work involved in working with -this device is in network configuration before even starting a simulation, you -may want to take a moment to review a couple of HOWTO pages on the |ns3| wiki -that describe how to set up a virtual test network using VMware and how to run a -set of example (client server) simulations that use ``Emu`` net devices. - -* ``_ -* ``_ - -Once you are over the configuration hurdle, the script changes required to use -an ``Emu`` device are trivial. The main structural difference is that you will -need to create an |ns3| simulation script for each node. In the case of the -HOWTOs above, there is one client script and one server script. The only -"challenge" is to get the addresses set correctly. - -Just as with all other |ns3| net devices, we provide a helper class for the -``Emu`` net device. The following code snippet illustrates how one would declare -an EmuHelper and use it to set the "DeviceName" attribute to "eth1" and install -``Emu`` devices on a group of nodes. You would do this on both the client and -server side in the case of the HOWTO seen above.:: - - EmuHelper emu; - emu.SetAttribute ("DeviceName", StringValue ("eth1")); - NetDeviceContainer d = emu.Install (n); - -The only other change that may be required is to make sure that the address -spaces (MAC and IP) on the client and server simulations are compatible. First -the MAC address is set to a unique well-known value in both places (illustrated -here for one side).:: - - // - // We've got the devices in place. Since we're using MAC address - // spoofing under the sheets, we need to make sure that the MAC addresses - // we have assigned to our devices are unique. Ns-3 will happily - // automatically assign the same MAC address to the devices in both halves - // of our two-script pair, so let's go ahead and just manually change them - // to something we ensure is unique. - // - Ptr nd = d.Get (0); - Ptr ed = nd->GetObject (); - ed->SetAddress ("00:00:00:00:00:02"); - -And then the IP address of the client or server is set in the usual way using -helpers.:: - - // - // We've got the "hardware" in place. Now we need to add IP addresses. - // This is the server half of a two-script pair. We need to make sure - // that the addressing in both of these applications is consistent, so - // we use provide an initial address in both cases. Here, the client - // will reside on one machine running ns-3 with one node having ns-3 - // with IP address "10.1.1.2" and talk to a server script running in - // another ns-3 on another computer that has an ns-3 node with IP - // address "10.1.1.3" - // - Ipv4AddressHelper ipv4; - ipv4.SetBase ("10.1.1.0", "255.255.255.0", "0.0.0.2"); - Ipv4InterfaceContainer i = ipv4.Assign (d); - -You will use application helpers to generate traffic exactly as you do in any -|ns3| simulation script. Note that the server address shown below in a snippet -from the client, must correspond to the IP address assigned to the server node -similarly to the snippet above.:: - - uint32_t packetSize = 1024; - uint32_t maxPacketCount = 2000; - Time interPacketInterval = Seconds (0.001); - UdpEchoClientHelper client ("10.1.1.3", 9); - client.SetAttribute ("MaxPackets", UintegerValue (maxPacketCount)); - client.SetAttribute ("Interval", TimeValue (interPacketInterval)); - client.SetAttribute ("PacketSize", UintegerValue (packetSize)); - ApplicationContainer apps = client.Install (n.Get (0)); - apps.Start (Seconds (1.0)); - apps.Stop (Seconds (2.0)); - -The ``Emu`` net device and helper provide access to ASCII and pcap tracing -functionality just as other |ns3| net devices to. You enable tracing similarly -to these other net devices:: - - EmuHelper::EnablePcapAll ("emu-udp-echo-client"); - -For examples that use the ``Emu`` net device, see -``src/emu/examples/emu-udp-echo.cc`` and ``src/emu/examples/emu-ping.cc`` -in the repository. - -Implementation -************** - -Perhaps the most unusual part of the ``Emu`` and ``Tap`` device implementation -relates to the requirement for executing some of the code with super-user -permissions. Rather than force the user to execute the entire simulation as -root, we provide a small "creator" program that runs as root and does any -required high-permission sockets work. - -We do a similar thing for both the ``Emu`` and the ``Tap`` devices. The -high-level view is that the ``CreateSocket`` method creates a local interprocess -(Unix) socket, forks, and executes the small creation program. The small -program, which runs as suid root, creates a raw socket and sends back the raw -socket file descriptor over the Unix socket that is passed to it as a parameter. -The raw socket is passed as a control message (sometimes called ancillary data) -of type SCM_RIGHTS. - -The ``Emu`` net device uses the |ns3| threading and multithreaded real-time -scheduler extensions. The interesting work in the ``Emu`` device is done when -the net device is started (``EmuNetDevice::StartDevice ()``). An attribute -("Start") provides a simulation time at which to spin up the net device. At this -specified time (which defaults to t=0), the socket creation function is called -and executes as described above. You may also specify a time at which to stop -the device using the "Stop" attribute. - -Once the (promiscuous mode) socket is created, we bind it to an interface name -also provided as an attribute ("DeviceName") that is stored internally as -``m_deviceName``:: - - struct ifreq ifr; - bzero (&ifr, sizeof(ifr)); - strncpy ((char *)ifr.ifr_name, m_deviceName.c_str (), IFNAMSIZ); - - int32_t rc = ioctl (m_sock, SIOCGIFINDEX, &ifr); - - struct sockaddr_ll ll; - bzero (&ll, sizeof(ll)); - - ll.sll_family = AF_PACKET; - ll.sll_ifindex = m_sll_ifindex; - ll.sll_protocol = htons(ETH_P_ALL); - - rc = bind (m_sock, (struct sockaddr *)&ll, sizeof (ll)); - -After the promiscuous raw socket is set up, a separate thread is spawned to do -reads from that socket and the link state is set to ``Up``.:: - - m_readThread = Create ( - MakeCallback (&EmuNetDevice::ReadThread, this)); - m_readThread->Start (); - - NotifyLinkUp (); - -The ``EmuNetDevice::ReadThread`` function basically just sits in an infinite -loop reading from the promiscuous mode raw socket and scheduling packet -receptions using the real-time simulator extensions.:: - - for (;;) - { - ... - - len = recvfrom (m_sock, buf, bufferSize, 0, (struct sockaddr *)&addr, - &addrSize); - - ... - - DynamicCast (Simulator::GetImplementation ())-> - ScheduleRealtimeNow ( - MakeEvent (&EmuNetDevice::ForwardUp, this, buf, len)); - - ... - } - -The line starting with our templated DynamicCast function probably deserves a -comment. It gains access to the simulator implementation object using the -``Simulator::GetImplementation`` method and then casts to the real-time -simulator implementation to use the real-time schedule method -``ScheduleRealtimeNow``. This function will cause a handler for the newly -received packet to be scheduled for execution at the current real time clock -value. This will, in turn cause the simulation clock to be advanced to that real -time value when the scheduled event (``EmuNetDevice::ForwardUp``) is fired. - -The ``ForwardUp`` function operates as most other similar |ns3| net device -methods do. The packet is first filtered based on the destination address. In -the case of the ``Emu`` device, the MAC destination address will be the address -of the ``Emu`` device and not the hardware address of the real device. Headers -are then stripped off and the trace hooks are hit. Finally, the packet is passed -up the |ns3| protocol stack using the receive callback function of the net -device. - -Sending a packet is equally straightforward as shown below. The first thing we -do is to add the ethernet header and trailer to the |ns3| ``Packet`` we are -sending. The source address corresponds to the address of the ``Emu`` device and -not the underlying native device MAC address. This is where the MAC address -spoofing is done. The trailer is added and we enqueue and dequeue the packet -from the net device queue to hit the trace hooks.:: - - header.SetSource (source); - header.SetDestination (destination); - header.SetLengthType (packet->GetSize ()); - packet->AddHeader (header); - - EthernetTrailer trailer; - trailer.CalcFcs (packet); - packet->AddTrailer (trailer); - - m_queue->Enqueue (packet); - packet = m_queue->Dequeue (); - - struct sockaddr_ll ll; - bzero (&ll, sizeof (ll)); - - ll.sll_family = AF_PACKET; - ll.sll_ifindex = m_sll_ifindex; - ll.sll_protocol = htons(ETH_P_ALL); - - rc = sendto (m_sock, packet->PeekData (), packet->GetSize (), 0, - reinterpret_cast (&ll), sizeof (ll)); - -Finally, we simply send the packet to the raw socket which puts it out on the -real network. - -From the point of view of tracing in the net device, there are several -interesting points to insert trace hooks. A convention inherited from other -simulators is that packets destined for transmission onto attached networks -pass through a single "transmit queue" in the net device. We provide trace -hooks at this point in packet flow, which corresponds (abstractly) only to a -transition from the network to data link layer, and call them collectively -the device MAC hooks. - -When a packet is sent to the Emu net device for transmission it always -passes through the transmit queue. The transmit queue in the EmuNetDevice -inherits from Queue, and therefore inherits three trace sources: - -* An Enqueue operation source (see Queue::m_traceEnqueue); -* A Dequeue operation source (see Queue::m_traceDequeue); -* A Drop operation source (see Queue::m_traceDrop). - -The upper-level (MAC) trace hooks for the EmuNetDevice are, in fact, -exactly these three trace sources on the single transmit queue of the device. - -The m_traceEnqueue event is triggered when a packet is placed on the transmit -queue. This happens at the time that ns3::EmuNetDevice::Send or -``ns3::EmuNetDevice::SendFrom`` is called by a higher layer to queue a -packet for transmission. - -The m_traceDequeue event is triggered when a packet is removed from the -transmit queue. Dequeues from the transmit queue happen immediately after -the packet was enqueued and only indicate that the packet is about to be -sent to an underlying raw socket. The actual time at which the packet is -sent out on the wire is not available. - -Similar to the upper level trace hooks, there are trace hooks available at -the lower levels of the net device. We call these the PHY hooks. These -events fire from the device methods that talk directly to the underlying -raw socket. - -The trace source m_dropTrace is not used in the Emu net device since that -is really the business of the underlying "real" device driver. - -The other low-level trace source fires on reception of an accepted packet -(see ``ns3::EmuNetDevice::m_rxTrace``). A packet is accepted if it is destined -for the broadcast address, a multicast address, or to the MAC address -assigned to the Emu net device. - diff --git a/src/emu/examples/emu-ping.cc b/src/emu/examples/emu-ping.cc deleted file mode 100644 index 0dc54d699..000000000 --- a/src/emu/examples/emu-ping.cc +++ /dev/null @@ -1,218 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -// Allow ns-3 to ping a real host somewhere, using emulation mode -// -// ------------ -// | node n0 | -// | | -// | --- | -// | | | | -// | |emu| | -// | | | | -// | --- | -// | | | -// ----|------- -// | -// (device on host system, set to promiscuous mode) -// | -// --------- (Internet) ------- -// -// To use this example: -// 1) You need to decide on a physical device on your real system, and either -// overwrite the hard-configured device name below (eth0) or pass this -// device name in as a command-line argument -// 2) The host device must be set to promiscuous mode -// (e.g. "sudo ifconfig eth0 promisc") -// 3) Be aware that ns-3 will generate a fake mac address, and that in -// some enterprise networks, this may be considered bad form to be -// sending packets out of your device with "unauthorized" mac addresses -// 4) You will need to assign an IP address to the ns-3 simulation node that -// is consistent with the subnet that is active on the host device's link. -// That is, you will have to assign an IP address to the ns-3 node as if -// it were on your real subnet. Search for "Ipv4Address localIp" and -// replace the string "1.2.3.4" with a valid IP address. -// 5) You will need to configure a default route in the ns-3 node to tell it -// how to get off of your subnet. One thing you could do is a -// 'netstat -rn' command and find the IP address of the default gateway -// on your host. Search for "Ipv4Address gateway" and replace the string -// "1.2.3.4" string with the gateway IP address. - -#include "ns3/abort.h" -#include "ns3/core-module.h" -#include "ns3/internet-module.h" -#include "ns3/network-module.h" -#include "ns3/emu-module.h" -#include "ns3/applications-module.h" -#include "ns3/ipv4-static-routing-helper.h" -#include "ns3/ipv4-list-routing-helper.h" - -using namespace ns3; - -NS_LOG_COMPONENT_DEFINE ("PingEmulationExample"); - -static void -PingRtt (std::string context, Time rtt) -{ - NS_LOG_UNCOND ("Received Response with RTT = " << rtt); -} - -int -main (int argc, char *argv[]) -{ - NS_LOG_INFO ("Ping Emulation Example"); - - std::string deviceName ("eth0"); - std::string remote ("208.77.188.166"); // example.com - - // - // Allow the user to override any of the defaults at run-time, via - // command-line arguments - // - CommandLine cmd; - cmd.AddValue ("deviceName", "Device name", deviceName); - cmd.AddValue ("remote", "Remote IP address (dotted decimal only please)", remote); - cmd.Parse (argc, argv); - - Ipv4Address remoteIp (remote.c_str ()); - Ipv4Address localIp ("192.168.1.94"); - NS_ABORT_MSG_IF (localIp == "1.2.3.4", "You must change the local IP address before running this example"); - - Ipv4Mask localMask ("255.255.255.0"); - - // - // Since we are using a real piece of hardware we need to use the realtime - // simulator. - // - GlobalValue::Bind ("SimulatorImplementationType", StringValue ("ns3::RealtimeSimulatorImpl")); - - // - // Since we are going to be talking to real-world machines, we need to enable - // calculation of checksums in our protocols. - // - GlobalValue::Bind ("ChecksumEnabled", BooleanValue (true)); - - // - // In such a simple topology, the use of the helper API can be a hindrance - // so we drop down into the low level API and do it manually. - // - // First we need a single node. - // - NS_LOG_INFO ("Create Node"); - Ptr node = CreateObject (); - - // - // Create an emu device, allocate a MAC address and point the device to the - // Linux device name. The device needs a transmit queueing discipline so - // create a droptail queue and give it to the device. Finally, "install" - // the device into the node. - // - // Do understand that the ns-3 allocated MAC address will be sent out over - // your network since the emu net device will spoof it. By default, this - // address will have an Organizationally Unique Identifier (OUI) of zero. - // The Internet Assigned Number Authority IANA - // - // http://www.iana.org/assignments/ethernet-numbers - // - // reports that this OUI is unassigned, and so should not conflict with - // real hardware on your net. It may raise all kinds of red flags in a - // real environment to have packets from a device with an obviously bogus - // OUI flying around. Be aware. - // - NS_LOG_INFO ("Create Device"); - Ptr device = CreateObject (); - device->SetAttribute ("Address", Mac48AddressValue (Mac48Address::Allocate ())); - device->SetAttribute ("DeviceName", StringValue (deviceName)); - - Ptr queue = CreateObject (); - device->SetQueue (queue); - node->AddDevice (device); - - // - // Add a default internet stack to the node. This gets us the ns-3 versions - // of ARP, IPv4, ICMP, UDP and TCP. - // - NS_LOG_INFO ("Add Internet Stack"); - InternetStackHelper internetStackHelper; - internetStackHelper.Install (node); - - NS_LOG_INFO ("Create IPv4 Interface"); - Ptr ipv4 = node->GetObject (); - uint32_t interface = ipv4->AddInterface (device); - Ipv4InterfaceAddress address = Ipv4InterfaceAddress (localIp, localMask); - ipv4->AddAddress (interface, address); - ipv4->SetMetric (interface, 1); - ipv4->SetUp (interface); - - // - // When the ping appliation sends its ICMP packet, it will happily send it - // down the ns-3 protocol stack. We set the IP address of the destination - // to the address corresponding to example.com above. This address is off - // our local network so we have got to provide some kind of default route - // to ns-3 to be able to get that ICMP packet forwarded off of our network. - // - // You have got to provide an IP address of a real host that you can send - // real packets to and have them forwarded off of your local network. One - // thing you could do is a 'netstat -rn' command and find the IP address of - // the default gateway on your host and add it below, replacing the - // "1.2.3.4" string. - // - Ipv4Address gateway ("192.168.1.254"); - NS_ABORT_MSG_IF (gateway == "1.2.3.4", "You must change the gateway IP address before running this example"); - - Ipv4StaticRoutingHelper ipv4RoutingHelper; - Ptr staticRouting = ipv4RoutingHelper.GetStaticRouting (ipv4); - staticRouting->SetDefaultRoute (gateway, interface); - - // - // Create the ping application. This application knows how to send - // ICMP echo requests. Setting up the packet sink manually is a bit - // of a hassle and since there is no law that says we cannot mix the - // helper API with the low level API, let's just use the helper. - // - NS_LOG_INFO ("Create V4Ping Appliation"); - Ptr app = CreateObject (); - app->SetAttribute ("Remote", Ipv4AddressValue (remoteIp)); - node->AddApplication (app); - app->SetStartTime (Seconds (1.0)); - app->SetStopTime (Seconds (5.0)); - - // - // Give the application a name. This makes life much easier when constructing - // config paths. - // - Names::Add ("app", app); - - // - // Hook a trace to print something when the response comes back. - // - Config::Connect ("/Names/app/Rtt", MakeCallback (&PingRtt)); - - // - // Enable a promiscuous pcap trace to see what is coming and going on our device. - // - EmuHelper emu; - emu.EnablePcap ("emu-ping", device, true); - - // - // Now, do the actual emulation. - // - NS_LOG_INFO ("Run Emulation."); - Simulator::Stop (Seconds (5.0)); - Simulator::Run (); - Simulator::Destroy (); - NS_LOG_INFO ("Done."); -} diff --git a/src/emu/examples/emu-udp-echo.cc b/src/emu/examples/emu-udp-echo.cc deleted file mode 100644 index b5fb08eec..000000000 --- a/src/emu/examples/emu-udp-echo.cc +++ /dev/null @@ -1,162 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -// Network topology -// -// Normally, the use case for emulated net devices is in collections of -// small simulations that connect to the outside world through specific -// interfaces. For example, one could construct a number of virtual -// machines and connect them via a host-only network. To use the emulated -// net device, you would need to set all of the host-only interfaces in -// promiscuous mode and provide an appropriate device name (search for "eth1" -// below). One could also use the emulated net device in a testbed situation -// where the host on which the simulation is running has a specific interface -// of interested. You would also need to set this specific interface into -// promiscuous mode and provide an appropriate device name. -// -// This philosophy carries over to this simple example. -// -// We don't assume any special configuration and all of the ns-3 emulated net -// devices will actually talk to the same underlying OS device. We rely on -// the fact that the OS will deliver copies of our packets to the other ns-3 -// net devices since we operate in promiscuous mode. -// -// Packets will be sent out over the device, but we use MAC spoofing. The -// MAC addresses will be generated using the Organizationally Unique Identifier -// (OUI) 00:00:00 as a base. This vendor code is not assigned to any -// organization and so should not conflict with any real hardware. We'll use -// the first n of these addresses, where n is the number of nodes, in this -// simualtion. It is up to you to determine that using these MAC addresses is -// okay on your network and won't conflict with anything else (including another -// simulation using emu devices) on your network. Once you have made this -// determination, you need to put the interface you chose into promiscuous mode. -// We don't do it for you since you need to think about it first. -// -// This simulation uses the real-time simulator and so will consume ten seconds -// of real time. -// -// By default, we create the following topology -// -// n0 n1 n2 n3 -// | | | | -// ----------------- -// "eth1" -// -// - UDP flows from n0 to n1 and back -// - DropTail queues -// - Tracing of queues and packet receptions to file "udp-echo.tr" -// - pcap tracing on all devices -// - -#include -#include "ns3/core-module.h" -#include "ns3/internet-module.h" -#include "ns3/applications-module.h" -#include "ns3/emu-helper.h" - -using namespace ns3; - -NS_LOG_COMPONENT_DEFINE ("EmulatedUdpEchoExample"); - -int -main (int argc, char *argv[]) -{ - std::string deviceName ("eth1"); - std::string encapMode ("Dix"); - uint32_t nNodes = 4; - - // - // Allow the user to override any of the defaults at run-time, via command-line - // arguments - // - CommandLine cmd; - cmd.AddValue ("deviceName", "device name", deviceName); - cmd.AddValue ("encapsulationMode", "encapsulation mode of emu device (\"Dix\" [default] or \"Llc\")", encapMode); - cmd.AddValue ("nNodes", "number of nodes to create (>= 2)", nNodes); - - cmd.Parse (argc, argv); - - GlobalValue::Bind ("SimulatorImplementationType", - StringValue ("ns3::RealtimeSimulatorImpl")); - - // - // need at least two nodes - // - nNodes = nNodes < 2 ? 2 : nNodes; - - // - // Explicitly create the nodes required by the topology (shown above). - // - NS_LOG_INFO ("Create nodes."); - NodeContainer n; - n.Create (nNodes); - - InternetStackHelper internet; - internet.Install (n); - - // - // Explicitly create the channels required by the topology (shown above). - // - NS_LOG_INFO ("Create channels."); - EmuHelper emu; - emu.SetAttribute ("DeviceName", StringValue (deviceName)); - emu.SetAttribute ("EncapsulationMode", StringValue (encapMode)); - - NetDeviceContainer d = emu.Install (n); - - // - // We've got the "hardware" in place. Now we need to add IP addresses. - // - Ipv4AddressHelper ipv4; - NS_LOG_INFO ("Assign IP Addresses."); - ipv4.SetBase ("10.1.1.0", "255.255.255.0"); - Ipv4InterfaceContainer i = ipv4.Assign (d); - - // - // Create a UdpEchoServer application on node one. - // - NS_LOG_INFO ("Create Applications."); - UdpEchoServerHelper server (9); - ApplicationContainer apps = server.Install (n.Get (1)); - apps.Start (Seconds (1.0)); - apps.Stop (Seconds (10.0)); - - // - // Create a UdpEchoClient application to send UDP datagrams from node zero to node one. - // - uint32_t packetSize = 1024; - uint32_t maxPacketCount = 20; - Time interPacketInterval = Seconds (0.1); - UdpEchoClientHelper client (i.GetAddress (1), 9); - client.SetAttribute ("MaxPackets", UintegerValue (maxPacketCount)); - client.SetAttribute ("Interval", TimeValue (interPacketInterval)); - client.SetAttribute ("PacketSize", UintegerValue (packetSize)); - apps = client.Install (n.Get (0)); - apps.Start (Seconds (2.0)); - apps.Stop (Seconds (10.0)); - - std::ofstream ascii; - ascii.open ("emu-udp-echo.tr"); - emu.EnablePcapAll ("emu-udp-echo", true); - - // - // Now, do the actual simulation. - // - NS_LOG_INFO ("Run Simulation."); - Simulator::Run (); - Simulator::Destroy (); - NS_LOG_INFO ("Done."); -} diff --git a/src/emu/examples/wscript b/src/emu/examples/wscript deleted file mode 100644 index 56e917589..000000000 --- a/src/emu/examples/wscript +++ /dev/null @@ -1,10 +0,0 @@ -## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- - -def build(bld): - env = bld.env - if env['ENABLE_EMU']: - obj = bld.create_ns3_program('emu-udp-echo', ['emu', 'internet', 'applications']) - obj.source = 'emu-udp-echo.cc' - - obj = bld.create_ns3_program('emu-ping', ['emu', 'internet', 'applications']) - obj.source = 'emu-ping.cc' diff --git a/src/emu/helper/emu-helper.cc b/src/emu/helper/emu-helper.cc deleted file mode 100644 index 9aafcaa65..000000000 --- a/src/emu/helper/emu-helper.cc +++ /dev/null @@ -1,244 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) 2008 University of Washington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include - -#include "ns3/log.h" -#include "ns3/simulator.h" -#include "ns3/object-factory.h" -#include "ns3/names.h" -#include "ns3/queue.h" -#include "ns3/emu-net-device.h" -#include "ns3/config.h" -#include "ns3/packet.h" - -#include "ns3/trace-helper.h" -#include "emu-helper.h" - -namespace ns3 { - -NS_LOG_COMPONENT_DEFINE ("EmuHelper"); - -EmuHelper::EmuHelper () -{ - NS_LOG_FUNCTION_NOARGS (); - m_queueFactory.SetTypeId ("ns3::DropTailQueue"); - m_deviceFactory.SetTypeId ("ns3::EmuNetDevice"); -} - -void -EmuHelper::SetQueue ( - std::string type, - std::string n1, const AttributeValue &v1, - std::string n2, const AttributeValue &v2, - std::string n3, const AttributeValue &v3, - std::string n4, const AttributeValue &v4) -{ - NS_LOG_FUNCTION_NOARGS (); - m_queueFactory.SetTypeId (type); - m_queueFactory.Set (n1, v1); - m_queueFactory.Set (n2, v2); - m_queueFactory.Set (n3, v3); - m_queueFactory.Set (n4, v4); -} - -void -EmuHelper::SetAttribute (std::string n1, const AttributeValue &v1) -{ - NS_LOG_FUNCTION_NOARGS (); - m_deviceFactory.Set (n1, v1); -} - -void -EmuHelper::EnablePcapInternal (std::string prefix, Ptr nd, bool promiscuous, bool explicitFilename) -{ - // - // All of the Pcap enable functions vector through here including the ones - // that are wandering through all of devices on perhaps all of the nodes in - // the system. We can only deal with devices of type EmuNetDevice. - // - Ptr device = nd->GetObject (); - if (device == 0) - { - NS_LOG_INFO ("EmuHelper::EnablePcapInternal(): Device " << device << " not of type ns3::EmuNetDevice"); - return; - } - - PcapHelper pcapHelper; - - std::string filename; - if (explicitFilename) - { - filename = prefix; - } - else - { - filename = pcapHelper.GetFilenameFromDevice (prefix, device); - } - - Ptr file = pcapHelper.CreateFile (filename, std::ios::out, PcapHelper::DLT_EN10MB); - if (promiscuous) - { - pcapHelper.HookDefaultSink (device, "PromiscSniffer", file); - } - else - { - pcapHelper.HookDefaultSink (device, "Sniffer", file); - } -} - -void -EmuHelper::EnableAsciiInternal ( - Ptr stream, - std::string prefix, - Ptr nd, - bool explicitFilename) -{ - // - // All of the ascii enable functions vector through here including the ones - // that are wandering through all of devices on perhaps all of the nodes in - // the system. We can only deal with devices of type EmuNetDevice. - // - Ptr device = nd->GetObject (); - if (device == 0) - { - NS_LOG_INFO ("EmuHelper::EnableAsciiInternal(): Device " << device << " not of type ns3::EmuNetDevice"); - return; - } - - // - // Our default trace sinks are going to use packet printing, so we have to - // make sure that is turned on. - // - Packet::EnablePrinting (); - - // - // If we are not provided an OutputStreamWrapper, we are expected to create - // one using the usual trace filename conventions and do a Hook*WithoutContext - // since there will be one file per context and therefore the context would - // be redundant. - // - if (stream == 0) - { - // - // Set up an output stream object to deal with private ofstream copy - // constructor and lifetime issues. Let the helper decide the actual - // name of the file given the prefix. - // - AsciiTraceHelper asciiTraceHelper; - - std::string filename; - if (explicitFilename) - { - filename = prefix; - } - else - { - filename = asciiTraceHelper.GetFilenameFromDevice (prefix, device); - } - - Ptr theStream = asciiTraceHelper.CreateFileStream (filename); - - // - // The MacRx trace source provides our "r" event. - // - asciiTraceHelper.HookDefaultReceiveSinkWithoutContext (device, "MacRx", theStream); - - // - // The "+", '-', and 'd' events are driven by trace sources actually in the - // transmit queue. - // - Ptr queue = device->GetQueue (); - asciiTraceHelper.HookDefaultEnqueueSinkWithoutContext (queue, "Enqueue", theStream); - asciiTraceHelper.HookDefaultDropSinkWithoutContext (queue, "Drop", theStream); - asciiTraceHelper.HookDefaultDequeueSinkWithoutContext (queue, "Dequeue", theStream); - - return; - } - - // - // If we are provided an OutputStreamWrapper, we are expected to use it, and - // to providd a context. We are free to come up with our own context if we - // want, and use the AsciiTraceHelper Hook*WithContext functions, but for - // compatibility and simplicity, we just use Config::Connect and let it deal - // with the context. - // - // Note that we are going to use the default trace sinks provided by the - // ascii trace helper. There is actually no AsciiTraceHelper in sight here, - // but the default trace sinks are actually publicly available static - // functions that are always there waiting for just such a case. - // - uint32_t nodeid = nd->GetNode ()->GetId (); - uint32_t deviceid = nd->GetIfIndex (); - std::ostringstream oss; - - oss << "/NodeList/" << nd->GetNode ()->GetId () << "/DeviceList/" << deviceid << "/$ns3::EmuNetDevice/MacRx"; - Config::Connect (oss.str (), MakeBoundCallback (&AsciiTraceHelper::DefaultReceiveSinkWithContext, stream)); - - oss.str (""); - oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::EmuNetDevice/TxQueue/Enqueue"; - Config::Connect (oss.str (), MakeBoundCallback (&AsciiTraceHelper::DefaultEnqueueSinkWithContext, stream)); - - oss.str (""); - oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::EmuNetDevice/TxQueue/Dequeue"; - Config::Connect (oss.str (), MakeBoundCallback (&AsciiTraceHelper::DefaultDequeueSinkWithContext, stream)); - - oss.str (""); - oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::EmuNetDevice/TxQueue/Drop"; - Config::Connect (oss.str (), MakeBoundCallback (&AsciiTraceHelper::DefaultDropSinkWithContext, stream)); -} - -NetDeviceContainer -EmuHelper::Install (Ptr node) const -{ - return NetDeviceContainer (InstallPriv (node)); -} - -NetDeviceContainer -EmuHelper::Install (std::string nodeName) const -{ - Ptr node = Names::Find (nodeName); - return NetDeviceContainer (InstallPriv (node)); -} - -NetDeviceContainer -EmuHelper::Install (const NodeContainer &c) const -{ - NetDeviceContainer devs; - - for (NodeContainer::Iterator i = c.Begin (); i != c.End (); i++) - { - devs.Add (InstallPriv (*i)); - } - - return devs; -} - -Ptr -EmuHelper::InstallPriv (Ptr node) const -{ - Ptr device = m_deviceFactory.Create (); - device->SetAddress (Mac48Address::Allocate ()); - node->AddDevice (device); - Ptr queue = m_queueFactory.Create (); - device->SetQueue (queue); - - return device; -} - -} // namespace ns3 diff --git a/src/emu/helper/emu-helper.h b/src/emu/helper/emu-helper.h deleted file mode 100644 index 6d984b393..000000000 --- a/src/emu/helper/emu-helper.h +++ /dev/null @@ -1,155 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) 2008 University of Washington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef EMU_HELPER_H -#define EMU_HELPER_H - -#include -#include - -#include "ns3/attribute.h" -#include "ns3/object-factory.h" -#include "ns3/net-device-container.h" -#include "ns3/node-container.h" -#include "ns3/emu-net-device.h" - -#include "ns3/trace-helper.h" - -namespace ns3 { - -class Packet; - -/** - * \brief build a set of EmuNetDevice objects - * - * Normally we eschew multiple inheritance, however, the classes - * PcapUserHelperForDevice and AsciiTraceUserHelperForDevice are - * treated as "mixins". A mixin is a self-contained class that - * encapsulates a general attribute or a set of functionality that - * may be of interest to many other classes. - */ -class EmuHelper : public PcapHelperForDevice, public AsciiTraceHelperForDevice -{ -public: - /* - * Construct an EmuHelper() which is used to make installing and configuring - * Emulated Net Devices easier. - */ - EmuHelper (); - - /** - * \param type the type of queue - * \param n1 the name of the attribute to set on the queue - * \param v1 the value of the attribute to set on the queue - * \param n2 the name of the attribute to set on the queue - * \param v2 the value of the attribute to set on the queue - * \param n3 the name of the attribute to set on the queue - * \param v3 the value of the attribute to set on the queue - * \param n4 the name of the attribute to set on the queue - * \param v4 the value of the attribute to set on the queue - * - * Set the type of queue to create and associated to each - * EmuNetDevice created through EmuHelper::Install. - */ - void SetQueue (std::string type, - std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (), - std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (), - std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (), - std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue ()); - - /** - * \param n1 the name of the attribute to set - * \param v1 the value of the attribute to set - * - * Set these attributes on each ns3::EmuNetDevice created - * by EmuHelper::Install - */ - void SetAttribute (std::string n1, const AttributeValue &v1); - - /** - * This method creates an ns3::EmuNetDevice with the attributes configured by - * EmuHelper::SetDeviceAttribute and then adds the device to the node. - * - * \param node The node to install the device in - * \returns A container holding the added net device. - */ - NetDeviceContainer Install (Ptr node) const; - - /** - * This method creates an ns3::EmuNetDevice with the attributes configured by - * EmuHelper::SetDeviceAttribute and then adds the device to the node. - * - * \param nodeName The name of the node to install the device in - * \returns A container holding the added net device. - */ - NetDeviceContainer Install (std::string nodeName) const; - - /** - * For each Ptr in the provided container this method creates an - * ns3::EmuNetDevice (with the attributes configured by - * EmuHelper::SetDeviceAttribute); adds the device to the node. - * - * \param c The NodeContainer holding the nodes to be changed. - * \returns A container holding the added net devices. - */ - NetDeviceContainer Install (const NodeContainer &c) const; - -private: - /* - * \internal - */ - Ptr InstallPriv (Ptr node) const; - - /** - * \brief Enable pcap output the indicated net device. - * - * NetDevice-specific implementation mechanism for hooking the trace and - * writing to the trace file. - * - * \param prefix Filename prefix to use for pcap files. - * \param nd Net device for which you want to enable tracing. - * \param promiscuous If true capture all possible packets available at the device. - * \param explicitFilename Treat the prefix as an explicit filename if true - */ - virtual void EnablePcapInternal (std::string prefix, Ptr nd, bool promiscuous, bool explicitFilename); - - /** - * \brief Enable ascii trace output on the indicated net device. - * \internal - * - * NetDevice-specific implementation mechanism for hooking the trace and - * writing to the trace file. - * - * \param stream The output stream object to use when logging ascii traces. - * \param prefix Filename prefix to use for ascii trace files. - * \param nd Net device for which you want to enable tracing. - * \param explicitFilename Treat the prefix as an explicit filename if true - */ - virtual void EnableAsciiInternal (Ptr stream, - std::string prefix, - Ptr nd, - bool explicitFilename); - - ObjectFactory m_queueFactory; - ObjectFactory m_deviceFactory; -}; - - -} // namespace ns3 - -#endif /* EMU_HELPER_H */ diff --git a/src/emu/model/emu-encode-decode.cc b/src/emu/model/emu-encode-decode.cc deleted file mode 100644 index e79faac16..000000000 --- a/src/emu/model/emu-encode-decode.cc +++ /dev/null @@ -1,111 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) University of Washington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include -#include -#include -#include -#include - -namespace ns3 { - -/** - * \brief Convert a byte buffer to a string containing a hex representation - * of the buffer. Make the string pretty by adding a colon (':') between - * the hex. - * - * \param buffer The input buffer to be converted. - * \param len The length of the input buffer. - * \returns A string containing a hex representation of the data in buffer. - */ -std::string -EmuBufferToString (uint8_t *buffer, uint32_t len) -{ - std::ostringstream oss; - // - // Tell the stream to make hex characters, zero-filled - // - oss.setf (std::ios::hex, std::ios::basefield); - oss.fill ('0'); - - // - // Loop through the buffer, separating the two-digit-wide hex bytes - // with a colon. - // - for (uint8_t i = 0; i < len; i++) - { - oss << ":" << std::setw (2) << (uint32_t)buffer[i]; - } - return oss.str (); -} - -/** - * \brief Convert string encoded by the inverse function (EmuBufferToString) - * back into a byte buffer. - * - * \param s The input string. - * \param buffer The buffer to initialize with the converted bits. - * \param len The length of the data that is valid in the buffer. - * \returns True indicates a successful conversion. - */ -bool -EmuStringToBuffer (std::string s, uint8_t *buffer, uint32_t *len) -{ - // - // If the string was made by our inverse function, the string length must - // be a multiple of three characters in length. Use this fact to do a - // quick reasonableness test. - // - if ((s.length () % 3) != 0) - { - return false; - } - - std::istringstream iss; - iss.str (s); - - uint8_t n = 0; - - while (iss.good ()) - { - // - // The first character in the "triplet" we're working on is always the - // the ':' separator. Read that into a char and make sure we're skipping - // what we think we're skipping. - // - char c; - iss.read (&c, 1); - if (c != ':') - { - return false; - } - - // - // And then read in the real bits and convert them. - // - uint32_t tmp; - iss >> std::hex >> tmp; - buffer[n] = tmp; - n++; - } - - *len = n; - return true; -} - -} // namespace ns3 diff --git a/src/emu/model/emu-encode-decode.h b/src/emu/model/emu-encode-decode.h deleted file mode 100644 index ad0ea07db..000000000 --- a/src/emu/model/emu-encode-decode.h +++ /dev/null @@ -1,33 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) 2008 University of Washington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef EMU_ENCODE_DECODE_H -#define EMU_ENCODE_DECODE_H - -#include - -namespace ns3 { - -std::string EmuBufferToString (uint8_t *buffer, uint32_t len); -bool EmuStringToBuffer (std::string s, uint8_t *buffer, uint32_t *len); - - -} // namespace ns3 - -#endif /* EMU_ENCODE_DECODE_H */ - diff --git a/src/emu/model/emu-net-device.cc b/src/emu/model/emu-net-device.cc deleted file mode 100644 index 413124802..000000000 --- a/src/emu/model/emu-net-device.cc +++ /dev/null @@ -1,1116 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) 2008 University of Washington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include "emu-net-device.h" -#include "emu-encode-decode.h" - -#include "ns3/log.h" -#include "ns3/queue.h" -#include "ns3/simulator.h" -#include "ns3/ethernet-header.h" -#include "ns3/ethernet-trailer.h" -#include "ns3/llc-snap-header.h" -#include "ns3/boolean.h" -#include "ns3/uinteger.h" -#include "ns3/pointer.h" -#include "ns3/string.h" -#include "ns3/trace-source-accessor.h" -#include "ns3/channel.h" -#include "ns3/system-thread.h" -#include "ns3/mac48-address.h" -#include "ns3/enum.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace ns3 { - -NS_LOG_COMPONENT_DEFINE ("EmuNetDevice"); - -NS_OBJECT_ENSURE_REGISTERED (EmuNetDevice); - -#define EMU_MAGIC 65867 - -TypeId -EmuNetDevice::GetTypeId (void) -{ - static TypeId tid = TypeId ("ns3::EmuNetDevice") - .SetParent () - .AddConstructor () - .AddAttribute ("Mtu", "The MAC-level Maximum Transmission Unit", - UintegerValue (0), // arbitrary un-used value because no setter - MakeUintegerAccessor (&EmuNetDevice::GetMtu), - MakeUintegerChecker ()) - .AddAttribute ("Address", - "The ns-3 MAC address of this (virtual) device.", - Mac48AddressValue (Mac48Address ("ff:ff:ff:ff:ff:ff")), - MakeMac48AddressAccessor (&EmuNetDevice::m_address), - MakeMac48AddressChecker ()) - .AddAttribute ("DeviceName", - "The name of the underlying real device (e.g. eth1).", - StringValue ("eth1"), - MakeStringAccessor (&EmuNetDevice::m_deviceName), - MakeStringChecker ()) - .AddAttribute ("Start", - "The simulation time at which to spin up the device thread.", - TimeValue (Seconds (0.)), - MakeTimeAccessor (&EmuNetDevice::m_tStart), - MakeTimeChecker ()) - .AddAttribute ("Stop", - "The simulation time at which to tear down the device thread.", - TimeValue (Seconds (0.)), - MakeTimeAccessor (&EmuNetDevice::m_tStop), - MakeTimeChecker ()) - .AddAttribute ("EncapsulationMode", - "The link-layer encapsulation type to use.", - EnumValue (DIX), - MakeEnumAccessor (&EmuNetDevice::SetEncapsulationMode), - MakeEnumChecker (DIX, "Dix", - LLC, "Llc")) - - // - // Transmit queueing discipline for the device which includes its own set - // of trace hooks. Note that this is really going to run "on top of" the - // queueing discipline that will most likely be present in the devices of - // the underlying operating system. - // - .AddAttribute ("TxQueue", - "A queue to use as the transmit queue in the device.", - PointerValue (), - MakePointerAccessor (&EmuNetDevice::m_queue), - MakePointerChecker ()) - - .AddAttribute ("RxQueueSize", "Maximum size of the read queue. " - "This value limits number of packets that have been read " - "from the network into a memory buffer but have not yet " - "been processed by the simulator.", - UintegerValue (1000), - MakeUintegerAccessor (&EmuNetDevice::m_maxPendingReads), - MakeUintegerChecker ()) - - // - // Trace sources at the "top" of the net device, where packets transition - // to/from higher layers. These points do not really correspond to the - // MAC layer of the underlying operating system, but exist to provide - // a consitent tracing environment. These trace hooks should really be - // interpreted as the points at which a packet leaves the ns-3 environment - // destined for the underlying operating system or vice-versa. - // - .AddTraceSource ("MacTx", - "Trace source indicating a packet has arrived for transmission by this device", - MakeTraceSourceAccessor (&EmuNetDevice::m_macTxTrace)) - .AddTraceSource ("MacTxDrop", - "Trace source indicating a packet has been dropped by the device before transmission", - MakeTraceSourceAccessor (&EmuNetDevice::m_macTxDropTrace)) - .AddTraceSource ("MacPromiscRx", - "A packet has been received by this device, has been passed up from the physical layer " - "and is being forwarded up the local protocol stack. This is a promiscuous trace,", - MakeTraceSourceAccessor (&EmuNetDevice::m_macPromiscRxTrace)) - .AddTraceSource ("MacRx", - "A packet has been received by this device, has been passed up from the physical layer " - "and is being forwarded up the local protocol stack. This is a non-promiscuous trace,", - MakeTraceSourceAccessor (&EmuNetDevice::m_macRxTrace)) -#if 0 - // Not currently implemented for this device - .AddTraceSource ("MacRxDrop", - "Trace source indicating a packet was dropped before being forwarded up the stack", - MakeTraceSourceAccessor (&EmuNetDevice::m_macRxDropTrace)) -#endif - // - // In normal ns-3 net devices, these trace souces correspond to the "bottom" - // of the net device, where packets transition to/from the channel. In - // the case of the emu device, there is no physical layer access -- all we - // do is to send packets to another device that is really at a "real" MAC - // level. Since it could be misleading to call anything here PHY, we do not - // implement these trace sources. - // -#if 0 - .AddTraceSource ("PhyTxBegin", - "Trace source indicating a packet has begun transmitting over the channel", - MakeTraceSourceAccessor (&EmuNetDevice::m_phyTxBeginTrace)) - .AddTraceSource ("PhyTxEnd", - "Trace source indicating a packet has been completely transmitted over the channel", - MakeTraceSourceAccessor (&EmuNetDevice::m_phyTxEndTrace)) - .AddTraceSource ("PhyTxDrop", - "Trace source indicating a packet has been dropped by the device during transmission", - MakeTraceSourceAccessor (&EmuNetDevice::m_phyTxDropTrace)) - .AddTraceSource ("PhyRxBegin", - "Trace source indicating a packet has begun being received by the device", - MakeTraceSourceAccessor (&EmuNetDevice::m_phyRxBeginTrace)) - .AddTraceSource ("PhyRxEnd", - "Trace source indicating a packet has been completely received by the device", - MakeTraceSourceAccessor (&EmuNetDevice::m_phyRxEndTrace)) - .AddTraceSource ("PhyRxDrop", - "Trace source indicating a packet has been dropped by the device during reception", - MakeTraceSourceAccessor (&EmuNetDevice::m_phyRxDropTrace)) -#endif - // - // Trace sources designed to simulate a packet sniffer facility (tcpdump). - // - .AddTraceSource ("Sniffer", - "Trace source simulating a non-promiscuous packet sniffer attached to the device", - MakeTraceSourceAccessor (&EmuNetDevice::m_snifferTrace)) - .AddTraceSource ("PromiscSniffer", - "Trace source simulating a promiscuous packet sniffer attached to the device", - MakeTraceSourceAccessor (&EmuNetDevice::m_promiscSnifferTrace)) - ; - return tid; -} - -EmuNetDevice::EmuNetDevice () - : - m_startEvent (), - m_stopEvent (), - m_sock (-1), - m_readThread (0), - m_ifIndex (std::numeric_limits::max ()), // absurdly large value - m_sll_ifindex (-1), - m_isBroadcast (true), - m_isMulticast (false), - m_pendingReadCount (0) -{ - NS_LOG_FUNCTION (this); - m_packetBuffer = new uint8_t[65536]; - Start (m_tStart); -} - -EmuNetDevice::~EmuNetDevice () -{ - delete [] m_packetBuffer; - m_packetBuffer = 0; -} - -void -EmuNetDevice::DoDispose () -{ - NS_LOG_FUNCTION_NOARGS (); - if (m_readThread != 0) - { - StopDevice (); - } - m_node = 0; - NetDevice::DoDispose (); -} - -void -EmuNetDevice::SetEncapsulationMode (enum EncapsulationMode mode) -{ - NS_LOG_FUNCTION (mode); - m_encapMode = mode; - NS_LOG_LOGIC ("m_encapMode = " << m_encapMode); -} - -EmuNetDevice::EncapsulationMode -EmuNetDevice::GetEncapsulationMode (void) const -{ - NS_LOG_FUNCTION_NOARGS (); - return m_encapMode; -} - -void -EmuNetDevice::Start (Time tStart) -{ - NS_LOG_FUNCTION (tStart); - - // - // Cancel any pending start event and schedule a new one at some relative time in the future. - // - Simulator::Cancel (m_startEvent); - m_startEvent = Simulator::Schedule (tStart, &EmuNetDevice::StartDevice, this); -} - -void -EmuNetDevice::Stop (Time tStop) -{ - NS_LOG_FUNCTION (tStop); - // - // Cancel any pending stop event and schedule a new one at some relative time in the future. - // - Simulator::Cancel (m_stopEvent); - m_startEvent = Simulator::Schedule (tStop, &EmuNetDevice::StopDevice, this); -} - -void -EmuNetDevice::StartDevice (void) -{ - NS_LOG_FUNCTION_NOARGS (); - - // - // Spin up the emu net device and start receiving packets. - // - if (m_sock != -1) - { - NS_FATAL_ERROR ("EmuNetDevice::StartDevice(): Device is already started"); - } - - // - // A similar story exists for the node ID. We can't just naively do a - // GetNode ()->GetId () since GetNode is going to give us a Ptr which - // is reference counted. We need to stash away the node ID for use in the - // read thread. - // - m_nodeId = GetNode ()->GetId (); - - NS_LOG_LOGIC ("Creating socket"); - - // - // Call out to a separate process running as suid root in order to get a raw - // socket. We do this to avoid having the entire simulation running as root. - // If this method returns, we'll have a raw socket waiting for us in m_sock. - // - CreateSocket (); - - // - // Figure out which interface index corresponds to the device name in the corresponding attribute. - // - struct ifreq ifr; - bzero (&ifr, sizeof(ifr)); - strncpy ((char *)ifr.ifr_name, m_deviceName.c_str (), IFNAMSIZ); - - NS_LOG_LOGIC ("Getting interface index"); - int32_t rc = ioctl (m_sock, SIOCGIFINDEX, &ifr); - if (rc == -1) - { - NS_FATAL_ERROR ("EmuNetDevice::StartDevice(): Can't get interface index"); - } - - // - // Save the real interface index for later calls to sendto - // - m_sll_ifindex = ifr.ifr_ifindex; - - // - // Bind the socket to the interface we just found. - // - struct sockaddr_ll ll; - bzero (&ll, sizeof(ll)); - - ll.sll_family = AF_PACKET; - ll.sll_ifindex = m_sll_ifindex; - ll.sll_protocol = htons (ETH_P_ALL); - - NS_LOG_LOGIC ("Binding socket to interface"); - - rc = bind (m_sock, (struct sockaddr *)&ll, sizeof (ll)); - if (rc == -1) - { - NS_FATAL_ERROR ("EmuNetDevice::StartDevice(): Can't bind to specified interface"); - } - - rc = ioctl (m_sock, SIOCGIFFLAGS, &ifr); - if (rc == -1) - { - NS_FATAL_ERROR ("EmuNetDevice::StartDevice(): Can't get interface flags"); - } - - // - // This device only works if the underlying interface is up in promiscuous - // mode. We could have turned it on in the socket creator, but the situation - // is that we expect these devices to be used in conjunction with virtual - // machines with connected host-only (simulated) networks, or in a testbed. - // There is a lot of setup and configuration happening outside of this one - // issue, and we expect that configuration to include choosing a valid - // interface (e.g, "ath1"), ensuring that the device supports promiscuous - // mode, and placing it in promiscuous mode. We just make sure of the - // end result. - // - if ((ifr.ifr_flags & IFF_PROMISC) == 0) - { - NS_FATAL_ERROR ("EmuNetDevice::StartDevice(): " << m_deviceName << " is not in promiscuous mode"); - } - if ((ifr.ifr_flags & IFF_BROADCAST) != IFF_BROADCAST) - { - // We default m_isBroadcast to true but turn it off here if not - // supported, because in the common case, overlying IP code will - // assert during configuration time if this is false, before this - // method has a chance to set it during runtime - m_isBroadcast = false; - } - if ((ifr.ifr_flags & IFF_MULTICAST) == IFF_MULTICAST) - { - // This one is OK to enable at runtime - m_isMulticast = true; - } - - // - // Now spin up a read thread to read packets. - // - if (m_readThread != 0) - { - NS_FATAL_ERROR ("EmuNetDevice::StartDevice(): Receive thread is already running"); - } - - NS_LOG_LOGIC ("Spinning up read thread"); - - m_readThread = Create (MakeCallback (&EmuNetDevice::ReadThread, this)); - m_readThread->Start (); - - NotifyLinkUp (); -} - -void -EmuNetDevice::CreateSocket (void) -{ - NS_LOG_FUNCTION_NOARGS (); - // - // We want to create a raw socket for our net device. Unfortunately for us - // you have to have root privileges to do that. Instead of running the - // entire simulation as root, we decided to make a small program who's whole - // reason for being is to run as suid root and create a raw socket. We're - // going to fork and exec that program soon, but we need to have a socket - // to talk to it with. So we create a local interprocess (Unix) socket - // for that purpose. - // - int sock = socket (PF_UNIX, SOCK_DGRAM, 0); - if (sock == -1) - { - NS_FATAL_ERROR ("EmuNetDevice::CreateSocket(): Unix socket creation error, errno = " << std::strerror (errno)); - } - - // - // Bind to that socket and let the kernel allocate an endpoint - // - struct sockaddr_un un; - memset (&un, 0, sizeof (un)); - un.sun_family = AF_UNIX; - int status = bind (sock, (struct sockaddr*)&un, sizeof (sa_family_t)); - if (status == -1) - { - NS_FATAL_ERROR ("EmuNetDevice::CreateSocket(): Could not bind(): errno = " << std::strerror (errno)); - } - - NS_LOG_INFO ("Created Unix socket"); - NS_LOG_INFO ("sun_family = " << un.sun_family); - NS_LOG_INFO ("sun_path = " << un.sun_path); - - // - // We have a socket here, but we want to get it there -- to the program we're - // going to exec. What we'll do is to do a getsockname and then encode the - // resulting address information as a string, and then send the string to the - // program as an argument. So we need to get the sock name. - // - socklen_t len = sizeof (un); - status = getsockname (sock, (struct sockaddr*)&un, &len); - if (status == -1) - { - NS_FATAL_ERROR ("EmuNetDevice::CreateSocket(): Could not getsockname(): errno = " << std::strerror (errno)); - } - - // - // Now encode that socket name (family and path) as a string of hex digits - // - std::string path = EmuBufferToString ((uint8_t *)&un, len); - NS_LOG_INFO ("Encoded Unix socket as \"" << path << "\""); - // - // Fork and exec the process to create our socket. If we're us (the parent) - // we wait for the child (the socket creator) to complete and read the - // socket it created using the ancillary data mechanism. - // - // Tom Goff reports the possiblility of a deadlock when trying to acquire the - // python GIL here. He says that this might be due to trying to access Python - // objects after fork() without calling PyOS_AfterFork() to properly reset - // Python state (including the GIL). There is no code to cause the problem - // here in emu, but this was visible in similar code in tap-bridge. - // - pid_t pid = ::fork (); - if (pid == 0) - { - NS_LOG_DEBUG ("Child process"); - - // - // build a command line argument from the encoded endpoint string that - // the socket creation process will use to figure out how to respond to - // the (now) parent process. - // - std::ostringstream oss; - oss << "-p" << path; - NS_LOG_INFO ("Parameters set to \"" << oss.str () << "\""); - - // - // Execute the socket creation process image. - // - status = ::execlp (EMU_SOCK_CREATOR, - EMU_SOCK_CREATOR, // argv[0] (filename) - oss.str ().c_str (), // argv[1] (-pcmsg_level == SOL_SOCKET && - cmsg->cmsg_type == SCM_RIGHTS) - { - // - // This is the type of message we want. Check to see if the magic - // number is correct and then pull out the socket we care about if - // it matches - // - if (magic == EMU_MAGIC) - { - NS_LOG_INFO ("Got SCM_RIGHTS with correct magic " << magic); - int *rawSocket = (int*)CMSG_DATA (cmsg); - NS_LOG_INFO ("Got the socket from the socket creator = " << *rawSocket); - m_sock = *rawSocket; - return; - } - else - { - NS_LOG_INFO ("Got SCM_RIGHTS, but with bad magic " << magic); - } - } - } - NS_FATAL_ERROR ("Did not get the raw socket from the socket creator"); - } -} - -void -EmuNetDevice::StopDevice (void) -{ - NS_LOG_FUNCTION_NOARGS (); - - close (m_sock); - m_sock = -1; - - NS_ASSERT_MSG (m_readThread != 0, "EmuNetDevice::StopDevice(): Receive thread is not running"); - - NS_LOG_LOGIC ("Joining read thread"); - m_readThread->Join (); - m_readThread = 0; -} - -void -EmuNetDevice::ForwardUp (uint8_t *buf, uint32_t len) -{ - NS_LOG_FUNCTION (buf << len); - - // - // Create a packet out of the buffer we received and free that buffer. - // - Ptr packet = Create (reinterpret_cast (buf), len); - std::free (buf); - buf = 0; - - { - CriticalSection cs (m_pendingReadMutex); - //std::cerr << std::endl << "EmuNetDevice main thread: m_pendingReadCount is " << m_pendingReadCount << std::endl; - --m_pendingReadCount; - } - - // - // Trace sinks will expect complete packets, not packets without some of the - // headers. - // - Ptr originalPacket = packet->Copy (); - - EthernetHeader header (false); - - // - // This device could be running in an environment where completely unexpected - // kinds of packets are flying around, so we need to harden things a bit and - // filter out packets we think are completely bogus, so we always check to see - // that the packet is long enough to contain the header we want to remove. - // - if (packet->GetSize () < header.GetSerializedSize ()) - { - m_phyRxDropTrace (originalPacket); - return; - } - - packet->RemoveHeader (header); - - NS_LOG_LOGIC ("Pkt source is " << header.GetSource ()); - NS_LOG_LOGIC ("Pkt destination is " << header.GetDestination ()); - - uint16_t protocol; - - switch (m_encapMode) - { - case LLC: - // - // If the length/type is less than 1500, it corresponds to a length - // interpretation packet. In this case, it is an 802.3 packet and - // will also have an 802.2 LLC header. If greater than 1500, we - // find the protocol number (Ethernet type) directly. - // - if (header.GetLengthType () <= 1500) - { - LlcSnapHeader llc; - // - // Check to see that the packet is long enough to possibly contain the - // header we want to remove before just naively calling. - // - if (packet->GetSize () < llc.GetSerializedSize ()) - { - m_phyRxDropTrace (originalPacket); - return; - } - - packet->RemoveHeader (llc); - protocol = llc.GetType (); - } - else - { - protocol = header.GetLengthType (); - } - break; - - case DIX: - protocol = header.GetLengthType (); - break; - - default: - NS_FATAL_ERROR ("invalid encapsulation mode"); - protocol = 0; /* quiet compiler */ - } - - PacketType packetType; - - if (header.GetDestination ().IsBroadcast ()) - { - packetType = NS3_PACKET_BROADCAST; - } - else if (header.GetDestination ().IsGroup ()) - { - packetType = NS3_PACKET_MULTICAST; - } - else if (header.GetDestination () == m_address) - { - packetType = NS3_PACKET_HOST; - } - else - { - packetType = NS3_PACKET_OTHERHOST; - } - - // - // For all kinds of packetType we receive, we hit the promiscuous sniffer - // hook and pass a copy up to the promiscuous callback. Pass a copy to - // make sure that nobody messes with our packet. - // - m_promiscSnifferTrace (originalPacket); - - if (!m_promiscRxCallback.IsNull ()) - { - m_macPromiscRxTrace (originalPacket); - m_promiscRxCallback (this, packet, protocol, header.GetSource (), header.GetDestination (), packetType); - } - - // - // If this packet is not destined for some other host, it must be for us - // as either a broadcast, multicast or unicast. We need to hit the mac - // packet received trace hook and forward the packet up the stack. - // - if (packetType != NS3_PACKET_OTHERHOST) - { - m_snifferTrace (originalPacket); - m_macRxTrace (originalPacket); - m_rxCallback (this, packet, protocol, header.GetSource ()); - } -} - -void -EmuNetDevice::ReadThread (void) -{ - NS_LOG_FUNCTION_NOARGS (); - - // It's important to remember that we're in a completely different thread than the simulator is running in. - // We are talking about multiple threads here, so it is very, very dangerous to do any kind of reference couning - // on a shared object. - // - - int32_t len = -1; - struct sockaddr_ll addr; - socklen_t addrSize = sizeof (addr); - - for (;;) - { - // - // Too many pending reads at the same time leads to excessive memory allocations. This counter prevents it. - // - bool skip = false; - - { - CriticalSection cs (m_pendingReadMutex); - //std::cerr << std::endl << "EmuNetDevice read thread: m_pendingReadCount is " << m_pendingReadCount << std::endl; - if (m_pendingReadCount >= m_maxPendingReads) - { - skip = true; - } - else - { - ++m_pendingReadCount; - } - } - - if (skip) - { - struct timespec time = { 0, 100000000L }; // 100 ms - nanosleep (&time, NULL); - continue; - } - - // - // to avoid any issues with a shared reference counted packet, we allocate a buffer on the heap and pass that - // buffer into the ns-3 context thread where it will create the packet, copy the buffer and then free it. - // - uint32_t bufferSize = 65536; - uint8_t *buf = (uint8_t *)std::malloc (bufferSize); - if (buf == 0) - { - NS_FATAL_ERROR ("EmuNetDevice::ReadThread(): malloc packet buffer failed"); - } - - NS_LOG_LOGIC ("Calling recvfrom"); - len = recvfrom (m_sock, buf, bufferSize, 0, (struct sockaddr *)&addr, &addrSize); - - if (len == -1) - { - std::free (buf); - buf = 0; - return; - } - - NS_LOG_INFO ("EmuNetDevice::EmuNetDevice(): Received packet on node " << m_nodeId); - NS_LOG_INFO ("EmuNetDevice::ReadThread(): Scheduling handler"); - Simulator::ScheduleWithContext (m_nodeId, Seconds (0.0), - MakeEvent (&EmuNetDevice::ForwardUp, this, buf, len)); - buf = 0; - } -} - -bool -EmuNetDevice::Send (Ptr packet, const Address &dest, uint16_t protocolNumber) -{ - NS_LOG_FUNCTION (packet << dest << protocolNumber); - // - // The immediate questions here are how are we going to encapsulate packets and what do we use as the MAC source and - // destination (hardware) addresses? - // - // If we return false from EmuNetDevice::NeedsArp, the ArpIpv4Interface will pass the broadcast address as the - // hardware (Ethernet) destination by default. If we return true from EmuNetDevice::NeedsArp, then the hardware - // destination is actually meaningful, but we'll have an ns-3 ARP running on this device. There can also be an ARP - // running on the underlying OS so we have to be very careful, both about multiple ARPs and also about TCP, UDP, etc. - // - // We are operating in promiscuous mode on the receive side (all ns-3 net devices are required to implement the - // promiscuous callback in a meaningful way), so we have an option regarding the hardware addresses. We don't actually have - // to use the real hardware addresses and IP addresses of the underlying system. We can completely use MAC-spoofing to - // fake out the OS by using the ns-3 assigned MAC address (and also the ns-3 assigned IP addresses). Ns-3 starts its - // MAC address allocation using the OUI (vendor-code) 00:00:00 which is unassigned to any organization and is a globally - // administered address, so there shouldn't be any collisions with real hardware. - // - // So what we do is we return true from EmuNetDevice::NeedsArp which tells ns-3 to use its own ARP. We spoof the - // MAC address of the device and use promiscuous mode to receive traffic destined to that address. - // - return SendFrom (packet, m_address, dest, protocolNumber); -} - -bool -EmuNetDevice::SendFrom (Ptr packet, const Address &src, const Address &dest, uint16_t protocolNumber) -{ - NS_LOG_FUNCTION (packet << src << dest << protocolNumber); - NS_LOG_LOGIC ("packet =" << packet); - NS_LOG_LOGIC ("UID is " << packet->GetUid () << ")"); - - if (IsLinkUp () == false) - { - m_macTxDropTrace (packet); - return false; - } - - Mac48Address destination = Mac48Address::ConvertFrom (dest); - Mac48Address source = Mac48Address::ConvertFrom (src); - - NS_LOG_LOGIC ("Transmit packet with UID " << packet->GetUid ()); - NS_LOG_LOGIC ("Transmit packet from " << source); - NS_LOG_LOGIC ("Transmit packet to " << destination); - - EthernetHeader header (false); - header.SetSource (source); - header.SetDestination (destination); - - switch (m_encapMode) - { - case LLC: - { - LlcSnapHeader llc; - llc.SetType (protocolNumber); - packet->AddHeader (llc); - - header.SetLengthType (packet->GetSize ()); - } - break; - - case DIX: - header.SetLengthType (protocolNumber); - break; - - default: - NS_FATAL_ERROR ("invalid encapsulation mode"); - } - - packet->AddHeader (header); - - // - // there's not much meaning associated with the different layers in this - // device, so don't be surprised when they're all stacked together in - // essentially one place. We do this for trace consistency across devices. - // - m_macTxTrace (packet); - - // - // Enqueue and dequeue the packet to hit the queue tracing hooks. - // - m_queue->Enqueue (packet); - packet = m_queue->Dequeue (); - NS_ASSERT_MSG (packet, "EmuNetDevice::SendFrom(): packet zero from queue"); - - m_promiscSnifferTrace (packet); - m_snifferTrace (packet); - - struct sockaddr_ll ll; - bzero (&ll, sizeof (ll)); - - ll.sll_family = AF_PACKET; - ll.sll_ifindex = m_sll_ifindex; - ll.sll_protocol = htons (ETH_P_ALL); - - NS_LOG_LOGIC ("calling sendto"); - - NS_ASSERT_MSG (packet->GetSize () <= 65536, "EmuNetDevice::SendFrom(): Packet too big " << packet->GetSize ()); - packet->CopyData (m_packetBuffer, packet->GetSize ()); - - int32_t rc = sendto (m_sock, m_packetBuffer, packet->GetSize (), 0, reinterpret_cast (&ll), sizeof (ll)); - NS_LOG_LOGIC ("sendto returns " << rc); - - return rc == -1 ? false : true; -} - -void -EmuNetDevice::SetDataRate (DataRate bps) -{ - NS_LOG_FUNCTION (this << bps); - NS_FATAL_ERROR ("EmuNetDevice::SetDataRate(): Unable."); -} - -void -EmuNetDevice::SetQueue (Ptr q) -{ - NS_LOG_FUNCTION (this << q); - m_queue = q; -} - -Ptr -EmuNetDevice::GetQueue (void) const -{ - NS_LOG_FUNCTION_NOARGS (); - return m_queue; -} - -void -EmuNetDevice::NotifyLinkUp (void) -{ - m_linkUp = true; - m_linkChangeCallbacks (); -} - -void -EmuNetDevice::SetIfIndex (const uint32_t index) -{ - m_ifIndex = index; -} - -uint32_t -EmuNetDevice::GetIfIndex (void) const -{ - return m_ifIndex; -} - -Ptr -EmuNetDevice::GetChannel (void) const -{ - NS_FATAL_ERROR ("EmuNetDevice::GetChannel(): Unable."); - return 0; -} - -void -EmuNetDevice::SetAddress (Address address) -{ - NS_LOG_FUNCTION (address); - m_address = Mac48Address::ConvertFrom (address); -} - -Address -EmuNetDevice::GetAddress (void) const -{ - NS_LOG_FUNCTION_NOARGS (); - return m_address; -} - -bool -EmuNetDevice::SetMtu (const uint16_t mtu) -{ - NS_FATAL_ERROR ("EmuNetDevice::SetMtu(): Unable."); - return false; -} - -uint16_t -EmuNetDevice::GetMtu (void) const -{ - struct ifreq ifr; - bzero (&ifr, sizeof (ifr)); - strcpy (ifr.ifr_name, m_deviceName.c_str ()); - - int32_t fd = socket (PF_INET, SOCK_DGRAM, IPPROTO_IP); - - - int32_t rc = ioctl (fd, SIOCGIFMTU, &ifr); - if (rc == -1) - { - NS_FATAL_ERROR ("EmuNetDevice::GetMtu(): Can't ioctl SIOCGIFMTU"); - } - - close (fd); - - return ifr.ifr_mtu; -} - -bool -EmuNetDevice::IsLinkUp (void) const -{ - return m_linkUp; -} - -void -EmuNetDevice::AddLinkChangeCallback (Callback callback) -{ - m_linkChangeCallbacks.ConnectWithoutContext (callback); -} - -bool -EmuNetDevice::IsBroadcast (void) const -{ - return m_isBroadcast; -} - -Address -EmuNetDevice::GetBroadcast (void) const -{ - return Mac48Address ("ff:ff:ff:ff:ff:ff"); -} - -bool -EmuNetDevice::IsMulticast (void) const -{ - return m_isMulticast; -} - -Address -EmuNetDevice::GetMulticast (Ipv4Address multicastGroup) const -{ - NS_LOG_FUNCTION (multicastGroup); - - Mac48Address ad = Mac48Address::GetMulticast (multicastGroup); - - // - // Implicit conversion (operator Address ()) is defined for Mac48Address, so - // use it by just returning the EUI-48 address which is automagically converted - // to an Address. - // - NS_LOG_LOGIC ("multicast address is " << ad); - - return ad; -} - -Address -EmuNetDevice::GetMulticast (Ipv6Address addr) const -{ - NS_LOG_FUNCTION (this << addr); - - Mac48Address ad = Mac48Address::GetMulticast (addr); - NS_LOG_LOGIC ("MAC IPv6 multicast address is " << ad); - - return ad; -} - -bool -EmuNetDevice::IsPointToPoint (void) const -{ - return false; -} - -bool -EmuNetDevice::IsBridge (void) const -{ - return false; -} - -void -EmuNetDevice::SetPromiscReceiveCallback (PromiscReceiveCallback cb) -{ - m_promiscRxCallback = cb; -} - -bool -EmuNetDevice::SupportsSendFrom () const -{ - NS_LOG_FUNCTION_NOARGS (); - return true; -} - - -Ptr -EmuNetDevice::GetNode (void) const -{ - return m_node; -} - -void -EmuNetDevice::SetNode (Ptr node) -{ - m_node = node; -} - -bool -EmuNetDevice::NeedsArp (void) const -{ - return true; -} - -void -EmuNetDevice::SetReceiveCallback (NetDevice::ReceiveCallback cb) -{ - m_rxCallback = cb; -} - -} // namespace ns3 diff --git a/src/emu/model/emu-net-device.h b/src/emu/model/emu-net-device.h deleted file mode 100644 index 77badbd8a..000000000 --- a/src/emu/model/emu-net-device.h +++ /dev/null @@ -1,534 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) 2008 University of Washington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef EMU_NET_DEVICE_H -#define EMU_NET_DEVICE_H - -#include - -#include "ns3/address.h" -#include "ns3/net-device.h" -#include "ns3/node.h" -#include "ns3/callback.h" -#include "ns3/packet.h" -#include "ns3/traced-callback.h" -#include "ns3/event-id.h" -#include "ns3/nstime.h" -#include "ns3/data-rate.h" -#include "ns3/ptr.h" -#include "ns3/mac48-address.h" -#include "ns3/system-thread.h" -#include "ns3/system-mutex.h" - -namespace ns3 { - -class Queue; - -/** - * \defgroup emu Emu Network Device - * This section documents the API of the ns-3 emu module. For a generic functional description, please refer to the ns-3 manual. - */ - -/** - * \ingroup emu - * \class EmuNetDevice - * \brief A Device for an Emu Network Link. - */ -class EmuNetDevice : public NetDevice -{ -public: - static TypeId GetTypeId (void); - - /** - * Enumeration of the types of packets supported in the class. - */ - enum EncapsulationMode { - ILLEGAL, /**< Encapsulation mode not set */ - DIX, /**< DIX II / Ethernet II packet */ - LLC, /**< 802.2 LLC/SNAP Packet*/ - }; - - /** - * Construct a EmuNetDevice - * - * This is the constructor for the EmuNetDevice. It takes as a - */ - EmuNetDevice (); - - /** - * Destroy a EmuNetDevice - * - * This is the destructor for the EmuNetDevice. - */ - virtual ~EmuNetDevice (); - - /** - * Set the Data Rate used for transmission of packets. - * - * @see Attach () - * @param bps the data rate at which this object operates - */ - void SetDataRate (DataRate bps); - - /** - * Set a start time for the device. - * - * @param tStart the start time - */ - void Start (Time tStart); - - /** - * Set a stop time for the device. - * - * @param tStop the stop time - */ - void Stop (Time tStop); - - /** - * Attach a queue to the EmuNetDevice. - * - * The EmuNetDevice "owns" a queue that implements a queueing - * method such as DropTail or RED. - * - * @see Queue - * @see DropTailQueue - * @param queue Ptr to the new queue. - */ - void SetQueue (Ptr queue); - - /** - * Get a copy of the attached Queue. - * - * @returns Ptr to the queue. - */ - Ptr GetQueue (void) const; - - -// -// Pure virtual methods inherited from NetDevice we must implement. -// - virtual void SetIfIndex (const uint32_t index); - virtual uint32_t GetIfIndex (void) const; - - virtual Ptr GetChannel (void) const; - - virtual void SetAddress (Address address); - virtual Address GetAddress (void) const; - - virtual bool SetMtu (const uint16_t mtu); - virtual uint16_t GetMtu (void) const; - - virtual bool IsLinkUp (void) const; - - virtual void AddLinkChangeCallback (Callback callback); - - virtual bool IsBroadcast (void) const; - virtual Address GetBroadcast (void) const; - - virtual bool IsMulticast (void) const; - - /** - * \brief Make and return a MAC multicast address using the provided - * multicast group - * - * \RFC{1112} says that an Ipv4 host group address is mapped to an Ethernet - * multicast address by placing the low-order 23-bits of the IP address into - * the low-order 23 bits of the Ethernet multicast address - * 01-00-5E-00-00-00 (hex). - * - * This method performs the multicast address creation function appropriate - * to an EUI-48-based CSMA device. This MAC address is encapsulated in an - * abstract Address to avoid dependencies on the exact address format. - * - * \param multicastGroup The IP address for the multicast group destination - * of the packet. - * \return The MAC multicast Address used to send packets to the provided - * multicast group. - * - * \see Ipv4Address - * \see Mac48Address - * \see Address - */ - virtual Address GetMulticast (Ipv4Address multicastGroup) const; - - /** - * \brief Get the MAC multicast address corresponding - * to the IPv6 address provided. - * \param addr IPv6 address - * \return the MAC multicast address - * \warning Calling this method is invalid if IsMulticast returns not true. - */ - virtual Address GetMulticast (Ipv6Address addr) const; - - /** - * Is this a point to point link? - * \returns false. - */ - virtual bool IsPointToPoint (void) const; - - /** - * Is this a bridge? - * \returns false. - */ - virtual bool IsBridge (void) const; - - virtual bool Send (Ptr packet, const Address &dest, uint16_t protocolNumber); - - virtual bool SendFrom (Ptr packet, const Address& source, const Address& dest, uint16_t protocolNumber); - - virtual Ptr GetNode (void) const; - virtual void SetNode (Ptr node); - - virtual bool NeedsArp (void) const; - - virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb); - virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb); - - virtual bool SupportsSendFrom (void) const; - - /** - * Set the encapsulation mode of this device. - * - * \param mode The encapsulation mode of this device. - * - * \see SetFrameSize - */ - void SetEncapsulationMode (EmuNetDevice::EncapsulationMode mode); - - /** - * Get the encapsulation mode of this device. - * - * \returns The encapsulation mode of this device. - */ - EmuNetDevice::EncapsulationMode GetEncapsulationMode (void) const; - -private: - EmuNetDevice (const EmuNetDevice &); - EmuNetDevice & operator= (const EmuNetDevice &); - - virtual void DoDispose (void); - - /** - * Call out to a separate process running as suid root in order to get a raw - * socket. We do this to avoid having the entire simulation running as root. - * If this method returns, we'll have a raw socket waiting for us in m_sock. - */ - void CreateSocket (void); - - /** - * Figure out where the raw socket creation process lives on the system. - */ - std::string FindCreator (std::string creatorName); - - /** - * Spin up the device - */ - void StartDevice (void); - - /** - * Tear down the device - */ - void StopDevice (void); - - /** - * Loop to read and process packets - */ - void ReadThread (void); - - /** - * Method to handle received packets. Synchronized with simulator via ScheduleNow from ReadThread. - */ - void ForwardUp (uint8_t *buf, uint32_t len); - - /** - * Adds the necessary headers and trailers to a packet of data in order to - * respect the protocol implemented by the agent. - * \param p packet - * \param protocolNumber protocol number - */ - void AddHeader (Ptr p, uint16_t protocolNumber); - - /** - * Removes, from a packet of data, all headers and trailers that - * relate to the protocol implemented by the agent - * \param p Packet whose headers need to be processed - * \param param An integer parameter that can be set by the function - * \return Returns true if the packet should be forwarded up the - * protocol stack. - */ - bool ProcessHeader (Ptr p, uint16_t& param); - - /** - * Start Sending a Packet Down the Wire. - * @param p packet to send - * @returns true if success, false on failure - */ - bool TransmitStart (Ptr p); - - void NotifyLinkUp (void); - - /** - * The Queue which this EmuNetDevice uses as a packet source. - * Management of this Queue has been delegated to the EmuNetDevice - * and it has the responsibility for deletion. - * @see class Queue - * @see class DropTailQueue - */ - Ptr m_queue; - - /** - * The trace source fired when packets come into the "top" of the device - * at the L3/L2 transition, before being queued for transmission. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_macTxTrace; - - /** - * The trace source fired when packets coming into the "top" of the device - * at the L3/L2 transition are dropped before being queued for transmission. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_macTxDropTrace; - - /** - * The trace source fired for packets successfully received by the device - * immediately before being forwarded up to higher layers (at the L2/L3 - * transition). This is a promiscuous trace. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_macPromiscRxTrace; - - /** - * The trace source fired for packets successfully received by the device - * immediately before being forwarded up to higher layers (at the L2/L3 - * transition). This is a non-promiscuous trace. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_macRxTrace; - - /** - * The trace source fired for packets successfully received by the device - * but which are dropped before being forwarded up to higher layers (at the - * L2/L3 transition). - * - * \see class CallBackTraceSource - */ - TracedCallback > m_macRxDropTrace; - - /** - * The trace source fired when a packet begins the transmission process on - * the medium. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_phyTxBeginTrace; - - /** - * The trace source fired when a packet ends the transmission process on - * the medium. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_phyTxEndTrace; - - /** - * The trace source fired when the phy layer drops a packet as it tries - * to transmit it. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_phyTxDropTrace; - - /** - * The trace source fired when a packet ends the reception process from - * the medium. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_phyRxTrace; - - /** - * The trace source fired when a packet begins the reception process from - * the medium. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_phyRxBeginTrace; - - /** - * The trace source fired when a packet begins the reception process from - * the medium. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_phyRxEndTrace; - - /** - * The trace source fired when the phy layer drops a packet it has received. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_phyRxDropTrace; - - /** - * A trace source that emulates a non-promiscuous protocol sniffer connected - * to the device. Unlike your average everyday sniffer, this trace source - * will not fire on PACKET_OTHERHOST events. - * - * On the transmit size, this trace hook will fire after a packet is dequeued - * from the device queue for transmission. In Linux, for example, this would - * correspond to the point just before a device hard_start_xmit where - * dev_queue_xmit_nit is called to dispatch the packet to the PF_PACKET - * ETH_P_ALL handlers. - * - * On the receive side, this trace hook will fire when a packet is received, - * just before the receive callback is executed. In Linux, for example, - * this would correspond to the point at which the packet is dispatched to - * packet sniffers in netif_receive_skb. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_snifferTrace; - - /** - * A trace source that emulates a promiscuous mode protocol sniffer connected - * to the device. This trace source fire on packets destined for any host - * just like your average everyday packet sniffer. - * - * On the transmit size, this trace hook will fire after a packet is dequeued - * from the device queue for transmission. In Linux, for example, this would - * correspond to the point just before a device hard_start_xmit where - * dev_queue_xmit_nit is called to dispatch the packet to the PF_PACKET - * ETH_P_ALL handlers. - * - * On the receive side, this trace hook will fire when a packet is received, - * just before the receive callback is executed. In Linux, for example, - * this would correspond to the point at which the packet is dispatched to - * packet sniffers in netif_receive_skb. - * - * \see class CallBackTraceSource - */ - TracedCallback > m_promiscSnifferTrace; - - /** - * Time to start spinning up the device - */ - Time m_tStart; - - /** - * Time to start tearing down the device - */ - Time m_tStop; - - EventId m_startEvent; - EventId m_stopEvent; - - int32_t m_sock; - - Ptr m_readThread; - - /** - * The Node to which this device is attached. - */ - Ptr m_node; - - /** - * The MAC address which has been assigned to this device. - */ - Mac48Address m_address; - - /** - * The callback used to notify higher layers that a packet has been received. - */ - NetDevice::ReceiveCallback m_rxCallback; - - /** - * The callback used to notify higher layers that a packet has been received in promiscuous mode. - */ - NetDevice::PromiscReceiveCallback m_promiscRxCallback; - - /** - * The ns-3 interface index (in the sense of net device index) that has been assigned to this network device. - */ - uint32_t m_ifIndex; - - /** - * The Unix interface index that we got from the system and which corresponds to the interface (e.g., "eth1") - * we are using to talk to the network. Valid when m_sock is valid. - */ - int32_t m_sll_ifindex; - - /** - * The type of packet that should be created by the AddHeader - * function and that should be processed by the ProcessHeader - * function. - */ - EncapsulationMode m_encapMode; - - /** - * Flag indicating whether or not the link is up. In this case, - * whether or not the device is connected to a channel. - */ - bool m_linkUp; - - /** - * Flag indicating whether or not the underlying net device supports - * broadcast. - */ - bool m_isBroadcast; - - /** - * Flag indicating whether or not the underlying net device supports - * multicast. - */ - bool m_isMulticast; - - /** - * Callbacks to fire if the link changes state (up or down). - */ - TracedCallback<> m_linkChangeCallbacks; - - /** - * The unix/linux name of the underlying device (e.g., eth0) - */ - std::string m_deviceName; - - /** - * A 64K buffer to hold packet data while it is being sent. - */ - uint8_t *m_packetBuffer; - - /* - * a copy of the node id so the read thread doesn't have to GetNode() in - * in order to find the node ID. Thread unsafe reference counting in - * multithreaded apps is not a good thing. - */ - uint32_t m_nodeId; - - uint32_t m_maxPendingReads; - uint32_t m_pendingReadCount; - SystemMutex m_pendingReadMutex; -}; - -} // namespace ns3 - -#endif /* EMU_NET_DEVICE_H */ diff --git a/src/emu/model/emu-sock-creator.cc b/src/emu/model/emu-sock-creator.cc deleted file mode 100644 index e2b4de9d5..000000000 --- a/src/emu/model/emu-sock-creator.cc +++ /dev/null @@ -1,247 +0,0 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) University of Washington - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "emu-encode-decode.h" - -#define EMU_MAGIC 65867 - -static int gVerbose = 0; - -#define LOG(msg) \ - if (gVerbose) \ - { \ - std::cout << __FUNCTION__ << "(): " << msg << std::endl; \ - } - -#define ABORT(msg, printErrno) \ - std::cout << __FILE__ << ": fatal error at line " << __LINE__ << ": " << __FUNCTION__ << "(): " << msg << std::endl; \ - if (printErrno) \ - { \ - std::cout << " errno = " << errno << " (" << std::strerror (errno) << ")" << std::endl; \ - } \ - exit (-1); - -#define ABORT_IF(cond, msg, printErrno) \ - if (cond) \ - { \ - ABORT (msg, printErrno); \ - } - -/** - * \brief Send the socket file descriptor we created back to the emu device, - * which will read it as soon as we're done. - * - * \param path The socket address information from the Unix socket we use - * to send the created socket back to. - * \param fd The socket we're going to send. - */ -static void -SendSocket (const char *path, int fd) -{ - // - // Open a Unix (local interprocess) socket to call back to the emu net - // device. - // - LOG ("Create Unix socket"); - int sock = socket (PF_UNIX, SOCK_DGRAM, 0); - ABORT_IF (sock == -1, "Unable to open socket", 1); - - // - // We have this string called path, which is really a hex representation - // of the endpoint that the net device created. It used a forward encoding - // method (EmuBufferToString) to take the sockaddr_un it made and passed - // the resulting string to us. So we need to take the inverse method - // (EmuStringToBuffer) and build the same sockaddr_un over here. - // - socklen_t clientAddrLen; - struct sockaddr_un clientAddr; - - LOG ("Decode address " << path); - bool rc = ns3::EmuStringToBuffer (path, (uint8_t *)&clientAddr, &clientAddrLen); - ABORT_IF (rc == false, "Unable to decode path", 0); - - LOG ("Connect"); - int status = connect (sock, (struct sockaddr*)&clientAddr, clientAddrLen); - ABORT_IF (status == -1, "Unable to connect to emu device", 1); - - LOG ("Connected"); - - // - // This is arcane enough that a few words are worthwhile to explain what's - // going on here. - // - // The interesting information (the socket FD) is going to go back to the - // emu net device as an integer of ancillary data. Ancillary data is bits - // that are not a part a socket payload (out-of-band data). We're also - // going to send one integer back. It's just initialized to a magic number - // we use to make sure that the emu device is talking to the emu socket - // creator and not some other creator process. - // - // The struct iovec below is part of a scatter-gather list. It describes a - // buffer. In this case, it describes a buffer (an integer) containing the - // data that we're going to send back to the emu net device (that magic - // number). - // - struct iovec iov; - uint32_t magic = EMU_MAGIC; - iov.iov_base = &magic; - iov.iov_len = sizeof(magic); - - // - // The CMSG macros you'll see below are used to create and access control - // messages (which is another name for ancillary data). The ancillary - // data is made up of pairs of struct cmsghdr structures and associated - // data arrays. - // - // First, we're going to allocate a buffer on the stack to contain our - // data array (that contains the socket). Sometimes you'll see this called - // an "ancillary element" but the msghdr uses the control message termimology - // so we call it "control." - // - size_t msg_size = sizeof(int); - char control[CMSG_SPACE (msg_size)]; - - // - // There is a msghdr that is used to minimize the number of parameters - // passed to sendmsg (which we will use to send our ancillary data). This - // structure uses terminology corresponding to control messages, so you'll - // see msg_control, which is the pointer to the ancillary data and controllen - // which is the size of the ancillary data array. - // - // So, initialize the message header that describes our ancillary/control data - // and point it to the control message/ancillary data we just allocated space - // for. - // - struct msghdr msg; - msg.msg_name = 0; - msg.msg_namelen = 0; - msg.msg_iov = &iov; - msg.msg_iovlen = 1; - msg.msg_control = control; - msg.msg_controllen = sizeof (control); - msg.msg_flags = 0; - - // - // A cmsghdr contains a length field that is the length of the header and - // the data. It has a cmsg_level field corresponding to the originating - // protocol. This takes values which are legal levels for getsockopt and - // setsockopt (here SOL_SOCKET). We're going to use the SCM_RIGHTS type of - // cmsg, that indicates that the ancillary data array contains access rights - // that we are sending back to the emu net device. - // - // We have to put together the first (and only) cmsghdr that will describe - // the whole package we're sending. - // - struct cmsghdr *cmsg; - cmsg = CMSG_FIRSTHDR (&msg); - cmsg->cmsg_level = SOL_SOCKET; - cmsg->cmsg_type = SCM_RIGHTS; - cmsg->cmsg_len = CMSG_LEN (msg_size); - // - // We also have to update the controllen in case other stuff is actually - // in there we may not be aware of (due to macros). - // - msg.msg_controllen = cmsg->cmsg_len; - - // - // Finally, we get a pointer to the start of the ancillary data array and - // put our file descriptor in. - // - int *fdptr = (int*)(CMSG_DATA (cmsg)); - *fdptr = fd; // - - // - // Actually send the file descriptor back to the emulated net device. - // - ssize_t len = sendmsg (sock, &msg, 0); - ABORT_IF (len == -1, "Could not send socket back to emu net device", 1); - - LOG ("sendmsg complete"); -} - -int -main (int argc, char *argv[]) -{ - int c; - char *path = NULL; - - opterr = 0; - - while ((c = getopt (argc, argv, "vp:")) != -1) - { - switch (c) - { - case 'v': - gVerbose = true; - break; - case 'p': - path = optarg; - break; - } - } - - // - // This program is spawned by an emu net device running in a simulation. It - // wants to create a raw socket as described below. We are going to do the - // work here since we're running suid root. Once we create the raw socket, - // we have to send it back to the emu net device. We do that over a Unix - // (local interprocess) socket. The emu net device created a socket to - // listen for our response on, and it is expected to have encoded the address - // information as a string and to have passed that string as an argument to - // us. We see it here as the "path" string. We can't do anything useful - // unless we have that string. - // - ABORT_IF (path == NULL, "path is a required argument", 0); - LOG ("Provided path is \"" << path << "\""); - // - // The whole reason for all of the hoops we went through to call out to this - // program will pay off here. We created this program to run as suid root - // in order to keep the main simulation program from having to be run with - // root privileges. We need root privileges to be able to open a raw socket - // though. So all of these hoops are to allow us to exeucte the following - // single line of code: - // - LOG ("Creating raw socket"); - int sock = socket (PF_PACKET, SOCK_RAW, htons (ETH_P_ALL)); - ABORT_IF (sock == -1, "CreateSocket(): Unable to open raw socket", 1); - - // - // Send the socket back to the emu net device so it can go about its business - // - SendSocket (path, sock); - - return 0; -} diff --git a/src/emu/test/examples-to-run.py b/src/emu/test/examples-to-run.py deleted file mode 100644 index cafd2f301..000000000 --- a/src/emu/test/examples-to-run.py +++ /dev/null @@ -1,21 +0,0 @@ -#! /usr/bin/env python -## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- - -# A list of C++ examples to run in order to ensure that they remain -# buildable and runnable over time. Each tuple in the list contains -# -# (example_name, do_run, do_valgrind_run). -# -# See test.py for more information. -cpp_examples = [ - ("emu-ping", "False", "True"), - ("emu-udp-echo", "False", "True"), -] - -# A list of Python examples to run in order to ensure that they remain -# runnable over time. Each tuple in the list contains -# -# (example_name, do_run). -# -# See test.py for more information. -python_examples = [] diff --git a/src/emu/wscript b/src/emu/wscript deleted file mode 100644 index 33b015183..000000000 --- a/src/emu/wscript +++ /dev/null @@ -1,57 +0,0 @@ -## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- - -import os.path - -def configure(conf): - if conf.env['ENABLE_THREADING']: - conf.env['ENABLE_EMU'] = conf.check_nonfatal(header_name='netpacket/packet.h', - define_name='HAVE_PACKET_H') - conf.report_optional_feature("EmuNetDevice", "Emulated Net Device", - conf.env['ENABLE_EMU'], - " include not detected") - else: - conf.report_optional_feature("EmuNetDevice", "Emulated Net Device", - False, - "needs threading support which is not available") - - if conf.env['ENABLE_EMU']: - #blddir = conf.bldnode.abspath() - blddir = os.path.abspath(os.path.join(conf.bldnode.abspath(), conf.variant)) - emucreatordir = os.path.abspath(os.path.join(blddir, "src/emu")) - conf.env.append_value('NS3_EXECUTABLE_PATH', emucreatordir) - else: - # Add this module to the list of modules that won't be built - # if they are enabled. - conf.env['MODULES_NOT_BUILT'].append('emu') - -def build(bld): - # Don't do anything for this module if emu's not enabled. - if not bld.env['ENABLE_EMU']: - return - - module = bld.create_ns3_module('emu', ['network']) - module.source = [ - 'model/emu-net-device.cc', - 'model/emu-encode-decode.cc', - 'helper/emu-helper.cc', - ] - - headers = bld(features='ns3header') - headers.module = 'emu' - headers.source = [ - 'model/emu-net-device.h', - 'helper/emu-helper.h', - ] - - creator = bld.create_suid_program('emu-sock-creator') - creator.source = [ - 'model/emu-sock-creator.cc', - 'model/emu-encode-decode.cc', - ] - - module.env.append_value("DEFINES", "EMU_SOCK_CREATOR=\"%s\"" % (creator.target,)) - - if bld.env['ENABLE_EXAMPLES']: - bld.recurse('examples') - - bld.ns3_python_bindings() diff --git a/src/fd-net-device/doc/fd-net-device.rst b/src/fd-net-device/doc/fd-net-device.rst index e27b9701e..d66e253f4 100644 --- a/src/fd-net-device/doc/fd-net-device.rst +++ b/src/fd-net-device/doc/fd-net-device.rst @@ -250,7 +250,7 @@ The emulation helper permits to transparently integrate a simulated This helper replaces the functionality of the ``EmuNetDevice`` found in |ns3| prior to ns-3.17, by bringing this type of device into the common -framework of the FdNetDevice. The ``EmuNetDevice`` will be deprecated +framework of the FdNetDevice. The ``EmuNetDevice`` was deprecated in favor of this new helper. The device is configured to perform @@ -261,7 +261,8 @@ One can use this helper in a testbed situation where the host on which the simulation is running has a specific interface of interest which drives the testbed hardware. You would also need to set this specific interface into promiscuous mode and provide an appropriate device name to the |ns3| -simulation. +simulation. Additionally, hardware offloading of segmentation and checksums +should be disabled. The helper only works if the underlying interface is up and in promiscuous mode. Packets will be sent out over the device, but we use MAC