diff --git a/RELEASE_NOTES b/RELEASE_NOTES index ae2734665..5dfdbc846 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -34,9 +34,19 @@ New user-visible features a) The ns-3 logging macros (NS_LOG_*) now report automatically the node id of the event which called the macro. - b) Ad hoc On-Demand Distance Vector (AODV) routing model according to RFC 3561. + b) Ad hoc On-Demand Distance Vector (AODV) routing model according to RFC 3561. - c) IPv6 extensions support and two new examples for fragmentation and loose routing. + c) Net-anim: + - interface for animation of point-to-point links. + - dumbbell, grid, and star examples in examples/animation + + d) Topology Helper classes: + - PointToPointDumbbellHelper + - PointToPointGridHelper + - PointToPointStarHelper + - CsmaStarHelper + + e) IPv6 extensions support and two new examples for fragmentation and loose routing. API changes from ns-3.6 ----------------------- diff --git a/bindings/python/apidefs/gcc-ILP32/callbacks_list.py b/bindings/python/apidefs/gcc-ILP32/callbacks_list.py index da45e917c..3ef430b30 100644 --- a/bindings/python/apidefs/gcc-ILP32/callbacks_list.py +++ b/bindings/python/apidefs/gcc-ILP32/callbacks_list.py @@ -4,18 +4,21 @@ callback_classes = [ ['void', 'ns3::Ptr', 'ns3::Mac48Address', 'ns3::Mac48Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Mac48Address', 'ns3::Mac48Address', 'unsigned int', 'bool', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'unsigned int', 'ns3::Mac48Address', 'ns3::Mac48Address', 'ns3::dot11s::PeerLink::PeerState', 'ns3::dot11s::PeerLink::PeerState', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['void', 'ns3::WifiMacHeader const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['unsigned int', 'ns3::Mac48Address', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::WifiMacHeader const*', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['std::vector >', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'bool', 'ns3::Ptr', 'ns3::Mac48Address', 'ns3::Mac48Address', 'unsigned short', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'ns3::WifiMacHeader const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['bool', 'std::string', '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::Ipv4Header const&', 'ns3::Socket::SocketErrno', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'ns3::Ptr', 'ns3::Ptr', 'ns3::Ipv4Header const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::Address const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['bool', 'ns3::Ptr', 'ns3::Address const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['std::vector >', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['void', 'bool', 'ns3::Ptr', 'ns3::Mac48Address', 'ns3::Mac48Address', 'unsigned short', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['bool', 'std::string', '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::Ipv4Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::Ipv4Address', 'ns3::empty', 'ns3::empty', '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/bindings/python/apidefs/gcc-ILP32/ns3_module_aodv.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_aodv.py new file mode 100644 index 000000000..9d611c194 --- /dev/null +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_aodv.py @@ -0,0 +1,1054 @@ +from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers + +def register_types(module): + root_module = module.get_root() + + + ## Register a nested module for the namespace Config + + nested_module = module.add_cpp_namespace('Config') + register_types_ns3_Config(nested_module) + + + ## Register a nested module for the namespace TimeStepPrecision + + nested_module = module.add_cpp_namespace('TimeStepPrecision') + register_types_ns3_TimeStepPrecision(nested_module) + + + ## Register a nested module for the namespace addressUtils + + nested_module = module.add_cpp_namespace('addressUtils') + register_types_ns3_addressUtils(nested_module) + + + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + + ## Register a nested module for the namespace dot11s + + nested_module = module.add_cpp_namespace('dot11s') + register_types_ns3_dot11s(nested_module) + + + ## Register a nested module for the namespace flame + + nested_module = module.add_cpp_namespace('flame') + register_types_ns3_flame(nested_module) + + + ## Register a nested module for the namespace internal + + nested_module = module.add_cpp_namespace('internal') + register_types_ns3_internal(nested_module) + + + ## Register a nested module for the namespace olsr + + nested_module = module.add_cpp_namespace('olsr') + register_types_ns3_olsr(nested_module) + + +def register_types_ns3_Config(module): + root_module = module.get_root() + + +def register_types_ns3_TimeStepPrecision(module): + root_module = module.get_root() + + +def register_types_ns3_addressUtils(module): + root_module = module.get_root() + + +def register_types_ns3_aodv(module): + root_module = module.get_root() + + ## aodv-packet.h: ns3::aodv::MessageType [enumeration] + module.add_enum('MessageType', ['AODVTYPE_RREQ', 'AODVTYPE_RREP', 'AODVTYPE_RERR', 'AODVTYPE_RREP_ACK']) + ## aodv-rtable.h: ns3::aodv::RouteFlags [enumeration] + module.add_enum('RouteFlags', ['VALID', 'INVALID', 'IN_SEARCH']) + ## aodv-dpd.h: ns3::aodv::DuplicatePacketDetection [class] + module.add_class('DuplicatePacketDetection') + ## aodv-id-cache.h: ns3::aodv::IdCache [class] + module.add_class('IdCache') + ## aodv-neighbor.h: ns3::aodv::Neighbors [class] + module.add_class('Neighbors') + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor [struct] + module.add_class('Neighbor', outer_class=root_module['ns3::aodv::Neighbors']) + ## aodv-rqueue.h: ns3::aodv::QueueEntry [class] + module.add_class('QueueEntry') + ## aodv-rqueue.h: ns3::aodv::RequestQueue [class] + module.add_class('RequestQueue') + ## aodv-packet.h: ns3::aodv::RerrHeader [class] + module.add_class('RerrHeader', parent=root_module['ns3::Header']) + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol [class] + module.add_class('RoutingProtocol', parent=root_module['ns3::Ipv4RoutingProtocol']) + ## aodv-rtable.h: ns3::aodv::RoutingTable [class] + module.add_class('RoutingTable') + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry [class] + module.add_class('RoutingTableEntry') + ## aodv-packet.h: ns3::aodv::RrepAckHeader [class] + module.add_class('RrepAckHeader', parent=root_module['ns3::Header']) + ## aodv-packet.h: ns3::aodv::RrepHeader [class] + module.add_class('RrepHeader', parent=root_module['ns3::Header']) + ## aodv-packet.h: ns3::aodv::RreqHeader [class] + module.add_class('RreqHeader', parent=root_module['ns3::Header']) + ## aodv-packet.h: ns3::aodv::TypeHeader [class] + module.add_class('TypeHeader', parent=root_module['ns3::Header']) + +def register_types_ns3_dot11s(module): + root_module = module.get_root() + + +def register_types_ns3_flame(module): + root_module = module.get_root() + + +def register_types_ns3_internal(module): + root_module = module.get_root() + + +def register_types_ns3_olsr(module): + root_module = module.get_root() + + +def register_methods(root_module): + register_Ns3AodvDuplicatePacketDetection_methods(root_module, root_module['ns3::aodv::DuplicatePacketDetection']) + register_Ns3AodvIdCache_methods(root_module, root_module['ns3::aodv::IdCache']) + register_Ns3AodvNeighbors_methods(root_module, root_module['ns3::aodv::Neighbors']) + register_Ns3AodvNeighborsNeighbor_methods(root_module, root_module['ns3::aodv::Neighbors::Neighbor']) + register_Ns3AodvQueueEntry_methods(root_module, root_module['ns3::aodv::QueueEntry']) + register_Ns3AodvRequestQueue_methods(root_module, root_module['ns3::aodv::RequestQueue']) + register_Ns3AodvRerrHeader_methods(root_module, root_module['ns3::aodv::RerrHeader']) + register_Ns3AodvRoutingProtocol_methods(root_module, root_module['ns3::aodv::RoutingProtocol']) + register_Ns3AodvRoutingTable_methods(root_module, root_module['ns3::aodv::RoutingTable']) + register_Ns3AodvRoutingTableEntry_methods(root_module, root_module['ns3::aodv::RoutingTableEntry']) + register_Ns3AodvRrepAckHeader_methods(root_module, root_module['ns3::aodv::RrepAckHeader']) + register_Ns3AodvRrepHeader_methods(root_module, root_module['ns3::aodv::RrepHeader']) + register_Ns3AodvRreqHeader_methods(root_module, root_module['ns3::aodv::RreqHeader']) + register_Ns3AodvTypeHeader_methods(root_module, root_module['ns3::aodv::TypeHeader']) + return + +def register_Ns3AodvDuplicatePacketDetection_methods(root_module, cls): + ## aodv-dpd.h: ns3::aodv::DuplicatePacketDetection::DuplicatePacketDetection(ns3::aodv::DuplicatePacketDetection const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::DuplicatePacketDetection const &', 'arg0')]) + ## aodv-dpd.h: ns3::aodv::DuplicatePacketDetection::DuplicatePacketDetection(ns3::Time lifetime) [constructor] + cls.add_constructor([param('ns3::Time', 'lifetime')]) + ## aodv-dpd.h: ns3::Time ns3::aodv::DuplicatePacketDetection::GetLifetime() const [member function] + cls.add_method('GetLifetime', + 'ns3::Time', + [], + is_const=True) + ## aodv-dpd.h: bool ns3::aodv::DuplicatePacketDetection::IsDuplicate(ns3::Ptr p, ns3::Ipv4Header const & header) [member function] + cls.add_method('IsDuplicate', + 'bool', + [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header')]) + ## aodv-dpd.h: void ns3::aodv::DuplicatePacketDetection::SetLifetime(ns3::Time lifetime) [member function] + cls.add_method('SetLifetime', + 'void', + [param('ns3::Time', 'lifetime')]) + return + +def register_Ns3AodvIdCache_methods(root_module, cls): + ## aodv-id-cache.h: ns3::aodv::IdCache::IdCache(ns3::aodv::IdCache const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::IdCache const &', 'arg0')]) + ## aodv-id-cache.h: ns3::aodv::IdCache::IdCache(ns3::Time lifetime) [constructor] + cls.add_constructor([param('ns3::Time', 'lifetime')]) + ## aodv-id-cache.h: ns3::Time ns3::aodv::IdCache::GetLifeTime() const [member function] + cls.add_method('GetLifeTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-id-cache.h: uint32_t ns3::aodv::IdCache::GetSize() [member function] + cls.add_method('GetSize', + 'uint32_t', + []) + ## aodv-id-cache.h: bool ns3::aodv::IdCache::IsDuplicate(ns3::Ipv4Address addr, uint32_t id) [member function] + cls.add_method('IsDuplicate', + 'bool', + [param('ns3::Ipv4Address', 'addr'), param('uint32_t', 'id')]) + ## aodv-id-cache.h: void ns3::aodv::IdCache::Purge() [member function] + cls.add_method('Purge', + 'void', + []) + ## aodv-id-cache.h: void ns3::aodv::IdCache::SetLifetime(ns3::Time lifetime) [member function] + cls.add_method('SetLifetime', + 'void', + [param('ns3::Time', 'lifetime')]) + return + +def register_Ns3AodvNeighbors_methods(root_module, cls): + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbors(ns3::aodv::Neighbors const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::Neighbors const &', 'arg0')]) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbors(ns3::Time delay) [constructor] + cls.add_constructor([param('ns3::Time', 'delay')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::AddArpCache(ns3::Ptr arg0) [member function] + cls.add_method('AddArpCache', + 'void', + [param('ns3::Ptr< ns3::ArpCache >', 'arg0')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::Clear() [member function] + cls.add_method('Clear', + 'void', + []) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::DelArpCache(ns3::Ptr arg0) [member function] + cls.add_method('DelArpCache', + 'void', + [param('ns3::Ptr< ns3::ArpCache >', 'arg0')]) + ## aodv-neighbor.h: ns3::Callback ns3::aodv::Neighbors::GetCallback() const [member function] + cls.add_method('GetCallback', + 'ns3::Callback< void, ns3::Ipv4Address, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-neighbor.h: ns3::Time ns3::aodv::Neighbors::GetExpireTime(ns3::Ipv4Address addr) [member function] + cls.add_method('GetExpireTime', + 'ns3::Time', + [param('ns3::Ipv4Address', 'addr')]) + ## aodv-neighbor.h: ns3::Callback ns3::aodv::Neighbors::GetTxErrorCallback() const [member function] + cls.add_method('GetTxErrorCallback', + 'ns3::Callback< void, ns3::WifiMacHeader const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-neighbor.h: bool ns3::aodv::Neighbors::IsNeighbor(ns3::Ipv4Address addr) [member function] + cls.add_method('IsNeighbor', + 'bool', + [param('ns3::Ipv4Address', 'addr')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::Purge() [member function] + cls.add_method('Purge', + 'void', + []) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::ScheduleTimer() [member function] + cls.add_method('ScheduleTimer', + 'void', + []) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::SetCallback(ns3::Callback cb) [member function] + cls.add_method('SetCallback', + 'void', + [param('ns3::Callback< void, ns3::Ipv4Address, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::Update(ns3::Ipv4Address addr, ns3::Time expire) [member function] + cls.add_method('Update', + 'void', + [param('ns3::Ipv4Address', 'addr'), param('ns3::Time', 'expire')]) + return + +def register_Ns3AodvNeighborsNeighbor_methods(root_module, cls): + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::Neighbor(ns3::aodv::Neighbors::Neighbor const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::Neighbors::Neighbor const &', 'arg0')]) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::Neighbor(ns3::Ipv4Address ip, ns3::Mac48Address mac, ns3::Time t) [constructor] + cls.add_constructor([param('ns3::Ipv4Address', 'ip'), param('ns3::Mac48Address', 'mac'), param('ns3::Time', 't')]) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::close [variable] + cls.add_instance_attribute('close', 'bool', is_const=False) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::m_expireTime [variable] + cls.add_instance_attribute('m_expireTime', 'ns3::Time', is_const=False) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::m_hardwareAddress [variable] + cls.add_instance_attribute('m_hardwareAddress', 'ns3::Mac48Address', is_const=False) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::m_neighborAddress [variable] + cls.add_instance_attribute('m_neighborAddress', 'ns3::Ipv4Address', is_const=False) + return + +def register_Ns3AodvQueueEntry_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + ## aodv-rqueue.h: ns3::aodv::QueueEntry::QueueEntry(ns3::aodv::QueueEntry const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::QueueEntry const &', 'arg0')]) + ## aodv-rqueue.h: ns3::aodv::QueueEntry::QueueEntry(ns3::Ptr pa=0, ns3::Ipv4Header const & h=ns3::Ipv4Header(), ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb=ns3::Callback, ns3::Ptr, const ns3::Ipv4Header&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>(), ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb=ns3::Callback, const ns3::Ipv4Header&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>(), ns3::Time exp=ns3::Simulator::Now( )) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::Packet const >', 'pa', default_value='0'), param('ns3::Ipv4Header const &', 'h', default_value='ns3::Ipv4Header()'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb', default_value='ns3::Callback, ns3::Ptr, const ns3::Ipv4Header&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>()'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb', default_value='ns3::Callback, const ns3::Ipv4Header&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>()'), param('ns3::Time', 'exp', default_value='ns3::Simulator::Now( )')]) + ## aodv-rqueue.h: ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::aodv::QueueEntry::GetErrorCallback() const [member function] + cls.add_method('GetErrorCallback', + 'ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Time ns3::aodv::QueueEntry::GetExpireTime() const [member function] + cls.add_method('GetExpireTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Ipv4Header ns3::aodv::QueueEntry::GetIpv4Header() const [member function] + cls.add_method('GetIpv4Header', + 'ns3::Ipv4Header', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Ptr ns3::aodv::QueueEntry::GetPacket() const [member function] + cls.add_method('GetPacket', + 'ns3::Ptr< ns3::Packet const >', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::aodv::QueueEntry::GetUnicastForwardCallback() const [member function] + cls.add_method('GetUnicastForwardCallback', + 'ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetErrorCallback(ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] + cls.add_method('SetErrorCallback', + 'void', + [param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetExpireTime(ns3::Time exp) [member function] + cls.add_method('SetExpireTime', + 'void', + [param('ns3::Time', 'exp')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetIpv4Header(ns3::Ipv4Header h) [member function] + cls.add_method('SetIpv4Header', + 'void', + [param('ns3::Ipv4Header', 'h')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetPacket(ns3::Ptr p) [member function] + cls.add_method('SetPacket', + 'void', + [param('ns3::Ptr< ns3::Packet const >', 'p')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetUnicastForwardCallback(ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb) [member function] + cls.add_method('SetUnicastForwardCallback', + 'void', + [param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb')]) + return + +def register_Ns3AodvRequestQueue_methods(root_module, cls): + ## aodv-rqueue.h: ns3::aodv::RequestQueue::RequestQueue(ns3::aodv::RequestQueue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RequestQueue const &', 'arg0')]) + ## aodv-rqueue.h: ns3::aodv::RequestQueue::RequestQueue(uint32_t maxLen, ns3::Time routeToQueueTimeout) [constructor] + cls.add_constructor([param('uint32_t', 'maxLen'), param('ns3::Time', 'routeToQueueTimeout')]) + ## aodv-rqueue.h: bool ns3::aodv::RequestQueue::Dequeue(ns3::Ipv4Address dst, ns3::aodv::QueueEntry & entry) [member function] + cls.add_method('Dequeue', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('ns3::aodv::QueueEntry &', 'entry')]) + ## aodv-rqueue.h: void ns3::aodv::RequestQueue::DropPacketWithDst(ns3::Ipv4Address dst) [member function] + cls.add_method('DropPacketWithDst', + 'void', + [param('ns3::Ipv4Address', 'dst')]) + ## aodv-rqueue.h: bool ns3::aodv::RequestQueue::Enqueue(ns3::aodv::QueueEntry & entry) [member function] + cls.add_method('Enqueue', + 'bool', + [param('ns3::aodv::QueueEntry &', 'entry')]) + ## aodv-rqueue.h: bool ns3::aodv::RequestQueue::Find(ns3::Ipv4Address dst) [member function] + cls.add_method('Find', + 'bool', + [param('ns3::Ipv4Address', 'dst')]) + ## aodv-rqueue.h: uint32_t ns3::aodv::RequestQueue::GetMaxQueueLen() const [member function] + cls.add_method('GetMaxQueueLen', + 'uint32_t', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Time ns3::aodv::RequestQueue::GetQueueTimeout() const [member function] + cls.add_method('GetQueueTimeout', + 'ns3::Time', + [], + is_const=True) + ## aodv-rqueue.h: uint32_t ns3::aodv::RequestQueue::GetSize() [member function] + cls.add_method('GetSize', + 'uint32_t', + []) + ## aodv-rqueue.h: void ns3::aodv::RequestQueue::SetMaxQueueLen(uint32_t len) [member function] + cls.add_method('SetMaxQueueLen', + 'void', + [param('uint32_t', 'len')]) + ## aodv-rqueue.h: void ns3::aodv::RequestQueue::SetQueueTimeout(ns3::Time t) [member function] + cls.add_method('SetQueueTimeout', + 'void', + [param('ns3::Time', 't')]) + return + +def register_Ns3AodvRerrHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RerrHeader::RerrHeader(ns3::aodv::RerrHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RerrHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RerrHeader::RerrHeader() [constructor] + cls.add_constructor([]) + ## aodv-packet.h: bool ns3::aodv::RerrHeader::AddUnDestination(ns3::Ipv4Address dst, uint32_t seqNo) [member function] + cls.add_method('AddUnDestination', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('uint32_t', 'seqNo')]) + ## aodv-packet.h: void ns3::aodv::RerrHeader::Clear() [member function] + cls.add_method('Clear', + 'void', + []) + ## aodv-packet.h: uint32_t ns3::aodv::RerrHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: uint8_t ns3::aodv::RerrHeader::GetDestCount() const [member function] + cls.add_method('GetDestCount', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RerrHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RerrHeader::GetNoDelete() const [member function] + cls.add_method('GetNoDelete', + 'bool', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RerrHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RerrHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RerrHeader::RemoveUnDestination(std::pair & un) [member function] + cls.add_method('RemoveUnDestination', + 'bool', + [param('std::pair< ns3::Ipv4Address, unsigned int > &', 'un')]) + ## aodv-packet.h: void ns3::aodv::RerrHeader::Serialize(ns3::Buffer::Iterator i) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'i')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RerrHeader::SetNoDelete(bool f) [member function] + cls.add_method('SetNoDelete', + 'void', + [param('bool', 'f')]) + return + +def register_Ns3AodvRoutingProtocol_methods(root_module, cls): + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol::RoutingProtocol(ns3::aodv::RoutingProtocol const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RoutingProtocol const &', 'arg0')]) + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol::RoutingProtocol() [constructor] + cls.add_constructor([]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + is_virtual=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetBroadcastEnable() const [member function] + cls.add_method('GetBroadcastEnable', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetDesinationOnlyFlag() const [member function] + cls.add_method('GetDesinationOnlyFlag', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetGratuitousReplyFlag() const [member function] + cls.add_method('GetGratuitousReplyFlag', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetHelloEnable() const [member function] + cls.add_method('GetHelloEnable', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: static ns3::TypeId ns3::aodv::RoutingProtocol::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('NotifyAddAddress', + 'void', + [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyInterfaceDown(uint32_t interface) [member function] + cls.add_method('NotifyInterfaceDown', + 'void', + [param('uint32_t', 'interface')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyInterfaceUp(uint32_t interface) [member function] + cls.add_method('NotifyInterfaceUp', + 'void', + [param('uint32_t', 'interface')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('NotifyRemoveAddress', + 'void', + [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], + is_virtual=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] + cls.add_method('RouteInput', + 'bool', + [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], + is_virtual=True) + ## aodv-routing-protocol.h: ns3::Ptr ns3::aodv::RoutingProtocol::RouteOutput(ns3::Ptr p, ns3::Ipv4Header const & header, uint32_t oif, ns3::Socket::SocketErrno & sockerr) [member function] + cls.add_method('RouteOutput', + 'ns3::Ptr< ns3::Ipv4Route >', + [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('uint32_t', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetBroadcastEnable(bool f) [member function] + cls.add_method('SetBroadcastEnable', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetDesinationOnlyFlag(bool f) [member function] + cls.add_method('SetDesinationOnlyFlag', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetGratuitousReplyFlag(bool f) [member function] + cls.add_method('SetGratuitousReplyFlag', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetHelloEnable(bool f) [member function] + cls.add_method('SetHelloEnable', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetIpv4(ns3::Ptr ipv4) [member function] + cls.add_method('SetIpv4', + 'void', + [param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')], + is_virtual=True) + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol::AODV_PORT [variable] + cls.add_static_attribute('AODV_PORT', 'uint32_t const', is_const=True) + return + +def register_Ns3AodvRoutingTable_methods(root_module, cls): + ## aodv-rtable.h: ns3::aodv::RoutingTable::RoutingTable(ns3::aodv::RoutingTable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RoutingTable const &', 'arg0')]) + ## aodv-rtable.h: ns3::aodv::RoutingTable::RoutingTable(ns3::Time t) [constructor] + cls.add_constructor([param('ns3::Time', 't')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::AddRoute(ns3::aodv::RoutingTableEntry & r) [member function] + cls.add_method('AddRoute', + 'bool', + [param('ns3::aodv::RoutingTableEntry &', 'r')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::Clear() [member function] + cls.add_method('Clear', + 'void', + []) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::DeleteAllRoutesFromInterface(ns3::Ipv4InterfaceAddress iface) [member function] + cls.add_method('DeleteAllRoutesFromInterface', + 'void', + [param('ns3::Ipv4InterfaceAddress', 'iface')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::DeleteRoute(ns3::Ipv4Address dst) [member function] + cls.add_method('DeleteRoute', + 'bool', + [param('ns3::Ipv4Address', 'dst')]) + ## aodv-rtable.h: ns3::Time ns3::aodv::RoutingTable::GetBadLinkLifetime() const [member function] + cls.add_method('GetBadLinkLifetime', + 'ns3::Time', + [], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::GetListOfDestinationWithNextHop(ns3::Ipv4Address nextHop, std::map, std::allocator > > & unreachable) [member function] + cls.add_method('GetListOfDestinationWithNextHop', + 'void', + [param('ns3::Ipv4Address', 'nextHop'), param('std::map< ns3::Ipv4Address, unsigned int > &', 'unreachable')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::InvalidateRoutesWithDst(std::map, std::allocator > > const & unreachable) [member function] + cls.add_method('InvalidateRoutesWithDst', + 'void', + [param('std::map< ns3::Ipv4Address, unsigned int > const &', 'unreachable')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::LookupRoute(ns3::Ipv4Address dst, ns3::aodv::RoutingTableEntry & rt) [member function] + cls.add_method('LookupRoute', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('ns3::aodv::RoutingTableEntry &', 'rt')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::MarkLinkAsUnidirectional(ns3::Ipv4Address neighbor, ns3::Time blacklistTimeout) [member function] + cls.add_method('MarkLinkAsUnidirectional', + 'bool', + [param('ns3::Ipv4Address', 'neighbor'), param('ns3::Time', 'blacklistTimeout')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::Print(std::ostream & os) [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::Purge() [member function] + cls.add_method('Purge', + 'void', + []) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::SetBadLinkLifetime(ns3::Time t) [member function] + cls.add_method('SetBadLinkLifetime', + 'void', + [param('ns3::Time', 't')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::SetEntryState(ns3::Ipv4Address dst, ns3::aodv::RouteFlags state) [member function] + cls.add_method('SetEntryState', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('ns3::aodv::RouteFlags', 'state')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::Update(ns3::aodv::RoutingTableEntry & rt) [member function] + cls.add_method('Update', + 'bool', + [param('ns3::aodv::RoutingTableEntry &', 'rt')]) + return + +def register_Ns3AodvRoutingTableEntry_methods(root_module, cls): + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry::RoutingTableEntry(ns3::aodv::RoutingTableEntry const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RoutingTableEntry const &', 'arg0')]) + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry::RoutingTableEntry(ns3::Ptr dev=0, ns3::Ipv4Address dst=ns3::Ipv4Address(), bool vSeqNo=false, u_int32_t m_seqNo=0, ns3::Ipv4InterfaceAddress iface=ns3::Ipv4InterfaceAddress(), u_int16_t hops=0, ns3::Ipv4Address nextHop=ns3::Ipv4Address(), ns3::Time lifetime=ns3::Simulator::Now( )) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev', default_value='0'), param('ns3::Ipv4Address', 'dst', default_value='ns3::Ipv4Address()'), param('bool', 'vSeqNo', default_value='false'), param('u_int32_t', 'm_seqNo', default_value='0'), param('ns3::Ipv4InterfaceAddress', 'iface', default_value='ns3::Ipv4InterfaceAddress()'), param('u_int16_t', 'hops', default_value='0'), param('ns3::Ipv4Address', 'nextHop', default_value='ns3::Ipv4Address()'), param('ns3::Time', 'lifetime', default_value='ns3::Simulator::Now( )')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::DeleteAllPrecursors() [member function] + cls.add_method('DeleteAllPrecursors', + 'void', + []) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::DeletePrecursor(ns3::Ipv4Address id) [member function] + cls.add_method('DeletePrecursor', + 'bool', + [param('ns3::Ipv4Address', 'id')]) + ## aodv-rtable.h: ns3::Time ns3::aodv::RoutingTableEntry::GetBlacklistTimeout() const [member function] + cls.add_method('GetBlacklistTimeout', + 'ns3::Time', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ipv4Address ns3::aodv::RoutingTableEntry::GetDestination() const [member function] + cls.add_method('GetDestination', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-rtable.h: ns3::aodv::RouteFlags ns3::aodv::RoutingTableEntry::GetFlag() const [member function] + cls.add_method('GetFlag', + 'ns3::aodv::RouteFlags', + [], + is_const=True) + ## aodv-rtable.h: uint16_t ns3::aodv::RoutingTableEntry::GetHop() const [member function] + cls.add_method('GetHop', + 'uint16_t', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ipv4InterfaceAddress ns3::aodv::RoutingTableEntry::GetInterface() const [member function] + cls.add_method('GetInterface', + 'ns3::Ipv4InterfaceAddress', + [], + is_const=True) + ## aodv-rtable.h: ns3::Time ns3::aodv::RoutingTableEntry::GetLifeTime() const [member function] + cls.add_method('GetLifeTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ipv4Address ns3::aodv::RoutingTableEntry::GetNextHop() const [member function] + cls.add_method('GetNextHop', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ptr ns3::aodv::RoutingTableEntry::GetOutputDevice() const [member function] + cls.add_method('GetOutputDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::GetPrecursors(std::vector > & prec) const [member function] + cls.add_method('GetPrecursors', + 'void', + [param('std::vector< ns3::Ipv4Address > &', 'prec')], + is_const=True) + ## aodv-rtable.h: ns3::Ptr ns3::aodv::RoutingTableEntry::GetRoute() const [member function] + cls.add_method('GetRoute', + 'ns3::Ptr< ns3::Ipv4Route >', + [], + is_const=True) + ## aodv-rtable.h: uint8_t ns3::aodv::RoutingTableEntry::GetRreqCnt() const [member function] + cls.add_method('GetRreqCnt', + 'uint8_t', + [], + is_const=True) + ## aodv-rtable.h: uint32_t ns3::aodv::RoutingTableEntry::GetSeqNo() const [member function] + cls.add_method('GetSeqNo', + 'uint32_t', + [], + is_const=True) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::GetValidSeqNo() const [member function] + cls.add_method('GetValidSeqNo', + 'bool', + [], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::IncrementRreqCnt() [member function] + cls.add_method('IncrementRreqCnt', + 'void', + []) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::InsertPrecursor(ns3::Ipv4Address id) [member function] + cls.add_method('InsertPrecursor', + 'bool', + [param('ns3::Ipv4Address', 'id')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::Invalidate(ns3::Time badLinkLifetime) [member function] + cls.add_method('Invalidate', + 'void', + [param('ns3::Time', 'badLinkLifetime')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::IsPrecursorListEmpty() const [member function] + cls.add_method('IsPrecursorListEmpty', + 'bool', + [], + is_const=True) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::IsUnidirectional() const [member function] + cls.add_method('IsUnidirectional', + 'bool', + [], + is_const=True) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::LookupPrecursor(ns3::Ipv4Address id) [member function] + cls.add_method('LookupPrecursor', + 'bool', + [param('ns3::Ipv4Address', 'id')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetBalcklistTimeout(ns3::Time t) [member function] + cls.add_method('SetBalcklistTimeout', + 'void', + [param('ns3::Time', 't')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetFlag(ns3::aodv::RouteFlags flag) [member function] + cls.add_method('SetFlag', + 'void', + [param('ns3::aodv::RouteFlags', 'flag')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetHop(uint16_t hop) [member function] + cls.add_method('SetHop', + 'void', + [param('uint16_t', 'hop')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetInterface(ns3::Ipv4InterfaceAddress iface) [member function] + cls.add_method('SetInterface', + 'void', + [param('ns3::Ipv4InterfaceAddress', 'iface')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetLifeTime(ns3::Time lt) [member function] + cls.add_method('SetLifeTime', + 'void', + [param('ns3::Time', 'lt')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetNextHop(ns3::Ipv4Address nextHop) [member function] + cls.add_method('SetNextHop', + 'void', + [param('ns3::Ipv4Address', 'nextHop')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetOutputDevice(ns3::Ptr dev) [member function] + cls.add_method('SetOutputDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'dev')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetRoute(ns3::Ptr r) [member function] + cls.add_method('SetRoute', + 'void', + [param('ns3::Ptr< ns3::Ipv4Route >', 'r')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetRreqCnt(uint8_t n) [member function] + cls.add_method('SetRreqCnt', + 'void', + [param('uint8_t', 'n')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetSeqNo(uint32_t sn) [member function] + cls.add_method('SetSeqNo', + 'void', + [param('uint32_t', 'sn')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetUnidirectional(bool u) [member function] + cls.add_method('SetUnidirectional', + 'void', + [param('bool', 'u')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetValidSeqNo(bool s) [member function] + cls.add_method('SetValidSeqNo', + 'void', + [param('bool', 's')]) + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry::m_ackTimer [variable] + cls.add_instance_attribute('m_ackTimer', 'ns3::Timer', is_const=False) + return + +def register_Ns3AodvRrepAckHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RrepAckHeader::RrepAckHeader(ns3::aodv::RrepAckHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RrepAckHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RrepAckHeader::RrepAckHeader() [constructor] + cls.add_constructor([]) + ## aodv-packet.h: uint32_t ns3::aodv::RrepAckHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RrepAckHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: uint32_t ns3::aodv::RrepAckHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepAckHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepAckHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + return + +def register_Ns3AodvRrepHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RrepHeader::RrepHeader(ns3::aodv::RrepHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RrepHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RrepHeader::RrepHeader(uint8_t prefixSize=0, uint8_t hopCount=0, ns3::Ipv4Address dst=ns3::Ipv4Address(), uint32_t dstSeqNo=0, ns3::Ipv4Address origin=ns3::Ipv4Address(), ns3::Time lifetime=ns3::MilliSeconds( )) [constructor] + cls.add_constructor([param('uint8_t', 'prefixSize', default_value='0'), param('uint8_t', 'hopCount', default_value='0'), param('ns3::Ipv4Address', 'dst', default_value='ns3::Ipv4Address()'), param('uint32_t', 'dstSeqNo', default_value='0'), param('ns3::Ipv4Address', 'origin', default_value='ns3::Ipv4Address()'), param('ns3::Time', 'lifetime', default_value='ns3::MilliSeconds(0)')]) + ## aodv-packet.h: uint32_t ns3::aodv::RrepHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RrepHeader::GetAckRequired() const [member function] + cls.add_method('GetAckRequired', + 'bool', + [], + is_const=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RrepHeader::GetDst() const [member function] + cls.add_method('GetDst', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RrepHeader::GetDstSeqno() const [member function] + cls.add_method('GetDstSeqno', + 'uint32_t', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RrepHeader::GetHopCount() const [member function] + cls.add_method('GetHopCount', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RrepHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: ns3::Time ns3::aodv::RrepHeader::GetLifeTime() const [member function] + cls.add_method('GetLifeTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RrepHeader::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RrepHeader::GetPrefixSize() const [member function] + cls.add_method('GetPrefixSize', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RrepHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetAckRequired(bool f) [member function] + cls.add_method('SetAckRequired', + 'void', + [param('bool', 'f')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetDst(ns3::Ipv4Address a) [member function] + cls.add_method('SetDst', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetDstSeqno(uint32_t s) [member function] + cls.add_method('SetDstSeqno', + 'void', + [param('uint32_t', 's')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetHello(ns3::Ipv4Address src, uint32_t srcSeqNo, ns3::Time lifetime) [member function] + cls.add_method('SetHello', + 'void', + [param('ns3::Ipv4Address', 'src'), param('uint32_t', 'srcSeqNo'), param('ns3::Time', 'lifetime')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetHopCount(uint8_t count) [member function] + cls.add_method('SetHopCount', + 'void', + [param('uint8_t', 'count')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetLifeTime(ns3::Time t) [member function] + cls.add_method('SetLifeTime', + 'void', + [param('ns3::Time', 't')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetOrigin(ns3::Ipv4Address a) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetPrefixSize(uint8_t sz) [member function] + cls.add_method('SetPrefixSize', + 'void', + [param('uint8_t', 'sz')]) + return + +def register_Ns3AodvRreqHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RreqHeader::RreqHeader(ns3::aodv::RreqHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RreqHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RreqHeader::RreqHeader(uint8_t flags=0, uint8_t reserved=0, uint8_t hopCount=0, uint32_t requestID=0, ns3::Ipv4Address dst=ns3::Ipv4Address(), uint32_t dstSeqNo=0, ns3::Ipv4Address origin=ns3::Ipv4Address(), uint32_t originSeqNo=0) [constructor] + cls.add_constructor([param('uint8_t', 'flags', default_value='0'), param('uint8_t', 'reserved', default_value='0'), param('uint8_t', 'hopCount', default_value='0'), param('uint32_t', 'requestID', default_value='0'), param('ns3::Ipv4Address', 'dst', default_value='ns3::Ipv4Address()'), param('uint32_t', 'dstSeqNo', default_value='0'), param('ns3::Ipv4Address', 'origin', default_value='ns3::Ipv4Address()'), param('uint32_t', 'originSeqNo', default_value='0')]) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RreqHeader::GetDestinationOnly() const [member function] + cls.add_method('GetDestinationOnly', + 'bool', + [], + is_const=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RreqHeader::GetDst() const [member function] + cls.add_method('GetDst', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::GetDstSeqno() const [member function] + cls.add_method('GetDstSeqno', + 'uint32_t', + [], + is_const=True) + ## aodv-packet.h: bool ns3::aodv::RreqHeader::GetGratiousRrep() const [member function] + cls.add_method('GetGratiousRrep', + 'bool', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RreqHeader::GetHopCount() const [member function] + cls.add_method('GetHopCount', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RreqHeader::GetId() const [member function] + cls.add_method('GetId', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RreqHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RreqHeader::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::GetOriginSeqno() const [member function] + cls.add_method('GetOriginSeqno', + 'uint32_t', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RreqHeader::GetUnknownSeqno() const [member function] + cls.add_method('GetUnknownSeqno', + 'bool', + [], + is_const=True) + ## aodv-packet.h: void ns3::aodv::RreqHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RreqHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetDestinationOnly(bool f) [member function] + cls.add_method('SetDestinationOnly', + 'void', + [param('bool', 'f')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetDst(ns3::Ipv4Address a) [member function] + cls.add_method('SetDst', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetDstSeqno(uint32_t s) [member function] + cls.add_method('SetDstSeqno', + 'void', + [param('uint32_t', 's')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetGratiousRrep(bool f) [member function] + cls.add_method('SetGratiousRrep', + 'void', + [param('bool', 'f')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetHopCount(uint8_t count) [member function] + cls.add_method('SetHopCount', + 'void', + [param('uint8_t', 'count')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetId(uint32_t id) [member function] + cls.add_method('SetId', + 'void', + [param('uint32_t', 'id')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetOrigin(ns3::Ipv4Address a) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetOriginSeqno(uint32_t s) [member function] + cls.add_method('SetOriginSeqno', + 'void', + [param('uint32_t', 's')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetUnknownSeqno(bool f) [member function] + cls.add_method('SetUnknownSeqno', + 'void', + [param('bool', 'f')]) + return + +def register_Ns3AodvTypeHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::TypeHeader::TypeHeader(ns3::aodv::TypeHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::TypeHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::TypeHeader::TypeHeader(ns3::aodv::MessageType t) [constructor] + cls.add_constructor([param('ns3::aodv::MessageType', 't')]) + ## aodv-packet.h: uint32_t ns3::aodv::TypeHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: ns3::aodv::MessageType ns3::aodv::TypeHeader::Get() const [member function] + cls.add_method('Get', + 'ns3::aodv::MessageType', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::TypeHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: uint32_t ns3::aodv::TypeHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::TypeHeader::IsValid() const [member function] + cls.add_method('IsValid', + 'bool', + [], + is_const=True) + ## aodv-packet.h: void ns3::aodv::TypeHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::TypeHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + return + +def register_functions(root_module): + module = root_module + register_functions_ns3_Config(module.get_submodule('Config'), root_module) + register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) + register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) + register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) + register_functions_ns3_flame(module.get_submodule('flame'), root_module) + register_functions_ns3_internal(module.get_submodule('internal'), root_module) + register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) + return + +def register_functions_ns3_Config(module, root_module): + return + +def register_functions_ns3_TimeStepPrecision(module, root_module): + return + +def register_functions_ns3_addressUtils(module, root_module): + return + +def register_functions_ns3_aodv(module, root_module): + return + +def register_functions_ns3_dot11s(module, root_module): + return + +def register_functions_ns3_flame(module, root_module): + return + +def register_functions_ns3_internal(module, root_module): + return + +def register_functions_ns3_olsr(module, root_module): + return + diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_bridge.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_bridge.py index 76c1401b9..1ac071aff 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_bridge.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_bridge.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -290,6 +300,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -305,6 +316,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py index 2d1c570f5..7268b5c5f 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py @@ -21,8 +21,6 @@ def register_types(module): module.add_class('Item', outer_class=root_module['ns3::ByteTagList::Iterator']) ## data-rate.h: ns3::DataRate [class] module.add_class('DataRate') - ## packet.h: ns3::Packet [class] - module.add_class('Packet', memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## packet-metadata.h: ns3::PacketMetadata [class] module.add_class('PacketMetadata') ## packet-metadata.h: ns3::PacketMetadata::Item [struct] @@ -45,28 +43,34 @@ def register_types(module): module.add_class('Tag', parent=root_module['ns3::ObjectBase']) ## tag-buffer.h: ns3::TagBuffer [class] module.add_class('TagBuffer') - ## ascii-writer.h: ns3::AsciiWriter [class] - module.add_class('AsciiWriter', parent=root_module['ns3::RefCountBase']) - ## ascii-writer.h: ns3::AsciiWriter::Type [enumeration] - module.add_enum('Type', ['ENQUEUE', 'DEQUEUE', 'DROP', 'TX', 'RX'], outer_class=root_module['ns3::AsciiWriter']) ## chunk.h: ns3::Chunk [class] module.add_class('Chunk', parent=root_module['ns3::ObjectBase']) - ## data-rate.h: ns3::DataRateChecker [class] - module.add_class('DataRateChecker', parent=root_module['ns3::AttributeChecker']) - ## data-rate.h: ns3::DataRateValue [class] - module.add_class('DataRateValue', parent=root_module['ns3::AttributeValue']) ## header.h: ns3::Header [class] module.add_class('Header', parent=root_module['ns3::Chunk']) ## pcap-writer.h: ns3::PcapWriter [class] module.add_class('PcapWriter', parent=root_module['ns3::Object']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AsciiWriter', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Packet', 'ns3::empty'], parent=root_module['ns3::empty']) ## trailer.h: ns3::Trailer [class] module.add_class('Trailer', parent=root_module['ns3::Chunk']) + ## ascii-writer.h: ns3::AsciiWriter [class] + module.add_class('AsciiWriter', parent=root_module['ns3::SimpleRefCount< ns3::AsciiWriter, ns3::empty >']) + ## ascii-writer.h: ns3::AsciiWriter::Type [enumeration] + module.add_enum('Type', ['ENQUEUE', 'DEQUEUE', 'DROP', 'TX', 'RX'], outer_class=root_module['ns3::AsciiWriter']) + ## data-rate.h: ns3::DataRateChecker [class] + module.add_class('DataRateChecker', parent=root_module['ns3::AttributeChecker']) + ## data-rate.h: ns3::DataRateValue [class] + module.add_class('DataRateValue', parent=root_module['ns3::AttributeValue']) ## error-model.h: ns3::ErrorModel [class] module.add_class('ErrorModel', parent=root_module['ns3::Object']) ## error-model.h: ns3::ListErrorModel [class] module.add_class('ListErrorModel', parent=root_module['ns3::ErrorModel']) ## nix-vector.h: ns3::NixVector [class] module.add_class('NixVector', parent=root_module['ns3::Object']) + ## packet.h: ns3::Packet [class] + module.add_class('Packet', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## error-model.h: ns3::RateErrorModel [class] module.add_class('RateErrorModel', parent=root_module['ns3::ErrorModel']) @@ -88,6 +92,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -124,6 +134,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -149,7 +163,6 @@ def register_methods(root_module): register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator']) register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item']) register_Ns3DataRate_methods(root_module, root_module['ns3::DataRate']) - register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) 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']) @@ -160,16 +173,17 @@ def register_methods(root_module): register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) - register_Ns3AsciiWriter_methods(root_module, root_module['ns3::AsciiWriter']) register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk']) - register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker']) - register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue']) register_Ns3Header_methods(root_module, root_module['ns3::Header']) register_Ns3PcapWriter_methods(root_module, root_module['ns3::PcapWriter']) register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) + register_Ns3AsciiWriter_methods(root_module, root_module['ns3::AsciiWriter']) + register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker']) + register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue']) register_Ns3ErrorModel_methods(root_module, root_module['ns3::ErrorModel']) register_Ns3ListErrorModel_methods(root_module, root_module['ns3::ListErrorModel']) register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector']) + register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) register_Ns3RateErrorModel_methods(root_module, root_module['ns3::RateErrorModel']) return @@ -529,184 +543,6 @@ def register_Ns3DataRate_methods(root_module, cls): is_const=True) return -def register_Ns3Packet_methods(root_module, cls): - cls.add_output_stream_operator() - ## packet.h: ns3::Packet::Packet() [constructor] - cls.add_constructor([]) - ## packet.h: ns3::Packet::Packet(ns3::Packet const & o) [copy constructor] - cls.add_constructor([param('ns3::Packet const &', 'o')]) - ## packet.h: ns3::Packet::Packet(uint32_t size) [constructor] - cls.add_constructor([param('uint32_t', 'size')]) - ## packet.h: 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: void ns3::Packet::AddAtEnd(ns3::Ptr packet) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::Ptr< ns3::Packet const >', 'packet')]) - ## packet.h: 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: void ns3::Packet::AddHeader(ns3::Header const & header) [member function] - cls.add_method('AddHeader', - 'void', - [param('ns3::Header const &', 'header')]) - ## packet.h: 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: void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function] - cls.add_method('AddPaddingAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h: void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function] - cls.add_method('AddTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer')]) - ## packet.h: ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function] - cls.add_method('BeginItem', - 'ns3::PacketMetadata::ItemIterator', - [], - is_const=True) - ## packet.h: ns3::Ptr ns3::Packet::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::Packet >', - [], - is_const=True) - ## packet.h: 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: 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: 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: void ns3::Packet::Deserialize(ns3::Buffer buffer) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer', 'buffer')]) - ## packet.h: static void ns3::Packet::EnableChecking() [member function] - cls.add_method('EnableChecking', - 'void', - [], - is_static=True) - ## packet.h: static void ns3::Packet::EnablePrinting() [member function] - cls.add_method('EnablePrinting', - 'void', - [], - is_static=True) - ## packet.h: bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function] - cls.add_method('FindFirstMatchingByteTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h: ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function] - cls.add_method('GetByteTagIterator', - 'ns3::ByteTagIterator', - [], - is_const=True) - ## packet.h: ns3::Ptr ns3::Packet::GetNixVector() const [member function] - cls.add_method('GetNixVector', - 'ns3::Ptr< ns3::NixVector >', - [], - is_const=True) - ## packet.h: ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function] - cls.add_method('GetPacketTagIterator', - 'ns3::PacketTagIterator', - [], - is_const=True) - ## packet.h: uint32_t ns3::Packet::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## packet.h: uint32_t ns3::Packet::GetUid() const [member function] - cls.add_method('GetUid', - 'uint32_t', - [], - is_const=True) - ## packet.h: uint8_t const * ns3::Packet::PeekData() const [member function] - cls.add_method('PeekData', - 'uint8_t const *', - [], - is_const=True) - ## packet.h: 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: bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function] - cls.add_method('PeekPacketTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h: uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('PeekTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h: void ns3::Packet::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h: void ns3::Packet::PrintByteTags(std::ostream & os) const [member function] - cls.add_method('PrintByteTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h: void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function] - cls.add_method('PrintPacketTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h: void ns3::Packet::RemoveAllByteTags() [member function] - cls.add_method('RemoveAllByteTags', - 'void', - []) - ## packet.h: void ns3::Packet::RemoveAllPacketTags() [member function] - cls.add_method('RemoveAllPacketTags', - 'void', - []) - ## packet.h: void ns3::Packet::RemoveAtEnd(uint32_t size) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h: void ns3::Packet::RemoveAtStart(uint32_t size) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'size')]) - ## packet.h: uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function] - cls.add_method('RemoveHeader', - 'uint32_t', - [param('ns3::Header &', 'header')]) - ## packet.h: bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function] - cls.add_method('RemovePacketTag', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet.h: uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('RemoveTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h: ns3::Buffer ns3::Packet::Serialize() const [member function] - cls.add_method('Serialize', - 'ns3::Buffer', - [], - is_const=True) - ## packet.h: void ns3::Packet::SetNixVector(ns3::Ptr arg0) [member function] - cls.add_method('SetNixVector', - 'void', - [param('ns3::Ptr< ns3::NixVector >', 'arg0')]) - return - def register_Ns3PacketMetadata_methods(root_module, cls): ## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(uint32_t uid, uint32_t size) [constructor] cls.add_constructor([param('uint32_t', 'uid'), param('uint32_t', 'size')]) @@ -1057,20 +893,6 @@ def register_Ns3TagBuffer_methods(root_module, cls): [param('uint8_t', 'v')]) return -def register_Ns3AsciiWriter_methods(root_module, cls): - ## ascii-writer.h: ns3::AsciiWriter::AsciiWriter(ns3::AsciiWriter const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AsciiWriter const &', 'arg0')]) - ## ascii-writer.h: static ns3::Ptr ns3::AsciiWriter::Get(std::ostream & os) [member function] - cls.add_method('Get', - 'ns3::Ptr< ns3::AsciiWriter >', - [param('std::ostream &', 'os')], - is_static=True) - ## ascii-writer.h: void ns3::AsciiWriter::WritePacket(ns3::AsciiWriter::Type type, std::string message, ns3::Ptr p) [member function] - cls.add_method('WritePacket', - 'void', - [param('ns3::AsciiWriter::Type', 'type'), param('std::string', 'message'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - return - def register_Ns3Chunk_methods(root_module, cls): ## chunk.h: ns3::Chunk::Chunk() [constructor] cls.add_constructor([]) @@ -1093,46 +915,6 @@ def register_Ns3Chunk_methods(root_module, cls): is_pure_virtual=True, is_const=True, is_virtual=True) return -def register_Ns3DataRateChecker_methods(root_module, cls): - ## data-rate.h: ns3::DataRateChecker::DataRateChecker() [constructor] - cls.add_constructor([]) - ## data-rate.h: 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: ns3::DataRateValue::DataRateValue() [constructor] - cls.add_constructor([]) - ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')]) - ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor] - cls.add_constructor([param('ns3::DataRate const &', 'value')]) - ## data-rate.h: 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: 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: ns3::DataRate ns3::DataRateValue::Get() const [member function] - cls.add_method('Get', - 'ns3::DataRate', - [], - is_const=True) - ## data-rate.h: 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: void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::DataRate const &', 'value')]) - return - def register_Ns3Header_methods(root_module, cls): cls.add_output_stream_operator() ## header.h: ns3::Header::Header() [constructor] @@ -1251,6 +1033,60 @@ def register_Ns3Trailer_methods(root_module, cls): is_pure_virtual=True, is_const=True, is_virtual=True) return +def register_Ns3AsciiWriter_methods(root_module, cls): + ## ascii-writer.h: ns3::AsciiWriter::AsciiWriter(ns3::AsciiWriter const & arg0) [copy constructor] + cls.add_constructor([param('ns3::AsciiWriter const &', 'arg0')]) + ## ascii-writer.h: static ns3::Ptr ns3::AsciiWriter::Get(std::ostream & os) [member function] + cls.add_method('Get', + 'ns3::Ptr< ns3::AsciiWriter >', + [param('std::ostream &', 'os')], + is_static=True) + ## ascii-writer.h: void ns3::AsciiWriter::WritePacket(ns3::AsciiWriter::Type type, std::string message, ns3::Ptr p) [member function] + cls.add_method('WritePacket', + 'void', + [param('ns3::AsciiWriter::Type', 'type'), param('std::string', 'message'), param('ns3::Ptr< ns3::Packet const >', 'p')]) + return + +def register_Ns3DataRateChecker_methods(root_module, cls): + ## data-rate.h: ns3::DataRateChecker::DataRateChecker() [constructor] + cls.add_constructor([]) + ## data-rate.h: 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: ns3::DataRateValue::DataRateValue() [constructor] + cls.add_constructor([]) + ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')]) + ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor] + cls.add_constructor([param('ns3::DataRate const &', 'value')]) + ## data-rate.h: 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: 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: ns3::DataRate ns3::DataRateValue::Get() const [member function] + cls.add_method('Get', + 'ns3::DataRate', + [], + is_const=True) + ## data-rate.h: 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: void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::DataRate const &', 'value')]) + return + def register_Ns3ErrorModel_methods(root_module, cls): ## error-model.h: ns3::ErrorModel::ErrorModel(ns3::ErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::ErrorModel const &', 'arg0')]) @@ -1379,6 +1215,184 @@ def register_Ns3NixVector_methods(root_module, cls): is_const=True) return +def register_Ns3Packet_methods(root_module, cls): + cls.add_output_stream_operator() + ## packet.h: ns3::Packet::Packet() [constructor] + cls.add_constructor([]) + ## packet.h: ns3::Packet::Packet(ns3::Packet const & o) [copy constructor] + cls.add_constructor([param('ns3::Packet const &', 'o')]) + ## packet.h: ns3::Packet::Packet(uint32_t size) [constructor] + cls.add_constructor([param('uint32_t', 'size')]) + ## packet.h: 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: void ns3::Packet::AddAtEnd(ns3::Ptr packet) [member function] + cls.add_method('AddAtEnd', + 'void', + [param('ns3::Ptr< ns3::Packet const >', 'packet')]) + ## packet.h: 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: void ns3::Packet::AddHeader(ns3::Header const & header) [member function] + cls.add_method('AddHeader', + 'void', + [param('ns3::Header const &', 'header')]) + ## packet.h: 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: void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function] + cls.add_method('AddPaddingAtEnd', + 'void', + [param('uint32_t', 'size')]) + ## packet.h: void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function] + cls.add_method('AddTrailer', + 'void', + [param('ns3::Trailer const &', 'trailer')]) + ## packet.h: ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function] + cls.add_method('BeginItem', + 'ns3::PacketMetadata::ItemIterator', + [], + is_const=True) + ## packet.h: ns3::Ptr ns3::Packet::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::Packet >', + [], + is_const=True) + ## packet.h: 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: 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: 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: void ns3::Packet::Deserialize(ns3::Buffer buffer) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer', 'buffer')]) + ## packet.h: static void ns3::Packet::EnableChecking() [member function] + cls.add_method('EnableChecking', + 'void', + [], + is_static=True) + ## packet.h: static void ns3::Packet::EnablePrinting() [member function] + cls.add_method('EnablePrinting', + 'void', + [], + is_static=True) + ## packet.h: bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function] + cls.add_method('FindFirstMatchingByteTag', + 'bool', + [param('ns3::Tag &', 'tag')], + is_const=True) + ## packet.h: ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function] + cls.add_method('GetByteTagIterator', + 'ns3::ByteTagIterator', + [], + is_const=True) + ## packet.h: ns3::Ptr ns3::Packet::GetNixVector() const [member function] + cls.add_method('GetNixVector', + 'ns3::Ptr< ns3::NixVector >', + [], + is_const=True) + ## packet.h: ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function] + cls.add_method('GetPacketTagIterator', + 'ns3::PacketTagIterator', + [], + is_const=True) + ## packet.h: uint32_t ns3::Packet::GetSize() const [member function] + cls.add_method('GetSize', + 'uint32_t', + [], + is_const=True) + ## packet.h: uint32_t ns3::Packet::GetUid() const [member function] + cls.add_method('GetUid', + 'uint32_t', + [], + is_const=True) + ## packet.h: uint8_t const * ns3::Packet::PeekData() const [member function] + cls.add_method('PeekData', + 'uint8_t const *', + [], + deprecated=True, is_const=True) + ## packet.h: 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: bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function] + cls.add_method('PeekPacketTag', + 'bool', + [param('ns3::Tag &', 'tag')], + is_const=True) + ## packet.h: uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function] + cls.add_method('PeekTrailer', + 'uint32_t', + [param('ns3::Trailer &', 'trailer')]) + ## packet.h: void ns3::Packet::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packet.h: void ns3::Packet::PrintByteTags(std::ostream & os) const [member function] + cls.add_method('PrintByteTags', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packet.h: void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function] + cls.add_method('PrintPacketTags', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packet.h: void ns3::Packet::RemoveAllByteTags() [member function] + cls.add_method('RemoveAllByteTags', + 'void', + []) + ## packet.h: void ns3::Packet::RemoveAllPacketTags() [member function] + cls.add_method('RemoveAllPacketTags', + 'void', + []) + ## packet.h: void ns3::Packet::RemoveAtEnd(uint32_t size) [member function] + cls.add_method('RemoveAtEnd', + 'void', + [param('uint32_t', 'size')]) + ## packet.h: void ns3::Packet::RemoveAtStart(uint32_t size) [member function] + cls.add_method('RemoveAtStart', + 'void', + [param('uint32_t', 'size')]) + ## packet.h: uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function] + cls.add_method('RemoveHeader', + 'uint32_t', + [param('ns3::Header &', 'header')]) + ## packet.h: bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function] + cls.add_method('RemovePacketTag', + 'bool', + [param('ns3::Tag &', 'tag')]) + ## packet.h: uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function] + cls.add_method('RemoveTrailer', + 'uint32_t', + [param('ns3::Trailer &', 'trailer')]) + ## packet.h: ns3::Buffer ns3::Packet::Serialize() const [member function] + cls.add_method('Serialize', + 'ns3::Buffer', + [], + is_const=True) + ## packet.h: void ns3::Packet::SetNixVector(ns3::Ptr arg0) [member function] + cls.add_method('SetNixVector', + 'void', + [param('ns3::Ptr< ns3::NixVector >', 'arg0')]) + return + def register_Ns3RateErrorModel_methods(root_module, cls): ## error-model.h: ns3::RateErrorModel::RateErrorModel(ns3::RateErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::RateErrorModel const &', 'arg0')]) @@ -1447,6 +1461,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1462,6 +1477,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_contrib.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_contrib.py index e953c1869..a859cc20c 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_contrib.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_contrib.py @@ -58,6 +58,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -94,6 +100,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -501,6 +511,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -516,6 +527,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py index ce5c5d700..353d404e4 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py @@ -4,13 +4,11 @@ def register_types(module): root_module = module.get_root() ## log.h: ns3::LogLevel [enumeration] - module.add_enum('LogLevel', ['LOG_NONE', 'LOG_ERROR', 'LOG_LEVEL_ERROR', 'LOG_WARN', 'LOG_LEVEL_WARN', 'LOG_DEBUG', 'LOG_LEVEL_DEBUG', 'LOG_INFO', 'LOG_LEVEL_INFO', 'LOG_FUNCTION', 'LOG_LEVEL_FUNCTION', 'LOG_LOGIC', 'LOG_LEVEL_LOGIC', 'LOG_ALL', 'LOG_LEVEL_ALL', 'LOG_PREFIX_FUNC', 'LOG_PREFIX_TIME']) + module.add_enum('LogLevel', ['LOG_NONE', 'LOG_ERROR', 'LOG_LEVEL_ERROR', 'LOG_WARN', 'LOG_LEVEL_WARN', 'LOG_DEBUG', 'LOG_LEVEL_DEBUG', 'LOG_INFO', 'LOG_LEVEL_INFO', 'LOG_FUNCTION', 'LOG_LEVEL_FUNCTION', 'LOG_LOGIC', 'LOG_LEVEL_LOGIC', 'LOG_ALL', 'LOG_LEVEL_ALL', 'LOG_PREFIX_FUNC', 'LOG_PREFIX_TIME', 'LOG_PREFIX_NODE']) ## attribute-list.h: ns3::AttributeList [class] module.add_class('AttributeList') ## callback.h: ns3::CallbackBase [class] module.add_class('CallbackBase') - ## callback.h: ns3::CallbackImplBase [class] - module.add_class('CallbackImplBase', allow_subclassing=True, memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## command-line.h: ns3::CommandLine [class] module.add_class('CommandLine', allow_subclassing=True) ## system-mutex.h: ns3::CriticalSection [class] @@ -55,8 +53,6 @@ def register_types(module): module.add_class('ObjectRefCount', template_parameters=['ns3::Object', 'ns3::ObjectBase'], parent=root_module['ns3::ObjectBase']) ## random-variable.h: ns3::RandomVariable [class] module.add_class('RandomVariable') - ## ref-count-base.h: ns3::RefCountBase [class] - module.add_class('RefCountBase', automatic_type_narrowing=True, memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## rng-stream.h: ns3::RngStream [class] module.add_class('RngStream') ## random-variable.h: ns3::SeedManager [class] @@ -67,8 +63,6 @@ def register_types(module): module.add_class('SystemCondition') ## system-mutex.h: ns3::SystemMutex [class] module.add_class('SystemMutex') - ## system-thread.h: ns3::SystemThread [class] - module.add_class('SystemThread') ## system-wall-clock-ms.h: ns3::SystemWallClockMs [class] module.add_class('SystemWallClockMs') ## test.h: ns3::TestCase [class] @@ -79,8 +73,6 @@ def register_types(module): module.add_class('TestSuite', allow_subclassing=True) ## test.h: ns3::TestSuite::TestType [enumeration] module.add_enum('TestType', ['BVT', 'UNIT', 'SYSTEM', 'EXAMPLE', 'PERFORMANCE'], outer_class=root_module['ns3::TestSuite']) - ## trace-source-accessor.h: ns3::TraceSourceAccessor [class] - module.add_class('TraceSourceAccessor', allow_subclassing=True) ## random-variable.h: ns3::TriangularVariable [class] module.add_class('TriangularVariable', parent=root_module['ns3::RandomVariable']) ## type-id.h: ns3::TypeId [class] @@ -103,34 +95,12 @@ def register_types(module): module.add_class('ZipfVariable', parent=root_module['ns3::RandomVariable']) ## empty.h: ns3::empty [class] module.add_class('empty') - ## attribute.h: ns3::AttributeAccessor [class] - module.add_class('AttributeAccessor', parent=root_module['ns3::RefCountBase']) - ## attribute.h: ns3::AttributeChecker [class] - module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::RefCountBase']) - ## attribute.h: ns3::AttributeValue [class] - module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::RefCountBase']) - ## boolean.h: ns3::BooleanChecker [class] - module.add_class('BooleanChecker', parent=root_module['ns3::AttributeChecker']) - ## boolean.h: ns3::BooleanValue [class] - module.add_class('BooleanValue', parent=root_module['ns3::AttributeValue']) - ## callback.h: ns3::CallbackChecker [class] - module.add_class('CallbackChecker', parent=root_module['ns3::AttributeChecker']) - ## callback.h: ns3::CallbackValue [class] - module.add_class('CallbackValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::ConstantVariable [class] module.add_class('ConstantVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::DeterministicVariable [class] module.add_class('DeterministicVariable', parent=root_module['ns3::RandomVariable']) - ## double.h: ns3::DoubleValue [class] - module.add_class('DoubleValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::EmpiricalVariable [class] module.add_class('EmpiricalVariable', parent=root_module['ns3::RandomVariable']) - ## attribute.h: ns3::EmptyAttributeValue [class] - module.add_class('EmptyAttributeValue', parent=root_module['ns3::AttributeValue']) - ## enum.h: ns3::EnumChecker [class] - module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker']) - ## enum.h: ns3::EnumValue [class] - module.add_class('EnumValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::ErlangVariable [class] module.add_class('ErlangVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::ExponentialVariable [class] @@ -139,8 +109,6 @@ def register_types(module): module.add_class('GammaVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::IntEmpiricalVariable [class] module.add_class('IntEmpiricalVariable', parent=root_module['ns3::EmpiricalVariable']) - ## integer.h: ns3::IntegerValue [class] - module.add_class('IntegerValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::LogNormalVariable [class] module.add_class('LogNormalVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::NormalVariable [class] @@ -149,6 +117,52 @@ def register_types(module): module.add_class('Object', automatic_type_narrowing=True, parent=root_module['ns3::ObjectRefCount< ns3::Object, ns3::ObjectBase >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## object.h: ns3::Object::AggregateIterator [class] module.add_class('AggregateIterator', outer_class=root_module['ns3::Object']) + ## random-variable.h: ns3::ParetoVariable [class] + module.add_class('ParetoVariable', parent=root_module['ns3::RandomVariable']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AttributeAccessor', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AttributeChecker', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AttributeValue', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::CallbackImplBase', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::RefCountBase', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::SystemThread', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty'], parent=root_module['ns3::empty']) + ## system-thread.h: ns3::SystemThread [class] + module.add_class('SystemThread', parent=root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty >']) + ## trace-source-accessor.h: ns3::TraceSourceAccessor [class] + module.add_class('TraceSourceAccessor', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty >']) + ## attribute.h: ns3::AttributeAccessor [class] + module.add_class('AttributeAccessor', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty >']) + ## attribute.h: ns3::AttributeChecker [class] + module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty >']) + ## attribute.h: ns3::AttributeValue [class] + module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty >']) + ## boolean.h: ns3::BooleanChecker [class] + module.add_class('BooleanChecker', parent=root_module['ns3::AttributeChecker']) + ## boolean.h: ns3::BooleanValue [class] + module.add_class('BooleanValue', parent=root_module['ns3::AttributeValue']) + ## callback.h: ns3::CallbackChecker [class] + module.add_class('CallbackChecker', parent=root_module['ns3::AttributeChecker']) + ## callback.h: ns3::CallbackImplBase [class] + module.add_class('CallbackImplBase', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) + ## callback.h: ns3::CallbackValue [class] + module.add_class('CallbackValue', parent=root_module['ns3::AttributeValue']) + ## double.h: ns3::DoubleValue [class] + module.add_class('DoubleValue', parent=root_module['ns3::AttributeValue']) + ## attribute.h: ns3::EmptyAttributeValue [class] + module.add_class('EmptyAttributeValue', parent=root_module['ns3::AttributeValue']) + ## enum.h: ns3::EnumChecker [class] + module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker']) + ## enum.h: ns3::EnumValue [class] + module.add_class('EnumValue', parent=root_module['ns3::AttributeValue']) + ## integer.h: ns3::IntegerValue [class] + module.add_class('IntegerValue', parent=root_module['ns3::AttributeValue']) ## object-factory.h: ns3::ObjectFactoryChecker [class] module.add_class('ObjectFactoryChecker', parent=root_module['ns3::AttributeChecker']) ## object-factory.h: ns3::ObjectFactoryValue [class] @@ -159,8 +173,6 @@ def register_types(module): module.add_class('ObjectVectorChecker', parent=root_module['ns3::AttributeChecker']) ## object-vector.h: ns3::ObjectVectorValue [class] module.add_class('ObjectVectorValue', parent=root_module['ns3::AttributeValue']) - ## random-variable.h: ns3::ParetoVariable [class] - module.add_class('ParetoVariable', parent=root_module['ns3::RandomVariable']) ## pointer.h: ns3::PointerChecker [class] module.add_class('PointerChecker', parent=root_module['ns3::AttributeChecker']) ## pointer.h: ns3::PointerValue [class] @@ -169,6 +181,8 @@ def register_types(module): module.add_class('RandomVariableChecker', parent=root_module['ns3::AttributeChecker']) ## random-variable.h: ns3::RandomVariableValue [class] module.add_class('RandomVariableValue', parent=root_module['ns3::AttributeValue']) + ## ref-count-base.h: ns3::RefCountBase [class] + module.add_class('RefCountBase', automatic_type_narrowing=True, parent=root_module['ns3::SimpleRefCount< ns3::RefCountBase, ns3::empty >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## string.h: ns3::StringChecker [class] module.add_class('StringChecker', parent=root_module['ns3::AttributeChecker']) ## string.h: ns3::StringValue [class] @@ -197,9 +211,9 @@ def register_types(module): root_module['ns3::TracedValue< unsigned int >'].implicitly_converts_to(root_module['ns3::BooleanValue']) ## traced-value.h: ns3::TracedValue [class] root_module['ns3::TracedValue< unsigned int >'].implicitly_converts_to(root_module['ns3::EnumValue']) - module.add_container('std::list< ns3::Ptr< ns3::RadvdPrefix > >', 'ns3::Ptr< ns3::RadvdPrefix >', container_type='list') module.add_container('std::list< ns3::Ptr< ns3::Packet > >', 'ns3::Ptr< ns3::Packet >', container_type='list') module.add_container('std::vector< ns3::Ptr< ns3::FlowProbe > >', 'ns3::Ptr< ns3::FlowProbe >', container_type='vector') + module.add_container('std::list< ns3::Ptr< ns3::RadvdPrefix > >', 'ns3::Ptr< ns3::RadvdPrefix >', container_type='list') module.add_container('std::vector< ns3::Ptr< ns3::NetDevice > >', 'ns3::Ptr< ns3::NetDevice >', container_type='vector') typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector') typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*') @@ -232,6 +246,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -271,6 +291,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -292,7 +316,6 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList']) register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase']) - register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase']) register_Ns3CommandLine_methods(root_module, root_module['ns3::CommandLine']) register_Ns3CriticalSection_methods(root_module, root_module['ns3::CriticalSection']) register_Ns3GlobalValue_methods(root_module, root_module['ns3::GlobalValue']) @@ -308,18 +331,15 @@ def register_methods(root_module): register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory']) register_Ns3ObjectRefCount__Ns3Object_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectRefCount< ns3::Object, ns3::ObjectBase >']) register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable']) - register_Ns3RefCountBase_methods(root_module, root_module['ns3::RefCountBase']) register_Ns3RngStream_methods(root_module, root_module['ns3::RngStream']) register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager']) register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable']) register_Ns3SystemCondition_methods(root_module, root_module['ns3::SystemCondition']) register_Ns3SystemMutex_methods(root_module, root_module['ns3::SystemMutex']) - register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread']) register_Ns3SystemWallClockMs_methods(root_module, root_module['ns3::SystemWallClockMs']) register_Ns3TestCase_methods(root_module, root_module['ns3::TestCase']) register_Ns3TestRunner_methods(root_module, root_module['ns3::TestRunner']) register_Ns3TestSuite_methods(root_module, root_module['ns3::TestSuite']) - register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor']) register_Ns3TriangularVariable_methods(root_module, root_module['ns3::TriangularVariable']) register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId']) register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo']) @@ -330,39 +350,69 @@ def register_methods(root_module): register_Ns3WeibullVariable_methods(root_module, root_module['ns3::WeibullVariable']) register_Ns3ZipfVariable_methods(root_module, root_module['ns3::ZipfVariable']) register_Ns3Empty_methods(root_module, root_module['ns3::empty']) + register_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable']) + register_Ns3DeterministicVariable_methods(root_module, root_module['ns3::DeterministicVariable']) + register_Ns3EmpiricalVariable_methods(root_module, root_module['ns3::EmpiricalVariable']) + register_Ns3ErlangVariable_methods(root_module, root_module['ns3::ErlangVariable']) + register_Ns3ExponentialVariable_methods(root_module, root_module['ns3::ExponentialVariable']) + register_Ns3GammaVariable_methods(root_module, root_module['ns3::GammaVariable']) + register_Ns3IntEmpiricalVariable_methods(root_module, root_module['ns3::IntEmpiricalVariable']) + register_Ns3LogNormalVariable_methods(root_module, root_module['ns3::LogNormalVariable']) + register_Ns3NormalVariable_methods(root_module, root_module['ns3::NormalVariable']) + register_Ns3Object_methods(root_module, root_module['ns3::Object']) + register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator']) + register_Ns3ParetoVariable_methods(root_module, root_module['ns3::ParetoVariable']) + register_Ns3SimpleRefCount__Ns3AsciiWriter_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AsciiWriter, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3FlowClassifier_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::FlowClassifier, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3FlowProbe_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::FlowProbe, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3InterferenceHelperEvent_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::InterferenceHelper::Event, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv4MulticastRoute_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv4Route_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv6MulticastRoute_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv6Route_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3MeshWifiInterfaceMacPlugin_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::MeshWifiInterfaceMacPlugin, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3PbbAddressBlock_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbAddressBlock, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3PbbMessage_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbMessage, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3PbbPacket_Ns3Header_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbPacket, ns3::Header >']) + register_Ns3SimpleRefCount__Ns3PbbTlv_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbTlv, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3RadvdInterface_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::RadvdInterface, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3RadvdPrefix_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::RadvdPrefix, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3RefCountBase_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::RefCountBase, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3WifiInformationElement_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty >']) + register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread']) + register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor']) 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_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker']) register_Ns3BooleanValue_methods(root_module, root_module['ns3::BooleanValue']) 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_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable']) - register_Ns3DeterministicVariable_methods(root_module, root_module['ns3::DeterministicVariable']) register_Ns3DoubleValue_methods(root_module, root_module['ns3::DoubleValue']) - register_Ns3EmpiricalVariable_methods(root_module, root_module['ns3::EmpiricalVariable']) register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue']) register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker']) register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue']) - register_Ns3ErlangVariable_methods(root_module, root_module['ns3::ErlangVariable']) - register_Ns3ExponentialVariable_methods(root_module, root_module['ns3::ExponentialVariable']) - register_Ns3GammaVariable_methods(root_module, root_module['ns3::GammaVariable']) - register_Ns3IntEmpiricalVariable_methods(root_module, root_module['ns3::IntEmpiricalVariable']) register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue']) - register_Ns3LogNormalVariable_methods(root_module, root_module['ns3::LogNormalVariable']) - register_Ns3NormalVariable_methods(root_module, root_module['ns3::NormalVariable']) - register_Ns3Object_methods(root_module, root_module['ns3::Object']) - register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator']) register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker']) register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue']) register_Ns3ObjectVectorAccessor_methods(root_module, root_module['ns3::ObjectVectorAccessor']) register_Ns3ObjectVectorChecker_methods(root_module, root_module['ns3::ObjectVectorChecker']) register_Ns3ObjectVectorValue_methods(root_module, root_module['ns3::ObjectVectorValue']) - register_Ns3ParetoVariable_methods(root_module, root_module['ns3::ParetoVariable']) register_Ns3PointerChecker_methods(root_module, root_module['ns3::PointerChecker']) register_Ns3PointerValue_methods(root_module, root_module['ns3::PointerValue']) register_Ns3RandomVariableChecker_methods(root_module, root_module['ns3::RandomVariableChecker']) register_Ns3RandomVariableValue_methods(root_module, root_module['ns3::RandomVariableValue']) + register_Ns3RefCountBase_methods(root_module, root_module['ns3::RefCountBase']) register_Ns3StringChecker_methods(root_module, root_module['ns3::StringChecker']) register_Ns3StringValue_methods(root_module, root_module['ns3::StringValue']) register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker']) @@ -433,18 +483,6 @@ def register_Ns3CallbackBase_methods(root_module, cls): is_static=True, visibility='protected') return -def register_Ns3CallbackImplBase_methods(root_module, cls): - ## callback.h: ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) - ## callback.h: ns3::CallbackImplBase::CallbackImplBase() [constructor] - cls.add_constructor([]) - ## callback.h: 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_Ns3CommandLine_methods(root_module, cls): ## command-line.h: ns3::CommandLine::CommandLine() [constructor] cls.add_constructor([]) @@ -779,13 +817,6 @@ def register_Ns3RandomVariable_methods(root_module, cls): is_const=True) return -def register_Ns3RefCountBase_methods(root_module, cls): - ## ref-count-base.h: ns3::RefCountBase::RefCountBase() [constructor] - cls.add_constructor([]) - ## ref-count-base.h: ns3::RefCountBase::RefCountBase(ns3::RefCountBase const & o) [copy constructor] - cls.add_constructor([param('ns3::RefCountBase const &', 'o')]) - return - def register_Ns3RngStream_methods(root_module, cls): ## rng-stream.h: ns3::RngStream::RngStream() [constructor] cls.add_constructor([]) @@ -964,39 +995,6 @@ def register_Ns3SystemMutex_methods(root_module, cls): []) return -def register_Ns3SystemThread_methods(root_module, cls): - ## system-thread.h: ns3::SystemThread::SystemThread(ns3::SystemThread const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SystemThread const &', 'arg0')]) - ## system-thread.h: 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: bool ns3::SystemThread::Break() [member function] - cls.add_method('Break', - 'bool', - []) - ## system-thread.h: void ns3::SystemThread::Join() [member function] - cls.add_method('Join', - 'void', - []) - ## system-thread.h: void ns3::SystemThread::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## system-thread.h: void ns3::SystemThread::Shutdown() [member function] - cls.add_method('Shutdown', - 'void', - []) - ## system-thread.h: void ns3::SystemThread::Start() [member function] - cls.add_method('Start', - 'void', - []) - ## system-thread.h: void ns3::SystemThread::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - return - def register_Ns3SystemWallClockMs_methods(root_module, cls): ## system-wall-clock-ms.h: ns3::SystemWallClockMs::SystemWallClockMs(ns3::SystemWallClockMs const & arg0) [copy constructor] cls.add_constructor([param('ns3::SystemWallClockMs const &', 'arg0')]) @@ -1306,43 +1304,6 @@ def register_Ns3TestSuite_methods(root_module, cls): visibility='protected', is_virtual=True) return -def register_Ns3TraceSourceAccessor_methods(root_module, cls): - ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')]) - ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor] - cls.add_constructor([]) - ## trace-source-accessor.h: 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: 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: 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: 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) - ## trace-source-accessor.h: void ns3::TraceSourceAccessor::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## trace-source-accessor.h: void ns3::TraceSourceAccessor::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - return - def register_Ns3TriangularVariable_methods(root_module, cls): ## random-variable.h: ns3::TriangularVariable::TriangularVariable(ns3::TriangularVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::TriangularVariable const &', 'arg0')]) @@ -1640,6 +1601,822 @@ def register_Ns3Empty_methods(root_module, cls): cls.add_constructor([param('ns3::empty const &', 'arg0')]) return +def register_Ns3ConstantVariable_methods(root_module, cls): + ## random-variable.h: ns3::ConstantVariable::ConstantVariable(ns3::ConstantVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ConstantVariable const &', 'arg0')]) + ## random-variable.h: ns3::ConstantVariable::ConstantVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ConstantVariable::ConstantVariable(double c) [constructor] + cls.add_constructor([param('double', 'c')]) + ## random-variable.h: void ns3::ConstantVariable::SetConstant(double c) [member function] + cls.add_method('SetConstant', + 'void', + [param('double', 'c')]) + return + +def register_Ns3DeterministicVariable_methods(root_module, cls): + ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(ns3::DeterministicVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::DeterministicVariable const &', 'arg0')]) + ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(double * d, uint32_t c) [constructor] + cls.add_constructor([param('double *', 'd'), param('uint32_t', 'c')]) + return + +def register_Ns3EmpiricalVariable_methods(root_module, cls): + ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable(ns3::EmpiricalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::EmpiricalVariable const &', 'arg0')]) + ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: void ns3::EmpiricalVariable::CDF(double v, double c) [member function] + cls.add_method('CDF', + 'void', + [param('double', 'v'), param('double', 'c')]) + return + +def register_Ns3ErlangVariable_methods(root_module, cls): + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(unsigned int k, double lambda) [constructor] + cls.add_constructor([param('unsigned int', 'k'), param('double', 'lambda')]) + ## random-variable.h: double ns3::ErlangVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::ErlangVariable::GetValue(unsigned int k, double lambda) const [member function] + cls.add_method('GetValue', + 'double', + [param('unsigned int', 'k'), param('double', 'lambda')], + is_const=True) + return + +def register_Ns3ExponentialVariable_methods(root_module, cls): + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')]) + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m) [constructor] + cls.add_constructor([param('double', 'm')]) + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m, double b) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 'b')]) + return + +def register_Ns3GammaVariable_methods(root_module, cls): + ## random-variable.h: ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')]) + ## random-variable.h: ns3::GammaVariable::GammaVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::GammaVariable::GammaVariable(double alpha, double beta) [constructor] + cls.add_constructor([param('double', 'alpha'), param('double', 'beta')]) + ## random-variable.h: double ns3::GammaVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::GammaVariable::GetValue(double alpha, double beta) const [member function] + cls.add_method('GetValue', + 'double', + [param('double', 'alpha'), param('double', 'beta')], + is_const=True) + return + +def register_Ns3IntEmpiricalVariable_methods(root_module, cls): + ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable(ns3::IntEmpiricalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::IntEmpiricalVariable const &', 'arg0')]) + ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable() [constructor] + cls.add_constructor([]) + return + +def register_Ns3LogNormalVariable_methods(root_module, cls): + ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(ns3::LogNormalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::LogNormalVariable const &', 'arg0')]) + ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(double mu, double sigma) [constructor] + cls.add_constructor([param('double', 'mu'), param('double', 'sigma')]) + return + +def register_Ns3NormalVariable_methods(root_module, cls): + ## random-variable.h: ns3::NormalVariable::NormalVariable(ns3::NormalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::NormalVariable const &', 'arg0')]) + ## random-variable.h: ns3::NormalVariable::NormalVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 'v')]) + ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v, double b) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 'v'), param('double', 'b')]) + return + +def register_Ns3Object_methods(root_module, cls): + ## object.h: ns3::Object::Object() [constructor] + cls.add_constructor([]) + ## object.h: void ns3::Object::AggregateObject(ns3::Ptr other) [member function] + cls.add_method('AggregateObject', + 'void', + [param('ns3::Ptr< ns3::Object >', 'other')]) + ## object.h: void ns3::Object::Dispose() [member function] + cls.add_method('Dispose', + 'void', + []) + ## object.h: ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function] + cls.add_method('GetAggregateIterator', + 'ns3::Object::AggregateIterator', + [], + is_const=True) + ## object.h: ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## object.h: ns3::Ptr ns3::Object::GetObject(ns3::TypeId tid) const [member function] + cls.add_method('GetObject', + 'ns3::Ptr< ns3::Object >', + [param('ns3::TypeId', 'tid')], + is_const=True, template_parameters=['ns3::Object'], custom_template_method_name='GetObject') + ## object.h: static ns3::TypeId ns3::Object::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## object.h: void ns3::Object::Start() [member function] + cls.add_method('Start', + 'void', + []) + ## object.h: ns3::Object::Object(ns3::Object const & o) [copy constructor] + cls.add_constructor([param('ns3::Object const &', 'o')], + visibility='protected') + ## object.h: void ns3::Object::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='protected', is_virtual=True) + ## object.h: void ns3::Object::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) + ## object.h: void ns3::Object::NotifyNewAggregate() [member function] + cls.add_method('NotifyNewAggregate', + 'void', + [], + visibility='protected', is_virtual=True) + ## object.h: void ns3::Object::DoDelete() [member function] + cls.add_method('DoDelete', + 'void', + [], + visibility='private', is_virtual=True) + return + +def register_Ns3ObjectAggregateIterator_methods(root_module, cls): + ## object.h: ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')]) + ## object.h: ns3::Object::AggregateIterator::AggregateIterator() [constructor] + cls.add_constructor([]) + ## object.h: bool ns3::Object::AggregateIterator::HasNext() const [member function] + cls.add_method('HasNext', + 'bool', + [], + is_const=True) + ## object.h: ns3::Ptr ns3::Object::AggregateIterator::Next() [member function] + cls.add_method('Next', + 'ns3::Ptr< ns3::Object const >', + []) + return + +def register_Ns3ParetoVariable_methods(root_module, cls): + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(ns3::ParetoVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ParetoVariable const &', 'arg0')]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m) [constructor] + cls.add_constructor([param('double', 'm')]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 's')]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s, double b) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 's'), param('double', 'b')]) + return + +def register_Ns3SimpleRefCount__Ns3AsciiWriter_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AsciiWriter, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3FlowClassifier_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::FlowClassifier, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3FlowProbe_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::FlowProbe, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3InterferenceHelperEvent_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::InterferenceHelper::Event, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv4MulticastRoute_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv4Route_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv6MulticastRoute_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv6Route_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3MeshWifiInterfaceMacPlugin_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::MeshWifiInterfaceMacPlugin, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbAddressBlock_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbAddressBlock, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbMessage_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbMessage, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbPacket_Ns3Header_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbPacket, ns3::Header > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbTlv_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbTlv, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3RadvdInterface_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::RadvdInterface, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3RadvdPrefix_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::RadvdPrefix, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3RefCountBase_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::RefCountBase, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::SystemThread, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3WifiInformationElement_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SystemThread_methods(root_module, cls): + ## system-thread.h: ns3::SystemThread::SystemThread(ns3::SystemThread const & arg0) [copy constructor] + cls.add_constructor([param('ns3::SystemThread const &', 'arg0')]) + ## system-thread.h: 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: bool ns3::SystemThread::Break() [member function] + cls.add_method('Break', + 'bool', + []) + ## system-thread.h: void ns3::SystemThread::Join() [member function] + cls.add_method('Join', + 'void', + []) + ## system-thread.h: void ns3::SystemThread::Shutdown() [member function] + cls.add_method('Shutdown', + 'void', + []) + ## system-thread.h: void ns3::SystemThread::Start() [member function] + cls.add_method('Start', + 'void', + []) + return + +def register_Ns3TraceSourceAccessor_methods(root_module, cls): + ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor] + cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')]) + ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor] + cls.add_constructor([]) + ## trace-source-accessor.h: 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: 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: 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: 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_Ns3AttributeAccessor_methods(root_module, cls): ## attribute.h: ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor] cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')]) @@ -1774,6 +2551,18 @@ def register_Ns3CallbackChecker_methods(root_module, cls): cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')]) return +def register_Ns3CallbackImplBase_methods(root_module, cls): + ## callback.h: ns3::CallbackImplBase::CallbackImplBase() [constructor] + cls.add_constructor([]) + ## callback.h: ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] + cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) + ## callback.h: 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: ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')]) @@ -1802,26 +2591,6 @@ def register_Ns3CallbackValue_methods(root_module, cls): [param('ns3::CallbackBase', 'base')]) return -def register_Ns3ConstantVariable_methods(root_module, cls): - ## random-variable.h: ns3::ConstantVariable::ConstantVariable(ns3::ConstantVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ConstantVariable const &', 'arg0')]) - ## random-variable.h: ns3::ConstantVariable::ConstantVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ConstantVariable::ConstantVariable(double c) [constructor] - cls.add_constructor([param('double', 'c')]) - ## random-variable.h: void ns3::ConstantVariable::SetConstant(double c) [member function] - cls.add_method('SetConstant', - 'void', - [param('double', 'c')]) - return - -def register_Ns3DeterministicVariable_methods(root_module, cls): - ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(ns3::DeterministicVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DeterministicVariable const &', 'arg0')]) - ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(double * d, uint32_t c) [constructor] - cls.add_constructor([param('double *', 'd'), param('uint32_t', 'c')]) - return - def register_Ns3DoubleValue_methods(root_module, cls): ## double.h: ns3::DoubleValue::DoubleValue() [constructor] cls.add_constructor([]) @@ -1855,17 +2624,6 @@ def register_Ns3DoubleValue_methods(root_module, cls): [param('double const &', 'value')]) return -def register_Ns3EmpiricalVariable_methods(root_module, cls): - ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable(ns3::EmpiricalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EmpiricalVariable const &', 'arg0')]) - ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: void ns3::EmpiricalVariable::CDF(double v, double c) [member function] - cls.add_method('CDF', - 'void', - [param('double', 'v'), param('double', 'c')]) - return - def register_Ns3EmptyAttributeValue_methods(root_module, cls): ## attribute.h: ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')]) @@ -1966,62 +2724,6 @@ def register_Ns3EnumValue_methods(root_module, cls): [param('int', 'v')]) return -def register_Ns3ErlangVariable_methods(root_module, cls): - ## random-variable.h: ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')]) - ## random-variable.h: ns3::ErlangVariable::ErlangVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ErlangVariable::ErlangVariable(unsigned int k, double lambda) [constructor] - cls.add_constructor([param('unsigned int', 'k'), param('double', 'lambda')]) - ## random-variable.h: double ns3::ErlangVariable::GetValue() const [member function] - cls.add_method('GetValue', - 'double', - [], - is_const=True) - ## random-variable.h: double ns3::ErlangVariable::GetValue(unsigned int k, double lambda) const [member function] - cls.add_method('GetValue', - 'double', - [param('unsigned int', 'k'), param('double', 'lambda')], - is_const=True) - return - -def register_Ns3ExponentialVariable_methods(root_module, cls): - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')]) - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m) [constructor] - cls.add_constructor([param('double', 'm')]) - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m, double b) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 'b')]) - return - -def register_Ns3GammaVariable_methods(root_module, cls): - ## random-variable.h: ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')]) - ## random-variable.h: ns3::GammaVariable::GammaVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::GammaVariable::GammaVariable(double alpha, double beta) [constructor] - cls.add_constructor([param('double', 'alpha'), param('double', 'beta')]) - ## random-variable.h: double ns3::GammaVariable::GetValue() const [member function] - cls.add_method('GetValue', - 'double', - [], - is_const=True) - ## random-variable.h: double ns3::GammaVariable::GetValue(double alpha, double beta) const [member function] - cls.add_method('GetValue', - 'double', - [param('double', 'alpha'), param('double', 'beta')], - is_const=True) - return - -def register_Ns3IntEmpiricalVariable_methods(root_module, cls): - ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable(ns3::IntEmpiricalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::IntEmpiricalVariable const &', 'arg0')]) - ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable() [constructor] - cls.add_constructor([]) - return - def register_Ns3IntegerValue_methods(root_module, cls): ## integer.h: ns3::IntegerValue::IntegerValue() [constructor] cls.add_constructor([]) @@ -2055,91 +2757,6 @@ def register_Ns3IntegerValue_methods(root_module, cls): [param('int64_t const &', 'value')]) return -def register_Ns3LogNormalVariable_methods(root_module, cls): - ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(ns3::LogNormalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::LogNormalVariable const &', 'arg0')]) - ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(double mu, double sigma) [constructor] - cls.add_constructor([param('double', 'mu'), param('double', 'sigma')]) - return - -def register_Ns3NormalVariable_methods(root_module, cls): - ## random-variable.h: ns3::NormalVariable::NormalVariable(ns3::NormalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NormalVariable const &', 'arg0')]) - ## random-variable.h: ns3::NormalVariable::NormalVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 'v')]) - ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v, double b) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 'v'), param('double', 'b')]) - return - -def register_Ns3Object_methods(root_module, cls): - ## object.h: ns3::Object::Object() [constructor] - cls.add_constructor([]) - ## object.h: void ns3::Object::AggregateObject(ns3::Ptr other) [member function] - cls.add_method('AggregateObject', - 'void', - [param('ns3::Ptr< ns3::Object >', 'other')]) - ## object.h: void ns3::Object::Dispose() [member function] - cls.add_method('Dispose', - 'void', - []) - ## object.h: ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function] - cls.add_method('GetAggregateIterator', - 'ns3::Object::AggregateIterator', - [], - is_const=True) - ## object.h: ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_const=True, is_virtual=True) - ## object.h: ns3::Ptr ns3::Object::GetObject(ns3::TypeId tid) const [member function] - cls.add_method('GetObject', - 'ns3::Ptr< ns3::Object >', - [param('ns3::TypeId', 'tid')], - is_const=True, template_parameters=['ns3::Object'], custom_template_method_name='GetObject') - ## object.h: static ns3::TypeId ns3::Object::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## object.h: ns3::Object::Object(ns3::Object const & o) [copy constructor] - cls.add_constructor([param('ns3::Object const &', 'o')], - visibility='protected') - ## object.h: void ns3::Object::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h: void ns3::Object::NotifyNewAggregate() [member function] - cls.add_method('NotifyNewAggregate', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h: void ns3::Object::DoDelete() [member function] - cls.add_method('DoDelete', - 'void', - [], - visibility='private', is_virtual=True) - return - -def register_Ns3ObjectAggregateIterator_methods(root_module, cls): - ## object.h: ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')]) - ## object.h: ns3::Object::AggregateIterator::AggregateIterator() [constructor] - cls.add_constructor([]) - ## object.h: bool ns3::Object::AggregateIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## object.h: ns3::Ptr ns3::Object::AggregateIterator::Next() [member function] - cls.add_method('Next', - 'ns3::Ptr< ns3::Object const >', - []) - return - def register_Ns3ObjectFactoryChecker_methods(root_module, cls): ## object-factory.h: ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor] cls.add_constructor([]) @@ -2271,19 +2888,6 @@ def register_Ns3ObjectVectorValue_methods(root_module, cls): is_const=True, is_virtual=True) return -def register_Ns3ParetoVariable_methods(root_module, cls): - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(ns3::ParetoVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ParetoVariable const &', 'arg0')]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m) [constructor] - cls.add_constructor([param('double', 'm')]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 's')]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s, double b) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 's'), param('double', 'b')]) - return - def register_Ns3PointerChecker_methods(root_module, cls): ## pointer.h: ns3::PointerChecker::PointerChecker() [constructor] cls.add_constructor([]) @@ -2369,6 +2973,13 @@ def register_Ns3RandomVariableValue_methods(root_module, cls): [param('ns3::RandomVariable const &', 'value')]) return +def register_Ns3RefCountBase_methods(root_module, cls): + ## ref-count-base.h: ns3::RefCountBase::RefCountBase() [constructor] + cls.add_constructor([]) + ## ref-count-base.h: ns3::RefCountBase::RefCountBase(ns3::RefCountBase const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RefCountBase const &', 'arg0')]) + return + def register_Ns3StringChecker_methods(root_module, cls): ## string.h: ns3::StringChecker::StringChecker() [constructor] cls.add_constructor([]) @@ -2761,7 +3372,7 @@ def register_functions(root_module): module.add_function('TypeNameGet', 'std::string', [], - template_parameters=['long long']) + template_parameters=['long']) ## type-name.h: extern std::string ns3::TypeNameGet() [free function] module.add_function('TypeNameGet', 'std::string', @@ -2800,6 +3411,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -2871,6 +3483,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_csma.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_csma.py index f70b6d99b..602dff082 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_csma.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_csma.py @@ -34,6 +34,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -70,6 +76,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -444,6 +454,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -459,6 +470,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_dot11s.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_dot11s.py index 433e7308d..656d9baef 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_dot11s.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_dot11s.py @@ -3,6 +3,8 @@ from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler def register_types(module): root_module = module.get_root() + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::dot11s::IeBeaconTimingUnit', 'ns3::empty'], parent=root_module['ns3::empty']) ## Register a nested module for the namespace Config @@ -22,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -58,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -67,12 +79,12 @@ def register_types_ns3_dot11s(module): module.add_enum('dot11sSynchronizationProtocolIdentifier', ['SYNC_NEIGHBOUR_OFFSET', 'SYNC_NULL']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sCongestionControlMode [enumeration] module.add_enum('dot11sCongestionControlMode', ['CONGESTION_SIGNALING', 'CONGESTION_NULL']) - ## ie-dot11s-configuration.h: ns3::dot11s::dot11sAuthenticationProtocol [enumeration] - module.add_enum('dot11sAuthenticationProtocol', ['AUTH_NULL', 'AUTH_SAE']) - ## ie-dot11s-peer-management.h: ns3::dot11s::PmpReasonCode [enumeration] - module.add_enum('PmpReasonCode', ['REASON11S_PEERING_CANCELLED', 'REASON11S_MESH_MAX_PEERS', 'REASON11S_MESH_CAPABILITY_POLICY_VIOLATION', 'REASON11S_MESH_CLOSE_RCVD', 'REASON11S_MESH_MAX_RETRIES', 'REASON11S_MESH_CONFIRM_TIMEOUT', 'REASON11S_MESH_INVALID_GTK', 'REASON11S_MESH_INCONSISTENT_PARAMETERS', 'REASON11S_MESH_INVALID_SECURITY_CAPABILITY', 'REASON11S_RESERVED']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sPathSelectionMetric [enumeration] module.add_enum('dot11sPathSelectionMetric', ['METRIC_AIRTIME']) + ## ie-dot11s-peer-management.h: ns3::dot11s::PmpReasonCode [enumeration] + module.add_enum('PmpReasonCode', ['REASON11S_PEERING_CANCELLED', 'REASON11S_MESH_MAX_PEERS', 'REASON11S_MESH_CAPABILITY_POLICY_VIOLATION', 'REASON11S_MESH_CLOSE_RCVD', 'REASON11S_MESH_MAX_RETRIES', 'REASON11S_MESH_CONFIRM_TIMEOUT', 'REASON11S_MESH_INVALID_GTK', 'REASON11S_MESH_INCONSISTENT_PARAMETERS', 'REASON11S_MESH_INVALID_SECURITY_CAPABILITY', 'REASON11S_RESERVED']) + ## ie-dot11s-configuration.h: ns3::dot11s::dot11sAuthenticationProtocol [enumeration] + module.add_enum('dot11sAuthenticationProtocol', ['AUTH_NULL', 'AUTH_SAE']) ## ie-dot11s-configuration.h: ns3::dot11s::Dot11sMeshCapability [class] module.add_class('Dot11sMeshCapability') ## hwmp-protocol.h: ns3::dot11s::HwmpProtocol [class] @@ -82,7 +94,7 @@ def register_types_ns3_dot11s(module): ## ie-dot11s-beacon-timing.h: ns3::dot11s::IeBeaconTiming [class] module.add_class('IeBeaconTiming', parent=root_module['ns3::WifiInformationElement']) ## ie-dot11s-beacon-timing.h: ns3::dot11s::IeBeaconTimingUnit [class] - module.add_class('IeBeaconTimingUnit', parent=root_module['ns3::RefCountBase']) + module.add_class('IeBeaconTimingUnit', parent=root_module['ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty >']) ## ie-dot11s-configuration.h: ns3::dot11s::IeConfiguration [class] module.add_class('IeConfiguration', parent=root_module['ns3::WifiInformationElement']) ## ie-dot11s-id.h: ns3::dot11s::IeMeshId [class] @@ -773,6 +785,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -788,6 +801,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): ## ie-dot11s-id.h: extern ns3::Ptr ns3::dot11s::MakeIeMeshIdChecker() [free function] module.add_function('MakeIeMeshIdChecker', diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_emu.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_emu.py index b69d9fbaf..fe6a6f040 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_emu.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_emu.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -238,6 +248,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -253,6 +264,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_flame.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_flame.py index 453d1c01d..017fa3c9e 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_flame.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_flame.py @@ -22,6 +22,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -58,6 +64,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -171,6 +181,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -186,6 +197,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_flow_monitor.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_flow_monitor.py index 6aefcf9a5..6f4055f13 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_flow_monitor.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_flow_monitor.py @@ -5,10 +5,18 @@ def register_types(module): ## histogram.h: ns3::Histogram [class] module.add_class('Histogram') + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::FlowClassifier', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::FlowProbe', 'ns3::empty'], parent=root_module['ns3::empty']) ## flow-classifier.h: ns3::FlowClassifier [class] - module.add_class('FlowClassifier', parent=root_module['ns3::RefCountBase']) + module.add_class('FlowClassifier', parent=root_module['ns3::SimpleRefCount< ns3::FlowClassifier, ns3::empty >']) + ## flow-monitor.h: ns3::FlowMonitor [class] + module.add_class('FlowMonitor', parent=root_module['ns3::Object']) + ## flow-monitor.h: ns3::FlowMonitor::FlowStats [struct] + module.add_class('FlowStats', outer_class=root_module['ns3::FlowMonitor']) ## flow-probe.h: ns3::FlowProbe [class] - module.add_class('FlowProbe', parent=root_module['ns3::RefCountBase']) + module.add_class('FlowProbe', parent=root_module['ns3::SimpleRefCount< ns3::FlowProbe, ns3::empty >']) ## flow-probe.h: ns3::FlowProbe::FlowStats [struct] module.add_class('FlowStats', outer_class=root_module['ns3::FlowProbe']) ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier [class] @@ -19,12 +27,8 @@ def register_types(module): module.add_class('Ipv4FlowProbe', parent=root_module['ns3::FlowProbe']) ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::DropReason [enumeration] module.add_enum('DropReason', ['DROP_NO_ROUTE', 'DROP_TTL_EXPIRE', 'DROP_BAD_CHECKSUM', 'DROP_INVALID_REASON'], outer_class=root_module['ns3::Ipv4FlowProbe']) - ## flow-monitor.h: ns3::FlowMonitor [class] - module.add_class('FlowMonitor', parent=root_module['ns3::Object']) - ## flow-monitor.h: ns3::FlowMonitor::FlowStats [struct] - module.add_class('FlowStats', outer_class=root_module['ns3::FlowMonitor']) - module.add_container('std::map< unsigned int, ns3::FlowProbe::FlowStats >', ('unsigned int', 'ns3::FlowProbe::FlowStats'), container_type='map') module.add_container('std::map< unsigned int, ns3::FlowMonitor::FlowStats >', ('unsigned int', 'ns3::FlowMonitor::FlowStats'), container_type='map') + module.add_container('std::map< unsigned int, ns3::FlowProbe::FlowStats >', ('unsigned int', 'ns3::FlowProbe::FlowStats'), container_type='map') typehandlers.add_type_alias('uint32_t', 'ns3::FlowPacketId') typehandlers.add_type_alias('uint32_t*', 'ns3::FlowPacketId*') typehandlers.add_type_alias('uint32_t&', 'ns3::FlowPacketId&') @@ -50,6 +54,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -86,6 +96,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -105,13 +119,13 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3Histogram_methods(root_module, root_module['ns3::Histogram']) register_Ns3FlowClassifier_methods(root_module, root_module['ns3::FlowClassifier']) + register_Ns3FlowMonitor_methods(root_module, root_module['ns3::FlowMonitor']) + register_Ns3FlowMonitorFlowStats_methods(root_module, root_module['ns3::FlowMonitor::FlowStats']) register_Ns3FlowProbe_methods(root_module, root_module['ns3::FlowProbe']) register_Ns3FlowProbeFlowStats_methods(root_module, root_module['ns3::FlowProbe::FlowStats']) register_Ns3Ipv4FlowClassifier_methods(root_module, root_module['ns3::Ipv4FlowClassifier']) register_Ns3Ipv4FlowClassifierFiveTuple_methods(root_module, root_module['ns3::Ipv4FlowClassifier::FiveTuple']) register_Ns3Ipv4FlowProbe_methods(root_module, root_module['ns3::Ipv4FlowProbe']) - register_Ns3FlowMonitor_methods(root_module, root_module['ns3::FlowMonitor']) - register_Ns3FlowMonitorFlowStats_methods(root_module, root_module['ns3::FlowMonitor::FlowStats']) return def register_Ns3Histogram_methods(root_module, cls): @@ -175,96 +189,6 @@ def register_Ns3FlowClassifier_methods(root_module, cls): visibility='protected') return -def register_Ns3FlowProbe_methods(root_module, cls): - ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::FlowProbe const & arg0) [copy constructor] - cls.add_constructor([param('ns3::FlowProbe const &', 'arg0')]) - ## flow-probe.h: void ns3::FlowProbe::AddPacketDropStats(ns3::FlowId flowId, uint32_t packetSize, uint32_t reasonCode) [member function] - cls.add_method('AddPacketDropStats', - 'void', - [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('uint32_t', 'reasonCode')]) - ## flow-probe.h: void ns3::FlowProbe::AddPacketStats(ns3::FlowId flowId, uint32_t packetSize, ns3::Time delayFromFirstProbe) [member function] - cls.add_method('AddPacketStats', - 'void', - [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('ns3::Time', 'delayFromFirstProbe')]) - ## flow-probe.h: std::map, std::allocator > > ns3::FlowProbe::GetStats() const [member function] - cls.add_method('GetStats', - 'std::map< unsigned int, ns3::FlowProbe::FlowStats >', - [], - is_const=True) - ## flow-probe.h: void ns3::FlowProbe::SerializeToXmlStream(std::ostream & os, int indent, uint32_t index) const [member function] - cls.add_method('SerializeToXmlStream', - 'void', - [param('std::ostream &', 'os'), param('int', 'indent'), param('uint32_t', 'index')], - is_const=True) - ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::Ptr flowMonitor) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'flowMonitor')], - visibility='protected') - return - -def register_Ns3FlowProbeFlowStats_methods(root_module, cls): - ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats(ns3::FlowProbe::FlowStats const & arg0) [copy constructor] - cls.add_constructor([param('ns3::FlowProbe::FlowStats const &', 'arg0')]) - ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats() [constructor] - cls.add_constructor([]) - ## flow-probe.h: ns3::FlowProbe::FlowStats::bytes [variable] - cls.add_instance_attribute('bytes', 'uint64_t', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::bytesDropped [variable] - cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long long >', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::delayFromFirstProbeSum [variable] - cls.add_instance_attribute('delayFromFirstProbeSum', 'ns3::Time', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::packets [variable] - cls.add_instance_attribute('packets', 'uint32_t', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::packetsDropped [variable] - cls.add_instance_attribute('packetsDropped', 'std::vector< unsigned int >', is_const=False) - return - -def register_Ns3Ipv4FlowClassifier_methods(root_module, cls): - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier(ns3::Ipv4FlowClassifier const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4FlowClassifier const &', 'arg0')]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier() [constructor] - cls.add_constructor([]) - ## ipv4-flow-classifier.h: bool ns3::Ipv4FlowClassifier::Classify(ns3::Ipv4Header const & ipHeader, ns3::Ptr ipPayload, uint32_t * out_flowId, uint32_t * out_packetId) [member function] - cls.add_method('Classify', - 'bool', - [param('ns3::Ipv4Header const &', 'ipHeader'), param('ns3::Ptr< ns3::Packet const >', 'ipPayload'), param('uint32_t *', 'out_flowId'), param('uint32_t *', 'out_packetId')]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple ns3::Ipv4FlowClassifier::FindFlow(ns3::FlowId flowId) const [member function] - cls.add_method('FindFlow', - 'ns3::Ipv4FlowClassifier::FiveTuple', - [param('ns3::FlowId', 'flowId')], - is_const=True) - ## ipv4-flow-classifier.h: void ns3::Ipv4FlowClassifier::SerializeToXmlStream(std::ostream & os, int indent) const [member function] - cls.add_method('SerializeToXmlStream', - 'void', - [param('std::ostream &', 'os'), param('int', 'indent')], - is_const=True, is_virtual=True) - return - -def register_Ns3Ipv4FlowClassifierFiveTuple_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('==') - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple() [constructor] - cls.add_constructor([]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple(ns3::Ipv4FlowClassifier::FiveTuple const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4FlowClassifier::FiveTuple const &', 'arg0')]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationAddress [variable] - cls.add_instance_attribute('destinationAddress', 'ns3::Ipv4Address', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationPort [variable] - cls.add_instance_attribute('destinationPort', 'uint16_t', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::protocol [variable] - cls.add_instance_attribute('protocol', 'uint8_t', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourceAddress [variable] - cls.add_instance_attribute('sourceAddress', 'ns3::Ipv4Address', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourcePort [variable] - cls.add_instance_attribute('sourcePort', 'uint16_t', is_const=False) - return - -def register_Ns3Ipv4FlowProbe_methods(root_module, cls): - ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ipv4FlowProbe const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4FlowProbe const &', 'arg0')]) - ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ptr monitor, ns3::Ptr classifier, ns3::Ptr node) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'monitor'), param('ns3::Ptr< ns3::Ipv4FlowClassifier >', 'classifier'), param('ns3::Ptr< ns3::Node >', 'node')]) - return - def register_Ns3FlowMonitor_methods(root_module, cls): ## flow-monitor.h: ns3::FlowMonitor::FlowMonitor(ns3::FlowMonitor const & arg0) [copy constructor] cls.add_constructor([param('ns3::FlowMonitor const &', 'arg0')]) @@ -400,11 +324,102 @@ def register_Ns3FlowMonitorFlowStats_methods(root_module, cls): cls.add_instance_attribute('txPackets', 'uint32_t', is_const=False) return +def register_Ns3FlowProbe_methods(root_module, cls): + ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::FlowProbe const & arg0) [copy constructor] + cls.add_constructor([param('ns3::FlowProbe const &', 'arg0')]) + ## flow-probe.h: void ns3::FlowProbe::AddPacketDropStats(ns3::FlowId flowId, uint32_t packetSize, uint32_t reasonCode) [member function] + cls.add_method('AddPacketDropStats', + 'void', + [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('uint32_t', 'reasonCode')]) + ## flow-probe.h: void ns3::FlowProbe::AddPacketStats(ns3::FlowId flowId, uint32_t packetSize, ns3::Time delayFromFirstProbe) [member function] + cls.add_method('AddPacketStats', + 'void', + [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('ns3::Time', 'delayFromFirstProbe')]) + ## flow-probe.h: std::map, std::allocator > > ns3::FlowProbe::GetStats() const [member function] + cls.add_method('GetStats', + 'std::map< unsigned int, ns3::FlowProbe::FlowStats >', + [], + is_const=True) + ## flow-probe.h: void ns3::FlowProbe::SerializeToXmlStream(std::ostream & os, int indent, uint32_t index) const [member function] + cls.add_method('SerializeToXmlStream', + 'void', + [param('std::ostream &', 'os'), param('int', 'indent'), param('uint32_t', 'index')], + is_const=True) + ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::Ptr flowMonitor) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'flowMonitor')], + visibility='protected') + return + +def register_Ns3FlowProbeFlowStats_methods(root_module, cls): + ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats(ns3::FlowProbe::FlowStats const & arg0) [copy constructor] + cls.add_constructor([param('ns3::FlowProbe::FlowStats const &', 'arg0')]) + ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats() [constructor] + cls.add_constructor([]) + ## flow-probe.h: ns3::FlowProbe::FlowStats::bytes [variable] + cls.add_instance_attribute('bytes', 'uint64_t', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::bytesDropped [variable] + cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long long >', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::delayFromFirstProbeSum [variable] + cls.add_instance_attribute('delayFromFirstProbeSum', 'ns3::Time', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::packets [variable] + cls.add_instance_attribute('packets', 'uint32_t', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::packetsDropped [variable] + cls.add_instance_attribute('packetsDropped', 'std::vector< unsigned int >', is_const=False) + return + +def register_Ns3Ipv4FlowClassifier_methods(root_module, cls): + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier(ns3::Ipv4FlowClassifier const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4FlowClassifier const &', 'arg0')]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier() [constructor] + cls.add_constructor([]) + ## ipv4-flow-classifier.h: bool ns3::Ipv4FlowClassifier::Classify(ns3::Ipv4Header const & ipHeader, ns3::Ptr ipPayload, uint32_t * out_flowId, uint32_t * out_packetId) [member function] + cls.add_method('Classify', + 'bool', + [param('ns3::Ipv4Header const &', 'ipHeader'), param('ns3::Ptr< ns3::Packet const >', 'ipPayload'), param('uint32_t *', 'out_flowId'), param('uint32_t *', 'out_packetId')]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple ns3::Ipv4FlowClassifier::FindFlow(ns3::FlowId flowId) const [member function] + cls.add_method('FindFlow', + 'ns3::Ipv4FlowClassifier::FiveTuple', + [param('ns3::FlowId', 'flowId')], + is_const=True) + ## ipv4-flow-classifier.h: void ns3::Ipv4FlowClassifier::SerializeToXmlStream(std::ostream & os, int indent) const [member function] + cls.add_method('SerializeToXmlStream', + 'void', + [param('std::ostream &', 'os'), param('int', 'indent')], + is_const=True, is_virtual=True) + return + +def register_Ns3Ipv4FlowClassifierFiveTuple_methods(root_module, cls): + cls.add_binary_comparison_operator('<') + cls.add_binary_comparison_operator('==') + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple() [constructor] + cls.add_constructor([]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple(ns3::Ipv4FlowClassifier::FiveTuple const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4FlowClassifier::FiveTuple const &', 'arg0')]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationAddress [variable] + cls.add_instance_attribute('destinationAddress', 'ns3::Ipv4Address', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationPort [variable] + cls.add_instance_attribute('destinationPort', 'uint16_t', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::protocol [variable] + cls.add_instance_attribute('protocol', 'uint8_t', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourceAddress [variable] + cls.add_instance_attribute('sourceAddress', 'ns3::Ipv4Address', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourcePort [variable] + cls.add_instance_attribute('sourcePort', 'uint16_t', is_const=False) + return + +def register_Ns3Ipv4FlowProbe_methods(root_module, cls): + ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ipv4FlowProbe const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4FlowProbe const &', 'arg0')]) + ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ptr monitor, ns3::Ptr classifier, ns3::Ptr node) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'monitor'), param('ns3::Ptr< ns3::Ipv4FlowClassifier >', 'classifier'), param('ns3::Ptr< ns3::Node >', 'node')]) + return + def register_functions(root_module): module = root_module register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -420,6 +435,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_global_routing.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_global_routing.py index 4f44b1996..002011b7f 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_global_routing.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_global_routing.py @@ -38,6 +38,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -74,6 +80,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -99,16 +109,6 @@ def register_methods(root_module): return def register_Ns3GlobalRouteManager_methods(root_module, cls): - ## global-route-manager.h: static void ns3::GlobalRouteManager::PopulateRoutingTables() [member function] - cls.add_method('PopulateRoutingTables', - 'void', - [], - is_static=True, deprecated=True) - ## global-route-manager.h: static void ns3::GlobalRouteManager::RecomputeRoutingTables() [member function] - cls.add_method('RecomputeRoutingTables', - 'void', - [], - is_static=True, deprecated=True) ## global-route-manager.h: static uint32_t ns3::GlobalRouteManager::AllocateRouterId() [member function] cls.add_method('AllocateRouterId', 'uint32_t', @@ -410,7 +410,7 @@ def register_Ns3Ipv4GlobalRouting_methods(root_module, cls): cls.add_method('RemoveRoute', 'void', [param('uint32_t', 'i')]) - ## ipv4-global-routing.h: bool ns3::Ipv4GlobalRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-global-routing.h: bool ns3::Ipv4GlobalRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -437,6 +437,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -452,6 +453,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_helper.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_helper.py index b527b38a6..25e0f7cf7 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_helper.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_helper.py @@ -77,6 +77,8 @@ def register_types(module): module.add_class('YansWifiPhyHelper', allow_subclassing=False, parent=root_module['ns3::WifiPhyHelper']) ## yans-wifi-helper.h: ns3::YansWifiPhyHelper::PcapFormat [enumeration] module.add_enum('PcapFormat', ['PCAP_FORMAT_80211', 'PCAP_FORMAT_80211_PRISM', 'PCAP_FORMAT_80211_RADIOTAP'], outer_class=root_module['ns3::YansWifiPhyHelper']) + ## aodv-helper.h: ns3::AodvHelper [class] + module.add_class('AodvHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper']) ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper [class] module.add_class('Ipv4GlobalRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper']) ## ipv4-list-routing-helper.h: ns3::Ipv4ListRoutingHelper [class] @@ -116,6 +118,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -152,6 +160,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -204,6 +216,7 @@ def register_methods(root_module): register_Ns3WifiPhyHelper_methods(root_module, root_module['ns3::WifiPhyHelper']) register_Ns3YansWifiChannelHelper_methods(root_module, root_module['ns3::YansWifiChannelHelper']) register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper']) + register_Ns3AodvHelper_methods(root_module, root_module['ns3::AodvHelper']) register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, root_module['ns3::Ipv4GlobalRoutingHelper']) register_Ns3Ipv4ListRoutingHelper_methods(root_module, root_module['ns3::Ipv4ListRoutingHelper']) register_Ns3Ipv4NixVectorHelper_methods(root_module, root_module['ns3::Ipv4NixVectorHelper']) @@ -1446,6 +1459,10 @@ def register_Ns3V4PingHelper_methods(root_module, cls): 'ns3::ApplicationContainer', [param('std::string', 'nodeName')], is_const=True) + ## v4ping-helper.h: void ns3::V4PingHelper::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function] + cls.add_method('SetAttribute', + 'void', + [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) return def register_Ns3WifiHelper_methods(root_module, cls): @@ -1618,6 +1635,27 @@ def register_Ns3YansWifiPhyHelper_methods(root_module, cls): is_const=True, visibility='private', is_virtual=True) return +def register_Ns3AodvHelper_methods(root_module, cls): + ## aodv-helper.h: ns3::AodvHelper::AodvHelper(ns3::AodvHelper const & arg0) [copy constructor] + cls.add_constructor([param('ns3::AodvHelper const &', 'arg0')]) + ## aodv-helper.h: ns3::AodvHelper::AodvHelper() [constructor] + cls.add_constructor([]) + ## aodv-helper.h: ns3::AodvHelper * ns3::AodvHelper::Copy() const [member function] + cls.add_method('Copy', + 'ns3::AodvHelper *', + [], + is_const=True, is_virtual=True) + ## aodv-helper.h: ns3::Ptr ns3::AodvHelper::Create(ns3::Ptr node) const [member function] + cls.add_method('Create', + 'ns3::Ptr< ns3::Ipv4RoutingProtocol >', + [param('ns3::Ptr< ns3::Node >', 'node')], + is_const=True, is_virtual=True) + ## aodv-helper.h: void ns3::AodvHelper::Set(std::string name, ns3::AttributeValue const & value) [member function] + cls.add_method('Set', + 'void', + [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) + return + def register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, cls): ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper() [constructor] cls.add_constructor([]) @@ -1897,6 +1935,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1912,6 +1951,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py index f7fa01726..afc3ed388 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py @@ -71,6 +71,8 @@ def register_types(module): module.add_class('Icmpv6DestinationUnreachable', parent=root_module['ns3::Icmpv6Header']) ## icmpv6-header.h: ns3::Icmpv6Echo [class] module.add_class('Icmpv6Echo', parent=root_module['ns3::Icmpv6Header']) + ## ipv4-interface.h: ns3::Ipv4Interface [class] + module.add_class('Ipv4Interface', parent=root_module['ns3::Object']) ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol [class] module.add_class('Ipv4L3Protocol', parent=root_module['ns3::Ipv4']) ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::DropReason [enumeration] @@ -118,6 +120,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -154,6 +162,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -196,6 +208,7 @@ def register_methods(root_module): register_Ns3ArpL3Protocol_methods(root_module, root_module['ns3::ArpL3Protocol']) register_Ns3Icmpv6DestinationUnreachable_methods(root_module, root_module['ns3::Icmpv6DestinationUnreachable']) register_Ns3Icmpv6Echo_methods(root_module, root_module['ns3::Icmpv6Echo']) + register_Ns3Ipv4Interface_methods(root_module, root_module['ns3::Ipv4Interface']) register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol']) register_Ns3Ipv4L4Protocol_methods(root_module, root_module['ns3::Ipv4L4Protocol']) register_Ns3Ipv6L3Protocol_methods(root_module, root_module['ns3::Ipv6L3Protocol']) @@ -1816,6 +1829,103 @@ def register_Ns3Icmpv6Echo_methods(root_module, cls): [param('uint16_t', 'seq')]) return +def register_Ns3Ipv4Interface_methods(root_module, cls): + ## ipv4-interface.h: ns3::Ipv4Interface::Ipv4Interface(ns3::Ipv4Interface const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4Interface const &', 'arg0')]) + ## ipv4-interface.h: ns3::Ipv4Interface::Ipv4Interface() [constructor] + cls.add_constructor([]) + ## ipv4-interface.h: bool ns3::Ipv4Interface::AddAddress(ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('AddAddress', + 'bool', + [param('ns3::Ipv4InterfaceAddress', 'address')]) + ## ipv4-interface.h: ns3::Ipv4InterfaceAddress ns3::Ipv4Interface::GetAddress(uint32_t index) const [member function] + cls.add_method('GetAddress', + 'ns3::Ipv4InterfaceAddress', + [param('uint32_t', 'index')], + is_const=True) + ## ipv4-interface.h: ns3::Ptr ns3::Ipv4Interface::GetArpCache() const [member function] + cls.add_method('GetArpCache', + 'ns3::Ptr< ns3::ArpCache >', + [], + is_const=True) + ## ipv4-interface.h: ns3::Ptr ns3::Ipv4Interface::GetDevice() const [member function] + cls.add_method('GetDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## ipv4-interface.h: uint16_t ns3::Ipv4Interface::GetMetric() const [member function] + cls.add_method('GetMetric', + 'uint16_t', + [], + is_const=True) + ## ipv4-interface.h: uint32_t ns3::Ipv4Interface::GetNAddresses() const [member function] + cls.add_method('GetNAddresses', + 'uint32_t', + [], + is_const=True) + ## ipv4-interface.h: static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## ipv4-interface.h: bool ns3::Ipv4Interface::IsDown() const [member function] + cls.add_method('IsDown', + 'bool', + [], + is_const=True) + ## ipv4-interface.h: bool ns3::Ipv4Interface::IsForwarding() const [member function] + cls.add_method('IsForwarding', + 'bool', + [], + is_const=True) + ## ipv4-interface.h: bool ns3::Ipv4Interface::IsUp() const [member function] + cls.add_method('IsUp', + 'bool', + [], + is_const=True) + ## ipv4-interface.h: ns3::Ipv4InterfaceAddress ns3::Ipv4Interface::RemoveAddress(uint32_t index) [member function] + cls.add_method('RemoveAddress', + 'ns3::Ipv4InterfaceAddress', + [param('uint32_t', 'index')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::Send(ns3::Ptr p, ns3::Ipv4Address dest) [member function] + cls.add_method('Send', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetArpCache(ns3::Ptr arg0) [member function] + cls.add_method('SetArpCache', + 'void', + [param('ns3::Ptr< ns3::ArpCache >', 'arg0')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetDevice(ns3::Ptr device) [member function] + cls.add_method('SetDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'device')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetDown() [member function] + cls.add_method('SetDown', + 'void', + []) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetForwarding(bool val) [member function] + cls.add_method('SetForwarding', + 'void', + [param('bool', 'val')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetMetric(uint16_t metric) [member function] + cls.add_method('SetMetric', + 'void', + [param('uint16_t', 'metric')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetNode(ns3::Ptr node) [member function] + cls.add_method('SetNode', + 'void', + [param('ns3::Ptr< ns3::Node >', 'node')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetUp() [member function] + cls.add_method('SetUp', + 'void', + []) + ## ipv4-interface.h: void ns3::Ipv4Interface::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='protected', is_virtual=True) + return + def register_Ns3Ipv4L3Protocol_methods(root_module, cls): ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable] cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True) @@ -1903,6 +2013,11 @@ def register_Ns3Ipv4L3Protocol_methods(root_module, cls): 'int32_t', [param('ns3::Ptr< ns3::NetDevice const >', 'device')], is_const=True, is_virtual=True) + ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::IsDestinationAddress(ns3::Ipv4Address address, uint32_t iif) const [member function] + cls.add_method('IsDestinationAddress', + 'bool', + [param('ns3::Ipv4Address', 'address'), param('uint32_t', 'iif')], + is_const=True, is_virtual=True) ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::AddAddress(uint32_t i, ns3::Ipv4InterfaceAddress address) [member function] cls.add_method('AddAddress', 'bool', @@ -1988,6 +2103,16 @@ def register_Ns3Ipv4L3Protocol_methods(root_module, cls): 'bool', [], is_const=True, visibility='private', is_virtual=True) + ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetWeakEsModel(bool model) [member function] + cls.add_method('SetWeakEsModel', + 'void', + [param('bool', 'model')], + visibility='private', is_virtual=True) + ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::GetWeakEsModel() const [member function] + cls.add_method('GetWeakEsModel', + 'bool', + [], + is_const=True, visibility='private', is_virtual=True) return def register_Ns3Ipv4L4Protocol_methods(root_module, cls): @@ -2825,6 +2950,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -2840,6 +2966,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_list_routing.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_list_routing.py index 36415514e..f1da665ac 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_list_routing.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_list_routing.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -128,7 +138,7 @@ def register_Ns3Ipv4ListRouting_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], is_virtual=True) - ## ipv4-list-routing.h: bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-list-routing.h: bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -148,6 +158,11 @@ def register_Ns3Ipv4ListRouting_methods(root_module, cls): 'void', [], visibility='protected', is_virtual=True) + ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) return def register_Ns3Ipv6ListRouting_methods(root_module, cls): @@ -232,6 +247,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -247,6 +263,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_mesh.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_mesh.py index ba7867490..663e54ccd 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_mesh.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_mesh.py @@ -7,16 +7,20 @@ def register_types(module): module.add_enum('WifiElementId', ['IE11S_MESH_CONFIGURATION', 'IE11S_MESH_ID', 'IE11S_LINK_METRIC_REPORT', 'IE11S_CONGESTION_NOTIFICATION', 'IE11S_PEERING_MANAGEMENT', 'IE11S_SUPP_MBSS_REG_CLASSES_CHANNELS', 'IE11S_MESH_CHANNEL_SWITCH_ANNOUNCEMENT', 'IE11S_MESH_TIM', 'IE11S_AWAKE_WINDOW', 'IE11S_BEACON_TIMING', 'IE11S_MCCAOP_SETUP_REQUEST', 'IE11S_MCCAOP_SETUP_REPLY', 'IE11S_MCCAOP_ADVERTISEMENT', 'IE11S_MCCAOP_RESERVATION_TEARDOWN', 'IE11S_PORTAL_ANNOUNCEMENT', 'IE11S_RANN', 'IE11S_PREQ', 'IE11S_PREP', 'IE11S_PERR', 'IE11S_PROXY_UPDATE', 'IE11S_PROXY_UPDATE_CONFIRMATION', 'IE11S_ABBREVIATED_HANDSHAKE', 'IE11S_MESH_PEERING_PROTOCOL_VERSION']) ## mesh-wifi-beacon.h: ns3::MeshWifiBeacon [class] module.add_class('MeshWifiBeacon') + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::MeshWifiInterfaceMacPlugin', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::WifiInformationElement', 'ns3::empty'], parent=root_module['ns3::empty']) ## wifi-information-element-vector.h: ns3::WifiInformationElement [class] - module.add_class('WifiInformationElement', parent=root_module['ns3::RefCountBase']) - ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin [class] - module.add_class('MeshWifiInterfaceMacPlugin', parent=root_module['ns3::RefCountBase']) + module.add_class('WifiInformationElement', parent=root_module['ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty >']) ## wifi-information-element-vector.h: ns3::WifiInformationElementVector [class] module.add_class('WifiInformationElementVector', parent=root_module['ns3::Header']) ## mesh-l2-routing-protocol.h: ns3::MeshL2RoutingProtocol [class] module.add_class('MeshL2RoutingProtocol', parent=root_module['ns3::Object']) ## mesh-wifi-interface-mac.h: ns3::MeshWifiInterfaceMac [class] module.add_class('MeshWifiInterfaceMac', parent=root_module['ns3::WifiMac']) + ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin [class] + module.add_class('MeshWifiInterfaceMacPlugin', parent=root_module['ns3::SimpleRefCount< ns3::MeshWifiInterfaceMacPlugin, ns3::empty >']) ## mesh-point-device.h: ns3::MeshPointDevice [class] module.add_class('MeshPointDevice', parent=root_module['ns3::NetDevice']) @@ -38,6 +42,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -74,6 +84,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -93,10 +107,10 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3MeshWifiBeacon_methods(root_module, root_module['ns3::MeshWifiBeacon']) register_Ns3WifiInformationElement_methods(root_module, root_module['ns3::WifiInformationElement']) - register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, root_module['ns3::MeshWifiInterfaceMacPlugin']) register_Ns3WifiInformationElementVector_methods(root_module, root_module['ns3::WifiInformationElementVector']) register_Ns3MeshL2RoutingProtocol_methods(root_module, root_module['ns3::MeshL2RoutingProtocol']) register_Ns3MeshWifiInterfaceMac_methods(root_module, root_module['ns3::MeshWifiInterfaceMac']) + register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, root_module['ns3::MeshWifiInterfaceMacPlugin']) register_Ns3MeshPointDevice_methods(root_module, root_module['ns3::MeshPointDevice']) return @@ -163,33 +177,6 @@ def register_Ns3WifiInformationElement_methods(root_module, cls): is_pure_virtual=True, is_const=True, is_virtual=True) return -def register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, cls): - ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin() [constructor] - cls.add_constructor([]) - ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin(ns3::MeshWifiInterfaceMacPlugin const & arg0) [copy constructor] - cls.add_constructor([param('ns3::MeshWifiInterfaceMacPlugin const &', 'arg0')]) - ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::Receive(ns3::Ptr packet, ns3::WifiMacHeader const & header) [member function] - cls.add_method('Receive', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader const &', 'header')], - is_pure_virtual=True, is_virtual=True) - ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::SetParent(ns3::Ptr parent) [member function] - cls.add_method('SetParent', - 'void', - [param('ns3::Ptr< ns3::MeshWifiInterfaceMac >', 'parent')], - is_pure_virtual=True, is_virtual=True) - ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::UpdateBeacon(ns3::MeshWifiBeacon & beacon) const [member function] - cls.add_method('UpdateBeacon', - 'void', - [param('ns3::MeshWifiBeacon &', 'beacon')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::UpdateOutcomingFrame(ns3::Ptr packet, ns3::WifiMacHeader & header, ns3::Mac48Address from, ns3::Mac48Address to) [member function] - cls.add_method('UpdateOutcomingFrame', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader &', 'header'), param('ns3::Mac48Address', 'from'), param('ns3::Mac48Address', 'to')], - is_pure_virtual=True, is_virtual=True) - return - def register_Ns3WifiInformationElementVector_methods(root_module, cls): cls.add_binary_comparison_operator('==') ## wifi-information-element-vector.h: ns3::WifiInformationElementVector::WifiInformationElementVector(ns3::WifiInformationElementVector const & arg0) [copy constructor] @@ -524,6 +511,33 @@ def register_Ns3MeshWifiInterfaceMac_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, cls): + ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin() [constructor] + cls.add_constructor([]) + ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin(ns3::MeshWifiInterfaceMacPlugin const & arg0) [copy constructor] + cls.add_constructor([param('ns3::MeshWifiInterfaceMacPlugin const &', 'arg0')]) + ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::Receive(ns3::Ptr packet, ns3::WifiMacHeader const & header) [member function] + cls.add_method('Receive', + 'bool', + [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader const &', 'header')], + is_pure_virtual=True, is_virtual=True) + ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::SetParent(ns3::Ptr parent) [member function] + cls.add_method('SetParent', + 'void', + [param('ns3::Ptr< ns3::MeshWifiInterfaceMac >', 'parent')], + is_pure_virtual=True, is_virtual=True) + ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::UpdateBeacon(ns3::MeshWifiBeacon & beacon) const [member function] + cls.add_method('UpdateBeacon', + 'void', + [param('ns3::MeshWifiBeacon &', 'beacon')], + is_pure_virtual=True, is_const=True, is_virtual=True) + ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::UpdateOutcomingFrame(ns3::Ptr packet, ns3::WifiMacHeader & header, ns3::Mac48Address from, ns3::Mac48Address to) [member function] + cls.add_method('UpdateOutcomingFrame', + 'bool', + [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader &', 'header'), param('ns3::Mac48Address', 'from'), param('ns3::Mac48Address', 'to')], + is_pure_virtual=True, is_virtual=True) + return + def register_Ns3MeshPointDevice_methods(root_module, cls): ## mesh-point-device.h: ns3::MeshPointDevice::MeshPointDevice(ns3::MeshPointDevice const & arg0) [copy constructor] cls.add_constructor([param('ns3::MeshPointDevice const &', 'arg0')]) @@ -703,6 +717,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -718,6 +733,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_mobility.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_mobility.py index 37f4e096e..e2e154434 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_mobility.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_mobility.py @@ -17,14 +17,8 @@ def register_types(module): module.add_class('RandomDiscPositionAllocator', parent=root_module['ns3::PositionAllocator']) ## position-allocator.h: ns3::RandomRectanglePositionAllocator [class] module.add_class('RandomRectanglePositionAllocator', parent=root_module['ns3::PositionAllocator']) - ## rectangle.h: ns3::RectangleChecker [class] - module.add_class('RectangleChecker', parent=root_module['ns3::AttributeChecker']) - ## rectangle.h: ns3::RectangleValue [class] - module.add_class('RectangleValue', parent=root_module['ns3::AttributeValue']) - ## waypoint.h: ns3::WaypointChecker [class] - module.add_class('WaypointChecker', parent=root_module['ns3::AttributeChecker']) - ## waypoint.h: ns3::WaypointValue [class] - module.add_class('WaypointValue', parent=root_module['ns3::AttributeValue']) + ## position-allocator.h: ns3::UniformDiscPositionAllocator [class] + module.add_class('UniformDiscPositionAllocator', parent=root_module['ns3::PositionAllocator']) ## position-allocator.h: ns3::GridPositionAllocator [class] module.add_class('GridPositionAllocator', parent=root_module['ns3::PositionAllocator']) ## position-allocator.h: ns3::GridPositionAllocator::LayoutType [enumeration] @@ -41,8 +35,16 @@ def register_types(module): module.add_enum('Mode', ['MODE_DISTANCE', 'MODE_TIME'], outer_class=root_module['ns3::RandomWalk2dMobilityModel']) ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel [class] module.add_class('RandomWaypointMobilityModel', parent=root_module['ns3::MobilityModel']) + ## rectangle.h: ns3::RectangleChecker [class] + module.add_class('RectangleChecker', parent=root_module['ns3::AttributeChecker']) + ## rectangle.h: ns3::RectangleValue [class] + module.add_class('RectangleValue', parent=root_module['ns3::AttributeValue']) + ## waypoint.h: ns3::WaypointChecker [class] + module.add_class('WaypointChecker', parent=root_module['ns3::AttributeChecker']) ## waypoint-mobility-model.h: ns3::WaypointMobilityModel [class] module.add_class('WaypointMobilityModel', parent=root_module['ns3::MobilityModel']) + ## waypoint.h: ns3::WaypointValue [class] + module.add_class('WaypointValue', parent=root_module['ns3::AttributeValue']) ## constant-acceleration-mobility-model.h: ns3::ConstantAccelerationMobilityModel [class] module.add_class('ConstantAccelerationMobilityModel', parent=root_module['ns3::MobilityModel']) ## constant-position-mobility-model.h: ns3::ConstantPositionMobilityModel [class] @@ -70,6 +72,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -106,6 +114,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -129,17 +141,18 @@ def register_methods(root_module): register_Ns3PositionAllocator_methods(root_module, root_module['ns3::PositionAllocator']) register_Ns3RandomDiscPositionAllocator_methods(root_module, root_module['ns3::RandomDiscPositionAllocator']) register_Ns3RandomRectanglePositionAllocator_methods(root_module, root_module['ns3::RandomRectanglePositionAllocator']) - register_Ns3RectangleChecker_methods(root_module, root_module['ns3::RectangleChecker']) - register_Ns3RectangleValue_methods(root_module, root_module['ns3::RectangleValue']) - register_Ns3WaypointChecker_methods(root_module, root_module['ns3::WaypointChecker']) - register_Ns3WaypointValue_methods(root_module, root_module['ns3::WaypointValue']) + register_Ns3UniformDiscPositionAllocator_methods(root_module, root_module['ns3::UniformDiscPositionAllocator']) register_Ns3GridPositionAllocator_methods(root_module, root_module['ns3::GridPositionAllocator']) register_Ns3ListPositionAllocator_methods(root_module, root_module['ns3::ListPositionAllocator']) register_Ns3MobilityModel_methods(root_module, root_module['ns3::MobilityModel']) register_Ns3RandomDirection2dMobilityModel_methods(root_module, root_module['ns3::RandomDirection2dMobilityModel']) register_Ns3RandomWalk2dMobilityModel_methods(root_module, root_module['ns3::RandomWalk2dMobilityModel']) register_Ns3RandomWaypointMobilityModel_methods(root_module, root_module['ns3::RandomWaypointMobilityModel']) + register_Ns3RectangleChecker_methods(root_module, root_module['ns3::RectangleChecker']) + register_Ns3RectangleValue_methods(root_module, root_module['ns3::RectangleValue']) + register_Ns3WaypointChecker_methods(root_module, root_module['ns3::WaypointChecker']) register_Ns3WaypointMobilityModel_methods(root_module, root_module['ns3::WaypointMobilityModel']) + register_Ns3WaypointValue_methods(root_module, root_module['ns3::WaypointValue']) register_Ns3ConstantAccelerationMobilityModel_methods(root_module, root_module['ns3::ConstantAccelerationMobilityModel']) register_Ns3ConstantPositionMobilityModel_methods(root_module, root_module['ns3::ConstantPositionMobilityModel']) register_Ns3ConstantVelocityMobilityModel_methods(root_module, root_module['ns3::ConstantVelocityMobilityModel']) @@ -315,84 +328,33 @@ def register_Ns3RandomRectanglePositionAllocator_methods(root_module, cls): [param('ns3::RandomVariable', 'y')]) return -def register_Ns3RectangleChecker_methods(root_module, cls): - ## rectangle.h: ns3::RectangleChecker::RectangleChecker() [constructor] +def register_Ns3UniformDiscPositionAllocator_methods(root_module, cls): + ## position-allocator.h: ns3::UniformDiscPositionAllocator::UniformDiscPositionAllocator(ns3::UniformDiscPositionAllocator const & arg0) [copy constructor] + cls.add_constructor([param('ns3::UniformDiscPositionAllocator const &', 'arg0')]) + ## position-allocator.h: ns3::UniformDiscPositionAllocator::UniformDiscPositionAllocator() [constructor] cls.add_constructor([]) - ## rectangle.h: ns3::RectangleChecker::RectangleChecker(ns3::RectangleChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RectangleChecker const &', 'arg0')]) - return - -def register_Ns3RectangleValue_methods(root_module, cls): - ## rectangle.h: ns3::RectangleValue::RectangleValue() [constructor] - cls.add_constructor([]) - ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::RectangleValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RectangleValue const &', 'arg0')]) - ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::Rectangle const & value) [constructor] - cls.add_constructor([param('ns3::Rectangle const &', 'value')]) - ## rectangle.h: ns3::Ptr ns3::RectangleValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', + ## position-allocator.h: ns3::Vector ns3::UniformDiscPositionAllocator::GetNext() const [member function] + cls.add_method('GetNext', + 'ns3::Vector', [], is_const=True, is_virtual=True) - ## rectangle.h: bool ns3::RectangleValue::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) - ## rectangle.h: ns3::Rectangle ns3::RectangleValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Rectangle', + ## position-allocator.h: static ns3::TypeId ns3::UniformDiscPositionAllocator::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', [], - is_const=True) - ## rectangle.h: std::string ns3::RectangleValue::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) - ## rectangle.h: void ns3::RectangleValue::Set(ns3::Rectangle const & value) [member function] - cls.add_method('Set', + is_static=True) + ## position-allocator.h: void ns3::UniformDiscPositionAllocator::SetRho(double rho) [member function] + cls.add_method('SetRho', 'void', - [param('ns3::Rectangle const &', 'value')]) - return - -def register_Ns3WaypointChecker_methods(root_module, cls): - ## waypoint.h: ns3::WaypointChecker::WaypointChecker() [constructor] - cls.add_constructor([]) - ## waypoint.h: ns3::WaypointChecker::WaypointChecker(ns3::WaypointChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WaypointChecker const &', 'arg0')]) - return - -def register_Ns3WaypointValue_methods(root_module, cls): - ## waypoint.h: ns3::WaypointValue::WaypointValue() [constructor] - cls.add_constructor([]) - ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::WaypointValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WaypointValue const &', 'arg0')]) - ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::Waypoint const & value) [constructor] - cls.add_constructor([param('ns3::Waypoint const &', 'value')]) - ## waypoint.h: ns3::Ptr ns3::WaypointValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## waypoint.h: bool ns3::WaypointValue::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) - ## waypoint.h: ns3::Waypoint ns3::WaypointValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Waypoint', - [], - is_const=True) - ## waypoint.h: std::string ns3::WaypointValue::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) - ## waypoint.h: void ns3::WaypointValue::Set(ns3::Waypoint const & value) [member function] - cls.add_method('Set', + [param('double', 'rho')]) + ## position-allocator.h: void ns3::UniformDiscPositionAllocator::SetX(double x) [member function] + cls.add_method('SetX', 'void', - [param('ns3::Waypoint const &', 'value')]) + [param('double', 'x')]) + ## position-allocator.h: void ns3::UniformDiscPositionAllocator::SetY(double y) [member function] + cls.add_method('SetY', + 'void', + [param('double', 'y')]) return def register_Ns3GridPositionAllocator_methods(root_module, cls): @@ -539,10 +501,10 @@ def register_Ns3MobilityModel_methods(root_module, cls): return def register_Ns3RandomDirection2dMobilityModel_methods(root_module, cls): - ## random-direction-2d-mobility-model.h: ns3::RandomDirection2dMobilityModel::RandomDirection2dMobilityModel(ns3::RandomDirection2dMobilityModel const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RandomDirection2dMobilityModel const &', 'arg0')]) ## random-direction-2d-mobility-model.h: ns3::RandomDirection2dMobilityModel::RandomDirection2dMobilityModel() [constructor] cls.add_constructor([]) + ## random-direction-2d-mobility-model.h: ns3::RandomDirection2dMobilityModel::RandomDirection2dMobilityModel(ns3::RandomDirection2dMobilityModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RandomDirection2dMobilityModel const &', 'arg0')]) ## random-direction-2d-mobility-model.h: static ns3::TypeId ns3::RandomDirection2dMobilityModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', @@ -568,13 +530,18 @@ def register_Ns3RandomDirection2dMobilityModel_methods(root_module, cls): 'void', [param('ns3::Vector const &', 'position')], visibility='private', is_virtual=True) + ## random-direction-2d-mobility-model.h: void ns3::RandomDirection2dMobilityModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3RandomWalk2dMobilityModel_methods(root_module, cls): - ## random-walk-2d-mobility-model.h: ns3::RandomWalk2dMobilityModel::RandomWalk2dMobilityModel(ns3::RandomWalk2dMobilityModel const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RandomWalk2dMobilityModel const &', 'arg0')]) ## random-walk-2d-mobility-model.h: ns3::RandomWalk2dMobilityModel::RandomWalk2dMobilityModel() [constructor] cls.add_constructor([]) + ## random-walk-2d-mobility-model.h: ns3::RandomWalk2dMobilityModel::RandomWalk2dMobilityModel(ns3::RandomWalk2dMobilityModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RandomWalk2dMobilityModel const &', 'arg0')]) ## random-walk-2d-mobility-model.h: static ns3::TypeId ns3::RandomWalk2dMobilityModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', @@ -600,18 +567,28 @@ def register_Ns3RandomWalk2dMobilityModel_methods(root_module, cls): 'void', [param('ns3::Vector const &', 'position')], visibility='private', is_virtual=True) + ## random-walk-2d-mobility-model.h: void ns3::RandomWalk2dMobilityModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3RandomWaypointMobilityModel_methods(root_module, cls): - ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel::RandomWaypointMobilityModel(ns3::RandomWaypointMobilityModel const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RandomWaypointMobilityModel const &', 'arg0')]) ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel::RandomWaypointMobilityModel() [constructor] cls.add_constructor([]) + ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel::RandomWaypointMobilityModel(ns3::RandomWaypointMobilityModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RandomWaypointMobilityModel const &', 'arg0')]) ## random-waypoint-mobility-model.h: static ns3::TypeId ns3::RandomWaypointMobilityModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) + ## random-waypoint-mobility-model.h: void ns3::RandomWaypointMobilityModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## random-waypoint-mobility-model.h: ns3::Vector ns3::RandomWaypointMobilityModel::DoGetPosition() const [member function] cls.add_method('DoGetPosition', 'ns3::Vector', @@ -629,6 +606,53 @@ def register_Ns3RandomWaypointMobilityModel_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3RectangleChecker_methods(root_module, cls): + ## rectangle.h: ns3::RectangleChecker::RectangleChecker() [constructor] + cls.add_constructor([]) + ## rectangle.h: ns3::RectangleChecker::RectangleChecker(ns3::RectangleChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RectangleChecker const &', 'arg0')]) + return + +def register_Ns3RectangleValue_methods(root_module, cls): + ## rectangle.h: ns3::RectangleValue::RectangleValue() [constructor] + cls.add_constructor([]) + ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::RectangleValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RectangleValue const &', 'arg0')]) + ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::Rectangle const & value) [constructor] + cls.add_constructor([param('ns3::Rectangle const &', 'value')]) + ## rectangle.h: ns3::Ptr ns3::RectangleValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## rectangle.h: bool ns3::RectangleValue::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) + ## rectangle.h: ns3::Rectangle ns3::RectangleValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Rectangle', + [], + is_const=True) + ## rectangle.h: std::string ns3::RectangleValue::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) + ## rectangle.h: void ns3::RectangleValue::Set(ns3::Rectangle const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Rectangle const &', 'value')]) + return + +def register_Ns3WaypointChecker_methods(root_module, cls): + ## waypoint.h: ns3::WaypointChecker::WaypointChecker() [constructor] + cls.add_constructor([]) + ## waypoint.h: ns3::WaypointChecker::WaypointChecker(ns3::WaypointChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WaypointChecker const &', 'arg0')]) + return + def register_Ns3WaypointMobilityModel_methods(root_module, cls): ## waypoint-mobility-model.h: ns3::WaypointMobilityModel::WaypointMobilityModel(ns3::WaypointMobilityModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::WaypointMobilityModel const &', 'arg0')]) @@ -679,6 +703,39 @@ def register_Ns3WaypointMobilityModel_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3WaypointValue_methods(root_module, cls): + ## waypoint.h: ns3::WaypointValue::WaypointValue() [constructor] + cls.add_constructor([]) + ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::WaypointValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WaypointValue const &', 'arg0')]) + ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::Waypoint const & value) [constructor] + cls.add_constructor([param('ns3::Waypoint const &', 'value')]) + ## waypoint.h: ns3::Ptr ns3::WaypointValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## waypoint.h: bool ns3::WaypointValue::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) + ## waypoint.h: ns3::Waypoint ns3::WaypointValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Waypoint', + [], + is_const=True) + ## waypoint.h: std::string ns3::WaypointValue::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) + ## waypoint.h: void ns3::WaypointValue::Set(ns3::Waypoint const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Waypoint const &', 'value')]) + return + def register_Ns3ConstantAccelerationMobilityModel_methods(root_module, cls): ## constant-acceleration-mobility-model.h: ns3::ConstantAccelerationMobilityModel::ConstantAccelerationMobilityModel(ns3::ConstantAccelerationMobilityModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::ConstantAccelerationMobilityModel const &', 'arg0')]) @@ -826,6 +883,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -841,6 +899,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_nix_vector_routing.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_nix_vector_routing.py index f027a698f..dcb57d5f0 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_nix_vector_routing.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_nix_vector_routing.py @@ -30,6 +30,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -66,6 +72,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -129,7 +139,7 @@ def register_Ns3Ipv4NixVectorRouting_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], visibility='private', is_virtual=True) - ## ipv4-nix-vector-routing.h: bool ns3::Ipv4NixVectorRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-nix-vector-routing.h: bool ns3::Ipv4NixVectorRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -151,6 +161,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -166,6 +177,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py index 36d872341..e5fd2bd34 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py @@ -59,66 +59,36 @@ def register_types(module): module.add_class('PacketSocketAddress') ## packet-socket-address.h: ns3::PacketSocketAddress [class] root_module['ns3::PacketSocketAddress'].implicitly_converts_to(root_module['ns3::Address']) - ## packetbb.h: ns3::PbbAddressBlock [class] - module.add_class('PbbAddressBlock', allow_subclassing=True) - ## packetbb.h: ns3::PbbAddressBlockIpv4 [class] - module.add_class('PbbAddressBlockIpv4', parent=root_module['ns3::PbbAddressBlock']) - ## packetbb.h: ns3::PbbAddressBlockIpv6 [class] - module.add_class('PbbAddressBlockIpv6', parent=root_module['ns3::PbbAddressBlock']) ## packetbb.h: ns3::PbbAddressTlvBlock [class] module.add_class('PbbAddressTlvBlock') - ## packetbb.h: ns3::PbbMessage [class] - module.add_class('PbbMessage', allow_subclassing=True) - ## packetbb.h: ns3::PbbMessageIpv4 [class] - module.add_class('PbbMessageIpv4', parent=root_module['ns3::PbbMessage']) - ## packetbb.h: ns3::PbbMessageIpv6 [class] - module.add_class('PbbMessageIpv6', parent=root_module['ns3::PbbMessage']) - ## packetbb.h: ns3::PbbTlv [class] - module.add_class('PbbTlv') ## packetbb.h: ns3::PbbTlvBlock [class] module.add_class('PbbTlvBlock') - ## ipv4-address.h: ns3::Ipv4AddressChecker [class] - module.add_class('Ipv4AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h: ns3::Ipv4AddressValue [class] - module.add_class('Ipv4AddressValue', parent=root_module['ns3::AttributeValue']) ## ipv4-header.h: ns3::Ipv4Header [class] module.add_class('Ipv4Header', parent=root_module['ns3::Header']) - ## ipv4-address.h: ns3::Ipv4MaskChecker [class] - module.add_class('Ipv4MaskChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h: ns3::Ipv4MaskValue [class] - module.add_class('Ipv4MaskValue', parent=root_module['ns3::AttributeValue']) - ## ipv4-route.h: ns3::Ipv4MulticastRoute [class] - module.add_class('Ipv4MulticastRoute', parent=root_module['ns3::RefCountBase']) - ## ipv4-route.h: ns3::Ipv4Route [class] - module.add_class('Ipv4Route', parent=root_module['ns3::RefCountBase']) - ## ipv6-address.h: ns3::Ipv6AddressChecker [class] - module.add_class('Ipv6AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h: ns3::Ipv6AddressValue [class] - module.add_class('Ipv6AddressValue', parent=root_module['ns3::AttributeValue']) ## ipv6-header.h: ns3::Ipv6Header [class] module.add_class('Ipv6Header', parent=root_module['ns3::Header']) ## ipv6-header.h: ns3::Ipv6Header::NextHeader_e [enumeration] module.add_enum('NextHeader_e', ['IPV6_EXT_HOP_BY_HOP', 'IPV6_IPV4', 'IPV6_TCP', 'IPV6_UDP', 'IPV6_IPV6', 'IPV6_EXT_ROUTING', 'IPV6_EXT_FRAGMENTATION', 'IPV6_EXT_CONFIDENTIALITY', 'IPV6_EXT_AUTHENTIFICATION', 'IPV6_ICMPV6', 'IPV6_EXT_END', 'IPV6_EXT_DESTINATION', 'IPV6_SCTP', 'IPV6_EXT_MOBILITY', 'IPV6_UDP_LITE'], outer_class=root_module['ns3::Ipv6Header']) - ## ipv6-route.h: ns3::Ipv6MulticastRoute [class] - module.add_class('Ipv6MulticastRoute', parent=root_module['ns3::RefCountBase']) - ## ipv6-address.h: ns3::Ipv6PrefixChecker [class] - module.add_class('Ipv6PrefixChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h: ns3::Ipv6PrefixValue [class] - module.add_class('Ipv6PrefixValue', parent=root_module['ns3::AttributeValue']) - ## ipv6-route.h: ns3::Ipv6Route [class] - module.add_class('Ipv6Route', parent=root_module['ns3::RefCountBase']) ## llc-snap-header.h: ns3::LlcSnapHeader [class] module.add_class('LlcSnapHeader', parent=root_module['ns3::Header']) - ## mac48-address.h: ns3::Mac48AddressChecker [class] - module.add_class('Mac48AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## mac48-address.h: ns3::Mac48AddressValue [class] - module.add_class('Mac48AddressValue', parent=root_module['ns3::AttributeValue']) - ## packetbb.h: ns3::PbbAddressTlv [class] - module.add_class('PbbAddressTlv', parent=root_module['ns3::PbbTlv']) - ## packetbb.h: ns3::PbbPacket [class] - module.add_class('PbbPacket', parent=root_module['ns3::Header']) ## queue.h: ns3::Queue [class] module.add_class('Queue', parent=root_module['ns3::Object']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv4MulticastRoute', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv4Route', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv6MulticastRoute', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv6Route', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbAddressBlock', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbMessage', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbPacket', 'ns3::Header'], parent=root_module['ns3::Header']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbTlv', 'ns3::empty'], parent=root_module['ns3::empty']) ## socket.h: ns3::Socket [class] module.add_class('Socket', parent=root_module['ns3::Object']) ## socket.h: ns3::Socket::SocketErrno [enumeration] @@ -139,10 +109,6 @@ def register_types(module): module.add_class('UdpSocket', parent=root_module['ns3::Socket']) ## udp-socket-factory.h: ns3::UdpSocketFactory [class] module.add_class('UdpSocketFactory', parent=root_module['ns3::SocketFactory']) - ## address.h: ns3::AddressChecker [class] - module.add_class('AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## address.h: ns3::AddressValue [class] - module.add_class('AddressValue', parent=root_module['ns3::AttributeValue']) ## application.h: ns3::Application [class] module.add_class('Application', parent=root_module['ns3::Object']) ## channel.h: ns3::Channel [class] @@ -157,16 +123,44 @@ def register_types(module): module.add_class('EthernetTrailer', parent=root_module['ns3::Trailer']) ## ipv4.h: ns3::Ipv4 [class] module.add_class('Ipv4', parent=root_module['ns3::Object']) + ## ipv4-address.h: ns3::Ipv4AddressChecker [class] + module.add_class('Ipv4AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv4-address.h: ns3::Ipv4AddressValue [class] + module.add_class('Ipv4AddressValue', parent=root_module['ns3::AttributeValue']) + ## ipv4-address.h: ns3::Ipv4MaskChecker [class] + module.add_class('Ipv4MaskChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv4-address.h: ns3::Ipv4MaskValue [class] + module.add_class('Ipv4MaskValue', parent=root_module['ns3::AttributeValue']) + ## ipv4-route.h: ns3::Ipv4MulticastRoute [class] + module.add_class('Ipv4MulticastRoute', parent=root_module['ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty >']) ## ipv4-raw-socket-factory.h: ns3::Ipv4RawSocketFactory [class] module.add_class('Ipv4RawSocketFactory', parent=root_module['ns3::SocketFactory']) + ## ipv4-route.h: ns3::Ipv4Route [class] + module.add_class('Ipv4Route', parent=root_module['ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty >']) ## ipv4-routing-protocol.h: ns3::Ipv4RoutingProtocol [class] module.add_class('Ipv4RoutingProtocol', parent=root_module['ns3::Object']) ## ipv6.h: ns3::Ipv6 [class] module.add_class('Ipv6', parent=root_module['ns3::Object']) + ## ipv6-address.h: ns3::Ipv6AddressChecker [class] + module.add_class('Ipv6AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv6-address.h: ns3::Ipv6AddressValue [class] + module.add_class('Ipv6AddressValue', parent=root_module['ns3::AttributeValue']) + ## ipv6-route.h: ns3::Ipv6MulticastRoute [class] + module.add_class('Ipv6MulticastRoute', parent=root_module['ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty >']) + ## ipv6-address.h: ns3::Ipv6PrefixChecker [class] + module.add_class('Ipv6PrefixChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv6-address.h: ns3::Ipv6PrefixValue [class] + module.add_class('Ipv6PrefixValue', parent=root_module['ns3::AttributeValue']) ## ipv6-raw-socket-factory.h: ns3::Ipv6RawSocketFactory [class] module.add_class('Ipv6RawSocketFactory', parent=root_module['ns3::SocketFactory']) + ## ipv6-route.h: ns3::Ipv6Route [class] + module.add_class('Ipv6Route', parent=root_module['ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty >']) ## ipv6-routing-protocol.h: ns3::Ipv6RoutingProtocol [class] module.add_class('Ipv6RoutingProtocol', parent=root_module['ns3::Object']) + ## mac48-address.h: ns3::Mac48AddressChecker [class] + module.add_class('Mac48AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## mac48-address.h: ns3::Mac48AddressValue [class] + module.add_class('Mac48AddressValue', parent=root_module['ns3::AttributeValue']) ## net-device.h: ns3::NetDevice [class] module.add_class('NetDevice', parent=root_module['ns3::Object']) ## net-device.h: ns3::NetDevice::PacketType [enumeration] @@ -175,10 +169,32 @@ def register_types(module): module.add_class('Node', parent=root_module['ns3::Object']) ## packet-socket-factory.h: ns3::PacketSocketFactory [class] module.add_class('PacketSocketFactory', parent=root_module['ns3::SocketFactory']) + ## packetbb.h: ns3::PbbAddressBlock [class] + module.add_class('PbbAddressBlock', parent=root_module['ns3::SimpleRefCount< ns3::PbbAddressBlock, ns3::empty >']) + ## packetbb.h: ns3::PbbAddressBlockIpv4 [class] + module.add_class('PbbAddressBlockIpv4', parent=root_module['ns3::PbbAddressBlock']) + ## packetbb.h: ns3::PbbAddressBlockIpv6 [class] + module.add_class('PbbAddressBlockIpv6', parent=root_module['ns3::PbbAddressBlock']) + ## packetbb.h: ns3::PbbMessage [class] + module.add_class('PbbMessage', parent=root_module['ns3::SimpleRefCount< ns3::PbbMessage, ns3::empty >']) + ## packetbb.h: ns3::PbbMessageIpv4 [class] + module.add_class('PbbMessageIpv4', parent=root_module['ns3::PbbMessage']) + ## packetbb.h: ns3::PbbMessageIpv6 [class] + module.add_class('PbbMessageIpv6', parent=root_module['ns3::PbbMessage']) + ## packetbb.h: ns3::PbbPacket [class] + module.add_class('PbbPacket', parent=root_module['ns3::SimpleRefCount< ns3::PbbPacket, ns3::Header >']) + ## packetbb.h: ns3::PbbTlv [class] + module.add_class('PbbTlv', parent=root_module['ns3::SimpleRefCount< ns3::PbbTlv, ns3::empty >']) ## simple-channel.h: ns3::SimpleChannel [class] module.add_class('SimpleChannel', parent=root_module['ns3::Channel']) ## simple-net-device.h: ns3::SimpleNetDevice [class] module.add_class('SimpleNetDevice', parent=root_module['ns3::NetDevice']) + ## address.h: ns3::AddressChecker [class] + module.add_class('AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## address.h: ns3::AddressValue [class] + module.add_class('AddressValue', parent=root_module['ns3::AttributeValue']) + ## packetbb.h: ns3::PbbAddressTlv [class] + module.add_class('PbbAddressTlv', parent=root_module['ns3::PbbTlv']) module.add_container('ns3::olsr::MprSet', 'ns3::Ipv4Address', container_type='set') module.add_container('std::vector< ns3::Ipv4Address >', 'ns3::Ipv4Address', container_type='vector') @@ -200,6 +216,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -236,6 +258,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -269,34 +295,11 @@ def register_methods(root_module): register_Ns3Mac64Address_methods(root_module, root_module['ns3::Mac64Address']) register_Ns3NodeList_methods(root_module, root_module['ns3::NodeList']) register_Ns3PacketSocketAddress_methods(root_module, root_module['ns3::PacketSocketAddress']) - register_Ns3PbbAddressBlock_methods(root_module, root_module['ns3::PbbAddressBlock']) - register_Ns3PbbAddressBlockIpv4_methods(root_module, root_module['ns3::PbbAddressBlockIpv4']) - register_Ns3PbbAddressBlockIpv6_methods(root_module, root_module['ns3::PbbAddressBlockIpv6']) register_Ns3PbbAddressTlvBlock_methods(root_module, root_module['ns3::PbbAddressTlvBlock']) - register_Ns3PbbMessage_methods(root_module, root_module['ns3::PbbMessage']) - register_Ns3PbbMessageIpv4_methods(root_module, root_module['ns3::PbbMessageIpv4']) - register_Ns3PbbMessageIpv6_methods(root_module, root_module['ns3::PbbMessageIpv6']) - register_Ns3PbbTlv_methods(root_module, root_module['ns3::PbbTlv']) register_Ns3PbbTlvBlock_methods(root_module, root_module['ns3::PbbTlvBlock']) - register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker']) - register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue']) register_Ns3Ipv4Header_methods(root_module, root_module['ns3::Ipv4Header']) - register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker']) - register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue']) - register_Ns3Ipv4MulticastRoute_methods(root_module, root_module['ns3::Ipv4MulticastRoute']) - register_Ns3Ipv4Route_methods(root_module, root_module['ns3::Ipv4Route']) - register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker']) - register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue']) register_Ns3Ipv6Header_methods(root_module, root_module['ns3::Ipv6Header']) - register_Ns3Ipv6MulticastRoute_methods(root_module, root_module['ns3::Ipv6MulticastRoute']) - register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker']) - register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue']) - register_Ns3Ipv6Route_methods(root_module, root_module['ns3::Ipv6Route']) register_Ns3LlcSnapHeader_methods(root_module, root_module['ns3::LlcSnapHeader']) - register_Ns3Mac48AddressChecker_methods(root_module, root_module['ns3::Mac48AddressChecker']) - register_Ns3Mac48AddressValue_methods(root_module, root_module['ns3::Mac48AddressValue']) - register_Ns3PbbAddressTlv_methods(root_module, root_module['ns3::PbbAddressTlv']) - register_Ns3PbbPacket_methods(root_module, root_module['ns3::PbbPacket']) register_Ns3Queue_methods(root_module, root_module['ns3::Queue']) register_Ns3Socket_methods(root_module, root_module['ns3::Socket']) register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag']) @@ -307,24 +310,47 @@ def register_methods(root_module): register_Ns3TcpSocketFactory_methods(root_module, root_module['ns3::TcpSocketFactory']) register_Ns3UdpSocket_methods(root_module, root_module['ns3::UdpSocket']) register_Ns3UdpSocketFactory_methods(root_module, root_module['ns3::UdpSocketFactory']) - register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker']) - register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue']) register_Ns3Application_methods(root_module, root_module['ns3::Application']) register_Ns3Channel_methods(root_module, root_module['ns3::Channel']) register_Ns3DropTailQueue_methods(root_module, root_module['ns3::DropTailQueue']) register_Ns3EthernetHeader_methods(root_module, root_module['ns3::EthernetHeader']) register_Ns3EthernetTrailer_methods(root_module, root_module['ns3::EthernetTrailer']) register_Ns3Ipv4_methods(root_module, root_module['ns3::Ipv4']) + 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_Ns3Ipv4MulticastRoute_methods(root_module, root_module['ns3::Ipv4MulticastRoute']) register_Ns3Ipv4RawSocketFactory_methods(root_module, root_module['ns3::Ipv4RawSocketFactory']) + register_Ns3Ipv4Route_methods(root_module, root_module['ns3::Ipv4Route']) register_Ns3Ipv4RoutingProtocol_methods(root_module, root_module['ns3::Ipv4RoutingProtocol']) register_Ns3Ipv6_methods(root_module, root_module['ns3::Ipv6']) + register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker']) + register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue']) + register_Ns3Ipv6MulticastRoute_methods(root_module, root_module['ns3::Ipv6MulticastRoute']) + register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker']) + register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue']) register_Ns3Ipv6RawSocketFactory_methods(root_module, root_module['ns3::Ipv6RawSocketFactory']) + register_Ns3Ipv6Route_methods(root_module, root_module['ns3::Ipv6Route']) register_Ns3Ipv6RoutingProtocol_methods(root_module, root_module['ns3::Ipv6RoutingProtocol']) + 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_Ns3Node_methods(root_module, root_module['ns3::Node']) register_Ns3PacketSocketFactory_methods(root_module, root_module['ns3::PacketSocketFactory']) + register_Ns3PbbAddressBlock_methods(root_module, root_module['ns3::PbbAddressBlock']) + register_Ns3PbbAddressBlockIpv4_methods(root_module, root_module['ns3::PbbAddressBlockIpv4']) + register_Ns3PbbAddressBlockIpv6_methods(root_module, root_module['ns3::PbbAddressBlockIpv6']) + register_Ns3PbbMessage_methods(root_module, root_module['ns3::PbbMessage']) + register_Ns3PbbMessageIpv4_methods(root_module, root_module['ns3::PbbMessageIpv4']) + register_Ns3PbbMessageIpv6_methods(root_module, root_module['ns3::PbbMessageIpv6']) + register_Ns3PbbPacket_methods(root_module, root_module['ns3::PbbPacket']) + register_Ns3PbbTlv_methods(root_module, root_module['ns3::PbbTlv']) register_Ns3SimpleChannel_methods(root_module, root_module['ns3::SimpleChannel']) register_Ns3SimpleNetDevice_methods(root_module, root_module['ns3::SimpleNetDevice']) + register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker']) + register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue']) + register_Ns3PbbAddressTlv_methods(root_module, root_module['ns3::PbbAddressTlv']) return def register_Ns3Address_methods(root_module, cls): @@ -1254,341 +1280,6 @@ def register_Ns3PacketSocketAddress_methods(root_module, cls): [param('uint32_t', 'device')]) return -def register_Ns3PbbAddressBlock_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock(ns3::PbbAddressBlock const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressBlock const &', 'arg0')]) - ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressBack() const [member function] - cls.add_method('AddressBack', - 'ns3::Address', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressBegin() [member function] - cls.add_method('AddressBegin', - 'std::_List_iterator< ns3::Address >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressBegin() const [member function] - cls.add_method('AddressBegin', - 'std::_List_const_iterator< ns3::Address >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::AddressClear() [member function] - cls.add_method('AddressClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbAddressBlock::AddressEmpty() const [member function] - cls.add_method('AddressEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressEnd() [member function] - cls.add_method('AddressEnd', - 'std::_List_iterator< ns3::Address >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressEnd() const [member function] - cls.add_method('AddressEnd', - 'std::_List_const_iterator< ns3::Address >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator position) [member function] - cls.add_method('AddressErase', - 'std::_List_iterator< ns3::Address >', - [param('std::_List_iterator< ns3::Address >', 'position')]) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator first, std::_List_iterator last) [member function] - cls.add_method('AddressErase', - 'std::_List_iterator< ns3::Address >', - [param('std::_List_iterator< ns3::Address >', 'first'), param('std::_List_iterator< ns3::Address >', 'last')]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressFront() const [member function] - cls.add_method('AddressFront', - 'ns3::Address', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressInsert(std::_List_iterator position, ns3::Address const value) [member function] - cls.add_method('AddressInsert', - 'std::_List_iterator< ns3::Address >', - [param('std::_List_iterator< ns3::Address >', 'position'), param('ns3::Address const', 'value')]) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPopBack() [member function] - cls.add_method('AddressPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPopFront() [member function] - cls.add_method('AddressPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPushBack(ns3::Address address) [member function] - cls.add_method('AddressPushBack', - 'void', - [param('ns3::Address', 'address')]) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPushFront(ns3::Address address) [member function] - cls.add_method('AddressPushFront', - 'void', - [param('ns3::Address', 'address')]) - ## packetbb.h: int ns3::PbbAddressBlock::AddressSize() const [member function] - cls.add_method('AddressSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Deserialize(ns3::Buffer::Iterator & start) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')]) - ## packetbb.h: uint32_t ns3::PbbAddressBlock::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixBack() const [member function] - cls.add_method('PrefixBack', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixBegin() [member function] - cls.add_method('PrefixBegin', - 'std::_List_iterator< unsigned char >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixBegin() const [member function] - cls.add_method('PrefixBegin', - 'std::_List_const_iterator< unsigned char >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixClear() [member function] - cls.add_method('PrefixClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbAddressBlock::PrefixEmpty() const [member function] - cls.add_method('PrefixEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixEnd() [member function] - cls.add_method('PrefixEnd', - 'std::_List_iterator< unsigned char >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixEnd() const [member function] - cls.add_method('PrefixEnd', - 'std::_List_const_iterator< unsigned char >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator position) [member function] - cls.add_method('PrefixErase', - 'std::_List_iterator< unsigned char >', - [param('std::_List_iterator< unsigned char >', 'position')]) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator first, std::_List_iterator last) [member function] - cls.add_method('PrefixErase', - 'std::_List_iterator< unsigned char >', - [param('std::_List_iterator< unsigned char >', 'first'), param('std::_List_iterator< unsigned char >', 'last')]) - ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixFront() const [member function] - cls.add_method('PrefixFront', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixInsert(std::_List_iterator position, uint8_t const value) [member function] - cls.add_method('PrefixInsert', - 'std::_List_iterator< unsigned char >', - [param('std::_List_iterator< unsigned char >', 'position'), param('uint8_t const', 'value')]) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopBack() [member function] - cls.add_method('PrefixPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopFront() [member function] - cls.add_method('PrefixPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushBack(uint8_t prefix) [member function] - cls.add_method('PrefixPushBack', - 'void', - [param('uint8_t', 'prefix')]) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushFront(uint8_t prefix) [member function] - cls.add_method('PrefixPushFront', - 'void', - [param('uint8_t', 'prefix')]) - ## packetbb.h: int ns3::PbbAddressBlock::PrefixSize() const [member function] - cls.add_method('PrefixSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os, int level) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os'), param('int', 'level')], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Serialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvBack() [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbAddressTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvBack() const [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbAddressTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvBegin() [member function] - cls.add_method('TlvBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvBegin() const [member function] - cls.add_method('TlvBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::TlvClear() [member function] - cls.add_method('TlvClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbAddressBlock::TlvEmpty() const [member function] - cls.add_method('TlvEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvEnd() [member function] - cls.add_method('TlvEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvEnd() const [member function] - cls.add_method('TlvEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > position) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'last')]) - ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvFront() [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbAddressTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvFront() const [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbAddressTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvInsert(std::_List_iterator > position, ns3::Ptr const value) [member function] - cls.add_method('TlvInsert', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position'), param('ns3::Ptr< ns3::PbbTlv > const', 'value')]) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPopBack() [member function] - cls.add_method('TlvPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPopFront() [member function] - cls.add_method('TlvPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPushBack(ns3::Ptr address) [member function] - cls.add_method('TlvPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPushFront(ns3::Ptr address) [member function] - cls.add_method('TlvPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) - ## packetbb.h: int ns3::PbbAddressBlock::TlvSize() const [member function] - cls.add_method('TlvSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: ns3::Address ns3::PbbAddressBlock::DeserializeAddress(uint8_t * buffer) const [member function] - cls.add_method('DeserializeAddress', - 'ns3::Address', - [param('uint8_t *', 'buffer')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlock::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'uint8_t', - [], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlock::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] - cls.add_method('PrintAddress', - 'void', - [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlock::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] - cls.add_method('SerializeAddress', - 'void', - [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbAddressBlockIpv4_methods(root_module, cls): - ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4(ns3::PbbAddressBlockIpv4 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressBlockIpv4 const &', 'arg0')]) - ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv4::DeserializeAddress(uint8_t * buffer) const [member function] - cls.add_method('DeserializeAddress', - 'ns3::Address', - [param('uint8_t *', 'buffer')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv4::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'uint8_t', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv4::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] - cls.add_method('PrintAddress', - 'void', - [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv4::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] - cls.add_method('SerializeAddress', - 'void', - [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbAddressBlockIpv6_methods(root_module, cls): - ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6(ns3::PbbAddressBlockIpv6 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressBlockIpv6 const &', 'arg0')]) - ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv6::DeserializeAddress(uint8_t * buffer) const [member function] - cls.add_method('DeserializeAddress', - 'ns3::Address', - [param('uint8_t *', 'buffer')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv6::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'uint8_t', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv6::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] - cls.add_method('PrintAddress', - 'void', - [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv6::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] - cls.add_method('SerializeAddress', - 'void', - [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - return - def register_Ns3PbbAddressTlvBlock_methods(root_module, cls): cls.add_binary_comparison_operator('==') cls.add_binary_comparison_operator('!=') @@ -1692,480 +1383,6 @@ def register_Ns3PbbAddressTlvBlock_methods(root_module, cls): is_const=True) return -def register_Ns3PbbMessage_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbMessage::PbbMessage(ns3::PbbMessage const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbMessage const &', 'arg0')]) - ## packetbb.h: ns3::PbbMessage::PbbMessage() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockBack() [member function] - cls.add_method('AddressBlockBack', - 'ns3::Ptr< ns3::PbbAddressBlock >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockBack() const [member function] - cls.add_method('AddressBlockBack', - 'ns3::Ptr< ns3::PbbAddressBlock > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockBegin() [member function] - cls.add_method('AddressBlockBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockBegin() const [member function] - cls.add_method('AddressBlockBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::AddressBlockClear() [member function] - cls.add_method('AddressBlockClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbMessage::AddressBlockEmpty() const [member function] - cls.add_method('AddressBlockEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockEnd() [member function] - cls.add_method('AddressBlockEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockEnd() const [member function] - cls.add_method('AddressBlockEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > position) [member function] - cls.add_method('AddressBlockErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('AddressBlockErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'last')]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockFront() [member function] - cls.add_method('AddressBlockFront', - 'ns3::Ptr< ns3::PbbAddressBlock >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockFront() const [member function] - cls.add_method('AddressBlockFront', - 'ns3::Ptr< ns3::PbbAddressBlock > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPopBack() [member function] - cls.add_method('AddressBlockPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPopFront() [member function] - cls.add_method('AddressBlockPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPushBack(ns3::Ptr block) [member function] - cls.add_method('AddressBlockPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPushFront(ns3::Ptr block) [member function] - cls.add_method('AddressBlockPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) - ## packetbb.h: int ns3::PbbMessage::AddressBlockSize() const [member function] - cls.add_method('AddressBlockSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Deserialize(ns3::Buffer::Iterator & start) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')]) - ## packetbb.h: static ns3::Ptr ns3::PbbMessage::DeserializeMessage(ns3::Buffer::Iterator & start) [member function] - cls.add_method('DeserializeMessage', - 'ns3::Ptr< ns3::PbbMessage >', - [param('ns3::Buffer::Iterator &', 'start')], - is_static=True) - ## packetbb.h: uint8_t ns3::PbbMessage::GetHopCount() const [member function] - cls.add_method('GetHopCount', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbMessage::GetHopLimit() const [member function] - cls.add_method('GetHopLimit', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: ns3::Address ns3::PbbMessage::GetOriginatorAddress() const [member function] - cls.add_method('GetOriginatorAddress', - 'ns3::Address', - [], - is_const=True) - ## packetbb.h: uint16_t ns3::PbbMessage::GetSequenceNumber() const [member function] - cls.add_method('GetSequenceNumber', - 'uint16_t', - [], - is_const=True) - ## packetbb.h: uint32_t ns3::PbbMessage::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbMessage::GetType() const [member function] - cls.add_method('GetType', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasHopCount() const [member function] - cls.add_method('HasHopCount', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasHopLimit() const [member function] - cls.add_method('HasHopLimit', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasOriginatorAddress() const [member function] - cls.add_method('HasOriginatorAddress', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasSequenceNumber() const [member function] - cls.add_method('HasSequenceNumber', - 'bool', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os, int level) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os'), param('int', 'level')], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Serialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::SetHopCount(uint8_t hopcount) [member function] - cls.add_method('SetHopCount', - 'void', - [param('uint8_t', 'hopcount')]) - ## packetbb.h: void ns3::PbbMessage::SetHopLimit(uint8_t hoplimit) [member function] - cls.add_method('SetHopLimit', - 'void', - [param('uint8_t', 'hoplimit')]) - ## packetbb.h: void ns3::PbbMessage::SetOriginatorAddress(ns3::Address address) [member function] - cls.add_method('SetOriginatorAddress', - 'void', - [param('ns3::Address', 'address')]) - ## packetbb.h: void ns3::PbbMessage::SetSequenceNumber(uint16_t seqnum) [member function] - cls.add_method('SetSequenceNumber', - 'void', - [param('uint16_t', 'seqnum')]) - ## packetbb.h: void ns3::PbbMessage::SetType(uint8_t type) [member function] - cls.add_method('SetType', - 'void', - [param('uint8_t', 'type')]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvBack() [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvBack() const [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvBegin() [member function] - cls.add_method('TlvBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvBegin() const [member function] - cls.add_method('TlvBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::TlvClear() [member function] - cls.add_method('TlvClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbMessage::TlvEmpty() const [member function] - cls.add_method('TlvEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvEnd() [member function] - cls.add_method('TlvEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvEnd() const [member function] - cls.add_method('TlvEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > position) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvFront() [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvFront() const [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::TlvPopBack() [member function] - cls.add_method('TlvPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::TlvPopFront() [member function] - cls.add_method('TlvPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::TlvPushBack(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: void ns3::PbbMessage::TlvPushFront(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: int ns3::PbbMessage::TlvSize() const [member function] - cls.add_method('TlvSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('AddressBlockDeserialize', - 'ns3::Ptr< ns3::PbbAddressBlock >', - [param('ns3::Buffer::Iterator &', 'start')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::Address ns3::PbbMessage::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('DeserializeOriginatorAddress', - 'ns3::Address', - [param('ns3::Buffer::Iterator &', 'start')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessage::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'ns3::PbbAddressLength', - [], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessage::PrintOriginatorAddress(std::ostream & os) const [member function] - cls.add_method('PrintOriginatorAddress', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessage::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializeOriginatorAddress', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbMessageIpv4_methods(root_module, cls): - ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4(ns3::PbbMessageIpv4 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbMessageIpv4 const &', 'arg0')]) - ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv4::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('AddressBlockDeserialize', - 'ns3::Ptr< ns3::PbbAddressBlock >', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::Address ns3::PbbMessageIpv4::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('DeserializeOriginatorAddress', - 'ns3::Address', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv4::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'ns3::PbbAddressLength', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv4::PrintOriginatorAddress(std::ostream & os) const [member function] - cls.add_method('PrintOriginatorAddress', - 'void', - [param('std::ostream &', 'os')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv4::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializeOriginatorAddress', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbMessageIpv6_methods(root_module, cls): - ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6(ns3::PbbMessageIpv6 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbMessageIpv6 const &', 'arg0')]) - ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv6::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('AddressBlockDeserialize', - 'ns3::Ptr< ns3::PbbAddressBlock >', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::Address ns3::PbbMessageIpv6::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('DeserializeOriginatorAddress', - 'ns3::Address', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv6::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'ns3::PbbAddressLength', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv6::PrintOriginatorAddress(std::ostream & os) const [member function] - cls.add_method('PrintOriginatorAddress', - 'void', - [param('std::ostream &', 'os')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv6::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializeOriginatorAddress', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbTlv_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbTlv::PbbTlv(ns3::PbbTlv const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbTlv const &', 'arg0')]) - ## packetbb.h: ns3::PbbTlv::PbbTlv() [constructor] - cls.add_constructor([]) - ## packetbb.h: void ns3::PbbTlv::Deserialize(ns3::Buffer::Iterator & start) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')]) - ## packetbb.h: uint32_t ns3::PbbTlv::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbTlv::GetType() const [member function] - cls.add_method('GetType', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbTlv::GetTypeExt() const [member function] - cls.add_method('GetTypeExt', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: ns3::Buffer ns3::PbbTlv::GetValue() const [member function] - cls.add_method('GetValue', - 'ns3::Buffer', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbTlv::HasTypeExt() const [member function] - cls.add_method('HasTypeExt', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbTlv::HasValue() const [member function] - cls.add_method('HasValue', - 'bool', - [], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os, int level) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os'), param('int', 'level')], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Serialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::SetType(uint8_t type) [member function] - cls.add_method('SetType', - 'void', - [param('uint8_t', 'type')]) - ## packetbb.h: void ns3::PbbTlv::SetTypeExt(uint8_t type) [member function] - cls.add_method('SetTypeExt', - 'void', - [param('uint8_t', 'type')]) - ## packetbb.h: void ns3::PbbTlv::SetValue(ns3::Buffer start) [member function] - cls.add_method('SetValue', - 'void', - [param('ns3::Buffer', 'start')]) - ## packetbb.h: void ns3::PbbTlv::SetValue(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('SetValue', - 'void', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## packetbb.h: void ns3::PbbTlv::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStart() const [member function] - cls.add_method('GetIndexStart', - 'uint8_t', - [], - is_const=True, visibility='protected') - ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStop() const [member function] - cls.add_method('GetIndexStop', - 'uint8_t', - [], - is_const=True, visibility='protected') - ## packetbb.h: bool ns3::PbbTlv::HasIndexStart() const [member function] - cls.add_method('HasIndexStart', - 'bool', - [], - is_const=True, visibility='protected') - ## packetbb.h: bool ns3::PbbTlv::HasIndexStop() const [member function] - cls.add_method('HasIndexStop', - 'bool', - [], - is_const=True, visibility='protected') - ## packetbb.h: bool ns3::PbbTlv::IsMultivalue() const [member function] - cls.add_method('IsMultivalue', - 'bool', - [], - is_const=True, visibility='protected') - ## packetbb.h: void ns3::PbbTlv::SetIndexStart(uint8_t index) [member function] - cls.add_method('SetIndexStart', - 'void', - [param('uint8_t', 'index')], - visibility='protected') - ## packetbb.h: void ns3::PbbTlv::SetIndexStop(uint8_t index) [member function] - cls.add_method('SetIndexStop', - 'void', - [param('uint8_t', 'index')], - visibility='protected') - ## packetbb.h: void ns3::PbbTlv::SetMultivalue(bool isMultivalue) [member function] - cls.add_method('SetMultivalue', - 'void', - [param('bool', 'isMultivalue')], - visibility='protected') - return - def register_Ns3PbbTlvBlock_methods(root_module, cls): cls.add_binary_comparison_operator('==') cls.add_binary_comparison_operator('!=') @@ -2269,46 +1486,6 @@ def register_Ns3PbbTlvBlock_methods(root_module, cls): is_const=True) return -def register_Ns3Ipv4AddressChecker_methods(root_module, cls): - ## ipv4-address.h: ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: 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: ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')]) - ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Address const &', 'value')]) - ## ipv4-address.h: 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: 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: ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-address.h: 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: void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Address const &', 'value')]) - return - def register_Ns3Ipv4Header_methods(root_module, cls): ## ipv4-header.h: ns3::Ipv4Header::Ipv4Header(ns3::Ipv4Header const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4Header const &', 'arg0')]) @@ -2453,177 +1630,6 @@ def register_Ns3Ipv4Header_methods(root_module, cls): [param('uint8_t', 'ttl')]) return -def register_Ns3Ipv4MaskChecker_methods(root_module, cls): - ## ipv4-address.h: ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: 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: ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')]) - ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')]) - ## ipv4-address.h: 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: 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: ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Mask', - [], - is_const=True) - ## ipv4-address.h: 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: void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Mask const &', 'value')]) - return - -def register_Ns3Ipv4MulticastRoute_methods(root_module, cls): - ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute(ns3::Ipv4MulticastRoute const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MulticastRoute const &', 'arg0')]) - ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute() [constructor] - cls.add_constructor([]) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetGroup() const [member function] - cls.add_method('GetGroup', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetOrigin() const [member function] - cls.add_method('GetOrigin', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] - cls.add_method('GetOutputTtl', - 'uint32_t', - [param('uint32_t', 'oif')], - is_const=True) - ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetParent() const [member function] - cls.add_method('GetParent', - 'uint32_t', - [], - is_const=True) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetGroup(ns3::Ipv4Address const group) [member function] - cls.add_method('SetGroup', - 'void', - [param('ns3::Ipv4Address const', 'group')]) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOrigin(ns3::Ipv4Address const origin) [member function] - cls.add_method('SetOrigin', - 'void', - [param('ns3::Ipv4Address const', 'origin')]) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] - cls.add_method('SetOutputTtl', - 'void', - [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetParent(uint32_t iif) [member function] - cls.add_method('SetParent', - 'void', - [param('uint32_t', 'iif')]) - ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_INTERFACES [variable] - cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) - ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_TTL [variable] - cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) - return - -def register_Ns3Ipv4Route_methods(root_module, cls): - cls.add_output_stream_operator() - ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route(ns3::Ipv4Route const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4Route const &', 'arg0')]) - ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route() [constructor] - cls.add_constructor([]) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetDestination() const [member function] - cls.add_method('GetDestination', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetGateway() const [member function] - cls.add_method('GetGateway', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: ns3::Ptr ns3::Ipv4Route::GetOutputDevice() const [member function] - cls.add_method('GetOutputDevice', - 'ns3::Ptr< ns3::NetDevice >', - [], - is_const=True) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetSource() const [member function] - cls.add_method('GetSource', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: void ns3::Ipv4Route::SetDestination(ns3::Ipv4Address dest) [member function] - cls.add_method('SetDestination', - 'void', - [param('ns3::Ipv4Address', 'dest')]) - ## ipv4-route.h: void ns3::Ipv4Route::SetGateway(ns3::Ipv4Address gw) [member function] - cls.add_method('SetGateway', - 'void', - [param('ns3::Ipv4Address', 'gw')]) - ## ipv4-route.h: void ns3::Ipv4Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] - cls.add_method('SetOutputDevice', - 'void', - [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) - ## ipv4-route.h: void ns3::Ipv4Route::SetSource(ns3::Ipv4Address src) [member function] - cls.add_method('SetSource', - 'void', - [param('ns3::Ipv4Address', 'src')]) - return - -def register_Ns3Ipv6AddressChecker_methods(root_module, cls): - ## ipv6-address.h: ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: 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: ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')]) - ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Address const &', 'value')]) - ## ipv6-address.h: 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: 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: ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-address.h: 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: void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Address const &', 'value')]) - return - def register_Ns3Ipv6Header_methods(root_module, cls): ## ipv6-header.h: ns3::Ipv6Header::Ipv6Header(ns3::Ipv6Header const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv6Header const &', 'arg0')]) @@ -2724,138 +1730,6 @@ def register_Ns3Ipv6Header_methods(root_module, cls): [param('uint8_t', 'traffic')]) return -def register_Ns3Ipv6MulticastRoute_methods(root_module, cls): - cls.add_output_stream_operator() - ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute(ns3::Ipv6MulticastRoute const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6MulticastRoute const &', 'arg0')]) - ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute() [constructor] - cls.add_constructor([]) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetGroup() const [member function] - cls.add_method('GetGroup', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetOrigin() const [member function] - cls.add_method('GetOrigin', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] - cls.add_method('GetOutputTtl', - 'uint32_t', - [param('uint32_t', 'oif')], - is_const=True) - ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetParent() const [member function] - cls.add_method('GetParent', - 'uint32_t', - [], - is_const=True) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetGroup(ns3::Ipv6Address const group) [member function] - cls.add_method('SetGroup', - 'void', - [param('ns3::Ipv6Address const', 'group')]) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOrigin(ns3::Ipv6Address const origin) [member function] - cls.add_method('SetOrigin', - 'void', - [param('ns3::Ipv6Address const', 'origin')]) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] - cls.add_method('SetOutputTtl', - 'void', - [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetParent(uint32_t iif) [member function] - cls.add_method('SetParent', - 'void', - [param('uint32_t', 'iif')]) - ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_INTERFACES [variable] - cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) - ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_TTL [variable] - cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) - return - -def register_Ns3Ipv6PrefixChecker_methods(root_module, cls): - ## ipv6-address.h: ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: 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: ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')]) - ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')]) - ## ipv6-address.h: 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: 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: ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Prefix', - [], - is_const=True) - ## ipv6-address.h: 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: void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Prefix const &', 'value')]) - return - -def register_Ns3Ipv6Route_methods(root_module, cls): - cls.add_output_stream_operator() - ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route(ns3::Ipv6Route const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6Route const &', 'arg0')]) - ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route() [constructor] - cls.add_constructor([]) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetDestination() const [member function] - cls.add_method('GetDestination', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetGateway() const [member function] - cls.add_method('GetGateway', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: ns3::Ptr ns3::Ipv6Route::GetOutputDevice() const [member function] - cls.add_method('GetOutputDevice', - 'ns3::Ptr< ns3::NetDevice >', - [], - is_const=True) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetSource() const [member function] - cls.add_method('GetSource', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: void ns3::Ipv6Route::SetDestination(ns3::Ipv6Address dest) [member function] - cls.add_method('SetDestination', - 'void', - [param('ns3::Ipv6Address', 'dest')]) - ## ipv6-route.h: void ns3::Ipv6Route::SetGateway(ns3::Ipv6Address gw) [member function] - cls.add_method('SetGateway', - 'void', - [param('ns3::Ipv6Address', 'gw')]) - ## ipv6-route.h: void ns3::Ipv6Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] - cls.add_method('SetOutputDevice', - 'void', - [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) - ## ipv6-route.h: void ns3::Ipv6Route::SetSource(ns3::Ipv6Address src) [member function] - cls.add_method('SetSource', - 'void', - [param('ns3::Ipv6Address', 'src')]) - return - def register_Ns3LlcSnapHeader_methods(root_module, cls): ## llc-snap-header.h: ns3::LlcSnapHeader::LlcSnapHeader(ns3::LlcSnapHeader const & arg0) [copy constructor] cls.add_constructor([param('ns3::LlcSnapHeader const &', 'arg0')]) @@ -2901,311 +1775,6 @@ def register_Ns3LlcSnapHeader_methods(root_module, cls): [param('uint16_t', 'type')]) return -def register_Ns3Mac48AddressChecker_methods(root_module, cls): - ## mac48-address.h: ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor] - cls.add_constructor([]) - ## mac48-address.h: 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: ns3::Mac48AddressValue::Mac48AddressValue() [constructor] - cls.add_constructor([]) - ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')]) - ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor] - cls.add_constructor([param('ns3::Mac48Address const &', 'value')]) - ## mac48-address.h: 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: 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: ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Mac48Address', - [], - is_const=True) - ## mac48-address.h: 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: void ns3::Mac48AddressValue::Set(ns3::Mac48Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Mac48Address const &', 'value')]) - return - -def register_Ns3PbbAddressTlv_methods(root_module, cls): - ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv(ns3::PbbAddressTlv const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressTlv const &', 'arg0')]) - ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStart() const [member function] - cls.add_method('GetIndexStart', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStop() const [member function] - cls.add_method('GetIndexStop', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStart() const [member function] - cls.add_method('HasIndexStart', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStop() const [member function] - cls.add_method('HasIndexStop', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbAddressTlv::IsMultivalue() const [member function] - cls.add_method('IsMultivalue', - 'bool', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStart(uint8_t index) [member function] - cls.add_method('SetIndexStart', - 'void', - [param('uint8_t', 'index')]) - ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStop(uint8_t index) [member function] - cls.add_method('SetIndexStop', - 'void', - [param('uint8_t', 'index')]) - ## packetbb.h: void ns3::PbbAddressTlv::SetMultivalue(bool isMultivalue) [member function] - cls.add_method('SetMultivalue', - 'void', - [param('bool', 'isMultivalue')]) - return - -def register_Ns3PbbPacket_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbPacket::PbbPacket(ns3::PbbPacket const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbPacket const &', 'arg0')]) - ## packetbb.h: ns3::PbbPacket::PbbPacket() [constructor] - cls.add_constructor([]) - ## packetbb.h: uint32_t ns3::PbbPacket::Deserialize(ns3::Buffer::Iterator start) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'start')], - is_virtual=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'last')]) - ## packetbb.h: ns3::TypeId ns3::PbbPacket::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_const=True, is_virtual=True) - ## packetbb.h: uint16_t ns3::PbbPacket::GetSequenceNumber() const [member function] - cls.add_method('GetSequenceNumber', - 'uint16_t', - [], - is_const=True) - ## packetbb.h: uint32_t ns3::PbbPacket::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True, is_virtual=True) - ## packetbb.h: static ns3::TypeId ns3::PbbPacket::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## packetbb.h: uint8_t ns3::PbbPacket::GetVersion() const [member function] - cls.add_method('GetVersion', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbPacket::HasSequenceNumber() const [member function] - cls.add_method('HasSequenceNumber', - 'bool', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageBack() [member function] - cls.add_method('MessageBack', - 'ns3::Ptr< ns3::PbbMessage >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageBack() const [member function] - cls.add_method('MessageBack', - 'ns3::Ptr< ns3::PbbMessage > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageBegin() [member function] - cls.add_method('MessageBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageBegin() const [member function] - cls.add_method('MessageBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::MessageClear() [member function] - cls.add_method('MessageClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbPacket::MessageEmpty() const [member function] - cls.add_method('MessageEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageEnd() [member function] - cls.add_method('MessageEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageEnd() const [member function] - cls.add_method('MessageEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageFront() [member function] - cls.add_method('MessageFront', - 'ns3::Ptr< ns3::PbbMessage >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageFront() const [member function] - cls.add_method('MessageFront', - 'ns3::Ptr< ns3::PbbMessage > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::MessagePopBack() [member function] - cls.add_method('MessagePopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::MessagePopFront() [member function] - cls.add_method('MessagePopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::MessagePushBack(ns3::Ptr message) [member function] - cls.add_method('MessagePushBack', - 'void', - [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) - ## packetbb.h: void ns3::PbbPacket::MessagePushFront(ns3::Ptr message) [member function] - cls.add_method('MessagePushFront', - 'void', - [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) - ## packetbb.h: int ns3::PbbPacket::MessageSize() const [member function] - cls.add_method('MessageSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True, is_virtual=True) - ## packetbb.h: void ns3::PbbPacket::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::Serialize(ns3::Buffer::Iterator start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator', 'start')], - is_const=True, is_virtual=True) - ## packetbb.h: void ns3::PbbPacket::SetSequenceNumber(uint16_t number) [member function] - cls.add_method('SetSequenceNumber', - 'void', - [param('uint16_t', 'number')]) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvBack() [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvBack() const [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvBegin() [member function] - cls.add_method('TlvBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvBegin() const [member function] - cls.add_method('TlvBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::TlvClear() [member function] - cls.add_method('TlvClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbPacket::TlvEmpty() const [member function] - cls.add_method('TlvEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvEnd() [member function] - cls.add_method('TlvEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvEnd() const [member function] - cls.add_method('TlvEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvFront() [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvFront() const [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::TlvPopBack() [member function] - cls.add_method('TlvPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::TlvPopFront() [member function] - cls.add_method('TlvPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::TlvPushBack(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: void ns3::PbbPacket::TlvPushFront(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: int ns3::PbbPacket::TlvSize() const [member function] - cls.add_method('TlvSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::SerializePacketTlv(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializePacketTlv', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected') - return - def register_Ns3Queue_methods(root_module, cls): ## queue.h: ns3::Queue::Queue(ns3::Queue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Queue const &', 'arg0')]) @@ -3855,46 +2424,6 @@ def register_Ns3UdpSocketFactory_methods(root_module, cls): is_static=True) return -def register_Ns3AddressChecker_methods(root_module, cls): - ## address.h: ns3::AddressChecker::AddressChecker() [constructor] - cls.add_constructor([]) - ## address.h: 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: ns3::AddressValue::AddressValue() [constructor] - cls.add_constructor([]) - ## address.h: ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AddressValue const &', 'arg0')]) - ## address.h: ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor] - cls.add_constructor([param('ns3::Address const &', 'value')]) - ## address.h: ns3::Ptr ns3::AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## address.h: 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: ns3::Address ns3::AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Address', - [], - is_const=True) - ## address.h: 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: void ns3::AddressValue::Set(ns3::Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Address const &', 'value')]) - return - def register_Ns3Application_methods(root_module, cls): ## application.h: ns3::Application::Application(ns3::Application const & arg0) [copy constructor] cls.add_constructor([param('ns3::Application const &', 'arg0')]) @@ -3914,27 +2443,24 @@ def register_Ns3Application_methods(root_module, cls): cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')]) - ## application.h: void ns3::Application::Start(ns3::Time const & startTime) [member function] - cls.add_method('Start', + ## application.h: void ns3::Application::SetStartTime(ns3::Time start) [member function] + cls.add_method('SetStartTime', 'void', - [param('ns3::Time const &', 'startTime')]) - ## application.h: void ns3::Application::Start(ns3::RandomVariable const & startVariable) [member function] - cls.add_method('Start', + [param('ns3::Time', 'start')]) + ## application.h: void ns3::Application::SetStopTime(ns3::Time stop) [member function] + cls.add_method('SetStopTime', 'void', - [param('ns3::RandomVariable const &', 'startVariable')]) - ## application.h: void ns3::Application::Stop(ns3::Time const & stopTime) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::Time const &', 'stopTime')]) - ## application.h: void ns3::Application::Stop(ns3::RandomVariable const & stopVariable) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::RandomVariable const &', 'stopVariable')]) + [param('ns3::Time', 'stop')]) ## application.h: void ns3::Application::DoDispose() [member function] cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True) + ## application.h: void ns3::Application::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## application.h: void ns3::Application::StartApplication() [member function] cls.add_method('StartApplication', 'void', @@ -4228,6 +2754,11 @@ def register_Ns3Ipv4_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) + ## ipv4.h: bool ns3::Ipv4::IsDestinationAddress(ns3::Ipv4Address address, uint32_t iif) const [member function] + cls.add_method('IsDestinationAddress', + 'bool', + [param('ns3::Ipv4Address', 'address'), param('uint32_t', 'iif')], + is_pure_virtual=True, is_const=True, is_virtual=True) ## ipv4.h: bool ns3::Ipv4::IsForwarding(uint32_t interface) const [member function] cls.add_method('IsForwarding', 'bool', @@ -4275,11 +2806,148 @@ def register_Ns3Ipv4_methods(root_module, cls): 'bool', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) + ## ipv4.h: bool ns3::Ipv4::GetWeakEsModel() const [member function] + cls.add_method('GetWeakEsModel', + 'bool', + [], + is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) ## ipv4.h: void ns3::Ipv4::SetIpForward(bool forward) [member function] cls.add_method('SetIpForward', 'void', [param('bool', 'forward')], is_pure_virtual=True, visibility='private', is_virtual=True) + ## ipv4.h: void ns3::Ipv4::SetWeakEsModel(bool model) [member function] + cls.add_method('SetWeakEsModel', + 'void', + [param('bool', 'model')], + is_pure_virtual=True, visibility='private', is_virtual=True) + return + +def register_Ns3Ipv4AddressChecker_methods(root_module, cls): + ## ipv4-address.h: ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: 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: ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')]) + ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor] + cls.add_constructor([param('ns3::Ipv4Address const &', 'value')]) + ## ipv4-address.h: 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: 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: ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-address.h: 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: 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: ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: 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: ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')]) + ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor] + cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')]) + ## ipv4-address.h: 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: 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: ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv4Mask', + [], + is_const=True) + ## ipv4-address.h: 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: void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ipv4Mask const &', 'value')]) + return + +def register_Ns3Ipv4MulticastRoute_methods(root_module, cls): + ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute(ns3::Ipv4MulticastRoute const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4MulticastRoute const &', 'arg0')]) + ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute() [constructor] + cls.add_constructor([]) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetGroup() const [member function] + cls.add_method('GetGroup', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] + cls.add_method('GetOutputTtl', + 'uint32_t', + [param('uint32_t', 'oif')], + is_const=True) + ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetParent() const [member function] + cls.add_method('GetParent', + 'uint32_t', + [], + is_const=True) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetGroup(ns3::Ipv4Address const group) [member function] + cls.add_method('SetGroup', + 'void', + [param('ns3::Ipv4Address const', 'group')]) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOrigin(ns3::Ipv4Address const origin) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv4Address const', 'origin')]) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] + cls.add_method('SetOutputTtl', + 'void', + [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetParent(uint32_t iif) [member function] + cls.add_method('SetParent', + 'void', + [param('uint32_t', 'iif')]) + ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_INTERFACES [variable] + cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) + ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_TTL [variable] + cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) return def register_Ns3Ipv4RawSocketFactory_methods(root_module, cls): @@ -4294,6 +2962,50 @@ def register_Ns3Ipv4RawSocketFactory_methods(root_module, cls): is_static=True) return +def register_Ns3Ipv4Route_methods(root_module, cls): + cls.add_output_stream_operator() + ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route(ns3::Ipv4Route const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4Route const &', 'arg0')]) + ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route() [constructor] + cls.add_constructor([]) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetDestination() const [member function] + cls.add_method('GetDestination', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetGateway() const [member function] + cls.add_method('GetGateway', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: ns3::Ptr ns3::Ipv4Route::GetOutputDevice() const [member function] + cls.add_method('GetOutputDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetSource() const [member function] + cls.add_method('GetSource', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: void ns3::Ipv4Route::SetDestination(ns3::Ipv4Address dest) [member function] + cls.add_method('SetDestination', + 'void', + [param('ns3::Ipv4Address', 'dest')]) + ## ipv4-route.h: void ns3::Ipv4Route::SetGateway(ns3::Ipv4Address gw) [member function] + cls.add_method('SetGateway', + 'void', + [param('ns3::Ipv4Address', 'gw')]) + ## ipv4-route.h: void ns3::Ipv4Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] + cls.add_method('SetOutputDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) + ## ipv4-route.h: void ns3::Ipv4Route::SetSource(ns3::Ipv4Address src) [member function] + cls.add_method('SetSource', + 'void', + [param('ns3::Ipv4Address', 'src')]) + return + def register_Ns3Ipv4RoutingProtocol_methods(root_module, cls): ## ipv4-routing-protocol.h: ns3::Ipv4RoutingProtocol::Ipv4RoutingProtocol() [constructor] cls.add_constructor([]) @@ -4324,7 +3036,7 @@ def register_Ns3Ipv4RoutingProtocol_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], is_pure_virtual=True, is_virtual=True) - ## ipv4-routing-protocol.h: bool ns3::Ipv4RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-routing-protocol.h: bool ns3::Ipv4RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -4465,6 +3177,134 @@ def register_Ns3Ipv6_methods(root_module, cls): is_pure_virtual=True, visibility='private', is_virtual=True) return +def register_Ns3Ipv6AddressChecker_methods(root_module, cls): + ## ipv6-address.h: ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: 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: ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')]) + ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor] + cls.add_constructor([param('ns3::Ipv6Address const &', 'value')]) + ## ipv6-address.h: 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: 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: ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-address.h: 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: void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ipv6Address const &', 'value')]) + return + +def register_Ns3Ipv6MulticastRoute_methods(root_module, cls): + cls.add_output_stream_operator() + ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute(ns3::Ipv6MulticastRoute const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6MulticastRoute const &', 'arg0')]) + ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute() [constructor] + cls.add_constructor([]) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetGroup() const [member function] + cls.add_method('GetGroup', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] + cls.add_method('GetOutputTtl', + 'uint32_t', + [param('uint32_t', 'oif')], + is_const=True) + ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetParent() const [member function] + cls.add_method('GetParent', + 'uint32_t', + [], + is_const=True) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetGroup(ns3::Ipv6Address const group) [member function] + cls.add_method('SetGroup', + 'void', + [param('ns3::Ipv6Address const', 'group')]) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOrigin(ns3::Ipv6Address const origin) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv6Address const', 'origin')]) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] + cls.add_method('SetOutputTtl', + 'void', + [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetParent(uint32_t iif) [member function] + cls.add_method('SetParent', + 'void', + [param('uint32_t', 'iif')]) + ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_INTERFACES [variable] + cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) + ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_TTL [variable] + cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) + return + +def register_Ns3Ipv6PrefixChecker_methods(root_module, cls): + ## ipv6-address.h: ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: 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: ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')]) + ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor] + cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')]) + ## ipv6-address.h: 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: 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: ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv6Prefix', + [], + is_const=True) + ## ipv6-address.h: 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: void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ipv6Prefix const &', 'value')]) + return + def register_Ns3Ipv6RawSocketFactory_methods(root_module, cls): ## ipv6-raw-socket-factory.h: ns3::Ipv6RawSocketFactory::Ipv6RawSocketFactory() [constructor] cls.add_constructor([]) @@ -4477,6 +3317,50 @@ def register_Ns3Ipv6RawSocketFactory_methods(root_module, cls): is_static=True) return +def register_Ns3Ipv6Route_methods(root_module, cls): + cls.add_output_stream_operator() + ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route(ns3::Ipv6Route const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6Route const &', 'arg0')]) + ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route() [constructor] + cls.add_constructor([]) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetDestination() const [member function] + cls.add_method('GetDestination', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetGateway() const [member function] + cls.add_method('GetGateway', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: ns3::Ptr ns3::Ipv6Route::GetOutputDevice() const [member function] + cls.add_method('GetOutputDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetSource() const [member function] + cls.add_method('GetSource', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: void ns3::Ipv6Route::SetDestination(ns3::Ipv6Address dest) [member function] + cls.add_method('SetDestination', + 'void', + [param('ns3::Ipv6Address', 'dest')]) + ## ipv6-route.h: void ns3::Ipv6Route::SetGateway(ns3::Ipv6Address gw) [member function] + cls.add_method('SetGateway', + 'void', + [param('ns3::Ipv6Address', 'gw')]) + ## ipv6-route.h: void ns3::Ipv6Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] + cls.add_method('SetOutputDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) + ## ipv6-route.h: void ns3::Ipv6Route::SetSource(ns3::Ipv6Address src) [member function] + cls.add_method('SetSource', + 'void', + [param('ns3::Ipv6Address', 'src')]) + return + def register_Ns3Ipv6RoutingProtocol_methods(root_module, cls): ## ipv6-routing-protocol.h: ns3::Ipv6RoutingProtocol::Ipv6RoutingProtocol() [constructor] cls.add_constructor([]) @@ -4534,6 +3418,46 @@ def register_Ns3Ipv6RoutingProtocol_methods(root_module, cls): is_pure_virtual=True, is_virtual=True) return +def register_Ns3Mac48AddressChecker_methods(root_module, cls): + ## mac48-address.h: ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor] + cls.add_constructor([]) + ## mac48-address.h: 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: ns3::Mac48AddressValue::Mac48AddressValue() [constructor] + cls.add_constructor([]) + ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')]) + ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor] + cls.add_constructor([param('ns3::Mac48Address const &', 'value')]) + ## mac48-address.h: 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: 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: ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Mac48Address', + [], + is_const=True) + ## mac48-address.h: 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: 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: ns3::NetDevice::NetDevice() [constructor] cls.add_constructor([]) @@ -4734,6 +3658,11 @@ def register_Ns3Node_methods(root_module, cls): 'void', [], visibility='protected', is_virtual=True) + ## node.h: void ns3::Node::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## node.h: void ns3::Node::NotifyDeviceAdded(ns3::Ptr device) [member function] cls.add_method('NotifyDeviceAdded', 'void', @@ -4758,6 +3687,996 @@ def register_Ns3PacketSocketFactory_methods(root_module, cls): is_static=True) return +def register_Ns3PbbAddressBlock_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock(ns3::PbbAddressBlock const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressBlock const &', 'arg0')]) + ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressBack() const [member function] + cls.add_method('AddressBack', + 'ns3::Address', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressBegin() [member function] + cls.add_method('AddressBegin', + 'std::_List_iterator< ns3::Address >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressBegin() const [member function] + cls.add_method('AddressBegin', + 'std::_List_const_iterator< ns3::Address >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::AddressClear() [member function] + cls.add_method('AddressClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbAddressBlock::AddressEmpty() const [member function] + cls.add_method('AddressEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressEnd() [member function] + cls.add_method('AddressEnd', + 'std::_List_iterator< ns3::Address >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressEnd() const [member function] + cls.add_method('AddressEnd', + 'std::_List_const_iterator< ns3::Address >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator position) [member function] + cls.add_method('AddressErase', + 'std::_List_iterator< ns3::Address >', + [param('std::_List_iterator< ns3::Address >', 'position')]) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator first, std::_List_iterator last) [member function] + cls.add_method('AddressErase', + 'std::_List_iterator< ns3::Address >', + [param('std::_List_iterator< ns3::Address >', 'first'), param('std::_List_iterator< ns3::Address >', 'last')]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressFront() const [member function] + cls.add_method('AddressFront', + 'ns3::Address', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressInsert(std::_List_iterator position, ns3::Address const value) [member function] + cls.add_method('AddressInsert', + 'std::_List_iterator< ns3::Address >', + [param('std::_List_iterator< ns3::Address >', 'position'), param('ns3::Address const', 'value')]) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPopBack() [member function] + cls.add_method('AddressPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPopFront() [member function] + cls.add_method('AddressPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPushBack(ns3::Address address) [member function] + cls.add_method('AddressPushBack', + 'void', + [param('ns3::Address', 'address')]) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPushFront(ns3::Address address) [member function] + cls.add_method('AddressPushFront', + 'void', + [param('ns3::Address', 'address')]) + ## packetbb.h: int ns3::PbbAddressBlock::AddressSize() const [member function] + cls.add_method('AddressSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Deserialize(ns3::Buffer::Iterator & start) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')]) + ## packetbb.h: uint32_t ns3::PbbAddressBlock::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixBack() const [member function] + cls.add_method('PrefixBack', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixBegin() [member function] + cls.add_method('PrefixBegin', + 'std::_List_iterator< unsigned char >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixBegin() const [member function] + cls.add_method('PrefixBegin', + 'std::_List_const_iterator< unsigned char >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixClear() [member function] + cls.add_method('PrefixClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbAddressBlock::PrefixEmpty() const [member function] + cls.add_method('PrefixEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixEnd() [member function] + cls.add_method('PrefixEnd', + 'std::_List_iterator< unsigned char >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixEnd() const [member function] + cls.add_method('PrefixEnd', + 'std::_List_const_iterator< unsigned char >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator position) [member function] + cls.add_method('PrefixErase', + 'std::_List_iterator< unsigned char >', + [param('std::_List_iterator< unsigned char >', 'position')]) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator first, std::_List_iterator last) [member function] + cls.add_method('PrefixErase', + 'std::_List_iterator< unsigned char >', + [param('std::_List_iterator< unsigned char >', 'first'), param('std::_List_iterator< unsigned char >', 'last')]) + ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixFront() const [member function] + cls.add_method('PrefixFront', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixInsert(std::_List_iterator position, uint8_t const value) [member function] + cls.add_method('PrefixInsert', + 'std::_List_iterator< unsigned char >', + [param('std::_List_iterator< unsigned char >', 'position'), param('uint8_t const', 'value')]) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopBack() [member function] + cls.add_method('PrefixPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopFront() [member function] + cls.add_method('PrefixPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushBack(uint8_t prefix) [member function] + cls.add_method('PrefixPushBack', + 'void', + [param('uint8_t', 'prefix')]) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushFront(uint8_t prefix) [member function] + cls.add_method('PrefixPushFront', + 'void', + [param('uint8_t', 'prefix')]) + ## packetbb.h: int ns3::PbbAddressBlock::PrefixSize() const [member function] + cls.add_method('PrefixSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os, int level) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os'), param('int', 'level')], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Serialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvBack() [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbAddressTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvBack() const [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbAddressTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvBegin() [member function] + cls.add_method('TlvBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvBegin() const [member function] + cls.add_method('TlvBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::TlvClear() [member function] + cls.add_method('TlvClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbAddressBlock::TlvEmpty() const [member function] + cls.add_method('TlvEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvEnd() [member function] + cls.add_method('TlvEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvEnd() const [member function] + cls.add_method('TlvEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > position) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'last')]) + ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvFront() [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbAddressTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvFront() const [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbAddressTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvInsert(std::_List_iterator > position, ns3::Ptr const value) [member function] + cls.add_method('TlvInsert', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position'), param('ns3::Ptr< ns3::PbbTlv > const', 'value')]) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPopBack() [member function] + cls.add_method('TlvPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPopFront() [member function] + cls.add_method('TlvPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPushBack(ns3::Ptr address) [member function] + cls.add_method('TlvPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPushFront(ns3::Ptr address) [member function] + cls.add_method('TlvPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) + ## packetbb.h: int ns3::PbbAddressBlock::TlvSize() const [member function] + cls.add_method('TlvSize', + 'int', + [], + is_const=True) + ## packetbb.h: ns3::Address ns3::PbbAddressBlock::DeserializeAddress(uint8_t * buffer) const [member function] + cls.add_method('DeserializeAddress', + 'ns3::Address', + [param('uint8_t *', 'buffer')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlock::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'uint8_t', + [], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlock::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] + cls.add_method('PrintAddress', + 'void', + [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlock::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] + cls.add_method('SerializeAddress', + 'void', + [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbAddressBlockIpv4_methods(root_module, cls): + ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4(ns3::PbbAddressBlockIpv4 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressBlockIpv4 const &', 'arg0')]) + ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv4::DeserializeAddress(uint8_t * buffer) const [member function] + cls.add_method('DeserializeAddress', + 'ns3::Address', + [param('uint8_t *', 'buffer')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv4::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'uint8_t', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv4::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] + cls.add_method('PrintAddress', + 'void', + [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv4::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] + cls.add_method('SerializeAddress', + 'void', + [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbAddressBlockIpv6_methods(root_module, cls): + ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6(ns3::PbbAddressBlockIpv6 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressBlockIpv6 const &', 'arg0')]) + ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv6::DeserializeAddress(uint8_t * buffer) const [member function] + cls.add_method('DeserializeAddress', + 'ns3::Address', + [param('uint8_t *', 'buffer')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv6::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'uint8_t', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv6::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] + cls.add_method('PrintAddress', + 'void', + [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv6::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] + cls.add_method('SerializeAddress', + 'void', + [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbMessage_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbMessage::PbbMessage(ns3::PbbMessage const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbMessage const &', 'arg0')]) + ## packetbb.h: ns3::PbbMessage::PbbMessage() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockBack() [member function] + cls.add_method('AddressBlockBack', + 'ns3::Ptr< ns3::PbbAddressBlock >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockBack() const [member function] + cls.add_method('AddressBlockBack', + 'ns3::Ptr< ns3::PbbAddressBlock > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockBegin() [member function] + cls.add_method('AddressBlockBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockBegin() const [member function] + cls.add_method('AddressBlockBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::AddressBlockClear() [member function] + cls.add_method('AddressBlockClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbMessage::AddressBlockEmpty() const [member function] + cls.add_method('AddressBlockEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockEnd() [member function] + cls.add_method('AddressBlockEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockEnd() const [member function] + cls.add_method('AddressBlockEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > position) [member function] + cls.add_method('AddressBlockErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('AddressBlockErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'last')]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockFront() [member function] + cls.add_method('AddressBlockFront', + 'ns3::Ptr< ns3::PbbAddressBlock >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockFront() const [member function] + cls.add_method('AddressBlockFront', + 'ns3::Ptr< ns3::PbbAddressBlock > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPopBack() [member function] + cls.add_method('AddressBlockPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPopFront() [member function] + cls.add_method('AddressBlockPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPushBack(ns3::Ptr block) [member function] + cls.add_method('AddressBlockPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPushFront(ns3::Ptr block) [member function] + cls.add_method('AddressBlockPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) + ## packetbb.h: int ns3::PbbMessage::AddressBlockSize() const [member function] + cls.add_method('AddressBlockSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Deserialize(ns3::Buffer::Iterator & start) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')]) + ## packetbb.h: static ns3::Ptr ns3::PbbMessage::DeserializeMessage(ns3::Buffer::Iterator & start) [member function] + cls.add_method('DeserializeMessage', + 'ns3::Ptr< ns3::PbbMessage >', + [param('ns3::Buffer::Iterator &', 'start')], + is_static=True) + ## packetbb.h: uint8_t ns3::PbbMessage::GetHopCount() const [member function] + cls.add_method('GetHopCount', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbMessage::GetHopLimit() const [member function] + cls.add_method('GetHopLimit', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: ns3::Address ns3::PbbMessage::GetOriginatorAddress() const [member function] + cls.add_method('GetOriginatorAddress', + 'ns3::Address', + [], + is_const=True) + ## packetbb.h: uint16_t ns3::PbbMessage::GetSequenceNumber() const [member function] + cls.add_method('GetSequenceNumber', + 'uint16_t', + [], + is_const=True) + ## packetbb.h: uint32_t ns3::PbbMessage::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbMessage::GetType() const [member function] + cls.add_method('GetType', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasHopCount() const [member function] + cls.add_method('HasHopCount', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasHopLimit() const [member function] + cls.add_method('HasHopLimit', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasOriginatorAddress() const [member function] + cls.add_method('HasOriginatorAddress', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasSequenceNumber() const [member function] + cls.add_method('HasSequenceNumber', + 'bool', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os, int level) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os'), param('int', 'level')], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Serialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::SetHopCount(uint8_t hopcount) [member function] + cls.add_method('SetHopCount', + 'void', + [param('uint8_t', 'hopcount')]) + ## packetbb.h: void ns3::PbbMessage::SetHopLimit(uint8_t hoplimit) [member function] + cls.add_method('SetHopLimit', + 'void', + [param('uint8_t', 'hoplimit')]) + ## packetbb.h: void ns3::PbbMessage::SetOriginatorAddress(ns3::Address address) [member function] + cls.add_method('SetOriginatorAddress', + 'void', + [param('ns3::Address', 'address')]) + ## packetbb.h: void ns3::PbbMessage::SetSequenceNumber(uint16_t seqnum) [member function] + cls.add_method('SetSequenceNumber', + 'void', + [param('uint16_t', 'seqnum')]) + ## packetbb.h: void ns3::PbbMessage::SetType(uint8_t type) [member function] + cls.add_method('SetType', + 'void', + [param('uint8_t', 'type')]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvBack() [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvBack() const [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvBegin() [member function] + cls.add_method('TlvBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvBegin() const [member function] + cls.add_method('TlvBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::TlvClear() [member function] + cls.add_method('TlvClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbMessage::TlvEmpty() const [member function] + cls.add_method('TlvEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvEnd() [member function] + cls.add_method('TlvEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvEnd() const [member function] + cls.add_method('TlvEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > position) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvFront() [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvFront() const [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::TlvPopBack() [member function] + cls.add_method('TlvPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::TlvPopFront() [member function] + cls.add_method('TlvPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::TlvPushBack(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: void ns3::PbbMessage::TlvPushFront(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: int ns3::PbbMessage::TlvSize() const [member function] + cls.add_method('TlvSize', + 'int', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('AddressBlockDeserialize', + 'ns3::Ptr< ns3::PbbAddressBlock >', + [param('ns3::Buffer::Iterator &', 'start')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::Address ns3::PbbMessage::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('DeserializeOriginatorAddress', + 'ns3::Address', + [param('ns3::Buffer::Iterator &', 'start')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessage::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'ns3::PbbAddressLength', + [], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessage::PrintOriginatorAddress(std::ostream & os) const [member function] + cls.add_method('PrintOriginatorAddress', + 'void', + [param('std::ostream &', 'os')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessage::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializeOriginatorAddress', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbMessageIpv4_methods(root_module, cls): + ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4(ns3::PbbMessageIpv4 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbMessageIpv4 const &', 'arg0')]) + ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv4::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('AddressBlockDeserialize', + 'ns3::Ptr< ns3::PbbAddressBlock >', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::Address ns3::PbbMessageIpv4::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('DeserializeOriginatorAddress', + 'ns3::Address', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv4::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'ns3::PbbAddressLength', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv4::PrintOriginatorAddress(std::ostream & os) const [member function] + cls.add_method('PrintOriginatorAddress', + 'void', + [param('std::ostream &', 'os')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv4::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializeOriginatorAddress', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbMessageIpv6_methods(root_module, cls): + ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6(ns3::PbbMessageIpv6 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbMessageIpv6 const &', 'arg0')]) + ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv6::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('AddressBlockDeserialize', + 'ns3::Ptr< ns3::PbbAddressBlock >', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::Address ns3::PbbMessageIpv6::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('DeserializeOriginatorAddress', + 'ns3::Address', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv6::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'ns3::PbbAddressLength', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv6::PrintOriginatorAddress(std::ostream & os) const [member function] + cls.add_method('PrintOriginatorAddress', + 'void', + [param('std::ostream &', 'os')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv6::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializeOriginatorAddress', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbPacket_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbPacket::PbbPacket(ns3::PbbPacket const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbPacket const &', 'arg0')]) + ## packetbb.h: ns3::PbbPacket::PbbPacket() [constructor] + cls.add_constructor([]) + ## packetbb.h: uint32_t ns3::PbbPacket::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'last')]) + ## packetbb.h: ns3::TypeId ns3::PbbPacket::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## packetbb.h: uint16_t ns3::PbbPacket::GetSequenceNumber() const [member function] + cls.add_method('GetSequenceNumber', + 'uint16_t', + [], + is_const=True) + ## packetbb.h: uint32_t ns3::PbbPacket::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## packetbb.h: static ns3::TypeId ns3::PbbPacket::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## packetbb.h: uint8_t ns3::PbbPacket::GetVersion() const [member function] + cls.add_method('GetVersion', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbPacket::HasSequenceNumber() const [member function] + cls.add_method('HasSequenceNumber', + 'bool', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageBack() [member function] + cls.add_method('MessageBack', + 'ns3::Ptr< ns3::PbbMessage >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageBack() const [member function] + cls.add_method('MessageBack', + 'ns3::Ptr< ns3::PbbMessage > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageBegin() [member function] + cls.add_method('MessageBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageBegin() const [member function] + cls.add_method('MessageBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::MessageClear() [member function] + cls.add_method('MessageClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbPacket::MessageEmpty() const [member function] + cls.add_method('MessageEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageEnd() [member function] + cls.add_method('MessageEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageEnd() const [member function] + cls.add_method('MessageEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageFront() [member function] + cls.add_method('MessageFront', + 'ns3::Ptr< ns3::PbbMessage >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageFront() const [member function] + cls.add_method('MessageFront', + 'ns3::Ptr< ns3::PbbMessage > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::MessagePopBack() [member function] + cls.add_method('MessagePopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::MessagePopFront() [member function] + cls.add_method('MessagePopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::MessagePushBack(ns3::Ptr message) [member function] + cls.add_method('MessagePushBack', + 'void', + [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) + ## packetbb.h: void ns3::PbbPacket::MessagePushFront(ns3::Ptr message) [member function] + cls.add_method('MessagePushFront', + 'void', + [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) + ## packetbb.h: int ns3::PbbPacket::MessageSize() const [member function] + cls.add_method('MessageSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## packetbb.h: void ns3::PbbPacket::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + ## packetbb.h: void ns3::PbbPacket::SetSequenceNumber(uint16_t number) [member function] + cls.add_method('SetSequenceNumber', + 'void', + [param('uint16_t', 'number')]) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvBack() [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvBack() const [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvBegin() [member function] + cls.add_method('TlvBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvBegin() const [member function] + cls.add_method('TlvBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::TlvClear() [member function] + cls.add_method('TlvClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbPacket::TlvEmpty() const [member function] + cls.add_method('TlvEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvEnd() [member function] + cls.add_method('TlvEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvEnd() const [member function] + cls.add_method('TlvEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvFront() [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvFront() const [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::TlvPopBack() [member function] + cls.add_method('TlvPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::TlvPopFront() [member function] + cls.add_method('TlvPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::TlvPushBack(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: void ns3::PbbPacket::TlvPushFront(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: int ns3::PbbPacket::TlvSize() const [member function] + cls.add_method('TlvSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::SerializePacketTlv(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializePacketTlv', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected') + return + +def register_Ns3PbbTlv_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbTlv::PbbTlv(ns3::PbbTlv const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbTlv const &', 'arg0')]) + ## packetbb.h: ns3::PbbTlv::PbbTlv() [constructor] + cls.add_constructor([]) + ## packetbb.h: void ns3::PbbTlv::Deserialize(ns3::Buffer::Iterator & start) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')]) + ## packetbb.h: uint32_t ns3::PbbTlv::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbTlv::GetType() const [member function] + cls.add_method('GetType', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbTlv::GetTypeExt() const [member function] + cls.add_method('GetTypeExt', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: ns3::Buffer ns3::PbbTlv::GetValue() const [member function] + cls.add_method('GetValue', + 'ns3::Buffer', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbTlv::HasTypeExt() const [member function] + cls.add_method('HasTypeExt', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbTlv::HasValue() const [member function] + cls.add_method('HasValue', + 'bool', + [], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os, int level) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os'), param('int', 'level')], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::Serialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::SetType(uint8_t type) [member function] + cls.add_method('SetType', + 'void', + [param('uint8_t', 'type')]) + ## packetbb.h: void ns3::PbbTlv::SetTypeExt(uint8_t type) [member function] + cls.add_method('SetTypeExt', + 'void', + [param('uint8_t', 'type')]) + ## packetbb.h: void ns3::PbbTlv::SetValue(ns3::Buffer start) [member function] + cls.add_method('SetValue', + 'void', + [param('ns3::Buffer', 'start')]) + ## packetbb.h: void ns3::PbbTlv::SetValue(uint8_t const * buffer, uint32_t size) [member function] + cls.add_method('SetValue', + 'void', + [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) + ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStart() const [member function] + cls.add_method('GetIndexStart', + 'uint8_t', + [], + is_const=True, visibility='protected') + ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStop() const [member function] + cls.add_method('GetIndexStop', + 'uint8_t', + [], + is_const=True, visibility='protected') + ## packetbb.h: bool ns3::PbbTlv::HasIndexStart() const [member function] + cls.add_method('HasIndexStart', + 'bool', + [], + is_const=True, visibility='protected') + ## packetbb.h: bool ns3::PbbTlv::HasIndexStop() const [member function] + cls.add_method('HasIndexStop', + 'bool', + [], + is_const=True, visibility='protected') + ## packetbb.h: bool ns3::PbbTlv::IsMultivalue() const [member function] + cls.add_method('IsMultivalue', + 'bool', + [], + is_const=True, visibility='protected') + ## packetbb.h: void ns3::PbbTlv::SetIndexStart(uint8_t index) [member function] + cls.add_method('SetIndexStart', + 'void', + [param('uint8_t', 'index')], + visibility='protected') + ## packetbb.h: void ns3::PbbTlv::SetIndexStop(uint8_t index) [member function] + cls.add_method('SetIndexStop', + 'void', + [param('uint8_t', 'index')], + visibility='protected') + ## packetbb.h: void ns3::PbbTlv::SetMultivalue(bool isMultivalue) [member function] + cls.add_method('SetMultivalue', + 'void', + [param('bool', 'isMultivalue')], + visibility='protected') + return + def register_Ns3SimpleChannel_methods(root_module, cls): ## simple-channel.h: ns3::SimpleChannel::SimpleChannel(ns3::SimpleChannel const & arg0) [copy constructor] cls.add_constructor([param('ns3::SimpleChannel const &', 'arg0')]) @@ -4933,6 +4852,90 @@ def register_Ns3SimpleNetDevice_methods(root_module, cls): visibility='protected', is_virtual=True) return +def register_Ns3AddressChecker_methods(root_module, cls): + ## address.h: ns3::AddressChecker::AddressChecker() [constructor] + cls.add_constructor([]) + ## address.h: 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: ns3::AddressValue::AddressValue() [constructor] + cls.add_constructor([]) + ## address.h: ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::AddressValue const &', 'arg0')]) + ## address.h: ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor] + cls.add_constructor([param('ns3::Address const &', 'value')]) + ## address.h: ns3::Ptr ns3::AddressValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## address.h: 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: ns3::Address ns3::AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Address', + [], + is_const=True) + ## address.h: 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: void ns3::AddressValue::Set(ns3::Address const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Address const &', 'value')]) + return + +def register_Ns3PbbAddressTlv_methods(root_module, cls): + ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv(ns3::PbbAddressTlv const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressTlv const &', 'arg0')]) + ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStart() const [member function] + cls.add_method('GetIndexStart', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStop() const [member function] + cls.add_method('GetIndexStop', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStart() const [member function] + cls.add_method('HasIndexStart', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStop() const [member function] + cls.add_method('HasIndexStop', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbAddressTlv::IsMultivalue() const [member function] + cls.add_method('IsMultivalue', + 'bool', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStart(uint8_t index) [member function] + cls.add_method('SetIndexStart', + 'void', + [param('uint8_t', 'index')]) + ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStop(uint8_t index) [member function] + cls.add_method('SetIndexStop', + 'void', + [param('uint8_t', 'index')]) + ## packetbb.h: void ns3::PbbAddressTlv::SetMultivalue(bool isMultivalue) [member function] + cls.add_method('SetMultivalue', + 'void', + [param('bool', 'isMultivalue')]) + return + def register_functions(root_module): module = root_module ## address.h: extern ns3::Ptr ns3::MakeAddressChecker() [free function] @@ -4994,6 +4997,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -5013,6 +5017,9 @@ def register_functions_ns3_addressUtils(module, root_module): [param('ns3::Address const &', 'ad')]) return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_olsr.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_olsr.py index c90959202..258b8d354 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_olsr.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_olsr.py @@ -30,6 +30,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -66,6 +72,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -109,6 +119,8 @@ def register_types_ns3_olsr(module): module.add_class('NeighborTuple') ## olsr-repositories.h: ns3::olsr::NeighborTuple::Status [enumeration] module.add_enum('Status', ['STATUS_NOT_SYM', 'STATUS_SYM'], outer_class=root_module['ns3::olsr::NeighborTuple']) + ## olsr-routing-protocol.h: ns3::olsr::OlsrMprTestCase [class] + module.add_class('OlsrMprTestCase', parent=root_module['ns3::TestCase']) ## olsr-header.h: ns3::olsr::PacketHeader [class] module.add_class('PacketHeader', parent=root_module['ns3::Header']) ## olsr-routing-protocol.h: ns3::olsr::RoutingProtocol [class] @@ -127,6 +139,9 @@ def register_types_ns3_olsr(module): typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >', 'ns3::olsr::NeighborSet') typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >*', 'ns3::olsr::NeighborSet*') typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >&', 'ns3::olsr::NeighborSet&') + typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >', 'ns3::olsr::LinkSet') + typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >*', 'ns3::olsr::LinkSet*') + typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >&', 'ns3::olsr::LinkSet&') typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >', 'ns3::olsr::MprSet') typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >*', 'ns3::olsr::MprSet*') typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >&', 'ns3::olsr::MprSet&') @@ -145,9 +160,6 @@ def register_types_ns3_olsr(module): typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >', 'ns3::olsr::TwoHopNeighborSet') typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >*', 'ns3::olsr::TwoHopNeighborSet*') typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >&', 'ns3::olsr::TwoHopNeighborSet&') - typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >', 'ns3::olsr::LinkSet') - typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >*', 'ns3::olsr::LinkSet*') - typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >&', 'ns3::olsr::LinkSet&') def register_methods(root_module): register_Ns3OlsrState_methods(root_module, root_module['ns3::OlsrState']) @@ -163,6 +175,7 @@ def register_methods(root_module): register_Ns3OlsrMessageHeaderTc_methods(root_module, root_module['ns3::olsr::MessageHeader::Tc']) register_Ns3OlsrMprSelectorTuple_methods(root_module, root_module['ns3::olsr::MprSelectorTuple']) register_Ns3OlsrNeighborTuple_methods(root_module, root_module['ns3::olsr::NeighborTuple']) + register_Ns3OlsrOlsrMprTestCase_methods(root_module, root_module['ns3::olsr::OlsrMprTestCase']) register_Ns3OlsrPacketHeader_methods(root_module, root_module['ns3::olsr::PacketHeader']) register_Ns3OlsrRoutingProtocol_methods(root_module, root_module['ns3::olsr::RoutingProtocol']) register_Ns3OlsrRoutingTableEntry_methods(root_module, root_module['ns3::olsr::RoutingTableEntry']) @@ -301,6 +314,11 @@ def register_Ns3OlsrState_methods(root_module, cls): 'ns3::olsr::MprSelectorSet const &', [], is_const=True) + ## olsr-state.h: ns3::olsr::MprSet ns3::OlsrState::GetMprSet() const [member function] + cls.add_method('GetMprSet', + 'ns3::olsr::MprSet', + [], + is_const=True) ## olsr-state.h: ns3::olsr::NeighborSet const & ns3::OlsrState::GetNeighbors() const [member function] cls.add_method('GetNeighbors', 'ns3::olsr::NeighborSet const &', @@ -719,6 +737,16 @@ def register_Ns3OlsrNeighborTuple_methods(root_module, cls): cls.add_instance_attribute('willingness', 'uint8_t', is_const=False) return +def register_Ns3OlsrOlsrMprTestCase_methods(root_module, cls): + ## olsr-routing-protocol.h: ns3::olsr::OlsrMprTestCase::OlsrMprTestCase() [constructor] + cls.add_constructor([]) + ## olsr-routing-protocol.h: bool ns3::olsr::OlsrMprTestCase::DoRun() [member function] + cls.add_method('DoRun', + 'bool', + [], + is_virtual=True) + return + def register_Ns3OlsrPacketHeader_methods(root_module, cls): cls.add_output_stream_operator() ## olsr-header.h: ns3::olsr::PacketHeader::PacketHeader(ns3::olsr::PacketHeader const & arg0) [copy constructor] @@ -789,6 +817,11 @@ def register_Ns3OlsrRoutingProtocol_methods(root_module, cls): cls.add_method('SetMainInterface', 'void', [param('uint32_t', 'interface')]) + ## olsr-routing-protocol.h: void ns3::olsr::RoutingProtocol::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## olsr-routing-protocol.h: void ns3::olsr::RoutingProtocol::DoDispose() [member function] cls.add_method('DoDispose', 'void', @@ -814,7 +847,7 @@ def register_Ns3OlsrRoutingProtocol_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], visibility='private', is_virtual=True) - ## olsr-routing-protocol.h: bool ns3::olsr::RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## olsr-routing-protocol.h: bool ns3::olsr::RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -883,6 +916,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -898,6 +932,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_onoff.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_onoff.py index d22c42dca..71075ea2a 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_onoff.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_onoff.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -116,6 +126,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -131,6 +142,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_packet_sink.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_packet_sink.py index 49390d9ed..5ebb5dd41 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_packet_sink.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_packet_sink.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -117,6 +127,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -132,6 +143,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_ping6.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_ping6.py index f66bb20fb..b32ca04cc 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_ping6.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_ping6.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -124,6 +134,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -139,6 +150,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_point_to_point.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_point_to_point.py index 72d3e567e..59cad21d5 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_point_to_point.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_point_to_point.py @@ -28,6 +28,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -64,6 +70,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -341,6 +351,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -356,6 +367,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_radvd.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_radvd.py index aad164940..ced951773 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_radvd.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_radvd.py @@ -3,12 +3,16 @@ from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler def register_types(module): root_module = module.get_root() - ## radvd-interface.h: ns3::RadvdInterface [class] - module.add_class('RadvdInterface', parent=root_module['ns3::RefCountBase']) - ## radvd-prefix.h: ns3::RadvdPrefix [class] - module.add_class('RadvdPrefix', parent=root_module['ns3::RefCountBase']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::RadvdInterface', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::RadvdPrefix', 'ns3::empty'], parent=root_module['ns3::empty']) ## radvd.h: ns3::Radvd [class] module.add_class('Radvd', parent=root_module['ns3::Application']) + ## radvd-interface.h: ns3::RadvdInterface [class] + module.add_class('RadvdInterface', parent=root_module['ns3::SimpleRefCount< ns3::RadvdInterface, ns3::empty >']) + ## radvd-prefix.h: ns3::RadvdPrefix [class] + module.add_class('RadvdPrefix', parent=root_module['ns3::SimpleRefCount< ns3::RadvdPrefix, ns3::empty >']) ## Register a nested module for the namespace Config @@ -28,6 +32,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -64,6 +74,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -81,9 +95,42 @@ def register_types_ns3_olsr(module): def register_methods(root_module): + register_Ns3Radvd_methods(root_module, root_module['ns3::Radvd']) register_Ns3RadvdInterface_methods(root_module, root_module['ns3::RadvdInterface']) register_Ns3RadvdPrefix_methods(root_module, root_module['ns3::RadvdPrefix']) - register_Ns3Radvd_methods(root_module, root_module['ns3::Radvd']) + return + +def register_Ns3Radvd_methods(root_module, cls): + ## radvd.h: ns3::Radvd::Radvd(ns3::Radvd const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Radvd const &', 'arg0')]) + ## radvd.h: ns3::Radvd::Radvd() [constructor] + cls.add_constructor([]) + ## radvd.h: void ns3::Radvd::AddConfiguration(ns3::Ptr routerInterface) [member function] + cls.add_method('AddConfiguration', + 'void', + [param('ns3::Ptr< ns3::RadvdInterface >', 'routerInterface')]) + ## radvd.h: static ns3::TypeId ns3::Radvd::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## radvd.h: ns3::Radvd::MAX_RA_DELAY_TIME [variable] + cls.add_static_attribute('MAX_RA_DELAY_TIME', 'uint32_t const', is_const=True) + ## radvd.h: void ns3::Radvd::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='protected', is_virtual=True) + ## radvd.h: void ns3::Radvd::StartApplication() [member function] + cls.add_method('StartApplication', + 'void', + [], + visibility='private', is_virtual=True) + ## radvd.h: void ns3::Radvd::StopApplication() [member function] + cls.add_method('StopApplication', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3RadvdInterface_methods(root_module, cls): @@ -350,44 +397,12 @@ def register_Ns3RadvdPrefix_methods(root_module, cls): [param('uint32_t', 'validLifeTime')]) return -def register_Ns3Radvd_methods(root_module, cls): - ## radvd.h: ns3::Radvd::Radvd(ns3::Radvd const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Radvd const &', 'arg0')]) - ## radvd.h: ns3::Radvd::Radvd() [constructor] - cls.add_constructor([]) - ## radvd.h: void ns3::Radvd::AddConfiguration(ns3::Ptr routerInterface) [member function] - cls.add_method('AddConfiguration', - 'void', - [param('ns3::Ptr< ns3::RadvdInterface >', 'routerInterface')]) - ## radvd.h: static ns3::TypeId ns3::Radvd::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## radvd.h: ns3::Radvd::MAX_RA_DELAY_TIME [variable] - cls.add_static_attribute('MAX_RA_DELAY_TIME', 'uint32_t const', is_const=True) - ## radvd.h: void ns3::Radvd::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## radvd.h: void ns3::Radvd::StartApplication() [member function] - cls.add_method('StartApplication', - 'void', - [], - visibility='private', is_virtual=True) - ## radvd.h: void ns3::Radvd::StopApplication() [member function] - cls.add_method('StopApplication', - 'void', - [], - visibility='private', is_virtual=True) - return - def register_functions(root_module): module = root_module register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -403,6 +418,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py index 8f0850175..47d13f278 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py @@ -5,8 +5,6 @@ def register_types(module): ## event-id.h: ns3::EventId [class] module.add_class('EventId') - ## event-impl.h: ns3::EventImpl [class] - module.add_class('EventImpl', allow_subclassing=True) ## high-precision-128.h: ns3::HighPrecision [class] module.add_class('HighPrecision') ## simulator.h: ns3::Simulator [class] @@ -35,20 +33,20 @@ def register_types(module): module.add_class('Event', outer_class=root_module['ns3::Scheduler']) ## scheduler.h: ns3::Scheduler::EventKey [struct] module.add_class('EventKey', outer_class=root_module['ns3::Scheduler']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::EventImpl', 'ns3::empty'], parent=root_module['ns3::empty']) ## simulator-impl.h: ns3::SimulatorImpl [class] module.add_class('SimulatorImpl', parent=root_module['ns3::Object']) ## synchronizer.h: ns3::Synchronizer [class] module.add_class('Synchronizer', parent=root_module['ns3::Object']) - ## nstime.h: ns3::TimeChecker [class] - module.add_class('TimeChecker', parent=root_module['ns3::AttributeChecker']) - ## nstime.h: ns3::TimeValue [class] - module.add_class('TimeValue', parent=root_module['ns3::AttributeValue']) ## wall-clock-synchronizer.h: ns3::WallClockSynchronizer [class] module.add_class('WallClockSynchronizer', parent=root_module['ns3::Synchronizer']) ## calendar-scheduler.h: ns3::CalendarScheduler [class] module.add_class('CalendarScheduler', parent=root_module['ns3::Scheduler']) ## default-simulator-impl.h: ns3::DefaultSimulatorImpl [class] module.add_class('DefaultSimulatorImpl', parent=root_module['ns3::SimulatorImpl']) + ## event-impl.h: ns3::EventImpl [class] + module.add_class('EventImpl', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty >']) ## heap-scheduler.h: ns3::HeapScheduler [class] module.add_class('HeapScheduler', parent=root_module['ns3::Scheduler']) ## list-scheduler.h: ns3::ListScheduler [class] @@ -61,6 +59,10 @@ def register_types(module): module.add_class('RealtimeSimulatorImpl', parent=root_module['ns3::SimulatorImpl']) ## realtime-simulator-impl.h: ns3::RealtimeSimulatorImpl::SynchronizationMode [enumeration] module.add_enum('SynchronizationMode', ['SYNC_BEST_EFFORT', 'SYNC_HARD_LIMIT'], outer_class=root_module['ns3::RealtimeSimulatorImpl']) + ## nstime.h: ns3::TimeChecker [class] + module.add_class('TimeChecker', parent=root_module['ns3::AttributeChecker']) + ## nstime.h: ns3::TimeValue [class] + module.add_class('TimeValue', parent=root_module['ns3::AttributeValue']) typehandlers.add_type_alias('ns3::TimeUnit< 2 >', 'ns3::TimeSquare') typehandlers.add_type_alias('ns3::TimeUnit< 2 >*', 'ns3::TimeSquare*') typehandlers.add_type_alias('ns3::TimeUnit< 2 >&', 'ns3::TimeSquare&') @@ -92,6 +94,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -130,6 +138,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -148,7 +160,6 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3EventId_methods(root_module, root_module['ns3::EventId']) - register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl']) register_Ns3HighPrecision_methods(root_module, root_module['ns3::HighPrecision']) register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator']) register_Ns3TimeInvert_methods(root_module, root_module['ns3::TimeInvert']) @@ -163,16 +174,17 @@ def register_methods(root_module): register_Ns3SchedulerEventKey_methods(root_module, root_module['ns3::Scheduler::EventKey']) register_Ns3SimulatorImpl_methods(root_module, root_module['ns3::SimulatorImpl']) register_Ns3Synchronizer_methods(root_module, root_module['ns3::Synchronizer']) - register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker']) - register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue']) register_Ns3WallClockSynchronizer_methods(root_module, root_module['ns3::WallClockSynchronizer']) register_Ns3CalendarScheduler_methods(root_module, root_module['ns3::CalendarScheduler']) register_Ns3DefaultSimulatorImpl_methods(root_module, root_module['ns3::DefaultSimulatorImpl']) + register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl']) register_Ns3HeapScheduler_methods(root_module, root_module['ns3::HeapScheduler']) register_Ns3ListScheduler_methods(root_module, root_module['ns3::ListScheduler']) register_Ns3MapScheduler_methods(root_module, root_module['ns3::MapScheduler']) register_Ns3Ns2CalendarScheduler_methods(root_module, root_module['ns3::Ns2CalendarScheduler']) register_Ns3RealtimeSimulatorImpl_methods(root_module, root_module['ns3::RealtimeSimulatorImpl']) + register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker']) + register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue']) return def register_Ns3EventId_methods(root_module, cls): @@ -182,12 +194,17 @@ def register_Ns3EventId_methods(root_module, cls): cls.add_constructor([param('ns3::EventId const &', 'arg0')]) ## event-id.h: ns3::EventId::EventId() [constructor] cls.add_constructor([]) - ## event-id.h: ns3::EventId::EventId(ns3::Ptr const & impl, uint64_t ts, uint32_t uid) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'uid')]) + ## event-id.h: 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: void ns3::EventId::Cancel() [member function] cls.add_method('Cancel', 'void', []) + ## event-id.h: uint32_t ns3::EventId::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_const=True) ## event-id.h: uint64_t ns3::EventId::GetTs() const [member function] cls.add_method('GetTs', 'uint64_t', @@ -215,40 +232,6 @@ def register_Ns3EventId_methods(root_module, cls): is_const=True) return -def register_Ns3EventImpl_methods(root_module, cls): - ## event-impl.h: ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EventImpl const &', 'arg0')]) - ## event-impl.h: ns3::EventImpl::EventImpl() [constructor] - cls.add_constructor([]) - ## event-impl.h: void ns3::EventImpl::Cancel() [member function] - cls.add_method('Cancel', - 'void', - []) - ## event-impl.h: void ns3::EventImpl::Invoke() [member function] - cls.add_method('Invoke', - 'void', - []) - ## event-impl.h: bool ns3::EventImpl::IsCancelled() [member function] - cls.add_method('IsCancelled', - 'bool', - []) - ## event-impl.h: void ns3::EventImpl::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## event-impl.h: void ns3::EventImpl::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## event-impl.h: void ns3::EventImpl::Notify() [member function] - cls.add_method('Notify', - 'void', - [], - is_pure_virtual=True, visibility='protected', is_virtual=True) - return - def register_Ns3HighPrecision_methods(root_module, cls): ## high-precision-128.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor] cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')]) @@ -314,6 +297,11 @@ def register_Ns3Simulator_methods(root_module, cls): 'void', [], is_static=True) + ## simulator.h: static uint32_t ns3::Simulator::GetContext() [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_static=True) ## simulator.h: static ns3::Time ns3::Simulator::GetDelayLeft(ns3::EventId const & id) [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -364,10 +352,10 @@ def register_Ns3Simulator_methods(root_module, cls): 'void', [param('ns3::Ptr< ns3::SimulatorImpl >', 'impl')], is_static=True) - ## simulator.h: static void ns3::Simulator::SetScheduler(ns3::Ptr scheduler) [member function] + ## simulator.h: static void ns3::Simulator::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_static=True) ## simulator.h: static void ns3::Simulator::Stop() [member function] cls.add_method('Stop', @@ -769,6 +757,8 @@ def register_Ns3SchedulerEventKey_methods(root_module, cls): cls.add_constructor([]) ## scheduler.h: ns3::Scheduler::EventKey::EventKey(ns3::Scheduler::EventKey const & arg0) [copy constructor] cls.add_constructor([param('ns3::Scheduler::EventKey const &', 'arg0')]) + ## scheduler.h: ns3::Scheduler::EventKey::m_context [variable] + cls.add_instance_attribute('m_context', 'uint32_t', is_const=False) ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable] cls.add_instance_attribute('m_ts', 'uint64_t', is_const=False) ## scheduler.h: ns3::Scheduler::EventKey::m_uid [variable] @@ -790,6 +780,11 @@ def register_Ns3SimulatorImpl_methods(root_module, cls): 'void', [], is_pure_virtual=True, is_virtual=True) + ## simulator-impl.h: uint32_t ns3::SimulatorImpl::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_pure_virtual=True, is_const=True, is_virtual=True) ## simulator-impl.h: ns3::Time ns3::SimulatorImpl::GetDelayLeft(ns3::EventId const & id) const [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -850,16 +845,26 @@ def register_Ns3SimulatorImpl_methods(root_module, cls): 'ns3::EventId', [param('ns3::EventImpl *', 'event')], is_pure_virtual=True, is_virtual=True) - ## simulator-impl.h: void ns3::SimulatorImpl::SetScheduler(ns3::Ptr scheduler) [member function] + ## simulator-impl.h: void ns3::SimulatorImpl::ScheduleWithContext(uint32_t context, ns3::Time const & time, ns3::EventImpl * event) [member function] + cls.add_method('ScheduleWithContext', + 'void', + [param('uint32_t', 'context'), param('ns3::Time const &', 'time'), param('ns3::EventImpl *', 'event')], + is_pure_virtual=True, is_virtual=True) + ## simulator-impl.h: void ns3::SimulatorImpl::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_pure_virtual=True, is_virtual=True) ## simulator-impl.h: void ns3::SimulatorImpl::Stop() [member function] cls.add_method('Stop', 'void', [], is_pure_virtual=True, is_virtual=True) + ## simulator-impl.h: void ns3::SimulatorImpl::Stop(ns3::Time const & time) [member function] + cls.add_method('Stop', + 'void', + [param('ns3::Time const &', 'time')], + is_pure_virtual=True, is_virtual=True) return def register_Ns3Synchronizer_methods(root_module, cls): @@ -959,46 +964,6 @@ def register_Ns3Synchronizer_methods(root_module, cls): is_pure_virtual=True, visibility='protected', is_virtual=True) return -def register_Ns3TimeChecker_methods(root_module, cls): - ## nstime.h: ns3::TimeChecker::TimeChecker() [constructor] - cls.add_constructor([]) - ## nstime.h: ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')]) - return - -def register_Ns3TimeValue_methods(root_module, cls): - ## nstime.h: ns3::TimeValue::TimeValue() [constructor] - cls.add_constructor([]) - ## nstime.h: ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeValue const &', 'arg0')]) - ## nstime.h: ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor] - cls.add_constructor([param('ns3::Time const &', 'value')]) - ## nstime.h: ns3::Ptr ns3::TimeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## nstime.h: 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: ns3::Time ns3::TimeValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Time', - [], - is_const=True) - ## nstime.h: 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: void ns3::TimeValue::Set(ns3::Time const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Time const &', 'value')]) - return - def register_Ns3WallClockSynchronizer_methods(root_module, cls): ## wall-clock-synchronizer.h: ns3::WallClockSynchronizer::WallClockSynchronizer(ns3::WallClockSynchronizer const & arg0) [copy constructor] cls.add_constructor([param('ns3::WallClockSynchronizer const &', 'arg0')]) @@ -1149,6 +1114,11 @@ def register_Ns3DefaultSimulatorImpl_methods(root_module, cls): 'void', [], is_virtual=True) + ## default-simulator-impl.h: uint32_t ns3::DefaultSimulatorImpl::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_const=True, is_virtual=True) ## default-simulator-impl.h: ns3::Time ns3::DefaultSimulatorImpl::GetDelayLeft(ns3::EventId const & id) const [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -1214,16 +1184,50 @@ def register_Ns3DefaultSimulatorImpl_methods(root_module, cls): 'ns3::EventId', [param('ns3::EventImpl *', 'event')], is_virtual=True) - ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::SetScheduler(ns3::Ptr scheduler) [member function] + ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::ScheduleWithContext(uint32_t context, ns3::Time const & time, ns3::EventImpl * event) [member function] + cls.add_method('ScheduleWithContext', + 'void', + [param('uint32_t', 'context'), param('ns3::Time const &', 'time'), param('ns3::EventImpl *', 'event')], + is_virtual=True) + ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_virtual=True) ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::Stop() [member function] cls.add_method('Stop', 'void', [], is_virtual=True) + ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::Stop(ns3::Time const & time) [member function] + cls.add_method('Stop', + 'void', + [param('ns3::Time const &', 'time')], + is_virtual=True) + return + +def register_Ns3EventImpl_methods(root_module, cls): + ## event-impl.h: ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor] + cls.add_constructor([param('ns3::EventImpl const &', 'arg0')]) + ## event-impl.h: ns3::EventImpl::EventImpl() [constructor] + cls.add_constructor([]) + ## event-impl.h: void ns3::EventImpl::Cancel() [member function] + cls.add_method('Cancel', + 'void', + []) + ## event-impl.h: void ns3::EventImpl::Invoke() [member function] + cls.add_method('Invoke', + 'void', + []) + ## event-impl.h: bool ns3::EventImpl::IsCancelled() [member function] + cls.add_method('IsCancelled', + 'bool', + []) + ## event-impl.h: void ns3::EventImpl::Notify() [member function] + cls.add_method('Notify', + 'void', + [], + is_pure_virtual=True, visibility='protected', is_virtual=True) return def register_Ns3HeapScheduler_methods(root_module, cls): @@ -1389,6 +1393,11 @@ def register_Ns3RealtimeSimulatorImpl_methods(root_module, cls): 'void', [], is_virtual=True) + ## realtime-simulator-impl.h: uint32_t ns3::RealtimeSimulatorImpl::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_const=True, is_virtual=True) ## realtime-simulator-impl.h: ns3::Time ns3::RealtimeSimulatorImpl::GetDelayLeft(ns3::EventId const & id) const [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -1477,14 +1486,19 @@ def register_Ns3RealtimeSimulatorImpl_methods(root_module, cls): cls.add_method('ScheduleRealtimeNow', 'void', [param('ns3::EventImpl *', 'event')]) + ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::ScheduleWithContext(uint32_t context, ns3::Time const & time, ns3::EventImpl * event) [member function] + cls.add_method('ScheduleWithContext', + 'void', + [param('uint32_t', 'context'), param('ns3::Time const &', 'time'), param('ns3::EventImpl *', 'event')], + is_virtual=True) ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetHardLimit(ns3::Time limit) [member function] cls.add_method('SetHardLimit', 'void', [param('ns3::Time', 'limit')]) - ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetScheduler(ns3::Ptr scheduler) [member function] + ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_virtual=True) ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetSynchronizationMode(ns3::RealtimeSimulatorImpl::SynchronizationMode mode) [member function] cls.add_method('SetSynchronizationMode', @@ -1495,6 +1509,51 @@ def register_Ns3RealtimeSimulatorImpl_methods(root_module, cls): 'void', [], is_virtual=True) + ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::Stop(ns3::Time const & time) [member function] + cls.add_method('Stop', + 'void', + [param('ns3::Time const &', 'time')], + is_virtual=True) + return + +def register_Ns3TimeChecker_methods(root_module, cls): + ## nstime.h: ns3::TimeChecker::TimeChecker() [constructor] + cls.add_constructor([]) + ## nstime.h: ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')]) + return + +def register_Ns3TimeValue_methods(root_module, cls): + ## nstime.h: ns3::TimeValue::TimeValue() [constructor] + cls.add_constructor([]) + ## nstime.h: ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::TimeValue const &', 'arg0')]) + ## nstime.h: ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor] + cls.add_constructor([param('ns3::Time const &', 'value')]) + ## nstime.h: ns3::Ptr ns3::TimeValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## nstime.h: 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: ns3::Time ns3::TimeValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Time', + [], + is_const=True) + ## nstime.h: 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: void ns3::TimeValue::Set(ns3::Time const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Time const &', 'value')]) return def register_functions(root_module): @@ -1554,6 +1613,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1577,6 +1637,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_static_routing.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_static_routing.py index 22b6f3c13..ccf56190f 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_static_routing.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_static_routing.py @@ -34,6 +34,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -70,6 +76,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -447,7 +457,7 @@ def register_Ns3Ipv4StaticRouting_methods(root_module, cls): cls.add_method('RemoveRoute', 'void', [param('uint32_t', 'i')]) - ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -622,6 +632,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -637,6 +648,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_stats.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_stats.py index bfd42eb05..cb6915c12 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_stats.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_stats.py @@ -48,6 +48,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -84,6 +90,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -468,6 +478,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -483,6 +494,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_tap_bridge.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_tap_bridge.py index cf1171490..0b44ab435 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_tap_bridge.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_tap_bridge.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -258,6 +268,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -273,6 +284,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_test.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_test.py index b79f151cd..e773c3012 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_test.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_test.py @@ -22,6 +22,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -58,6 +64,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -82,6 +92,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -97,6 +108,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_udp_echo.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_udp_echo.py index b79097d2f..8d34185ab 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_udp_echo.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_udp_echo.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -167,6 +177,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -182,6 +193,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_v4ping.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_v4ping.py index b087bfb02..801ca106c 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_v4ping.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_v4ping.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -112,6 +122,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -127,6 +138,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_virtual_net_device.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_virtual_net_device.py index f03bcc785..974754fdf 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_virtual_net_device.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_virtual_net_device.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -242,6 +252,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -257,6 +268,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_wifi.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_wifi.py index 7d28518e3..30a701c72 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_wifi.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_wifi.py @@ -8,7 +8,7 @@ def register_types(module): ## wifi-preamble.h: ns3::WifiPreamble [enumeration] module.add_enum('WifiPreamble', ['WIFI_PREAMBLE_LONG', 'WIFI_PREAMBLE_SHORT']) ## wifi-phy-standard.h: ns3::WifiPhyStandard [enumeration] - module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_UNKNOWN']) + module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_STANDARD_80211p_CCH', 'WIFI_PHY_STANDARD_80211p_SCH', 'WIFI_PHY_UNKNOWN']) ## qos-utils.h: ns3::AccessClass [enumeration] module.add_enum('AccessClass', ['AC_VO', 'AC_VI', 'AC_BE', 'AC_BK', 'AC_BE_NQOS', 'AC_UNDEF']) ## edca-txop-n.h: ns3::TypeOfStation [enumeration] @@ -83,10 +83,8 @@ def register_types(module): module.add_class('RandomPropagationLossModel', parent=root_module['ns3::PropagationLossModel']) ## rraa-wifi-manager.h: ns3::RraaWifiRemoteStation [class] module.add_class('RraaWifiRemoteStation', parent=root_module['ns3::WifiRemoteStation']) - ## ssid.h: ns3::SsidChecker [class] - module.add_class('SsidChecker', parent=root_module['ns3::AttributeChecker']) - ## ssid.h: ns3::SsidValue [class] - module.add_class('SsidValue', parent=root_module['ns3::AttributeValue']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::InterferenceHelper::Event', 'ns3::empty'], parent=root_module['ns3::empty']) ## propagation-loss-model.h: ns3::ThreeLogDistancePropagationLossModel [class] module.add_class('ThreeLogDistancePropagationLossModel', parent=root_module['ns3::PropagationLossModel']) ## wifi-mac.h: ns3::WifiMac [class] @@ -97,10 +95,6 @@ def register_types(module): module.add_enum('QosAckPolicy', ['NORMAL_ACK', 'NO_ACK', 'NO_EXPLICIT_ACK', 'BLOCK_ACK'], outer_class=root_module['ns3::WifiMacHeader']) ## wifi-mac-header.h: ns3::WifiMacHeader::AddressType [enumeration] module.add_enum('AddressType', ['ADDR1', 'ADDR2', 'ADDR3', 'ADDR4'], outer_class=root_module['ns3::WifiMacHeader']) - ## wifi-mode.h: ns3::WifiModeChecker [class] - module.add_class('WifiModeChecker', parent=root_module['ns3::AttributeChecker']) - ## wifi-mode.h: ns3::WifiModeValue [class] - module.add_class('WifiModeValue', parent=root_module['ns3::AttributeValue']) ## wifi-phy.h: ns3::WifiPhy [class] module.add_class('WifiPhy', parent=root_module['ns3::Object']) ## wifi-phy.h: ns3::WifiPhy::State [enumeration] @@ -163,8 +157,16 @@ def register_types(module): module.add_class('QstaWifiMac', parent=root_module['ns3::WifiMac']) ## rraa-wifi-manager.h: ns3::RraaWifiManager [class] module.add_class('RraaWifiManager', parent=root_module['ns3::WifiRemoteStationManager']) + ## ssid.h: ns3::SsidChecker [class] + module.add_class('SsidChecker', parent=root_module['ns3::AttributeChecker']) + ## ssid.h: ns3::SsidValue [class] + module.add_class('SsidValue', parent=root_module['ns3::AttributeValue']) ## wifi-channel.h: ns3::WifiChannel [class] module.add_class('WifiChannel', parent=root_module['ns3::Channel']) + ## wifi-mode.h: ns3::WifiModeChecker [class] + module.add_class('WifiModeChecker', parent=root_module['ns3::AttributeChecker']) + ## wifi-mode.h: ns3::WifiModeValue [class] + module.add_class('WifiModeValue', parent=root_module['ns3::AttributeValue']) ## wifi-net-device.h: ns3::WifiNetDevice [class] module.add_class('WifiNetDevice', parent=root_module['ns3::NetDevice']) ## yans-error-rate-model.h: ns3::YansErrorRateModel [class] @@ -203,6 +205,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -239,6 +247,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -290,13 +302,9 @@ def register_methods(root_module): register_Ns3RandomPropagationDelayModel_methods(root_module, root_module['ns3::RandomPropagationDelayModel']) register_Ns3RandomPropagationLossModel_methods(root_module, root_module['ns3::RandomPropagationLossModel']) register_Ns3RraaWifiRemoteStation_methods(root_module, root_module['ns3::RraaWifiRemoteStation']) - register_Ns3SsidChecker_methods(root_module, root_module['ns3::SsidChecker']) - register_Ns3SsidValue_methods(root_module, root_module['ns3::SsidValue']) register_Ns3ThreeLogDistancePropagationLossModel_methods(root_module, root_module['ns3::ThreeLogDistancePropagationLossModel']) register_Ns3WifiMac_methods(root_module, root_module['ns3::WifiMac']) register_Ns3WifiMacHeader_methods(root_module, root_module['ns3::WifiMacHeader']) - register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker']) - register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue']) register_Ns3WifiPhy_methods(root_module, root_module['ns3::WifiPhy']) register_Ns3WifiRemoteStationManager_methods(root_module, root_module['ns3::WifiRemoteStationManager']) register_Ns3YansWifiPhy_methods(root_module, root_module['ns3::YansWifiPhy']) @@ -327,7 +335,11 @@ def register_methods(root_module): register_Ns3QapWifiMac_methods(root_module, root_module['ns3::QapWifiMac']) register_Ns3QstaWifiMac_methods(root_module, root_module['ns3::QstaWifiMac']) register_Ns3RraaWifiManager_methods(root_module, root_module['ns3::RraaWifiManager']) + register_Ns3SsidChecker_methods(root_module, root_module['ns3::SsidChecker']) + register_Ns3SsidValue_methods(root_module, root_module['ns3::SsidValue']) register_Ns3WifiChannel_methods(root_module, root_module['ns3::WifiChannel']) + register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker']) + register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue']) register_Ns3WifiNetDevice_methods(root_module, root_module['ns3::WifiNetDevice']) register_Ns3YansErrorRateModel_methods(root_module, root_module['ns3::YansErrorRateModel']) register_Ns3YansWifiChannel_methods(root_module, root_module['ns3::YansWifiChannel']) @@ -2112,46 +2124,6 @@ def register_Ns3RraaWifiRemoteStation_methods(root_module, cls): is_const=True, visibility='private', is_virtual=True) return -def register_Ns3SsidChecker_methods(root_module, cls): - ## ssid.h: ns3::SsidChecker::SsidChecker() [constructor] - cls.add_constructor([]) - ## ssid.h: ns3::SsidChecker::SsidChecker(ns3::SsidChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SsidChecker const &', 'arg0')]) - return - -def register_Ns3SsidValue_methods(root_module, cls): - ## ssid.h: ns3::SsidValue::SsidValue() [constructor] - cls.add_constructor([]) - ## ssid.h: ns3::SsidValue::SsidValue(ns3::SsidValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SsidValue const &', 'arg0')]) - ## ssid.h: ns3::SsidValue::SsidValue(ns3::Ssid const & value) [constructor] - cls.add_constructor([param('ns3::Ssid const &', 'value')]) - ## ssid.h: ns3::Ptr ns3::SsidValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ssid.h: bool ns3::SsidValue::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) - ## ssid.h: ns3::Ssid ns3::SsidValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ssid', - [], - is_const=True) - ## ssid.h: std::string ns3::SsidValue::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) - ## ssid.h: void ns3::SsidValue::Set(ns3::Ssid const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ssid const &', 'value')]) - return - def register_Ns3ThreeLogDistancePropagationLossModel_methods(root_module, cls): ## propagation-loss-model.h: static ns3::TypeId ns3::ThreeLogDistancePropagationLossModel::GetTypeId() [member function] cls.add_method('GetTypeId', @@ -2345,6 +2317,11 @@ def register_Ns3WifiMac_methods(root_module, cls): 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) + ## wifi-mac.h: void ns3::WifiMac::ConfigureCCHDcf(ns3::Ptr dcf, uint32_t cwmin, uint32_t cwmax, ns3::AccessClass ac) [member function] + cls.add_method('ConfigureCCHDcf', + 'void', + [param('ns3::Ptr< ns3::Dcf >', 'dcf'), param('uint32_t', 'cwmin'), param('uint32_t', 'cwmax'), param('ns3::AccessClass', 'ac')], + visibility='protected') ## wifi-mac.h: void ns3::WifiMac::ConfigureDcf(ns3::Ptr dcf, uint32_t cwmin, uint32_t cwmax, ns3::AccessClass ac) [member function] cls.add_method('ConfigureDcf', 'void', @@ -2746,46 +2723,6 @@ def register_Ns3WifiMacHeader_methods(root_module, cls): []) return -def register_Ns3WifiModeChecker_methods(root_module, cls): - ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker() [constructor] - cls.add_constructor([]) - ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')]) - return - -def register_Ns3WifiModeValue_methods(root_module, cls): - ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue() [constructor] - cls.add_constructor([]) - ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')]) - ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor] - cls.add_constructor([param('ns3::WifiMode const &', 'value')]) - ## wifi-mode.h: ns3::Ptr ns3::WifiModeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## wifi-mode.h: bool ns3::WifiModeValue::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) - ## wifi-mode.h: ns3::WifiMode ns3::WifiModeValue::Get() const [member function] - cls.add_method('Get', - 'ns3::WifiMode', - [], - is_const=True) - ## wifi-mode.h: std::string ns3::WifiModeValue::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) - ## wifi-mode.h: void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::WifiMode const &', 'value')]) - return - def register_Ns3WifiPhy_methods(root_module, cls): ## wifi-phy.h: ns3::WifiPhy::WifiPhy(ns3::WifiPhy const & arg0) [copy constructor] cls.add_constructor([param('ns3::WifiPhy const &', 'arg0')]) @@ -4510,6 +4447,11 @@ def register_Ns3NqapWifiMac_methods(root_module, cls): 'void', [], visibility='private', is_virtual=True) + ## nqap-wifi-mac.h: void ns3::NqapWifiMac::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) ## nqap-wifi-mac.h: void ns3::NqapWifiMac::FinishConfigureStandard(ns3::WifiPhyStandard standard) [member function] cls.add_method('FinishConfigureStandard', 'void', @@ -4991,6 +4933,11 @@ def register_Ns3QapWifiMac_methods(root_module, cls): 'void', [], visibility='private', is_virtual=True) + ## qap-wifi-mac.h: void ns3::QapWifiMac::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) ## qap-wifi-mac.h: void ns3::QapWifiMac::FinishConfigureStandard(ns3::WifiPhyStandard standard) [member function] cls.add_method('FinishConfigureStandard', 'void', @@ -5190,6 +5137,46 @@ def register_Ns3RraaWifiManager_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3SsidChecker_methods(root_module, cls): + ## ssid.h: ns3::SsidChecker::SsidChecker() [constructor] + cls.add_constructor([]) + ## ssid.h: ns3::SsidChecker::SsidChecker(ns3::SsidChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::SsidChecker const &', 'arg0')]) + return + +def register_Ns3SsidValue_methods(root_module, cls): + ## ssid.h: ns3::SsidValue::SsidValue() [constructor] + cls.add_constructor([]) + ## ssid.h: ns3::SsidValue::SsidValue(ns3::SsidValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::SsidValue const &', 'arg0')]) + ## ssid.h: ns3::SsidValue::SsidValue(ns3::Ssid const & value) [constructor] + cls.add_constructor([param('ns3::Ssid const &', 'value')]) + ## ssid.h: ns3::Ptr ns3::SsidValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## ssid.h: bool ns3::SsidValue::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) + ## ssid.h: ns3::Ssid ns3::SsidValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ssid', + [], + is_const=True) + ## ssid.h: std::string ns3::SsidValue::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) + ## ssid.h: void ns3::SsidValue::Set(ns3::Ssid const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ssid const &', 'value')]) + return + def register_Ns3WifiChannel_methods(root_module, cls): ## wifi-channel.h: ns3::WifiChannel::WifiChannel() [constructor] cls.add_constructor([]) @@ -5202,6 +5189,46 @@ def register_Ns3WifiChannel_methods(root_module, cls): is_static=True) return +def register_Ns3WifiModeChecker_methods(root_module, cls): + ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker() [constructor] + cls.add_constructor([]) + ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')]) + return + +def register_Ns3WifiModeValue_methods(root_module, cls): + ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue() [constructor] + cls.add_constructor([]) + ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')]) + ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor] + cls.add_constructor([param('ns3::WifiMode const &', 'value')]) + ## wifi-mode.h: ns3::Ptr ns3::WifiModeValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## wifi-mode.h: bool ns3::WifiModeValue::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) + ## wifi-mode.h: ns3::WifiMode ns3::WifiModeValue::Get() const [member function] + cls.add_method('Get', + 'ns3::WifiMode', + [], + is_const=True) + ## wifi-mode.h: std::string ns3::WifiModeValue::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) + ## wifi-mode.h: void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::WifiMode const &', 'value')]) + return + def register_Ns3WifiNetDevice_methods(root_module, cls): ## wifi-net-device.h: ns3::WifiNetDevice::WifiNetDevice(ns3::WifiNetDevice const & arg0) [copy constructor] cls.add_constructor([param('ns3::WifiNetDevice const &', 'arg0')]) @@ -5364,6 +5391,11 @@ def register_Ns3WifiNetDevice_methods(root_module, cls): 'void', [], visibility='private', is_virtual=True) + ## wifi-net-device.h: void ns3::WifiNetDevice::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3YansErrorRateModel_methods(root_module, cls): @@ -5537,6 +5569,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -5552,6 +5585,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py b/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py index 62dac471f..a9dafcd89 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py @@ -37,6 +37,7 @@ import ns3_module_global_routing import ns3_module_udp_echo import ns3_module_nix_vector_routing import ns3_module_olsr +import ns3_module_aodv import ns3_module_radvd import ns3_module_ping6 import ns3_module_flow_monitor @@ -327,6 +328,17 @@ def register_types(module): ns3_module_olsr__local.register_types(module) root_module.end_section('ns3_module_olsr') + root_module.begin_section('ns3_module_aodv') + ns3_module_aodv.register_types(module) + + try: + import ns3_module_aodv__local + except ImportError: + pass + else: + ns3_module_aodv__local.register_types(module) + + root_module.end_section('ns3_module_aodv') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_types(module) @@ -436,6 +448,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -473,6 +491,11 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + module.add_container('std::map< ns3::Ipv4Address, unsigned int >', ('ns3::Ipv4Address', 'unsigned int'), container_type='map') + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -769,6 +792,17 @@ def register_methods(root_module): ns3_module_olsr__local.register_methods(root_module) root_module.end_section('ns3_module_olsr') + root_module.begin_section('ns3_module_aodv') + ns3_module_aodv.register_methods(root_module) + + try: + import ns3_module_aodv__local + except ImportError: + pass + else: + ns3_module_aodv__local.register_methods(root_module) + + root_module.end_section('ns3_module_aodv') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_methods(root_module) @@ -1259,6 +1293,17 @@ def register_functions(root_module): ns3_module_olsr__local.register_functions(root_module) root_module.end_section('ns3_module_olsr') + root_module.begin_section('ns3_module_aodv') + ns3_module_aodv.register_functions(root_module) + + try: + import ns3_module_aodv__local + except ImportError: + pass + else: + ns3_module_aodv__local.register_functions(root_module) + + root_module.end_section('ns3_module_aodv') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_functions(root_module) @@ -1339,6 +1384,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1354,6 +1400,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/callbacks_list.py b/bindings/python/apidefs/gcc-LP64/callbacks_list.py index da45e917c..3ef430b30 100644 --- a/bindings/python/apidefs/gcc-LP64/callbacks_list.py +++ b/bindings/python/apidefs/gcc-LP64/callbacks_list.py @@ -4,18 +4,21 @@ callback_classes = [ ['void', 'ns3::Ptr', 'ns3::Mac48Address', 'ns3::Mac48Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Mac48Address', 'ns3::Mac48Address', 'unsigned int', 'bool', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'unsigned int', 'ns3::Mac48Address', 'ns3::Mac48Address', 'ns3::dot11s::PeerLink::PeerState', 'ns3::dot11s::PeerLink::PeerState', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['void', 'ns3::WifiMacHeader const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['unsigned int', 'ns3::Mac48Address', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::WifiMacHeader const*', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['std::vector >', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'bool', 'ns3::Ptr', 'ns3::Mac48Address', 'ns3::Mac48Address', 'unsigned short', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'ns3::WifiMacHeader const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['bool', 'std::string', '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::Ipv4Header const&', 'ns3::Socket::SocketErrno', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'ns3::Ptr', 'ns3::Ptr', 'ns3::Ipv4Header const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::Address const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['bool', 'ns3::Ptr', 'ns3::Address const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['std::vector >', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['void', 'bool', 'ns3::Ptr', 'ns3::Mac48Address', 'ns3::Mac48Address', 'unsigned short', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty'], - ['bool', 'std::string', '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::Ipv4Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::Ipv4Address', 'ns3::empty', 'ns3::empty', '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/bindings/python/apidefs/gcc-LP64/ns3_module_aodv.py b/bindings/python/apidefs/gcc-LP64/ns3_module_aodv.py new file mode 100644 index 000000000..9d611c194 --- /dev/null +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_aodv.py @@ -0,0 +1,1054 @@ +from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers + +def register_types(module): + root_module = module.get_root() + + + ## Register a nested module for the namespace Config + + nested_module = module.add_cpp_namespace('Config') + register_types_ns3_Config(nested_module) + + + ## Register a nested module for the namespace TimeStepPrecision + + nested_module = module.add_cpp_namespace('TimeStepPrecision') + register_types_ns3_TimeStepPrecision(nested_module) + + + ## Register a nested module for the namespace addressUtils + + nested_module = module.add_cpp_namespace('addressUtils') + register_types_ns3_addressUtils(nested_module) + + + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + + ## Register a nested module for the namespace dot11s + + nested_module = module.add_cpp_namespace('dot11s') + register_types_ns3_dot11s(nested_module) + + + ## Register a nested module for the namespace flame + + nested_module = module.add_cpp_namespace('flame') + register_types_ns3_flame(nested_module) + + + ## Register a nested module for the namespace internal + + nested_module = module.add_cpp_namespace('internal') + register_types_ns3_internal(nested_module) + + + ## Register a nested module for the namespace olsr + + nested_module = module.add_cpp_namespace('olsr') + register_types_ns3_olsr(nested_module) + + +def register_types_ns3_Config(module): + root_module = module.get_root() + + +def register_types_ns3_TimeStepPrecision(module): + root_module = module.get_root() + + +def register_types_ns3_addressUtils(module): + root_module = module.get_root() + + +def register_types_ns3_aodv(module): + root_module = module.get_root() + + ## aodv-packet.h: ns3::aodv::MessageType [enumeration] + module.add_enum('MessageType', ['AODVTYPE_RREQ', 'AODVTYPE_RREP', 'AODVTYPE_RERR', 'AODVTYPE_RREP_ACK']) + ## aodv-rtable.h: ns3::aodv::RouteFlags [enumeration] + module.add_enum('RouteFlags', ['VALID', 'INVALID', 'IN_SEARCH']) + ## aodv-dpd.h: ns3::aodv::DuplicatePacketDetection [class] + module.add_class('DuplicatePacketDetection') + ## aodv-id-cache.h: ns3::aodv::IdCache [class] + module.add_class('IdCache') + ## aodv-neighbor.h: ns3::aodv::Neighbors [class] + module.add_class('Neighbors') + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor [struct] + module.add_class('Neighbor', outer_class=root_module['ns3::aodv::Neighbors']) + ## aodv-rqueue.h: ns3::aodv::QueueEntry [class] + module.add_class('QueueEntry') + ## aodv-rqueue.h: ns3::aodv::RequestQueue [class] + module.add_class('RequestQueue') + ## aodv-packet.h: ns3::aodv::RerrHeader [class] + module.add_class('RerrHeader', parent=root_module['ns3::Header']) + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol [class] + module.add_class('RoutingProtocol', parent=root_module['ns3::Ipv4RoutingProtocol']) + ## aodv-rtable.h: ns3::aodv::RoutingTable [class] + module.add_class('RoutingTable') + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry [class] + module.add_class('RoutingTableEntry') + ## aodv-packet.h: ns3::aodv::RrepAckHeader [class] + module.add_class('RrepAckHeader', parent=root_module['ns3::Header']) + ## aodv-packet.h: ns3::aodv::RrepHeader [class] + module.add_class('RrepHeader', parent=root_module['ns3::Header']) + ## aodv-packet.h: ns3::aodv::RreqHeader [class] + module.add_class('RreqHeader', parent=root_module['ns3::Header']) + ## aodv-packet.h: ns3::aodv::TypeHeader [class] + module.add_class('TypeHeader', parent=root_module['ns3::Header']) + +def register_types_ns3_dot11s(module): + root_module = module.get_root() + + +def register_types_ns3_flame(module): + root_module = module.get_root() + + +def register_types_ns3_internal(module): + root_module = module.get_root() + + +def register_types_ns3_olsr(module): + root_module = module.get_root() + + +def register_methods(root_module): + register_Ns3AodvDuplicatePacketDetection_methods(root_module, root_module['ns3::aodv::DuplicatePacketDetection']) + register_Ns3AodvIdCache_methods(root_module, root_module['ns3::aodv::IdCache']) + register_Ns3AodvNeighbors_methods(root_module, root_module['ns3::aodv::Neighbors']) + register_Ns3AodvNeighborsNeighbor_methods(root_module, root_module['ns3::aodv::Neighbors::Neighbor']) + register_Ns3AodvQueueEntry_methods(root_module, root_module['ns3::aodv::QueueEntry']) + register_Ns3AodvRequestQueue_methods(root_module, root_module['ns3::aodv::RequestQueue']) + register_Ns3AodvRerrHeader_methods(root_module, root_module['ns3::aodv::RerrHeader']) + register_Ns3AodvRoutingProtocol_methods(root_module, root_module['ns3::aodv::RoutingProtocol']) + register_Ns3AodvRoutingTable_methods(root_module, root_module['ns3::aodv::RoutingTable']) + register_Ns3AodvRoutingTableEntry_methods(root_module, root_module['ns3::aodv::RoutingTableEntry']) + register_Ns3AodvRrepAckHeader_methods(root_module, root_module['ns3::aodv::RrepAckHeader']) + register_Ns3AodvRrepHeader_methods(root_module, root_module['ns3::aodv::RrepHeader']) + register_Ns3AodvRreqHeader_methods(root_module, root_module['ns3::aodv::RreqHeader']) + register_Ns3AodvTypeHeader_methods(root_module, root_module['ns3::aodv::TypeHeader']) + return + +def register_Ns3AodvDuplicatePacketDetection_methods(root_module, cls): + ## aodv-dpd.h: ns3::aodv::DuplicatePacketDetection::DuplicatePacketDetection(ns3::aodv::DuplicatePacketDetection const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::DuplicatePacketDetection const &', 'arg0')]) + ## aodv-dpd.h: ns3::aodv::DuplicatePacketDetection::DuplicatePacketDetection(ns3::Time lifetime) [constructor] + cls.add_constructor([param('ns3::Time', 'lifetime')]) + ## aodv-dpd.h: ns3::Time ns3::aodv::DuplicatePacketDetection::GetLifetime() const [member function] + cls.add_method('GetLifetime', + 'ns3::Time', + [], + is_const=True) + ## aodv-dpd.h: bool ns3::aodv::DuplicatePacketDetection::IsDuplicate(ns3::Ptr p, ns3::Ipv4Header const & header) [member function] + cls.add_method('IsDuplicate', + 'bool', + [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header')]) + ## aodv-dpd.h: void ns3::aodv::DuplicatePacketDetection::SetLifetime(ns3::Time lifetime) [member function] + cls.add_method('SetLifetime', + 'void', + [param('ns3::Time', 'lifetime')]) + return + +def register_Ns3AodvIdCache_methods(root_module, cls): + ## aodv-id-cache.h: ns3::aodv::IdCache::IdCache(ns3::aodv::IdCache const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::IdCache const &', 'arg0')]) + ## aodv-id-cache.h: ns3::aodv::IdCache::IdCache(ns3::Time lifetime) [constructor] + cls.add_constructor([param('ns3::Time', 'lifetime')]) + ## aodv-id-cache.h: ns3::Time ns3::aodv::IdCache::GetLifeTime() const [member function] + cls.add_method('GetLifeTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-id-cache.h: uint32_t ns3::aodv::IdCache::GetSize() [member function] + cls.add_method('GetSize', + 'uint32_t', + []) + ## aodv-id-cache.h: bool ns3::aodv::IdCache::IsDuplicate(ns3::Ipv4Address addr, uint32_t id) [member function] + cls.add_method('IsDuplicate', + 'bool', + [param('ns3::Ipv4Address', 'addr'), param('uint32_t', 'id')]) + ## aodv-id-cache.h: void ns3::aodv::IdCache::Purge() [member function] + cls.add_method('Purge', + 'void', + []) + ## aodv-id-cache.h: void ns3::aodv::IdCache::SetLifetime(ns3::Time lifetime) [member function] + cls.add_method('SetLifetime', + 'void', + [param('ns3::Time', 'lifetime')]) + return + +def register_Ns3AodvNeighbors_methods(root_module, cls): + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbors(ns3::aodv::Neighbors const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::Neighbors const &', 'arg0')]) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbors(ns3::Time delay) [constructor] + cls.add_constructor([param('ns3::Time', 'delay')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::AddArpCache(ns3::Ptr arg0) [member function] + cls.add_method('AddArpCache', + 'void', + [param('ns3::Ptr< ns3::ArpCache >', 'arg0')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::Clear() [member function] + cls.add_method('Clear', + 'void', + []) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::DelArpCache(ns3::Ptr arg0) [member function] + cls.add_method('DelArpCache', + 'void', + [param('ns3::Ptr< ns3::ArpCache >', 'arg0')]) + ## aodv-neighbor.h: ns3::Callback ns3::aodv::Neighbors::GetCallback() const [member function] + cls.add_method('GetCallback', + 'ns3::Callback< void, ns3::Ipv4Address, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-neighbor.h: ns3::Time ns3::aodv::Neighbors::GetExpireTime(ns3::Ipv4Address addr) [member function] + cls.add_method('GetExpireTime', + 'ns3::Time', + [param('ns3::Ipv4Address', 'addr')]) + ## aodv-neighbor.h: ns3::Callback ns3::aodv::Neighbors::GetTxErrorCallback() const [member function] + cls.add_method('GetTxErrorCallback', + 'ns3::Callback< void, ns3::WifiMacHeader const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-neighbor.h: bool ns3::aodv::Neighbors::IsNeighbor(ns3::Ipv4Address addr) [member function] + cls.add_method('IsNeighbor', + 'bool', + [param('ns3::Ipv4Address', 'addr')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::Purge() [member function] + cls.add_method('Purge', + 'void', + []) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::ScheduleTimer() [member function] + cls.add_method('ScheduleTimer', + 'void', + []) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::SetCallback(ns3::Callback cb) [member function] + cls.add_method('SetCallback', + 'void', + [param('ns3::Callback< void, ns3::Ipv4Address, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')]) + ## aodv-neighbor.h: void ns3::aodv::Neighbors::Update(ns3::Ipv4Address addr, ns3::Time expire) [member function] + cls.add_method('Update', + 'void', + [param('ns3::Ipv4Address', 'addr'), param('ns3::Time', 'expire')]) + return + +def register_Ns3AodvNeighborsNeighbor_methods(root_module, cls): + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::Neighbor(ns3::aodv::Neighbors::Neighbor const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::Neighbors::Neighbor const &', 'arg0')]) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::Neighbor(ns3::Ipv4Address ip, ns3::Mac48Address mac, ns3::Time t) [constructor] + cls.add_constructor([param('ns3::Ipv4Address', 'ip'), param('ns3::Mac48Address', 'mac'), param('ns3::Time', 't')]) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::close [variable] + cls.add_instance_attribute('close', 'bool', is_const=False) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::m_expireTime [variable] + cls.add_instance_attribute('m_expireTime', 'ns3::Time', is_const=False) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::m_hardwareAddress [variable] + cls.add_instance_attribute('m_hardwareAddress', 'ns3::Mac48Address', is_const=False) + ## aodv-neighbor.h: ns3::aodv::Neighbors::Neighbor::m_neighborAddress [variable] + cls.add_instance_attribute('m_neighborAddress', 'ns3::Ipv4Address', is_const=False) + return + +def register_Ns3AodvQueueEntry_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + ## aodv-rqueue.h: ns3::aodv::QueueEntry::QueueEntry(ns3::aodv::QueueEntry const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::QueueEntry const &', 'arg0')]) + ## aodv-rqueue.h: ns3::aodv::QueueEntry::QueueEntry(ns3::Ptr pa=0, ns3::Ipv4Header const & h=ns3::Ipv4Header(), ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb=ns3::Callback, ns3::Ptr, const ns3::Ipv4Header&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>(), ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb=ns3::Callback, const ns3::Ipv4Header&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>(), ns3::Time exp=ns3::Simulator::Now( )) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::Packet const >', 'pa', default_value='0'), param('ns3::Ipv4Header const &', 'h', default_value='ns3::Ipv4Header()'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb', default_value='ns3::Callback, ns3::Ptr, const ns3::Ipv4Header&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>()'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb', default_value='ns3::Callback, const ns3::Ipv4Header&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>()'), param('ns3::Time', 'exp', default_value='ns3::Simulator::Now( )')]) + ## aodv-rqueue.h: ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::aodv::QueueEntry::GetErrorCallback() const [member function] + cls.add_method('GetErrorCallback', + 'ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Time ns3::aodv::QueueEntry::GetExpireTime() const [member function] + cls.add_method('GetExpireTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Ipv4Header ns3::aodv::QueueEntry::GetIpv4Header() const [member function] + cls.add_method('GetIpv4Header', + 'ns3::Ipv4Header', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Ptr ns3::aodv::QueueEntry::GetPacket() const [member function] + cls.add_method('GetPacket', + 'ns3::Ptr< ns3::Packet const >', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::aodv::QueueEntry::GetUnicastForwardCallback() const [member function] + cls.add_method('GetUnicastForwardCallback', + 'ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', + [], + is_const=True) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetErrorCallback(ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] + cls.add_method('SetErrorCallback', + 'void', + [param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetExpireTime(ns3::Time exp) [member function] + cls.add_method('SetExpireTime', + 'void', + [param('ns3::Time', 'exp')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetIpv4Header(ns3::Ipv4Header h) [member function] + cls.add_method('SetIpv4Header', + 'void', + [param('ns3::Ipv4Header', 'h')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetPacket(ns3::Ptr p) [member function] + cls.add_method('SetPacket', + 'void', + [param('ns3::Ptr< ns3::Packet const >', 'p')]) + ## aodv-rqueue.h: void ns3::aodv::QueueEntry::SetUnicastForwardCallback(ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb) [member function] + cls.add_method('SetUnicastForwardCallback', + 'void', + [param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb')]) + return + +def register_Ns3AodvRequestQueue_methods(root_module, cls): + ## aodv-rqueue.h: ns3::aodv::RequestQueue::RequestQueue(ns3::aodv::RequestQueue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RequestQueue const &', 'arg0')]) + ## aodv-rqueue.h: ns3::aodv::RequestQueue::RequestQueue(uint32_t maxLen, ns3::Time routeToQueueTimeout) [constructor] + cls.add_constructor([param('uint32_t', 'maxLen'), param('ns3::Time', 'routeToQueueTimeout')]) + ## aodv-rqueue.h: bool ns3::aodv::RequestQueue::Dequeue(ns3::Ipv4Address dst, ns3::aodv::QueueEntry & entry) [member function] + cls.add_method('Dequeue', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('ns3::aodv::QueueEntry &', 'entry')]) + ## aodv-rqueue.h: void ns3::aodv::RequestQueue::DropPacketWithDst(ns3::Ipv4Address dst) [member function] + cls.add_method('DropPacketWithDst', + 'void', + [param('ns3::Ipv4Address', 'dst')]) + ## aodv-rqueue.h: bool ns3::aodv::RequestQueue::Enqueue(ns3::aodv::QueueEntry & entry) [member function] + cls.add_method('Enqueue', + 'bool', + [param('ns3::aodv::QueueEntry &', 'entry')]) + ## aodv-rqueue.h: bool ns3::aodv::RequestQueue::Find(ns3::Ipv4Address dst) [member function] + cls.add_method('Find', + 'bool', + [param('ns3::Ipv4Address', 'dst')]) + ## aodv-rqueue.h: uint32_t ns3::aodv::RequestQueue::GetMaxQueueLen() const [member function] + cls.add_method('GetMaxQueueLen', + 'uint32_t', + [], + is_const=True) + ## aodv-rqueue.h: ns3::Time ns3::aodv::RequestQueue::GetQueueTimeout() const [member function] + cls.add_method('GetQueueTimeout', + 'ns3::Time', + [], + is_const=True) + ## aodv-rqueue.h: uint32_t ns3::aodv::RequestQueue::GetSize() [member function] + cls.add_method('GetSize', + 'uint32_t', + []) + ## aodv-rqueue.h: void ns3::aodv::RequestQueue::SetMaxQueueLen(uint32_t len) [member function] + cls.add_method('SetMaxQueueLen', + 'void', + [param('uint32_t', 'len')]) + ## aodv-rqueue.h: void ns3::aodv::RequestQueue::SetQueueTimeout(ns3::Time t) [member function] + cls.add_method('SetQueueTimeout', + 'void', + [param('ns3::Time', 't')]) + return + +def register_Ns3AodvRerrHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RerrHeader::RerrHeader(ns3::aodv::RerrHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RerrHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RerrHeader::RerrHeader() [constructor] + cls.add_constructor([]) + ## aodv-packet.h: bool ns3::aodv::RerrHeader::AddUnDestination(ns3::Ipv4Address dst, uint32_t seqNo) [member function] + cls.add_method('AddUnDestination', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('uint32_t', 'seqNo')]) + ## aodv-packet.h: void ns3::aodv::RerrHeader::Clear() [member function] + cls.add_method('Clear', + 'void', + []) + ## aodv-packet.h: uint32_t ns3::aodv::RerrHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: uint8_t ns3::aodv::RerrHeader::GetDestCount() const [member function] + cls.add_method('GetDestCount', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RerrHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RerrHeader::GetNoDelete() const [member function] + cls.add_method('GetNoDelete', + 'bool', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RerrHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RerrHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RerrHeader::RemoveUnDestination(std::pair & un) [member function] + cls.add_method('RemoveUnDestination', + 'bool', + [param('std::pair< ns3::Ipv4Address, unsigned int > &', 'un')]) + ## aodv-packet.h: void ns3::aodv::RerrHeader::Serialize(ns3::Buffer::Iterator i) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'i')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RerrHeader::SetNoDelete(bool f) [member function] + cls.add_method('SetNoDelete', + 'void', + [param('bool', 'f')]) + return + +def register_Ns3AodvRoutingProtocol_methods(root_module, cls): + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol::RoutingProtocol(ns3::aodv::RoutingProtocol const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RoutingProtocol const &', 'arg0')]) + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol::RoutingProtocol() [constructor] + cls.add_constructor([]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + is_virtual=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetBroadcastEnable() const [member function] + cls.add_method('GetBroadcastEnable', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetDesinationOnlyFlag() const [member function] + cls.add_method('GetDesinationOnlyFlag', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetGratuitousReplyFlag() const [member function] + cls.add_method('GetGratuitousReplyFlag', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::GetHelloEnable() const [member function] + cls.add_method('GetHelloEnable', + 'bool', + [], + is_const=True) + ## aodv-routing-protocol.h: static ns3::TypeId ns3::aodv::RoutingProtocol::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('NotifyAddAddress', + 'void', + [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyInterfaceDown(uint32_t interface) [member function] + cls.add_method('NotifyInterfaceDown', + 'void', + [param('uint32_t', 'interface')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyInterfaceUp(uint32_t interface) [member function] + cls.add_method('NotifyInterfaceUp', + 'void', + [param('uint32_t', 'interface')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('NotifyRemoveAddress', + 'void', + [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], + is_virtual=True) + ## aodv-routing-protocol.h: bool ns3::aodv::RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] + cls.add_method('RouteInput', + 'bool', + [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], + is_virtual=True) + ## aodv-routing-protocol.h: ns3::Ptr ns3::aodv::RoutingProtocol::RouteOutput(ns3::Ptr p, ns3::Ipv4Header const & header, uint32_t oif, ns3::Socket::SocketErrno & sockerr) [member function] + cls.add_method('RouteOutput', + 'ns3::Ptr< ns3::Ipv4Route >', + [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('uint32_t', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')], + is_virtual=True) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetBroadcastEnable(bool f) [member function] + cls.add_method('SetBroadcastEnable', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetDesinationOnlyFlag(bool f) [member function] + cls.add_method('SetDesinationOnlyFlag', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetGratuitousReplyFlag(bool f) [member function] + cls.add_method('SetGratuitousReplyFlag', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetHelloEnable(bool f) [member function] + cls.add_method('SetHelloEnable', + 'void', + [param('bool', 'f')]) + ## aodv-routing-protocol.h: void ns3::aodv::RoutingProtocol::SetIpv4(ns3::Ptr ipv4) [member function] + cls.add_method('SetIpv4', + 'void', + [param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')], + is_virtual=True) + ## aodv-routing-protocol.h: ns3::aodv::RoutingProtocol::AODV_PORT [variable] + cls.add_static_attribute('AODV_PORT', 'uint32_t const', is_const=True) + return + +def register_Ns3AodvRoutingTable_methods(root_module, cls): + ## aodv-rtable.h: ns3::aodv::RoutingTable::RoutingTable(ns3::aodv::RoutingTable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RoutingTable const &', 'arg0')]) + ## aodv-rtable.h: ns3::aodv::RoutingTable::RoutingTable(ns3::Time t) [constructor] + cls.add_constructor([param('ns3::Time', 't')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::AddRoute(ns3::aodv::RoutingTableEntry & r) [member function] + cls.add_method('AddRoute', + 'bool', + [param('ns3::aodv::RoutingTableEntry &', 'r')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::Clear() [member function] + cls.add_method('Clear', + 'void', + []) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::DeleteAllRoutesFromInterface(ns3::Ipv4InterfaceAddress iface) [member function] + cls.add_method('DeleteAllRoutesFromInterface', + 'void', + [param('ns3::Ipv4InterfaceAddress', 'iface')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::DeleteRoute(ns3::Ipv4Address dst) [member function] + cls.add_method('DeleteRoute', + 'bool', + [param('ns3::Ipv4Address', 'dst')]) + ## aodv-rtable.h: ns3::Time ns3::aodv::RoutingTable::GetBadLinkLifetime() const [member function] + cls.add_method('GetBadLinkLifetime', + 'ns3::Time', + [], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::GetListOfDestinationWithNextHop(ns3::Ipv4Address nextHop, std::map, std::allocator > > & unreachable) [member function] + cls.add_method('GetListOfDestinationWithNextHop', + 'void', + [param('ns3::Ipv4Address', 'nextHop'), param('std::map< ns3::Ipv4Address, unsigned int > &', 'unreachable')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::InvalidateRoutesWithDst(std::map, std::allocator > > const & unreachable) [member function] + cls.add_method('InvalidateRoutesWithDst', + 'void', + [param('std::map< ns3::Ipv4Address, unsigned int > const &', 'unreachable')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::LookupRoute(ns3::Ipv4Address dst, ns3::aodv::RoutingTableEntry & rt) [member function] + cls.add_method('LookupRoute', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('ns3::aodv::RoutingTableEntry &', 'rt')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::MarkLinkAsUnidirectional(ns3::Ipv4Address neighbor, ns3::Time blacklistTimeout) [member function] + cls.add_method('MarkLinkAsUnidirectional', + 'bool', + [param('ns3::Ipv4Address', 'neighbor'), param('ns3::Time', 'blacklistTimeout')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::Print(std::ostream & os) [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::Purge() [member function] + cls.add_method('Purge', + 'void', + []) + ## aodv-rtable.h: void ns3::aodv::RoutingTable::SetBadLinkLifetime(ns3::Time t) [member function] + cls.add_method('SetBadLinkLifetime', + 'void', + [param('ns3::Time', 't')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::SetEntryState(ns3::Ipv4Address dst, ns3::aodv::RouteFlags state) [member function] + cls.add_method('SetEntryState', + 'bool', + [param('ns3::Ipv4Address', 'dst'), param('ns3::aodv::RouteFlags', 'state')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTable::Update(ns3::aodv::RoutingTableEntry & rt) [member function] + cls.add_method('Update', + 'bool', + [param('ns3::aodv::RoutingTableEntry &', 'rt')]) + return + +def register_Ns3AodvRoutingTableEntry_methods(root_module, cls): + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry::RoutingTableEntry(ns3::aodv::RoutingTableEntry const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RoutingTableEntry const &', 'arg0')]) + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry::RoutingTableEntry(ns3::Ptr dev=0, ns3::Ipv4Address dst=ns3::Ipv4Address(), bool vSeqNo=false, u_int32_t m_seqNo=0, ns3::Ipv4InterfaceAddress iface=ns3::Ipv4InterfaceAddress(), u_int16_t hops=0, ns3::Ipv4Address nextHop=ns3::Ipv4Address(), ns3::Time lifetime=ns3::Simulator::Now( )) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev', default_value='0'), param('ns3::Ipv4Address', 'dst', default_value='ns3::Ipv4Address()'), param('bool', 'vSeqNo', default_value='false'), param('u_int32_t', 'm_seqNo', default_value='0'), param('ns3::Ipv4InterfaceAddress', 'iface', default_value='ns3::Ipv4InterfaceAddress()'), param('u_int16_t', 'hops', default_value='0'), param('ns3::Ipv4Address', 'nextHop', default_value='ns3::Ipv4Address()'), param('ns3::Time', 'lifetime', default_value='ns3::Simulator::Now( )')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::DeleteAllPrecursors() [member function] + cls.add_method('DeleteAllPrecursors', + 'void', + []) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::DeletePrecursor(ns3::Ipv4Address id) [member function] + cls.add_method('DeletePrecursor', + 'bool', + [param('ns3::Ipv4Address', 'id')]) + ## aodv-rtable.h: ns3::Time ns3::aodv::RoutingTableEntry::GetBlacklistTimeout() const [member function] + cls.add_method('GetBlacklistTimeout', + 'ns3::Time', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ipv4Address ns3::aodv::RoutingTableEntry::GetDestination() const [member function] + cls.add_method('GetDestination', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-rtable.h: ns3::aodv::RouteFlags ns3::aodv::RoutingTableEntry::GetFlag() const [member function] + cls.add_method('GetFlag', + 'ns3::aodv::RouteFlags', + [], + is_const=True) + ## aodv-rtable.h: uint16_t ns3::aodv::RoutingTableEntry::GetHop() const [member function] + cls.add_method('GetHop', + 'uint16_t', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ipv4InterfaceAddress ns3::aodv::RoutingTableEntry::GetInterface() const [member function] + cls.add_method('GetInterface', + 'ns3::Ipv4InterfaceAddress', + [], + is_const=True) + ## aodv-rtable.h: ns3::Time ns3::aodv::RoutingTableEntry::GetLifeTime() const [member function] + cls.add_method('GetLifeTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ipv4Address ns3::aodv::RoutingTableEntry::GetNextHop() const [member function] + cls.add_method('GetNextHop', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-rtable.h: ns3::Ptr ns3::aodv::RoutingTableEntry::GetOutputDevice() const [member function] + cls.add_method('GetOutputDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::GetPrecursors(std::vector > & prec) const [member function] + cls.add_method('GetPrecursors', + 'void', + [param('std::vector< ns3::Ipv4Address > &', 'prec')], + is_const=True) + ## aodv-rtable.h: ns3::Ptr ns3::aodv::RoutingTableEntry::GetRoute() const [member function] + cls.add_method('GetRoute', + 'ns3::Ptr< ns3::Ipv4Route >', + [], + is_const=True) + ## aodv-rtable.h: uint8_t ns3::aodv::RoutingTableEntry::GetRreqCnt() const [member function] + cls.add_method('GetRreqCnt', + 'uint8_t', + [], + is_const=True) + ## aodv-rtable.h: uint32_t ns3::aodv::RoutingTableEntry::GetSeqNo() const [member function] + cls.add_method('GetSeqNo', + 'uint32_t', + [], + is_const=True) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::GetValidSeqNo() const [member function] + cls.add_method('GetValidSeqNo', + 'bool', + [], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::IncrementRreqCnt() [member function] + cls.add_method('IncrementRreqCnt', + 'void', + []) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::InsertPrecursor(ns3::Ipv4Address id) [member function] + cls.add_method('InsertPrecursor', + 'bool', + [param('ns3::Ipv4Address', 'id')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::Invalidate(ns3::Time badLinkLifetime) [member function] + cls.add_method('Invalidate', + 'void', + [param('ns3::Time', 'badLinkLifetime')]) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::IsPrecursorListEmpty() const [member function] + cls.add_method('IsPrecursorListEmpty', + 'bool', + [], + is_const=True) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::IsUnidirectional() const [member function] + cls.add_method('IsUnidirectional', + 'bool', + [], + is_const=True) + ## aodv-rtable.h: bool ns3::aodv::RoutingTableEntry::LookupPrecursor(ns3::Ipv4Address id) [member function] + cls.add_method('LookupPrecursor', + 'bool', + [param('ns3::Ipv4Address', 'id')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetBalcklistTimeout(ns3::Time t) [member function] + cls.add_method('SetBalcklistTimeout', + 'void', + [param('ns3::Time', 't')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetFlag(ns3::aodv::RouteFlags flag) [member function] + cls.add_method('SetFlag', + 'void', + [param('ns3::aodv::RouteFlags', 'flag')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetHop(uint16_t hop) [member function] + cls.add_method('SetHop', + 'void', + [param('uint16_t', 'hop')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetInterface(ns3::Ipv4InterfaceAddress iface) [member function] + cls.add_method('SetInterface', + 'void', + [param('ns3::Ipv4InterfaceAddress', 'iface')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetLifeTime(ns3::Time lt) [member function] + cls.add_method('SetLifeTime', + 'void', + [param('ns3::Time', 'lt')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetNextHop(ns3::Ipv4Address nextHop) [member function] + cls.add_method('SetNextHop', + 'void', + [param('ns3::Ipv4Address', 'nextHop')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetOutputDevice(ns3::Ptr dev) [member function] + cls.add_method('SetOutputDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'dev')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetRoute(ns3::Ptr r) [member function] + cls.add_method('SetRoute', + 'void', + [param('ns3::Ptr< ns3::Ipv4Route >', 'r')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetRreqCnt(uint8_t n) [member function] + cls.add_method('SetRreqCnt', + 'void', + [param('uint8_t', 'n')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetSeqNo(uint32_t sn) [member function] + cls.add_method('SetSeqNo', + 'void', + [param('uint32_t', 'sn')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetUnidirectional(bool u) [member function] + cls.add_method('SetUnidirectional', + 'void', + [param('bool', 'u')]) + ## aodv-rtable.h: void ns3::aodv::RoutingTableEntry::SetValidSeqNo(bool s) [member function] + cls.add_method('SetValidSeqNo', + 'void', + [param('bool', 's')]) + ## aodv-rtable.h: ns3::aodv::RoutingTableEntry::m_ackTimer [variable] + cls.add_instance_attribute('m_ackTimer', 'ns3::Timer', is_const=False) + return + +def register_Ns3AodvRrepAckHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RrepAckHeader::RrepAckHeader(ns3::aodv::RrepAckHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RrepAckHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RrepAckHeader::RrepAckHeader() [constructor] + cls.add_constructor([]) + ## aodv-packet.h: uint32_t ns3::aodv::RrepAckHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RrepAckHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: uint32_t ns3::aodv::RrepAckHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepAckHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepAckHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + return + +def register_Ns3AodvRrepHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RrepHeader::RrepHeader(ns3::aodv::RrepHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RrepHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RrepHeader::RrepHeader(uint8_t prefixSize=0, uint8_t hopCount=0, ns3::Ipv4Address dst=ns3::Ipv4Address(), uint32_t dstSeqNo=0, ns3::Ipv4Address origin=ns3::Ipv4Address(), ns3::Time lifetime=ns3::MilliSeconds( )) [constructor] + cls.add_constructor([param('uint8_t', 'prefixSize', default_value='0'), param('uint8_t', 'hopCount', default_value='0'), param('ns3::Ipv4Address', 'dst', default_value='ns3::Ipv4Address()'), param('uint32_t', 'dstSeqNo', default_value='0'), param('ns3::Ipv4Address', 'origin', default_value='ns3::Ipv4Address()'), param('ns3::Time', 'lifetime', default_value='ns3::MilliSeconds(0)')]) + ## aodv-packet.h: uint32_t ns3::aodv::RrepHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RrepHeader::GetAckRequired() const [member function] + cls.add_method('GetAckRequired', + 'bool', + [], + is_const=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RrepHeader::GetDst() const [member function] + cls.add_method('GetDst', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RrepHeader::GetDstSeqno() const [member function] + cls.add_method('GetDstSeqno', + 'uint32_t', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RrepHeader::GetHopCount() const [member function] + cls.add_method('GetHopCount', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RrepHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: ns3::Time ns3::aodv::RrepHeader::GetLifeTime() const [member function] + cls.add_method('GetLifeTime', + 'ns3::Time', + [], + is_const=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RrepHeader::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RrepHeader::GetPrefixSize() const [member function] + cls.add_method('GetPrefixSize', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RrepHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetAckRequired(bool f) [member function] + cls.add_method('SetAckRequired', + 'void', + [param('bool', 'f')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetDst(ns3::Ipv4Address a) [member function] + cls.add_method('SetDst', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetDstSeqno(uint32_t s) [member function] + cls.add_method('SetDstSeqno', + 'void', + [param('uint32_t', 's')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetHello(ns3::Ipv4Address src, uint32_t srcSeqNo, ns3::Time lifetime) [member function] + cls.add_method('SetHello', + 'void', + [param('ns3::Ipv4Address', 'src'), param('uint32_t', 'srcSeqNo'), param('ns3::Time', 'lifetime')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetHopCount(uint8_t count) [member function] + cls.add_method('SetHopCount', + 'void', + [param('uint8_t', 'count')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetLifeTime(ns3::Time t) [member function] + cls.add_method('SetLifeTime', + 'void', + [param('ns3::Time', 't')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetOrigin(ns3::Ipv4Address a) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RrepHeader::SetPrefixSize(uint8_t sz) [member function] + cls.add_method('SetPrefixSize', + 'void', + [param('uint8_t', 'sz')]) + return + +def register_Ns3AodvRreqHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::RreqHeader::RreqHeader(ns3::aodv::RreqHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::RreqHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::RreqHeader::RreqHeader(uint8_t flags=0, uint8_t reserved=0, uint8_t hopCount=0, uint32_t requestID=0, ns3::Ipv4Address dst=ns3::Ipv4Address(), uint32_t dstSeqNo=0, ns3::Ipv4Address origin=ns3::Ipv4Address(), uint32_t originSeqNo=0) [constructor] + cls.add_constructor([param('uint8_t', 'flags', default_value='0'), param('uint8_t', 'reserved', default_value='0'), param('uint8_t', 'hopCount', default_value='0'), param('uint32_t', 'requestID', default_value='0'), param('ns3::Ipv4Address', 'dst', default_value='ns3::Ipv4Address()'), param('uint32_t', 'dstSeqNo', default_value='0'), param('ns3::Ipv4Address', 'origin', default_value='ns3::Ipv4Address()'), param('uint32_t', 'originSeqNo', default_value='0')]) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RreqHeader::GetDestinationOnly() const [member function] + cls.add_method('GetDestinationOnly', + 'bool', + [], + is_const=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RreqHeader::GetDst() const [member function] + cls.add_method('GetDst', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::GetDstSeqno() const [member function] + cls.add_method('GetDstSeqno', + 'uint32_t', + [], + is_const=True) + ## aodv-packet.h: bool ns3::aodv::RreqHeader::GetGratiousRrep() const [member function] + cls.add_method('GetGratiousRrep', + 'bool', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RreqHeader::GetHopCount() const [member function] + cls.add_method('GetHopCount', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: uint8_t ns3::aodv::RreqHeader::GetId() const [member function] + cls.add_method('GetId', + 'uint8_t', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::RreqHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: ns3::Ipv4Address ns3::aodv::RreqHeader::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv4Address', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::GetOriginSeqno() const [member function] + cls.add_method('GetOriginSeqno', + 'uint32_t', + [], + is_const=True) + ## aodv-packet.h: uint32_t ns3::aodv::RreqHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::RreqHeader::GetUnknownSeqno() const [member function] + cls.add_method('GetUnknownSeqno', + 'bool', + [], + is_const=True) + ## aodv-packet.h: void ns3::aodv::RreqHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RreqHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetDestinationOnly(bool f) [member function] + cls.add_method('SetDestinationOnly', + 'void', + [param('bool', 'f')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetDst(ns3::Ipv4Address a) [member function] + cls.add_method('SetDst', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetDstSeqno(uint32_t s) [member function] + cls.add_method('SetDstSeqno', + 'void', + [param('uint32_t', 's')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetGratiousRrep(bool f) [member function] + cls.add_method('SetGratiousRrep', + 'void', + [param('bool', 'f')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetHopCount(uint8_t count) [member function] + cls.add_method('SetHopCount', + 'void', + [param('uint8_t', 'count')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetId(uint32_t id) [member function] + cls.add_method('SetId', + 'void', + [param('uint32_t', 'id')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetOrigin(ns3::Ipv4Address a) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv4Address', 'a')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetOriginSeqno(uint32_t s) [member function] + cls.add_method('SetOriginSeqno', + 'void', + [param('uint32_t', 's')]) + ## aodv-packet.h: void ns3::aodv::RreqHeader::SetUnknownSeqno(bool f) [member function] + cls.add_method('SetUnknownSeqno', + 'void', + [param('bool', 'f')]) + return + +def register_Ns3AodvTypeHeader_methods(root_module, cls): + cls.add_output_stream_operator() + cls.add_binary_comparison_operator('==') + ## aodv-packet.h: ns3::aodv::TypeHeader::TypeHeader(ns3::aodv::TypeHeader const & arg0) [copy constructor] + cls.add_constructor([param('ns3::aodv::TypeHeader const &', 'arg0')]) + ## aodv-packet.h: ns3::aodv::TypeHeader::TypeHeader(ns3::aodv::MessageType t) [constructor] + cls.add_constructor([param('ns3::aodv::MessageType', 't')]) + ## aodv-packet.h: uint32_t ns3::aodv::TypeHeader::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## aodv-packet.h: ns3::aodv::MessageType ns3::aodv::TypeHeader::Get() const [member function] + cls.add_method('Get', + 'ns3::aodv::MessageType', + [], + is_const=True) + ## aodv-packet.h: ns3::TypeId ns3::aodv::TypeHeader::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: uint32_t ns3::aodv::TypeHeader::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## aodv-packet.h: bool ns3::aodv::TypeHeader::IsValid() const [member function] + cls.add_method('IsValid', + 'bool', + [], + is_const=True) + ## aodv-packet.h: void ns3::aodv::TypeHeader::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## aodv-packet.h: void ns3::aodv::TypeHeader::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + return + +def register_functions(root_module): + module = root_module + register_functions_ns3_Config(module.get_submodule('Config'), root_module) + register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) + register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) + register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) + register_functions_ns3_flame(module.get_submodule('flame'), root_module) + register_functions_ns3_internal(module.get_submodule('internal'), root_module) + register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) + return + +def register_functions_ns3_Config(module, root_module): + return + +def register_functions_ns3_TimeStepPrecision(module, root_module): + return + +def register_functions_ns3_addressUtils(module, root_module): + return + +def register_functions_ns3_aodv(module, root_module): + return + +def register_functions_ns3_dot11s(module, root_module): + return + +def register_functions_ns3_flame(module, root_module): + return + +def register_functions_ns3_internal(module, root_module): + return + +def register_functions_ns3_olsr(module, root_module): + return + diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_bridge.py b/bindings/python/apidefs/gcc-LP64/ns3_module_bridge.py index 76c1401b9..1ac071aff 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_bridge.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_bridge.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -290,6 +300,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -305,6 +316,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_common.py b/bindings/python/apidefs/gcc-LP64/ns3_module_common.py index 2d1c570f5..7268b5c5f 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_common.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_common.py @@ -21,8 +21,6 @@ def register_types(module): module.add_class('Item', outer_class=root_module['ns3::ByteTagList::Iterator']) ## data-rate.h: ns3::DataRate [class] module.add_class('DataRate') - ## packet.h: ns3::Packet [class] - module.add_class('Packet', memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## packet-metadata.h: ns3::PacketMetadata [class] module.add_class('PacketMetadata') ## packet-metadata.h: ns3::PacketMetadata::Item [struct] @@ -45,28 +43,34 @@ def register_types(module): module.add_class('Tag', parent=root_module['ns3::ObjectBase']) ## tag-buffer.h: ns3::TagBuffer [class] module.add_class('TagBuffer') - ## ascii-writer.h: ns3::AsciiWriter [class] - module.add_class('AsciiWriter', parent=root_module['ns3::RefCountBase']) - ## ascii-writer.h: ns3::AsciiWriter::Type [enumeration] - module.add_enum('Type', ['ENQUEUE', 'DEQUEUE', 'DROP', 'TX', 'RX'], outer_class=root_module['ns3::AsciiWriter']) ## chunk.h: ns3::Chunk [class] module.add_class('Chunk', parent=root_module['ns3::ObjectBase']) - ## data-rate.h: ns3::DataRateChecker [class] - module.add_class('DataRateChecker', parent=root_module['ns3::AttributeChecker']) - ## data-rate.h: ns3::DataRateValue [class] - module.add_class('DataRateValue', parent=root_module['ns3::AttributeValue']) ## header.h: ns3::Header [class] module.add_class('Header', parent=root_module['ns3::Chunk']) ## pcap-writer.h: ns3::PcapWriter [class] module.add_class('PcapWriter', parent=root_module['ns3::Object']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AsciiWriter', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Packet', 'ns3::empty'], parent=root_module['ns3::empty']) ## trailer.h: ns3::Trailer [class] module.add_class('Trailer', parent=root_module['ns3::Chunk']) + ## ascii-writer.h: ns3::AsciiWriter [class] + module.add_class('AsciiWriter', parent=root_module['ns3::SimpleRefCount< ns3::AsciiWriter, ns3::empty >']) + ## ascii-writer.h: ns3::AsciiWriter::Type [enumeration] + module.add_enum('Type', ['ENQUEUE', 'DEQUEUE', 'DROP', 'TX', 'RX'], outer_class=root_module['ns3::AsciiWriter']) + ## data-rate.h: ns3::DataRateChecker [class] + module.add_class('DataRateChecker', parent=root_module['ns3::AttributeChecker']) + ## data-rate.h: ns3::DataRateValue [class] + module.add_class('DataRateValue', parent=root_module['ns3::AttributeValue']) ## error-model.h: ns3::ErrorModel [class] module.add_class('ErrorModel', parent=root_module['ns3::Object']) ## error-model.h: ns3::ListErrorModel [class] module.add_class('ListErrorModel', parent=root_module['ns3::ErrorModel']) ## nix-vector.h: ns3::NixVector [class] module.add_class('NixVector', parent=root_module['ns3::Object']) + ## packet.h: ns3::Packet [class] + module.add_class('Packet', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## error-model.h: ns3::RateErrorModel [class] module.add_class('RateErrorModel', parent=root_module['ns3::ErrorModel']) @@ -88,6 +92,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -124,6 +134,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -149,7 +163,6 @@ def register_methods(root_module): register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator']) register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item']) register_Ns3DataRate_methods(root_module, root_module['ns3::DataRate']) - register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) 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']) @@ -160,16 +173,17 @@ def register_methods(root_module): register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) - register_Ns3AsciiWriter_methods(root_module, root_module['ns3::AsciiWriter']) register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk']) - register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker']) - register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue']) register_Ns3Header_methods(root_module, root_module['ns3::Header']) register_Ns3PcapWriter_methods(root_module, root_module['ns3::PcapWriter']) register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) + register_Ns3AsciiWriter_methods(root_module, root_module['ns3::AsciiWriter']) + register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker']) + register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue']) register_Ns3ErrorModel_methods(root_module, root_module['ns3::ErrorModel']) register_Ns3ListErrorModel_methods(root_module, root_module['ns3::ListErrorModel']) register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector']) + register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) register_Ns3RateErrorModel_methods(root_module, root_module['ns3::RateErrorModel']) return @@ -529,184 +543,6 @@ def register_Ns3DataRate_methods(root_module, cls): is_const=True) return -def register_Ns3Packet_methods(root_module, cls): - cls.add_output_stream_operator() - ## packet.h: ns3::Packet::Packet() [constructor] - cls.add_constructor([]) - ## packet.h: ns3::Packet::Packet(ns3::Packet const & o) [copy constructor] - cls.add_constructor([param('ns3::Packet const &', 'o')]) - ## packet.h: ns3::Packet::Packet(uint32_t size) [constructor] - cls.add_constructor([param('uint32_t', 'size')]) - ## packet.h: 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: void ns3::Packet::AddAtEnd(ns3::Ptr packet) [member function] - cls.add_method('AddAtEnd', - 'void', - [param('ns3::Ptr< ns3::Packet const >', 'packet')]) - ## packet.h: 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: void ns3::Packet::AddHeader(ns3::Header const & header) [member function] - cls.add_method('AddHeader', - 'void', - [param('ns3::Header const &', 'header')]) - ## packet.h: 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: void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function] - cls.add_method('AddPaddingAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h: void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function] - cls.add_method('AddTrailer', - 'void', - [param('ns3::Trailer const &', 'trailer')]) - ## packet.h: ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function] - cls.add_method('BeginItem', - 'ns3::PacketMetadata::ItemIterator', - [], - is_const=True) - ## packet.h: ns3::Ptr ns3::Packet::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::Packet >', - [], - is_const=True) - ## packet.h: 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: 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: 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: void ns3::Packet::Deserialize(ns3::Buffer buffer) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer', 'buffer')]) - ## packet.h: static void ns3::Packet::EnableChecking() [member function] - cls.add_method('EnableChecking', - 'void', - [], - is_static=True) - ## packet.h: static void ns3::Packet::EnablePrinting() [member function] - cls.add_method('EnablePrinting', - 'void', - [], - is_static=True) - ## packet.h: bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function] - cls.add_method('FindFirstMatchingByteTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h: ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function] - cls.add_method('GetByteTagIterator', - 'ns3::ByteTagIterator', - [], - is_const=True) - ## packet.h: ns3::Ptr ns3::Packet::GetNixVector() const [member function] - cls.add_method('GetNixVector', - 'ns3::Ptr< ns3::NixVector >', - [], - is_const=True) - ## packet.h: ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function] - cls.add_method('GetPacketTagIterator', - 'ns3::PacketTagIterator', - [], - is_const=True) - ## packet.h: uint32_t ns3::Packet::GetSize() const [member function] - cls.add_method('GetSize', - 'uint32_t', - [], - is_const=True) - ## packet.h: uint32_t ns3::Packet::GetUid() const [member function] - cls.add_method('GetUid', - 'uint32_t', - [], - is_const=True) - ## packet.h: uint8_t const * ns3::Packet::PeekData() const [member function] - cls.add_method('PeekData', - 'uint8_t const *', - [], - is_const=True) - ## packet.h: 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: bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function] - cls.add_method('PeekPacketTag', - 'bool', - [param('ns3::Tag &', 'tag')], - is_const=True) - ## packet.h: uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('PeekTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h: void ns3::Packet::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h: void ns3::Packet::PrintByteTags(std::ostream & os) const [member function] - cls.add_method('PrintByteTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h: void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function] - cls.add_method('PrintPacketTags', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packet.h: void ns3::Packet::RemoveAllByteTags() [member function] - cls.add_method('RemoveAllByteTags', - 'void', - []) - ## packet.h: void ns3::Packet::RemoveAllPacketTags() [member function] - cls.add_method('RemoveAllPacketTags', - 'void', - []) - ## packet.h: void ns3::Packet::RemoveAtEnd(uint32_t size) [member function] - cls.add_method('RemoveAtEnd', - 'void', - [param('uint32_t', 'size')]) - ## packet.h: void ns3::Packet::RemoveAtStart(uint32_t size) [member function] - cls.add_method('RemoveAtStart', - 'void', - [param('uint32_t', 'size')]) - ## packet.h: uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function] - cls.add_method('RemoveHeader', - 'uint32_t', - [param('ns3::Header &', 'header')]) - ## packet.h: bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function] - cls.add_method('RemovePacketTag', - 'bool', - [param('ns3::Tag &', 'tag')]) - ## packet.h: uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function] - cls.add_method('RemoveTrailer', - 'uint32_t', - [param('ns3::Trailer &', 'trailer')]) - ## packet.h: ns3::Buffer ns3::Packet::Serialize() const [member function] - cls.add_method('Serialize', - 'ns3::Buffer', - [], - is_const=True) - ## packet.h: void ns3::Packet::SetNixVector(ns3::Ptr arg0) [member function] - cls.add_method('SetNixVector', - 'void', - [param('ns3::Ptr< ns3::NixVector >', 'arg0')]) - return - def register_Ns3PacketMetadata_methods(root_module, cls): ## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(uint32_t uid, uint32_t size) [constructor] cls.add_constructor([param('uint32_t', 'uid'), param('uint32_t', 'size')]) @@ -1057,20 +893,6 @@ def register_Ns3TagBuffer_methods(root_module, cls): [param('uint8_t', 'v')]) return -def register_Ns3AsciiWriter_methods(root_module, cls): - ## ascii-writer.h: ns3::AsciiWriter::AsciiWriter(ns3::AsciiWriter const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AsciiWriter const &', 'arg0')]) - ## ascii-writer.h: static ns3::Ptr ns3::AsciiWriter::Get(std::ostream & os) [member function] - cls.add_method('Get', - 'ns3::Ptr< ns3::AsciiWriter >', - [param('std::ostream &', 'os')], - is_static=True) - ## ascii-writer.h: void ns3::AsciiWriter::WritePacket(ns3::AsciiWriter::Type type, std::string message, ns3::Ptr p) [member function] - cls.add_method('WritePacket', - 'void', - [param('ns3::AsciiWriter::Type', 'type'), param('std::string', 'message'), param('ns3::Ptr< ns3::Packet const >', 'p')]) - return - def register_Ns3Chunk_methods(root_module, cls): ## chunk.h: ns3::Chunk::Chunk() [constructor] cls.add_constructor([]) @@ -1093,46 +915,6 @@ def register_Ns3Chunk_methods(root_module, cls): is_pure_virtual=True, is_const=True, is_virtual=True) return -def register_Ns3DataRateChecker_methods(root_module, cls): - ## data-rate.h: ns3::DataRateChecker::DataRateChecker() [constructor] - cls.add_constructor([]) - ## data-rate.h: 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: ns3::DataRateValue::DataRateValue() [constructor] - cls.add_constructor([]) - ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')]) - ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor] - cls.add_constructor([param('ns3::DataRate const &', 'value')]) - ## data-rate.h: 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: 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: ns3::DataRate ns3::DataRateValue::Get() const [member function] - cls.add_method('Get', - 'ns3::DataRate', - [], - is_const=True) - ## data-rate.h: 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: void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::DataRate const &', 'value')]) - return - def register_Ns3Header_methods(root_module, cls): cls.add_output_stream_operator() ## header.h: ns3::Header::Header() [constructor] @@ -1251,6 +1033,60 @@ def register_Ns3Trailer_methods(root_module, cls): is_pure_virtual=True, is_const=True, is_virtual=True) return +def register_Ns3AsciiWriter_methods(root_module, cls): + ## ascii-writer.h: ns3::AsciiWriter::AsciiWriter(ns3::AsciiWriter const & arg0) [copy constructor] + cls.add_constructor([param('ns3::AsciiWriter const &', 'arg0')]) + ## ascii-writer.h: static ns3::Ptr ns3::AsciiWriter::Get(std::ostream & os) [member function] + cls.add_method('Get', + 'ns3::Ptr< ns3::AsciiWriter >', + [param('std::ostream &', 'os')], + is_static=True) + ## ascii-writer.h: void ns3::AsciiWriter::WritePacket(ns3::AsciiWriter::Type type, std::string message, ns3::Ptr p) [member function] + cls.add_method('WritePacket', + 'void', + [param('ns3::AsciiWriter::Type', 'type'), param('std::string', 'message'), param('ns3::Ptr< ns3::Packet const >', 'p')]) + return + +def register_Ns3DataRateChecker_methods(root_module, cls): + ## data-rate.h: ns3::DataRateChecker::DataRateChecker() [constructor] + cls.add_constructor([]) + ## data-rate.h: 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: ns3::DataRateValue::DataRateValue() [constructor] + cls.add_constructor([]) + ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')]) + ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor] + cls.add_constructor([param('ns3::DataRate const &', 'value')]) + ## data-rate.h: 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: 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: ns3::DataRate ns3::DataRateValue::Get() const [member function] + cls.add_method('Get', + 'ns3::DataRate', + [], + is_const=True) + ## data-rate.h: 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: void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::DataRate const &', 'value')]) + return + def register_Ns3ErrorModel_methods(root_module, cls): ## error-model.h: ns3::ErrorModel::ErrorModel(ns3::ErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::ErrorModel const &', 'arg0')]) @@ -1379,6 +1215,184 @@ def register_Ns3NixVector_methods(root_module, cls): is_const=True) return +def register_Ns3Packet_methods(root_module, cls): + cls.add_output_stream_operator() + ## packet.h: ns3::Packet::Packet() [constructor] + cls.add_constructor([]) + ## packet.h: ns3::Packet::Packet(ns3::Packet const & o) [copy constructor] + cls.add_constructor([param('ns3::Packet const &', 'o')]) + ## packet.h: ns3::Packet::Packet(uint32_t size) [constructor] + cls.add_constructor([param('uint32_t', 'size')]) + ## packet.h: 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: void ns3::Packet::AddAtEnd(ns3::Ptr packet) [member function] + cls.add_method('AddAtEnd', + 'void', + [param('ns3::Ptr< ns3::Packet const >', 'packet')]) + ## packet.h: 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: void ns3::Packet::AddHeader(ns3::Header const & header) [member function] + cls.add_method('AddHeader', + 'void', + [param('ns3::Header const &', 'header')]) + ## packet.h: 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: void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function] + cls.add_method('AddPaddingAtEnd', + 'void', + [param('uint32_t', 'size')]) + ## packet.h: void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function] + cls.add_method('AddTrailer', + 'void', + [param('ns3::Trailer const &', 'trailer')]) + ## packet.h: ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function] + cls.add_method('BeginItem', + 'ns3::PacketMetadata::ItemIterator', + [], + is_const=True) + ## packet.h: ns3::Ptr ns3::Packet::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::Packet >', + [], + is_const=True) + ## packet.h: 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: 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: 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: void ns3::Packet::Deserialize(ns3::Buffer buffer) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer', 'buffer')]) + ## packet.h: static void ns3::Packet::EnableChecking() [member function] + cls.add_method('EnableChecking', + 'void', + [], + is_static=True) + ## packet.h: static void ns3::Packet::EnablePrinting() [member function] + cls.add_method('EnablePrinting', + 'void', + [], + is_static=True) + ## packet.h: bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function] + cls.add_method('FindFirstMatchingByteTag', + 'bool', + [param('ns3::Tag &', 'tag')], + is_const=True) + ## packet.h: ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function] + cls.add_method('GetByteTagIterator', + 'ns3::ByteTagIterator', + [], + is_const=True) + ## packet.h: ns3::Ptr ns3::Packet::GetNixVector() const [member function] + cls.add_method('GetNixVector', + 'ns3::Ptr< ns3::NixVector >', + [], + is_const=True) + ## packet.h: ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function] + cls.add_method('GetPacketTagIterator', + 'ns3::PacketTagIterator', + [], + is_const=True) + ## packet.h: uint32_t ns3::Packet::GetSize() const [member function] + cls.add_method('GetSize', + 'uint32_t', + [], + is_const=True) + ## packet.h: uint32_t ns3::Packet::GetUid() const [member function] + cls.add_method('GetUid', + 'uint32_t', + [], + is_const=True) + ## packet.h: uint8_t const * ns3::Packet::PeekData() const [member function] + cls.add_method('PeekData', + 'uint8_t const *', + [], + deprecated=True, is_const=True) + ## packet.h: 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: bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function] + cls.add_method('PeekPacketTag', + 'bool', + [param('ns3::Tag &', 'tag')], + is_const=True) + ## packet.h: uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function] + cls.add_method('PeekTrailer', + 'uint32_t', + [param('ns3::Trailer &', 'trailer')]) + ## packet.h: void ns3::Packet::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packet.h: void ns3::Packet::PrintByteTags(std::ostream & os) const [member function] + cls.add_method('PrintByteTags', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packet.h: void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function] + cls.add_method('PrintPacketTags', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packet.h: void ns3::Packet::RemoveAllByteTags() [member function] + cls.add_method('RemoveAllByteTags', + 'void', + []) + ## packet.h: void ns3::Packet::RemoveAllPacketTags() [member function] + cls.add_method('RemoveAllPacketTags', + 'void', + []) + ## packet.h: void ns3::Packet::RemoveAtEnd(uint32_t size) [member function] + cls.add_method('RemoveAtEnd', + 'void', + [param('uint32_t', 'size')]) + ## packet.h: void ns3::Packet::RemoveAtStart(uint32_t size) [member function] + cls.add_method('RemoveAtStart', + 'void', + [param('uint32_t', 'size')]) + ## packet.h: uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function] + cls.add_method('RemoveHeader', + 'uint32_t', + [param('ns3::Header &', 'header')]) + ## packet.h: bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function] + cls.add_method('RemovePacketTag', + 'bool', + [param('ns3::Tag &', 'tag')]) + ## packet.h: uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function] + cls.add_method('RemoveTrailer', + 'uint32_t', + [param('ns3::Trailer &', 'trailer')]) + ## packet.h: ns3::Buffer ns3::Packet::Serialize() const [member function] + cls.add_method('Serialize', + 'ns3::Buffer', + [], + is_const=True) + ## packet.h: void ns3::Packet::SetNixVector(ns3::Ptr arg0) [member function] + cls.add_method('SetNixVector', + 'void', + [param('ns3::Ptr< ns3::NixVector >', 'arg0')]) + return + def register_Ns3RateErrorModel_methods(root_module, cls): ## error-model.h: ns3::RateErrorModel::RateErrorModel(ns3::RateErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::RateErrorModel const &', 'arg0')]) @@ -1447,6 +1461,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1462,6 +1477,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_contrib.py b/bindings/python/apidefs/gcc-LP64/ns3_module_contrib.py index e953c1869..a859cc20c 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_contrib.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_contrib.py @@ -58,6 +58,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -94,6 +100,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -501,6 +511,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -516,6 +527,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_core.py b/bindings/python/apidefs/gcc-LP64/ns3_module_core.py index 614bbc12f..55323677a 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_core.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_core.py @@ -4,13 +4,11 @@ def register_types(module): root_module = module.get_root() ## log.h: ns3::LogLevel [enumeration] - module.add_enum('LogLevel', ['LOG_NONE', 'LOG_ERROR', 'LOG_LEVEL_ERROR', 'LOG_WARN', 'LOG_LEVEL_WARN', 'LOG_DEBUG', 'LOG_LEVEL_DEBUG', 'LOG_INFO', 'LOG_LEVEL_INFO', 'LOG_FUNCTION', 'LOG_LEVEL_FUNCTION', 'LOG_LOGIC', 'LOG_LEVEL_LOGIC', 'LOG_ALL', 'LOG_LEVEL_ALL', 'LOG_PREFIX_FUNC', 'LOG_PREFIX_TIME']) + module.add_enum('LogLevel', ['LOG_NONE', 'LOG_ERROR', 'LOG_LEVEL_ERROR', 'LOG_WARN', 'LOG_LEVEL_WARN', 'LOG_DEBUG', 'LOG_LEVEL_DEBUG', 'LOG_INFO', 'LOG_LEVEL_INFO', 'LOG_FUNCTION', 'LOG_LEVEL_FUNCTION', 'LOG_LOGIC', 'LOG_LEVEL_LOGIC', 'LOG_ALL', 'LOG_LEVEL_ALL', 'LOG_PREFIX_FUNC', 'LOG_PREFIX_TIME', 'LOG_PREFIX_NODE']) ## attribute-list.h: ns3::AttributeList [class] module.add_class('AttributeList') ## callback.h: ns3::CallbackBase [class] module.add_class('CallbackBase') - ## callback.h: ns3::CallbackImplBase [class] - module.add_class('CallbackImplBase', allow_subclassing=True, memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## command-line.h: ns3::CommandLine [class] module.add_class('CommandLine', allow_subclassing=True) ## system-mutex.h: ns3::CriticalSection [class] @@ -55,8 +53,6 @@ def register_types(module): module.add_class('ObjectRefCount', template_parameters=['ns3::Object', 'ns3::ObjectBase'], parent=root_module['ns3::ObjectBase']) ## random-variable.h: ns3::RandomVariable [class] module.add_class('RandomVariable') - ## ref-count-base.h: ns3::RefCountBase [class] - module.add_class('RefCountBase', automatic_type_narrowing=True, memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## rng-stream.h: ns3::RngStream [class] module.add_class('RngStream') ## random-variable.h: ns3::SeedManager [class] @@ -67,8 +63,6 @@ def register_types(module): module.add_class('SystemCondition') ## system-mutex.h: ns3::SystemMutex [class] module.add_class('SystemMutex') - ## system-thread.h: ns3::SystemThread [class] - module.add_class('SystemThread') ## system-wall-clock-ms.h: ns3::SystemWallClockMs [class] module.add_class('SystemWallClockMs') ## test.h: ns3::TestCase [class] @@ -79,8 +73,6 @@ def register_types(module): module.add_class('TestSuite', allow_subclassing=True) ## test.h: ns3::TestSuite::TestType [enumeration] module.add_enum('TestType', ['BVT', 'UNIT', 'SYSTEM', 'EXAMPLE', 'PERFORMANCE'], outer_class=root_module['ns3::TestSuite']) - ## trace-source-accessor.h: ns3::TraceSourceAccessor [class] - module.add_class('TraceSourceAccessor', allow_subclassing=True) ## random-variable.h: ns3::TriangularVariable [class] module.add_class('TriangularVariable', parent=root_module['ns3::RandomVariable']) ## type-id.h: ns3::TypeId [class] @@ -103,34 +95,12 @@ def register_types(module): module.add_class('ZipfVariable', parent=root_module['ns3::RandomVariable']) ## empty.h: ns3::empty [class] module.add_class('empty') - ## attribute.h: ns3::AttributeAccessor [class] - module.add_class('AttributeAccessor', parent=root_module['ns3::RefCountBase']) - ## attribute.h: ns3::AttributeChecker [class] - module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::RefCountBase']) - ## attribute.h: ns3::AttributeValue [class] - module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::RefCountBase']) - ## boolean.h: ns3::BooleanChecker [class] - module.add_class('BooleanChecker', parent=root_module['ns3::AttributeChecker']) - ## boolean.h: ns3::BooleanValue [class] - module.add_class('BooleanValue', parent=root_module['ns3::AttributeValue']) - ## callback.h: ns3::CallbackChecker [class] - module.add_class('CallbackChecker', parent=root_module['ns3::AttributeChecker']) - ## callback.h: ns3::CallbackValue [class] - module.add_class('CallbackValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::ConstantVariable [class] module.add_class('ConstantVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::DeterministicVariable [class] module.add_class('DeterministicVariable', parent=root_module['ns3::RandomVariable']) - ## double.h: ns3::DoubleValue [class] - module.add_class('DoubleValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::EmpiricalVariable [class] module.add_class('EmpiricalVariable', parent=root_module['ns3::RandomVariable']) - ## attribute.h: ns3::EmptyAttributeValue [class] - module.add_class('EmptyAttributeValue', parent=root_module['ns3::AttributeValue']) - ## enum.h: ns3::EnumChecker [class] - module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker']) - ## enum.h: ns3::EnumValue [class] - module.add_class('EnumValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::ErlangVariable [class] module.add_class('ErlangVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::ExponentialVariable [class] @@ -139,8 +109,6 @@ def register_types(module): module.add_class('GammaVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::IntEmpiricalVariable [class] module.add_class('IntEmpiricalVariable', parent=root_module['ns3::EmpiricalVariable']) - ## integer.h: ns3::IntegerValue [class] - module.add_class('IntegerValue', parent=root_module['ns3::AttributeValue']) ## random-variable.h: ns3::LogNormalVariable [class] module.add_class('LogNormalVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::NormalVariable [class] @@ -149,6 +117,52 @@ def register_types(module): module.add_class('Object', automatic_type_narrowing=True, parent=root_module['ns3::ObjectRefCount< ns3::Object, ns3::ObjectBase >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## object.h: ns3::Object::AggregateIterator [class] module.add_class('AggregateIterator', outer_class=root_module['ns3::Object']) + ## random-variable.h: ns3::ParetoVariable [class] + module.add_class('ParetoVariable', parent=root_module['ns3::RandomVariable']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AttributeAccessor', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AttributeChecker', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::AttributeValue', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::CallbackImplBase', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::RefCountBase', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::SystemThread', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty'], parent=root_module['ns3::empty']) + ## system-thread.h: ns3::SystemThread [class] + module.add_class('SystemThread', parent=root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty >']) + ## trace-source-accessor.h: ns3::TraceSourceAccessor [class] + module.add_class('TraceSourceAccessor', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty >']) + ## attribute.h: ns3::AttributeAccessor [class] + module.add_class('AttributeAccessor', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty >']) + ## attribute.h: ns3::AttributeChecker [class] + module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty >']) + ## attribute.h: ns3::AttributeValue [class] + module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty >']) + ## boolean.h: ns3::BooleanChecker [class] + module.add_class('BooleanChecker', parent=root_module['ns3::AttributeChecker']) + ## boolean.h: ns3::BooleanValue [class] + module.add_class('BooleanValue', parent=root_module['ns3::AttributeValue']) + ## callback.h: ns3::CallbackChecker [class] + module.add_class('CallbackChecker', parent=root_module['ns3::AttributeChecker']) + ## callback.h: ns3::CallbackImplBase [class] + module.add_class('CallbackImplBase', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) + ## callback.h: ns3::CallbackValue [class] + module.add_class('CallbackValue', parent=root_module['ns3::AttributeValue']) + ## double.h: ns3::DoubleValue [class] + module.add_class('DoubleValue', parent=root_module['ns3::AttributeValue']) + ## attribute.h: ns3::EmptyAttributeValue [class] + module.add_class('EmptyAttributeValue', parent=root_module['ns3::AttributeValue']) + ## enum.h: ns3::EnumChecker [class] + module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker']) + ## enum.h: ns3::EnumValue [class] + module.add_class('EnumValue', parent=root_module['ns3::AttributeValue']) + ## integer.h: ns3::IntegerValue [class] + module.add_class('IntegerValue', parent=root_module['ns3::AttributeValue']) ## object-factory.h: ns3::ObjectFactoryChecker [class] module.add_class('ObjectFactoryChecker', parent=root_module['ns3::AttributeChecker']) ## object-factory.h: ns3::ObjectFactoryValue [class] @@ -159,8 +173,6 @@ def register_types(module): module.add_class('ObjectVectorChecker', parent=root_module['ns3::AttributeChecker']) ## object-vector.h: ns3::ObjectVectorValue [class] module.add_class('ObjectVectorValue', parent=root_module['ns3::AttributeValue']) - ## random-variable.h: ns3::ParetoVariable [class] - module.add_class('ParetoVariable', parent=root_module['ns3::RandomVariable']) ## pointer.h: ns3::PointerChecker [class] module.add_class('PointerChecker', parent=root_module['ns3::AttributeChecker']) ## pointer.h: ns3::PointerValue [class] @@ -169,6 +181,8 @@ def register_types(module): module.add_class('RandomVariableChecker', parent=root_module['ns3::AttributeChecker']) ## random-variable.h: ns3::RandomVariableValue [class] module.add_class('RandomVariableValue', parent=root_module['ns3::AttributeValue']) + ## ref-count-base.h: ns3::RefCountBase [class] + module.add_class('RefCountBase', automatic_type_narrowing=True, parent=root_module['ns3::SimpleRefCount< ns3::RefCountBase, ns3::empty >'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## string.h: ns3::StringChecker [class] module.add_class('StringChecker', parent=root_module['ns3::AttributeChecker']) ## string.h: ns3::StringValue [class] @@ -197,9 +211,9 @@ def register_types(module): root_module['ns3::TracedValue< unsigned int >'].implicitly_converts_to(root_module['ns3::BooleanValue']) ## traced-value.h: ns3::TracedValue [class] root_module['ns3::TracedValue< unsigned int >'].implicitly_converts_to(root_module['ns3::EnumValue']) - module.add_container('std::list< ns3::Ptr< ns3::RadvdPrefix > >', 'ns3::Ptr< ns3::RadvdPrefix >', container_type='list') module.add_container('std::list< ns3::Ptr< ns3::Packet > >', 'ns3::Ptr< ns3::Packet >', container_type='list') module.add_container('std::vector< ns3::Ptr< ns3::FlowProbe > >', 'ns3::Ptr< ns3::FlowProbe >', container_type='vector') + module.add_container('std::list< ns3::Ptr< ns3::RadvdPrefix > >', 'ns3::Ptr< ns3::RadvdPrefix >', container_type='list') module.add_container('std::vector< ns3::Ptr< ns3::NetDevice > >', 'ns3::Ptr< ns3::NetDevice >', container_type='vector') typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector') typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*') @@ -232,6 +246,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -271,6 +291,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -292,7 +316,6 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList']) register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase']) - register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase']) register_Ns3CommandLine_methods(root_module, root_module['ns3::CommandLine']) register_Ns3CriticalSection_methods(root_module, root_module['ns3::CriticalSection']) register_Ns3GlobalValue_methods(root_module, root_module['ns3::GlobalValue']) @@ -308,18 +331,15 @@ def register_methods(root_module): register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory']) register_Ns3ObjectRefCount__Ns3Object_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectRefCount< ns3::Object, ns3::ObjectBase >']) register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable']) - register_Ns3RefCountBase_methods(root_module, root_module['ns3::RefCountBase']) register_Ns3RngStream_methods(root_module, root_module['ns3::RngStream']) register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager']) register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable']) register_Ns3SystemCondition_methods(root_module, root_module['ns3::SystemCondition']) register_Ns3SystemMutex_methods(root_module, root_module['ns3::SystemMutex']) - register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread']) register_Ns3SystemWallClockMs_methods(root_module, root_module['ns3::SystemWallClockMs']) register_Ns3TestCase_methods(root_module, root_module['ns3::TestCase']) register_Ns3TestRunner_methods(root_module, root_module['ns3::TestRunner']) register_Ns3TestSuite_methods(root_module, root_module['ns3::TestSuite']) - register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor']) register_Ns3TriangularVariable_methods(root_module, root_module['ns3::TriangularVariable']) register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId']) register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo']) @@ -330,39 +350,69 @@ def register_methods(root_module): register_Ns3WeibullVariable_methods(root_module, root_module['ns3::WeibullVariable']) register_Ns3ZipfVariable_methods(root_module, root_module['ns3::ZipfVariable']) register_Ns3Empty_methods(root_module, root_module['ns3::empty']) + register_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable']) + register_Ns3DeterministicVariable_methods(root_module, root_module['ns3::DeterministicVariable']) + register_Ns3EmpiricalVariable_methods(root_module, root_module['ns3::EmpiricalVariable']) + register_Ns3ErlangVariable_methods(root_module, root_module['ns3::ErlangVariable']) + register_Ns3ExponentialVariable_methods(root_module, root_module['ns3::ExponentialVariable']) + register_Ns3GammaVariable_methods(root_module, root_module['ns3::GammaVariable']) + register_Ns3IntEmpiricalVariable_methods(root_module, root_module['ns3::IntEmpiricalVariable']) + register_Ns3LogNormalVariable_methods(root_module, root_module['ns3::LogNormalVariable']) + register_Ns3NormalVariable_methods(root_module, root_module['ns3::NormalVariable']) + register_Ns3Object_methods(root_module, root_module['ns3::Object']) + register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator']) + register_Ns3ParetoVariable_methods(root_module, root_module['ns3::ParetoVariable']) + register_Ns3SimpleRefCount__Ns3AsciiWriter_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AsciiWriter, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3FlowClassifier_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::FlowClassifier, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3FlowProbe_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::FlowProbe, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3InterferenceHelperEvent_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::InterferenceHelper::Event, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv4MulticastRoute_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv4Route_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv6MulticastRoute_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Ipv6Route_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3MeshWifiInterfaceMacPlugin_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::MeshWifiInterfaceMacPlugin, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3PbbAddressBlock_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbAddressBlock, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3PbbMessage_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbMessage, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3PbbPacket_Ns3Header_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbPacket, ns3::Header >']) + register_Ns3SimpleRefCount__Ns3PbbTlv_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::PbbTlv, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3RadvdInterface_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::RadvdInterface, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3RadvdPrefix_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::RadvdPrefix, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3RefCountBase_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::RefCountBase, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3WifiInformationElement_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty >']) + register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_methods(root_module, root_module['ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty >']) + register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread']) + register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor']) 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_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker']) register_Ns3BooleanValue_methods(root_module, root_module['ns3::BooleanValue']) 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_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable']) - register_Ns3DeterministicVariable_methods(root_module, root_module['ns3::DeterministicVariable']) register_Ns3DoubleValue_methods(root_module, root_module['ns3::DoubleValue']) - register_Ns3EmpiricalVariable_methods(root_module, root_module['ns3::EmpiricalVariable']) register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue']) register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker']) register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue']) - register_Ns3ErlangVariable_methods(root_module, root_module['ns3::ErlangVariable']) - register_Ns3ExponentialVariable_methods(root_module, root_module['ns3::ExponentialVariable']) - register_Ns3GammaVariable_methods(root_module, root_module['ns3::GammaVariable']) - register_Ns3IntEmpiricalVariable_methods(root_module, root_module['ns3::IntEmpiricalVariable']) register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue']) - register_Ns3LogNormalVariable_methods(root_module, root_module['ns3::LogNormalVariable']) - register_Ns3NormalVariable_methods(root_module, root_module['ns3::NormalVariable']) - register_Ns3Object_methods(root_module, root_module['ns3::Object']) - register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator']) register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker']) register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue']) register_Ns3ObjectVectorAccessor_methods(root_module, root_module['ns3::ObjectVectorAccessor']) register_Ns3ObjectVectorChecker_methods(root_module, root_module['ns3::ObjectVectorChecker']) register_Ns3ObjectVectorValue_methods(root_module, root_module['ns3::ObjectVectorValue']) - register_Ns3ParetoVariable_methods(root_module, root_module['ns3::ParetoVariable']) register_Ns3PointerChecker_methods(root_module, root_module['ns3::PointerChecker']) register_Ns3PointerValue_methods(root_module, root_module['ns3::PointerValue']) register_Ns3RandomVariableChecker_methods(root_module, root_module['ns3::RandomVariableChecker']) register_Ns3RandomVariableValue_methods(root_module, root_module['ns3::RandomVariableValue']) + register_Ns3RefCountBase_methods(root_module, root_module['ns3::RefCountBase']) register_Ns3StringChecker_methods(root_module, root_module['ns3::StringChecker']) register_Ns3StringValue_methods(root_module, root_module['ns3::StringValue']) register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker']) @@ -433,18 +483,6 @@ def register_Ns3CallbackBase_methods(root_module, cls): is_static=True, visibility='protected') return -def register_Ns3CallbackImplBase_methods(root_module, cls): - ## callback.h: ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) - ## callback.h: ns3::CallbackImplBase::CallbackImplBase() [constructor] - cls.add_constructor([]) - ## callback.h: 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_Ns3CommandLine_methods(root_module, cls): ## command-line.h: ns3::CommandLine::CommandLine() [constructor] cls.add_constructor([]) @@ -779,13 +817,6 @@ def register_Ns3RandomVariable_methods(root_module, cls): is_const=True) return -def register_Ns3RefCountBase_methods(root_module, cls): - ## ref-count-base.h: ns3::RefCountBase::RefCountBase() [constructor] - cls.add_constructor([]) - ## ref-count-base.h: ns3::RefCountBase::RefCountBase(ns3::RefCountBase const & o) [copy constructor] - cls.add_constructor([param('ns3::RefCountBase const &', 'o')]) - return - def register_Ns3RngStream_methods(root_module, cls): ## rng-stream.h: ns3::RngStream::RngStream() [constructor] cls.add_constructor([]) @@ -964,39 +995,6 @@ def register_Ns3SystemMutex_methods(root_module, cls): []) return -def register_Ns3SystemThread_methods(root_module, cls): - ## system-thread.h: ns3::SystemThread::SystemThread(ns3::SystemThread const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SystemThread const &', 'arg0')]) - ## system-thread.h: 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: bool ns3::SystemThread::Break() [member function] - cls.add_method('Break', - 'bool', - []) - ## system-thread.h: void ns3::SystemThread::Join() [member function] - cls.add_method('Join', - 'void', - []) - ## system-thread.h: void ns3::SystemThread::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## system-thread.h: void ns3::SystemThread::Shutdown() [member function] - cls.add_method('Shutdown', - 'void', - []) - ## system-thread.h: void ns3::SystemThread::Start() [member function] - cls.add_method('Start', - 'void', - []) - ## system-thread.h: void ns3::SystemThread::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - return - def register_Ns3SystemWallClockMs_methods(root_module, cls): ## system-wall-clock-ms.h: ns3::SystemWallClockMs::SystemWallClockMs(ns3::SystemWallClockMs const & arg0) [copy constructor] cls.add_constructor([param('ns3::SystemWallClockMs const &', 'arg0')]) @@ -1306,43 +1304,6 @@ def register_Ns3TestSuite_methods(root_module, cls): visibility='protected', is_virtual=True) return -def register_Ns3TraceSourceAccessor_methods(root_module, cls): - ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')]) - ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor] - cls.add_constructor([]) - ## trace-source-accessor.h: 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: 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: 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: 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) - ## trace-source-accessor.h: void ns3::TraceSourceAccessor::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## trace-source-accessor.h: void ns3::TraceSourceAccessor::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - return - def register_Ns3TriangularVariable_methods(root_module, cls): ## random-variable.h: ns3::TriangularVariable::TriangularVariable(ns3::TriangularVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::TriangularVariable const &', 'arg0')]) @@ -1640,6 +1601,822 @@ def register_Ns3Empty_methods(root_module, cls): cls.add_constructor([param('ns3::empty const &', 'arg0')]) return +def register_Ns3ConstantVariable_methods(root_module, cls): + ## random-variable.h: ns3::ConstantVariable::ConstantVariable(ns3::ConstantVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ConstantVariable const &', 'arg0')]) + ## random-variable.h: ns3::ConstantVariable::ConstantVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ConstantVariable::ConstantVariable(double c) [constructor] + cls.add_constructor([param('double', 'c')]) + ## random-variable.h: void ns3::ConstantVariable::SetConstant(double c) [member function] + cls.add_method('SetConstant', + 'void', + [param('double', 'c')]) + return + +def register_Ns3DeterministicVariable_methods(root_module, cls): + ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(ns3::DeterministicVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::DeterministicVariable const &', 'arg0')]) + ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(double * d, uint32_t c) [constructor] + cls.add_constructor([param('double *', 'd'), param('uint32_t', 'c')]) + return + +def register_Ns3EmpiricalVariable_methods(root_module, cls): + ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable(ns3::EmpiricalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::EmpiricalVariable const &', 'arg0')]) + ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: void ns3::EmpiricalVariable::CDF(double v, double c) [member function] + cls.add_method('CDF', + 'void', + [param('double', 'v'), param('double', 'c')]) + return + +def register_Ns3ErlangVariable_methods(root_module, cls): + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(unsigned int k, double lambda) [constructor] + cls.add_constructor([param('unsigned int', 'k'), param('double', 'lambda')]) + ## random-variable.h: double ns3::ErlangVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::ErlangVariable::GetValue(unsigned int k, double lambda) const [member function] + cls.add_method('GetValue', + 'double', + [param('unsigned int', 'k'), param('double', 'lambda')], + is_const=True) + return + +def register_Ns3ExponentialVariable_methods(root_module, cls): + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')]) + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m) [constructor] + cls.add_constructor([param('double', 'm')]) + ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m, double b) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 'b')]) + return + +def register_Ns3GammaVariable_methods(root_module, cls): + ## random-variable.h: ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')]) + ## random-variable.h: ns3::GammaVariable::GammaVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::GammaVariable::GammaVariable(double alpha, double beta) [constructor] + cls.add_constructor([param('double', 'alpha'), param('double', 'beta')]) + ## random-variable.h: double ns3::GammaVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::GammaVariable::GetValue(double alpha, double beta) const [member function] + cls.add_method('GetValue', + 'double', + [param('double', 'alpha'), param('double', 'beta')], + is_const=True) + return + +def register_Ns3IntEmpiricalVariable_methods(root_module, cls): + ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable(ns3::IntEmpiricalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::IntEmpiricalVariable const &', 'arg0')]) + ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable() [constructor] + cls.add_constructor([]) + return + +def register_Ns3LogNormalVariable_methods(root_module, cls): + ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(ns3::LogNormalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::LogNormalVariable const &', 'arg0')]) + ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(double mu, double sigma) [constructor] + cls.add_constructor([param('double', 'mu'), param('double', 'sigma')]) + return + +def register_Ns3NormalVariable_methods(root_module, cls): + ## random-variable.h: ns3::NormalVariable::NormalVariable(ns3::NormalVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::NormalVariable const &', 'arg0')]) + ## random-variable.h: ns3::NormalVariable::NormalVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 'v')]) + ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v, double b) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 'v'), param('double', 'b')]) + return + +def register_Ns3Object_methods(root_module, cls): + ## object.h: ns3::Object::Object() [constructor] + cls.add_constructor([]) + ## object.h: void ns3::Object::AggregateObject(ns3::Ptr other) [member function] + cls.add_method('AggregateObject', + 'void', + [param('ns3::Ptr< ns3::Object >', 'other')]) + ## object.h: void ns3::Object::Dispose() [member function] + cls.add_method('Dispose', + 'void', + []) + ## object.h: ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function] + cls.add_method('GetAggregateIterator', + 'ns3::Object::AggregateIterator', + [], + is_const=True) + ## object.h: ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## object.h: ns3::Ptr ns3::Object::GetObject(ns3::TypeId tid) const [member function] + cls.add_method('GetObject', + 'ns3::Ptr< ns3::Object >', + [param('ns3::TypeId', 'tid')], + is_const=True, template_parameters=['ns3::Object'], custom_template_method_name='GetObject') + ## object.h: static ns3::TypeId ns3::Object::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## object.h: void ns3::Object::Start() [member function] + cls.add_method('Start', + 'void', + []) + ## object.h: ns3::Object::Object(ns3::Object const & o) [copy constructor] + cls.add_constructor([param('ns3::Object const &', 'o')], + visibility='protected') + ## object.h: void ns3::Object::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='protected', is_virtual=True) + ## object.h: void ns3::Object::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) + ## object.h: void ns3::Object::NotifyNewAggregate() [member function] + cls.add_method('NotifyNewAggregate', + 'void', + [], + visibility='protected', is_virtual=True) + ## object.h: void ns3::Object::DoDelete() [member function] + cls.add_method('DoDelete', + 'void', + [], + visibility='private', is_virtual=True) + return + +def register_Ns3ObjectAggregateIterator_methods(root_module, cls): + ## object.h: ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')]) + ## object.h: ns3::Object::AggregateIterator::AggregateIterator() [constructor] + cls.add_constructor([]) + ## object.h: bool ns3::Object::AggregateIterator::HasNext() const [member function] + cls.add_method('HasNext', + 'bool', + [], + is_const=True) + ## object.h: ns3::Ptr ns3::Object::AggregateIterator::Next() [member function] + cls.add_method('Next', + 'ns3::Ptr< ns3::Object const >', + []) + return + +def register_Ns3ParetoVariable_methods(root_module, cls): + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(ns3::ParetoVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ParetoVariable const &', 'arg0')]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m) [constructor] + cls.add_constructor([param('double', 'm')]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 's')]) + ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s, double b) [constructor] + cls.add_constructor([param('double', 'm'), param('double', 's'), param('double', 'b')]) + return + +def register_Ns3SimpleRefCount__Ns3AsciiWriter_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AsciiWriter, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3FlowClassifier_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::FlowClassifier, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3FlowProbe_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::FlowProbe, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3InterferenceHelperEvent_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::InterferenceHelper::Event, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv4MulticastRoute_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv4Route_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv6MulticastRoute_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Ipv6Route_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3MeshWifiInterfaceMacPlugin_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::MeshWifiInterfaceMacPlugin, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbAddressBlock_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbAddressBlock, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbMessage_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbMessage, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbPacket_Ns3Header_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbPacket, ns3::Header > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3PbbTlv_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::PbbTlv, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3RadvdInterface_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::RadvdInterface, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3RadvdPrefix_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::RadvdPrefix, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3RefCountBase_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::RefCountBase, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::SystemThread, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3WifiInformationElement_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_methods(root_module, cls): + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount() [constructor] + cls.add_constructor([]) + ## simple-ref-count.h: ns3::SimpleRefCount::SimpleRefCount(ns3::SimpleRefCount const & o) [copy constructor] + cls.add_constructor([param('ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty > const &', 'o')]) + ## simple-ref-count.h: uint32_t ns3::SimpleRefCount::GetReferenceCount() const [member function] + cls.add_method('GetReferenceCount', + 'uint32_t', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Ref() const [member function] + cls.add_method('Ref', + 'void', + [], + is_const=True) + ## simple-ref-count.h: void ns3::SimpleRefCount::Unref() const [member function] + cls.add_method('Unref', + 'void', + [], + is_const=True) + return + +def register_Ns3SystemThread_methods(root_module, cls): + ## system-thread.h: ns3::SystemThread::SystemThread(ns3::SystemThread const & arg0) [copy constructor] + cls.add_constructor([param('ns3::SystemThread const &', 'arg0')]) + ## system-thread.h: 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: bool ns3::SystemThread::Break() [member function] + cls.add_method('Break', + 'bool', + []) + ## system-thread.h: void ns3::SystemThread::Join() [member function] + cls.add_method('Join', + 'void', + []) + ## system-thread.h: void ns3::SystemThread::Shutdown() [member function] + cls.add_method('Shutdown', + 'void', + []) + ## system-thread.h: void ns3::SystemThread::Start() [member function] + cls.add_method('Start', + 'void', + []) + return + +def register_Ns3TraceSourceAccessor_methods(root_module, cls): + ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor] + cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')]) + ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor] + cls.add_constructor([]) + ## trace-source-accessor.h: 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: 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: 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: 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_Ns3AttributeAccessor_methods(root_module, cls): ## attribute.h: ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor] cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')]) @@ -1774,6 +2551,18 @@ def register_Ns3CallbackChecker_methods(root_module, cls): cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')]) return +def register_Ns3CallbackImplBase_methods(root_module, cls): + ## callback.h: ns3::CallbackImplBase::CallbackImplBase() [constructor] + cls.add_constructor([]) + ## callback.h: ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] + cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) + ## callback.h: 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: ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')]) @@ -1802,26 +2591,6 @@ def register_Ns3CallbackValue_methods(root_module, cls): [param('ns3::CallbackBase', 'base')]) return -def register_Ns3ConstantVariable_methods(root_module, cls): - ## random-variable.h: ns3::ConstantVariable::ConstantVariable(ns3::ConstantVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ConstantVariable const &', 'arg0')]) - ## random-variable.h: ns3::ConstantVariable::ConstantVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ConstantVariable::ConstantVariable(double c) [constructor] - cls.add_constructor([param('double', 'c')]) - ## random-variable.h: void ns3::ConstantVariable::SetConstant(double c) [member function] - cls.add_method('SetConstant', - 'void', - [param('double', 'c')]) - return - -def register_Ns3DeterministicVariable_methods(root_module, cls): - ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(ns3::DeterministicVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::DeterministicVariable const &', 'arg0')]) - ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(double * d, uint32_t c) [constructor] - cls.add_constructor([param('double *', 'd'), param('uint32_t', 'c')]) - return - def register_Ns3DoubleValue_methods(root_module, cls): ## double.h: ns3::DoubleValue::DoubleValue() [constructor] cls.add_constructor([]) @@ -1855,17 +2624,6 @@ def register_Ns3DoubleValue_methods(root_module, cls): [param('double const &', 'value')]) return -def register_Ns3EmpiricalVariable_methods(root_module, cls): - ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable(ns3::EmpiricalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EmpiricalVariable const &', 'arg0')]) - ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: void ns3::EmpiricalVariable::CDF(double v, double c) [member function] - cls.add_method('CDF', - 'void', - [param('double', 'v'), param('double', 'c')]) - return - def register_Ns3EmptyAttributeValue_methods(root_module, cls): ## attribute.h: ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')]) @@ -1966,62 +2724,6 @@ def register_Ns3EnumValue_methods(root_module, cls): [param('int', 'v')]) return -def register_Ns3ErlangVariable_methods(root_module, cls): - ## random-variable.h: ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')]) - ## random-variable.h: ns3::ErlangVariable::ErlangVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ErlangVariable::ErlangVariable(unsigned int k, double lambda) [constructor] - cls.add_constructor([param('unsigned int', 'k'), param('double', 'lambda')]) - ## random-variable.h: double ns3::ErlangVariable::GetValue() const [member function] - cls.add_method('GetValue', - 'double', - [], - is_const=True) - ## random-variable.h: double ns3::ErlangVariable::GetValue(unsigned int k, double lambda) const [member function] - cls.add_method('GetValue', - 'double', - [param('unsigned int', 'k'), param('double', 'lambda')], - is_const=True) - return - -def register_Ns3ExponentialVariable_methods(root_module, cls): - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')]) - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m) [constructor] - cls.add_constructor([param('double', 'm')]) - ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(double m, double b) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 'b')]) - return - -def register_Ns3GammaVariable_methods(root_module, cls): - ## random-variable.h: ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')]) - ## random-variable.h: ns3::GammaVariable::GammaVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::GammaVariable::GammaVariable(double alpha, double beta) [constructor] - cls.add_constructor([param('double', 'alpha'), param('double', 'beta')]) - ## random-variable.h: double ns3::GammaVariable::GetValue() const [member function] - cls.add_method('GetValue', - 'double', - [], - is_const=True) - ## random-variable.h: double ns3::GammaVariable::GetValue(double alpha, double beta) const [member function] - cls.add_method('GetValue', - 'double', - [param('double', 'alpha'), param('double', 'beta')], - is_const=True) - return - -def register_Ns3IntEmpiricalVariable_methods(root_module, cls): - ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable(ns3::IntEmpiricalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::IntEmpiricalVariable const &', 'arg0')]) - ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable() [constructor] - cls.add_constructor([]) - return - def register_Ns3IntegerValue_methods(root_module, cls): ## integer.h: ns3::IntegerValue::IntegerValue() [constructor] cls.add_constructor([]) @@ -2055,91 +2757,6 @@ def register_Ns3IntegerValue_methods(root_module, cls): [param('int64_t const &', 'value')]) return -def register_Ns3LogNormalVariable_methods(root_module, cls): - ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(ns3::LogNormalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::LogNormalVariable const &', 'arg0')]) - ## random-variable.h: ns3::LogNormalVariable::LogNormalVariable(double mu, double sigma) [constructor] - cls.add_constructor([param('double', 'mu'), param('double', 'sigma')]) - return - -def register_Ns3NormalVariable_methods(root_module, cls): - ## random-variable.h: ns3::NormalVariable::NormalVariable(ns3::NormalVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::NormalVariable const &', 'arg0')]) - ## random-variable.h: ns3::NormalVariable::NormalVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 'v')]) - ## random-variable.h: ns3::NormalVariable::NormalVariable(double m, double v, double b) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 'v'), param('double', 'b')]) - return - -def register_Ns3Object_methods(root_module, cls): - ## object.h: ns3::Object::Object() [constructor] - cls.add_constructor([]) - ## object.h: void ns3::Object::AggregateObject(ns3::Ptr other) [member function] - cls.add_method('AggregateObject', - 'void', - [param('ns3::Ptr< ns3::Object >', 'other')]) - ## object.h: void ns3::Object::Dispose() [member function] - cls.add_method('Dispose', - 'void', - []) - ## object.h: ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function] - cls.add_method('GetAggregateIterator', - 'ns3::Object::AggregateIterator', - [], - is_const=True) - ## object.h: ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_const=True, is_virtual=True) - ## object.h: ns3::Ptr ns3::Object::GetObject(ns3::TypeId tid) const [member function] - cls.add_method('GetObject', - 'ns3::Ptr< ns3::Object >', - [param('ns3::TypeId', 'tid')], - is_const=True, template_parameters=['ns3::Object'], custom_template_method_name='GetObject') - ## object.h: static ns3::TypeId ns3::Object::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## object.h: ns3::Object::Object(ns3::Object const & o) [copy constructor] - cls.add_constructor([param('ns3::Object const &', 'o')], - visibility='protected') - ## object.h: void ns3::Object::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h: void ns3::Object::NotifyNewAggregate() [member function] - cls.add_method('NotifyNewAggregate', - 'void', - [], - visibility='protected', is_virtual=True) - ## object.h: void ns3::Object::DoDelete() [member function] - cls.add_method('DoDelete', - 'void', - [], - visibility='private', is_virtual=True) - return - -def register_Ns3ObjectAggregateIterator_methods(root_module, cls): - ## object.h: ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')]) - ## object.h: ns3::Object::AggregateIterator::AggregateIterator() [constructor] - cls.add_constructor([]) - ## object.h: bool ns3::Object::AggregateIterator::HasNext() const [member function] - cls.add_method('HasNext', - 'bool', - [], - is_const=True) - ## object.h: ns3::Ptr ns3::Object::AggregateIterator::Next() [member function] - cls.add_method('Next', - 'ns3::Ptr< ns3::Object const >', - []) - return - def register_Ns3ObjectFactoryChecker_methods(root_module, cls): ## object-factory.h: ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor] cls.add_constructor([]) @@ -2271,19 +2888,6 @@ def register_Ns3ObjectVectorValue_methods(root_module, cls): is_const=True, is_virtual=True) return -def register_Ns3ParetoVariable_methods(root_module, cls): - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(ns3::ParetoVariable const & arg0) [copy constructor] - cls.add_constructor([param('ns3::ParetoVariable const &', 'arg0')]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable() [constructor] - cls.add_constructor([]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m) [constructor] - cls.add_constructor([param('double', 'm')]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 's')]) - ## random-variable.h: ns3::ParetoVariable::ParetoVariable(double m, double s, double b) [constructor] - cls.add_constructor([param('double', 'm'), param('double', 's'), param('double', 'b')]) - return - def register_Ns3PointerChecker_methods(root_module, cls): ## pointer.h: ns3::PointerChecker::PointerChecker() [constructor] cls.add_constructor([]) @@ -2369,6 +2973,13 @@ def register_Ns3RandomVariableValue_methods(root_module, cls): [param('ns3::RandomVariable const &', 'value')]) return +def register_Ns3RefCountBase_methods(root_module, cls): + ## ref-count-base.h: ns3::RefCountBase::RefCountBase() [constructor] + cls.add_constructor([]) + ## ref-count-base.h: ns3::RefCountBase::RefCountBase(ns3::RefCountBase const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RefCountBase const &', 'arg0')]) + return + def register_Ns3StringChecker_methods(root_module, cls): ## string.h: ns3::StringChecker::StringChecker() [constructor] cls.add_constructor([]) @@ -2800,6 +3411,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -2871,6 +3483,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_csma.py b/bindings/python/apidefs/gcc-LP64/ns3_module_csma.py index f70b6d99b..602dff082 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_csma.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_csma.py @@ -34,6 +34,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -70,6 +76,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -444,6 +454,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -459,6 +470,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_dot11s.py b/bindings/python/apidefs/gcc-LP64/ns3_module_dot11s.py index 5fe75dbac..b6cb85547 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_dot11s.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_dot11s.py @@ -3,6 +3,8 @@ from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler def register_types(module): root_module = module.get_root() + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::dot11s::IeBeaconTimingUnit', 'ns3::empty'], parent=root_module['ns3::empty']) ## Register a nested module for the namespace Config @@ -22,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -58,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -65,14 +77,14 @@ def register_types_ns3_dot11s(module): module.add_enum('dot11sSynchronizationProtocolIdentifier', ['SYNC_NEIGHBOUR_OFFSET', 'SYNC_NULL']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sCongestionControlMode [enumeration] module.add_enum('dot11sCongestionControlMode', ['CONGESTION_SIGNALING', 'CONGESTION_NULL']) - ## ie-dot11s-configuration.h: ns3::dot11s::dot11sAuthenticationProtocol [enumeration] - module.add_enum('dot11sAuthenticationProtocol', ['AUTH_NULL', 'AUTH_SAE']) - ## ie-dot11s-peer-management.h: ns3::dot11s::PmpReasonCode [enumeration] - module.add_enum('PmpReasonCode', ['REASON11S_PEERING_CANCELLED', 'REASON11S_MESH_MAX_PEERS', 'REASON11S_MESH_CAPABILITY_POLICY_VIOLATION', 'REASON11S_MESH_CLOSE_RCVD', 'REASON11S_MESH_MAX_RETRIES', 'REASON11S_MESH_CONFIRM_TIMEOUT', 'REASON11S_MESH_INVALID_GTK', 'REASON11S_MESH_INCONSISTENT_PARAMETERS', 'REASON11S_MESH_INVALID_SECURITY_CAPABILITY', 'REASON11S_RESERVED']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sPathSelectionMetric [enumeration] module.add_enum('dot11sPathSelectionMetric', ['METRIC_AIRTIME']) + ## ie-dot11s-peer-management.h: ns3::dot11s::PmpReasonCode [enumeration] + module.add_enum('PmpReasonCode', ['REASON11S_PEERING_CANCELLED', 'REASON11S_MESH_MAX_PEERS', 'REASON11S_MESH_CAPABILITY_POLICY_VIOLATION', 'REASON11S_MESH_CLOSE_RCVD', 'REASON11S_MESH_MAX_RETRIES', 'REASON11S_MESH_CONFIRM_TIMEOUT', 'REASON11S_MESH_INVALID_GTK', 'REASON11S_MESH_INCONSISTENT_PARAMETERS', 'REASON11S_MESH_INVALID_SECURITY_CAPABILITY', 'REASON11S_RESERVED']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sPathSelectionProtocol [enumeration] module.add_enum('dot11sPathSelectionProtocol', ['PROTOCOL_HWMP']) + ## ie-dot11s-configuration.h: ns3::dot11s::dot11sAuthenticationProtocol [enumeration] + module.add_enum('dot11sAuthenticationProtocol', ['AUTH_NULL', 'AUTH_SAE']) ## ie-dot11s-configuration.h: ns3::dot11s::Dot11sMeshCapability [class] module.add_class('Dot11sMeshCapability') ## hwmp-protocol.h: ns3::dot11s::HwmpProtocol [class] @@ -82,7 +94,7 @@ def register_types_ns3_dot11s(module): ## ie-dot11s-beacon-timing.h: ns3::dot11s::IeBeaconTiming [class] module.add_class('IeBeaconTiming', parent=root_module['ns3::WifiInformationElement']) ## ie-dot11s-beacon-timing.h: ns3::dot11s::IeBeaconTimingUnit [class] - module.add_class('IeBeaconTimingUnit', parent=root_module['ns3::RefCountBase']) + module.add_class('IeBeaconTimingUnit', parent=root_module['ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty >']) ## ie-dot11s-configuration.h: ns3::dot11s::IeConfiguration [class] module.add_class('IeConfiguration', parent=root_module['ns3::WifiInformationElement']) ## ie-dot11s-id.h: ns3::dot11s::IeMeshId [class] @@ -773,6 +785,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -788,6 +801,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): ## ie-dot11s-id.h: extern ns3::Ptr ns3::dot11s::MakeIeMeshIdChecker() [free function] module.add_function('MakeIeMeshIdChecker', diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_emu.py b/bindings/python/apidefs/gcc-LP64/ns3_module_emu.py index b69d9fbaf..fe6a6f040 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_emu.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_emu.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -238,6 +248,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -253,6 +264,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_flame.py b/bindings/python/apidefs/gcc-LP64/ns3_module_flame.py index 453d1c01d..017fa3c9e 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_flame.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_flame.py @@ -22,6 +22,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -58,6 +64,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -171,6 +181,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -186,6 +197,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_flow_monitor.py b/bindings/python/apidefs/gcc-LP64/ns3_module_flow_monitor.py index 1b8d38400..729bcf905 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_flow_monitor.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_flow_monitor.py @@ -5,10 +5,18 @@ def register_types(module): ## histogram.h: ns3::Histogram [class] module.add_class('Histogram') + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::FlowClassifier', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::FlowProbe', 'ns3::empty'], parent=root_module['ns3::empty']) ## flow-classifier.h: ns3::FlowClassifier [class] - module.add_class('FlowClassifier', parent=root_module['ns3::RefCountBase']) + module.add_class('FlowClassifier', parent=root_module['ns3::SimpleRefCount< ns3::FlowClassifier, ns3::empty >']) + ## flow-monitor.h: ns3::FlowMonitor [class] + module.add_class('FlowMonitor', parent=root_module['ns3::Object']) + ## flow-monitor.h: ns3::FlowMonitor::FlowStats [struct] + module.add_class('FlowStats', outer_class=root_module['ns3::FlowMonitor']) ## flow-probe.h: ns3::FlowProbe [class] - module.add_class('FlowProbe', parent=root_module['ns3::RefCountBase']) + module.add_class('FlowProbe', parent=root_module['ns3::SimpleRefCount< ns3::FlowProbe, ns3::empty >']) ## flow-probe.h: ns3::FlowProbe::FlowStats [struct] module.add_class('FlowStats', outer_class=root_module['ns3::FlowProbe']) ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier [class] @@ -19,12 +27,8 @@ def register_types(module): module.add_class('Ipv4FlowProbe', parent=root_module['ns3::FlowProbe']) ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::DropReason [enumeration] module.add_enum('DropReason', ['DROP_NO_ROUTE', 'DROP_TTL_EXPIRE', 'DROP_BAD_CHECKSUM', 'DROP_INVALID_REASON'], outer_class=root_module['ns3::Ipv4FlowProbe']) - ## flow-monitor.h: ns3::FlowMonitor [class] - module.add_class('FlowMonitor', parent=root_module['ns3::Object']) - ## flow-monitor.h: ns3::FlowMonitor::FlowStats [struct] - module.add_class('FlowStats', outer_class=root_module['ns3::FlowMonitor']) - module.add_container('std::map< unsigned int, ns3::FlowProbe::FlowStats >', ('unsigned int', 'ns3::FlowProbe::FlowStats'), container_type='map') module.add_container('std::map< unsigned int, ns3::FlowMonitor::FlowStats >', ('unsigned int', 'ns3::FlowMonitor::FlowStats'), container_type='map') + module.add_container('std::map< unsigned int, ns3::FlowProbe::FlowStats >', ('unsigned int', 'ns3::FlowProbe::FlowStats'), container_type='map') typehandlers.add_type_alias('uint32_t', 'ns3::FlowPacketId') typehandlers.add_type_alias('uint32_t*', 'ns3::FlowPacketId*') typehandlers.add_type_alias('uint32_t&', 'ns3::FlowPacketId&') @@ -50,6 +54,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -86,6 +96,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -105,13 +119,13 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3Histogram_methods(root_module, root_module['ns3::Histogram']) register_Ns3FlowClassifier_methods(root_module, root_module['ns3::FlowClassifier']) + register_Ns3FlowMonitor_methods(root_module, root_module['ns3::FlowMonitor']) + register_Ns3FlowMonitorFlowStats_methods(root_module, root_module['ns3::FlowMonitor::FlowStats']) register_Ns3FlowProbe_methods(root_module, root_module['ns3::FlowProbe']) register_Ns3FlowProbeFlowStats_methods(root_module, root_module['ns3::FlowProbe::FlowStats']) register_Ns3Ipv4FlowClassifier_methods(root_module, root_module['ns3::Ipv4FlowClassifier']) register_Ns3Ipv4FlowClassifierFiveTuple_methods(root_module, root_module['ns3::Ipv4FlowClassifier::FiveTuple']) register_Ns3Ipv4FlowProbe_methods(root_module, root_module['ns3::Ipv4FlowProbe']) - register_Ns3FlowMonitor_methods(root_module, root_module['ns3::FlowMonitor']) - register_Ns3FlowMonitorFlowStats_methods(root_module, root_module['ns3::FlowMonitor::FlowStats']) return def register_Ns3Histogram_methods(root_module, cls): @@ -175,96 +189,6 @@ def register_Ns3FlowClassifier_methods(root_module, cls): visibility='protected') return -def register_Ns3FlowProbe_methods(root_module, cls): - ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::FlowProbe const & arg0) [copy constructor] - cls.add_constructor([param('ns3::FlowProbe const &', 'arg0')]) - ## flow-probe.h: void ns3::FlowProbe::AddPacketDropStats(ns3::FlowId flowId, uint32_t packetSize, uint32_t reasonCode) [member function] - cls.add_method('AddPacketDropStats', - 'void', - [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('uint32_t', 'reasonCode')]) - ## flow-probe.h: void ns3::FlowProbe::AddPacketStats(ns3::FlowId flowId, uint32_t packetSize, ns3::Time delayFromFirstProbe) [member function] - cls.add_method('AddPacketStats', - 'void', - [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('ns3::Time', 'delayFromFirstProbe')]) - ## flow-probe.h: std::map, std::allocator > > ns3::FlowProbe::GetStats() const [member function] - cls.add_method('GetStats', - 'std::map< unsigned int, ns3::FlowProbe::FlowStats >', - [], - is_const=True) - ## flow-probe.h: void ns3::FlowProbe::SerializeToXmlStream(std::ostream & os, int indent, uint32_t index) const [member function] - cls.add_method('SerializeToXmlStream', - 'void', - [param('std::ostream &', 'os'), param('int', 'indent'), param('uint32_t', 'index')], - is_const=True) - ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::Ptr flowMonitor) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'flowMonitor')], - visibility='protected') - return - -def register_Ns3FlowProbeFlowStats_methods(root_module, cls): - ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats(ns3::FlowProbe::FlowStats const & arg0) [copy constructor] - cls.add_constructor([param('ns3::FlowProbe::FlowStats const &', 'arg0')]) - ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats() [constructor] - cls.add_constructor([]) - ## flow-probe.h: ns3::FlowProbe::FlowStats::bytes [variable] - cls.add_instance_attribute('bytes', 'uint64_t', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::bytesDropped [variable] - cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long >', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::delayFromFirstProbeSum [variable] - cls.add_instance_attribute('delayFromFirstProbeSum', 'ns3::Time', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::packets [variable] - cls.add_instance_attribute('packets', 'uint32_t', is_const=False) - ## flow-probe.h: ns3::FlowProbe::FlowStats::packetsDropped [variable] - cls.add_instance_attribute('packetsDropped', 'std::vector< unsigned int >', is_const=False) - return - -def register_Ns3Ipv4FlowClassifier_methods(root_module, cls): - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier(ns3::Ipv4FlowClassifier const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4FlowClassifier const &', 'arg0')]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier() [constructor] - cls.add_constructor([]) - ## ipv4-flow-classifier.h: bool ns3::Ipv4FlowClassifier::Classify(ns3::Ipv4Header const & ipHeader, ns3::Ptr ipPayload, uint32_t * out_flowId, uint32_t * out_packetId) [member function] - cls.add_method('Classify', - 'bool', - [param('ns3::Ipv4Header const &', 'ipHeader'), param('ns3::Ptr< ns3::Packet const >', 'ipPayload'), param('uint32_t *', 'out_flowId'), param('uint32_t *', 'out_packetId')]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple ns3::Ipv4FlowClassifier::FindFlow(ns3::FlowId flowId) const [member function] - cls.add_method('FindFlow', - 'ns3::Ipv4FlowClassifier::FiveTuple', - [param('ns3::FlowId', 'flowId')], - is_const=True) - ## ipv4-flow-classifier.h: void ns3::Ipv4FlowClassifier::SerializeToXmlStream(std::ostream & os, int indent) const [member function] - cls.add_method('SerializeToXmlStream', - 'void', - [param('std::ostream &', 'os'), param('int', 'indent')], - is_const=True, is_virtual=True) - return - -def register_Ns3Ipv4FlowClassifierFiveTuple_methods(root_module, cls): - cls.add_binary_comparison_operator('<') - cls.add_binary_comparison_operator('==') - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple() [constructor] - cls.add_constructor([]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple(ns3::Ipv4FlowClassifier::FiveTuple const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4FlowClassifier::FiveTuple const &', 'arg0')]) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationAddress [variable] - cls.add_instance_attribute('destinationAddress', 'ns3::Ipv4Address', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationPort [variable] - cls.add_instance_attribute('destinationPort', 'uint16_t', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::protocol [variable] - cls.add_instance_attribute('protocol', 'uint8_t', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourceAddress [variable] - cls.add_instance_attribute('sourceAddress', 'ns3::Ipv4Address', is_const=False) - ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourcePort [variable] - cls.add_instance_attribute('sourcePort', 'uint16_t', is_const=False) - return - -def register_Ns3Ipv4FlowProbe_methods(root_module, cls): - ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ipv4FlowProbe const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4FlowProbe const &', 'arg0')]) - ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ptr monitor, ns3::Ptr classifier, ns3::Ptr node) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'monitor'), param('ns3::Ptr< ns3::Ipv4FlowClassifier >', 'classifier'), param('ns3::Ptr< ns3::Node >', 'node')]) - return - def register_Ns3FlowMonitor_methods(root_module, cls): ## flow-monitor.h: ns3::FlowMonitor::FlowMonitor(ns3::FlowMonitor const & arg0) [copy constructor] cls.add_constructor([param('ns3::FlowMonitor const &', 'arg0')]) @@ -400,11 +324,102 @@ def register_Ns3FlowMonitorFlowStats_methods(root_module, cls): cls.add_instance_attribute('txPackets', 'uint32_t', is_const=False) return +def register_Ns3FlowProbe_methods(root_module, cls): + ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::FlowProbe const & arg0) [copy constructor] + cls.add_constructor([param('ns3::FlowProbe const &', 'arg0')]) + ## flow-probe.h: void ns3::FlowProbe::AddPacketDropStats(ns3::FlowId flowId, uint32_t packetSize, uint32_t reasonCode) [member function] + cls.add_method('AddPacketDropStats', + 'void', + [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('uint32_t', 'reasonCode')]) + ## flow-probe.h: void ns3::FlowProbe::AddPacketStats(ns3::FlowId flowId, uint32_t packetSize, ns3::Time delayFromFirstProbe) [member function] + cls.add_method('AddPacketStats', + 'void', + [param('ns3::FlowId', 'flowId'), param('uint32_t', 'packetSize'), param('ns3::Time', 'delayFromFirstProbe')]) + ## flow-probe.h: std::map, std::allocator > > ns3::FlowProbe::GetStats() const [member function] + cls.add_method('GetStats', + 'std::map< unsigned int, ns3::FlowProbe::FlowStats >', + [], + is_const=True) + ## flow-probe.h: void ns3::FlowProbe::SerializeToXmlStream(std::ostream & os, int indent, uint32_t index) const [member function] + cls.add_method('SerializeToXmlStream', + 'void', + [param('std::ostream &', 'os'), param('int', 'indent'), param('uint32_t', 'index')], + is_const=True) + ## flow-probe.h: ns3::FlowProbe::FlowProbe(ns3::Ptr flowMonitor) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'flowMonitor')], + visibility='protected') + return + +def register_Ns3FlowProbeFlowStats_methods(root_module, cls): + ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats(ns3::FlowProbe::FlowStats const & arg0) [copy constructor] + cls.add_constructor([param('ns3::FlowProbe::FlowStats const &', 'arg0')]) + ## flow-probe.h: ns3::FlowProbe::FlowStats::FlowStats() [constructor] + cls.add_constructor([]) + ## flow-probe.h: ns3::FlowProbe::FlowStats::bytes [variable] + cls.add_instance_attribute('bytes', 'uint64_t', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::bytesDropped [variable] + cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long >', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::delayFromFirstProbeSum [variable] + cls.add_instance_attribute('delayFromFirstProbeSum', 'ns3::Time', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::packets [variable] + cls.add_instance_attribute('packets', 'uint32_t', is_const=False) + ## flow-probe.h: ns3::FlowProbe::FlowStats::packetsDropped [variable] + cls.add_instance_attribute('packetsDropped', 'std::vector< unsigned int >', is_const=False) + return + +def register_Ns3Ipv4FlowClassifier_methods(root_module, cls): + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier(ns3::Ipv4FlowClassifier const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4FlowClassifier const &', 'arg0')]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::Ipv4FlowClassifier() [constructor] + cls.add_constructor([]) + ## ipv4-flow-classifier.h: bool ns3::Ipv4FlowClassifier::Classify(ns3::Ipv4Header const & ipHeader, ns3::Ptr ipPayload, uint32_t * out_flowId, uint32_t * out_packetId) [member function] + cls.add_method('Classify', + 'bool', + [param('ns3::Ipv4Header const &', 'ipHeader'), param('ns3::Ptr< ns3::Packet const >', 'ipPayload'), param('uint32_t *', 'out_flowId'), param('uint32_t *', 'out_packetId')]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple ns3::Ipv4FlowClassifier::FindFlow(ns3::FlowId flowId) const [member function] + cls.add_method('FindFlow', + 'ns3::Ipv4FlowClassifier::FiveTuple', + [param('ns3::FlowId', 'flowId')], + is_const=True) + ## ipv4-flow-classifier.h: void ns3::Ipv4FlowClassifier::SerializeToXmlStream(std::ostream & os, int indent) const [member function] + cls.add_method('SerializeToXmlStream', + 'void', + [param('std::ostream &', 'os'), param('int', 'indent')], + is_const=True, is_virtual=True) + return + +def register_Ns3Ipv4FlowClassifierFiveTuple_methods(root_module, cls): + cls.add_binary_comparison_operator('<') + cls.add_binary_comparison_operator('==') + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple() [constructor] + cls.add_constructor([]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::FiveTuple(ns3::Ipv4FlowClassifier::FiveTuple const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4FlowClassifier::FiveTuple const &', 'arg0')]) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationAddress [variable] + cls.add_instance_attribute('destinationAddress', 'ns3::Ipv4Address', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::destinationPort [variable] + cls.add_instance_attribute('destinationPort', 'uint16_t', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::protocol [variable] + cls.add_instance_attribute('protocol', 'uint8_t', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourceAddress [variable] + cls.add_instance_attribute('sourceAddress', 'ns3::Ipv4Address', is_const=False) + ## ipv4-flow-classifier.h: ns3::Ipv4FlowClassifier::FiveTuple::sourcePort [variable] + cls.add_instance_attribute('sourcePort', 'uint16_t', is_const=False) + return + +def register_Ns3Ipv4FlowProbe_methods(root_module, cls): + ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ipv4FlowProbe const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4FlowProbe const &', 'arg0')]) + ## ipv4-flow-probe.h: ns3::Ipv4FlowProbe::Ipv4FlowProbe(ns3::Ptr monitor, ns3::Ptr classifier, ns3::Ptr node) [constructor] + cls.add_constructor([param('ns3::Ptr< ns3::FlowMonitor >', 'monitor'), param('ns3::Ptr< ns3::Ipv4FlowClassifier >', 'classifier'), param('ns3::Ptr< ns3::Node >', 'node')]) + return + def register_functions(root_module): module = root_module register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -420,6 +435,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_global_routing.py b/bindings/python/apidefs/gcc-LP64/ns3_module_global_routing.py index 4f44b1996..002011b7f 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_global_routing.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_global_routing.py @@ -38,6 +38,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -74,6 +80,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -99,16 +109,6 @@ def register_methods(root_module): return def register_Ns3GlobalRouteManager_methods(root_module, cls): - ## global-route-manager.h: static void ns3::GlobalRouteManager::PopulateRoutingTables() [member function] - cls.add_method('PopulateRoutingTables', - 'void', - [], - is_static=True, deprecated=True) - ## global-route-manager.h: static void ns3::GlobalRouteManager::RecomputeRoutingTables() [member function] - cls.add_method('RecomputeRoutingTables', - 'void', - [], - is_static=True, deprecated=True) ## global-route-manager.h: static uint32_t ns3::GlobalRouteManager::AllocateRouterId() [member function] cls.add_method('AllocateRouterId', 'uint32_t', @@ -410,7 +410,7 @@ def register_Ns3Ipv4GlobalRouting_methods(root_module, cls): cls.add_method('RemoveRoute', 'void', [param('uint32_t', 'i')]) - ## ipv4-global-routing.h: bool ns3::Ipv4GlobalRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-global-routing.h: bool ns3::Ipv4GlobalRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -437,6 +437,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -452,6 +453,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_helper.py b/bindings/python/apidefs/gcc-LP64/ns3_module_helper.py index b527b38a6..25e0f7cf7 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_helper.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_helper.py @@ -77,6 +77,8 @@ def register_types(module): module.add_class('YansWifiPhyHelper', allow_subclassing=False, parent=root_module['ns3::WifiPhyHelper']) ## yans-wifi-helper.h: ns3::YansWifiPhyHelper::PcapFormat [enumeration] module.add_enum('PcapFormat', ['PCAP_FORMAT_80211', 'PCAP_FORMAT_80211_PRISM', 'PCAP_FORMAT_80211_RADIOTAP'], outer_class=root_module['ns3::YansWifiPhyHelper']) + ## aodv-helper.h: ns3::AodvHelper [class] + module.add_class('AodvHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper']) ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper [class] module.add_class('Ipv4GlobalRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper']) ## ipv4-list-routing-helper.h: ns3::Ipv4ListRoutingHelper [class] @@ -116,6 +118,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -152,6 +160,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -204,6 +216,7 @@ def register_methods(root_module): register_Ns3WifiPhyHelper_methods(root_module, root_module['ns3::WifiPhyHelper']) register_Ns3YansWifiChannelHelper_methods(root_module, root_module['ns3::YansWifiChannelHelper']) register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper']) + register_Ns3AodvHelper_methods(root_module, root_module['ns3::AodvHelper']) register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, root_module['ns3::Ipv4GlobalRoutingHelper']) register_Ns3Ipv4ListRoutingHelper_methods(root_module, root_module['ns3::Ipv4ListRoutingHelper']) register_Ns3Ipv4NixVectorHelper_methods(root_module, root_module['ns3::Ipv4NixVectorHelper']) @@ -1446,6 +1459,10 @@ def register_Ns3V4PingHelper_methods(root_module, cls): 'ns3::ApplicationContainer', [param('std::string', 'nodeName')], is_const=True) + ## v4ping-helper.h: void ns3::V4PingHelper::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function] + cls.add_method('SetAttribute', + 'void', + [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) return def register_Ns3WifiHelper_methods(root_module, cls): @@ -1618,6 +1635,27 @@ def register_Ns3YansWifiPhyHelper_methods(root_module, cls): is_const=True, visibility='private', is_virtual=True) return +def register_Ns3AodvHelper_methods(root_module, cls): + ## aodv-helper.h: ns3::AodvHelper::AodvHelper(ns3::AodvHelper const & arg0) [copy constructor] + cls.add_constructor([param('ns3::AodvHelper const &', 'arg0')]) + ## aodv-helper.h: ns3::AodvHelper::AodvHelper() [constructor] + cls.add_constructor([]) + ## aodv-helper.h: ns3::AodvHelper * ns3::AodvHelper::Copy() const [member function] + cls.add_method('Copy', + 'ns3::AodvHelper *', + [], + is_const=True, is_virtual=True) + ## aodv-helper.h: ns3::Ptr ns3::AodvHelper::Create(ns3::Ptr node) const [member function] + cls.add_method('Create', + 'ns3::Ptr< ns3::Ipv4RoutingProtocol >', + [param('ns3::Ptr< ns3::Node >', 'node')], + is_const=True, is_virtual=True) + ## aodv-helper.h: void ns3::AodvHelper::Set(std::string name, ns3::AttributeValue const & value) [member function] + cls.add_method('Set', + 'void', + [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) + return + def register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, cls): ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper() [constructor] cls.add_constructor([]) @@ -1897,6 +1935,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1912,6 +1951,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py b/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py index f7fa01726..afc3ed388 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py @@ -71,6 +71,8 @@ def register_types(module): module.add_class('Icmpv6DestinationUnreachable', parent=root_module['ns3::Icmpv6Header']) ## icmpv6-header.h: ns3::Icmpv6Echo [class] module.add_class('Icmpv6Echo', parent=root_module['ns3::Icmpv6Header']) + ## ipv4-interface.h: ns3::Ipv4Interface [class] + module.add_class('Ipv4Interface', parent=root_module['ns3::Object']) ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol [class] module.add_class('Ipv4L3Protocol', parent=root_module['ns3::Ipv4']) ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::DropReason [enumeration] @@ -118,6 +120,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -154,6 +162,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -196,6 +208,7 @@ def register_methods(root_module): register_Ns3ArpL3Protocol_methods(root_module, root_module['ns3::ArpL3Protocol']) register_Ns3Icmpv6DestinationUnreachable_methods(root_module, root_module['ns3::Icmpv6DestinationUnreachable']) register_Ns3Icmpv6Echo_methods(root_module, root_module['ns3::Icmpv6Echo']) + register_Ns3Ipv4Interface_methods(root_module, root_module['ns3::Ipv4Interface']) register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol']) register_Ns3Ipv4L4Protocol_methods(root_module, root_module['ns3::Ipv4L4Protocol']) register_Ns3Ipv6L3Protocol_methods(root_module, root_module['ns3::Ipv6L3Protocol']) @@ -1816,6 +1829,103 @@ def register_Ns3Icmpv6Echo_methods(root_module, cls): [param('uint16_t', 'seq')]) return +def register_Ns3Ipv4Interface_methods(root_module, cls): + ## ipv4-interface.h: ns3::Ipv4Interface::Ipv4Interface(ns3::Ipv4Interface const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4Interface const &', 'arg0')]) + ## ipv4-interface.h: ns3::Ipv4Interface::Ipv4Interface() [constructor] + cls.add_constructor([]) + ## ipv4-interface.h: bool ns3::Ipv4Interface::AddAddress(ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('AddAddress', + 'bool', + [param('ns3::Ipv4InterfaceAddress', 'address')]) + ## ipv4-interface.h: ns3::Ipv4InterfaceAddress ns3::Ipv4Interface::GetAddress(uint32_t index) const [member function] + cls.add_method('GetAddress', + 'ns3::Ipv4InterfaceAddress', + [param('uint32_t', 'index')], + is_const=True) + ## ipv4-interface.h: ns3::Ptr ns3::Ipv4Interface::GetArpCache() const [member function] + cls.add_method('GetArpCache', + 'ns3::Ptr< ns3::ArpCache >', + [], + is_const=True) + ## ipv4-interface.h: ns3::Ptr ns3::Ipv4Interface::GetDevice() const [member function] + cls.add_method('GetDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## ipv4-interface.h: uint16_t ns3::Ipv4Interface::GetMetric() const [member function] + cls.add_method('GetMetric', + 'uint16_t', + [], + is_const=True) + ## ipv4-interface.h: uint32_t ns3::Ipv4Interface::GetNAddresses() const [member function] + cls.add_method('GetNAddresses', + 'uint32_t', + [], + is_const=True) + ## ipv4-interface.h: static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## ipv4-interface.h: bool ns3::Ipv4Interface::IsDown() const [member function] + cls.add_method('IsDown', + 'bool', + [], + is_const=True) + ## ipv4-interface.h: bool ns3::Ipv4Interface::IsForwarding() const [member function] + cls.add_method('IsForwarding', + 'bool', + [], + is_const=True) + ## ipv4-interface.h: bool ns3::Ipv4Interface::IsUp() const [member function] + cls.add_method('IsUp', + 'bool', + [], + is_const=True) + ## ipv4-interface.h: ns3::Ipv4InterfaceAddress ns3::Ipv4Interface::RemoveAddress(uint32_t index) [member function] + cls.add_method('RemoveAddress', + 'ns3::Ipv4InterfaceAddress', + [param('uint32_t', 'index')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::Send(ns3::Ptr p, ns3::Ipv4Address dest) [member function] + cls.add_method('Send', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetArpCache(ns3::Ptr arg0) [member function] + cls.add_method('SetArpCache', + 'void', + [param('ns3::Ptr< ns3::ArpCache >', 'arg0')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetDevice(ns3::Ptr device) [member function] + cls.add_method('SetDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'device')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetDown() [member function] + cls.add_method('SetDown', + 'void', + []) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetForwarding(bool val) [member function] + cls.add_method('SetForwarding', + 'void', + [param('bool', 'val')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetMetric(uint16_t metric) [member function] + cls.add_method('SetMetric', + 'void', + [param('uint16_t', 'metric')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetNode(ns3::Ptr node) [member function] + cls.add_method('SetNode', + 'void', + [param('ns3::Ptr< ns3::Node >', 'node')]) + ## ipv4-interface.h: void ns3::Ipv4Interface::SetUp() [member function] + cls.add_method('SetUp', + 'void', + []) + ## ipv4-interface.h: void ns3::Ipv4Interface::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='protected', is_virtual=True) + return + def register_Ns3Ipv4L3Protocol_methods(root_module, cls): ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol::PROT_NUMBER [variable] cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True) @@ -1903,6 +2013,11 @@ def register_Ns3Ipv4L3Protocol_methods(root_module, cls): 'int32_t', [param('ns3::Ptr< ns3::NetDevice const >', 'device')], is_const=True, is_virtual=True) + ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::IsDestinationAddress(ns3::Ipv4Address address, uint32_t iif) const [member function] + cls.add_method('IsDestinationAddress', + 'bool', + [param('ns3::Ipv4Address', 'address'), param('uint32_t', 'iif')], + is_const=True, is_virtual=True) ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::AddAddress(uint32_t i, ns3::Ipv4InterfaceAddress address) [member function] cls.add_method('AddAddress', 'bool', @@ -1988,6 +2103,16 @@ def register_Ns3Ipv4L3Protocol_methods(root_module, cls): 'bool', [], is_const=True, visibility='private', is_virtual=True) + ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetWeakEsModel(bool model) [member function] + cls.add_method('SetWeakEsModel', + 'void', + [param('bool', 'model')], + visibility='private', is_virtual=True) + ## ipv4-l3-protocol.h: bool ns3::Ipv4L3Protocol::GetWeakEsModel() const [member function] + cls.add_method('GetWeakEsModel', + 'bool', + [], + is_const=True, visibility='private', is_virtual=True) return def register_Ns3Ipv4L4Protocol_methods(root_module, cls): @@ -2825,6 +2950,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -2840,6 +2966,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_list_routing.py b/bindings/python/apidefs/gcc-LP64/ns3_module_list_routing.py index 36415514e..f1da665ac 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_list_routing.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_list_routing.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -128,7 +138,7 @@ def register_Ns3Ipv4ListRouting_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], is_virtual=True) - ## ipv4-list-routing.h: bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-list-routing.h: bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -148,6 +158,11 @@ def register_Ns3Ipv4ListRouting_methods(root_module, cls): 'void', [], visibility='protected', is_virtual=True) + ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) return def register_Ns3Ipv6ListRouting_methods(root_module, cls): @@ -232,6 +247,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -247,6 +263,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_mesh.py b/bindings/python/apidefs/gcc-LP64/ns3_module_mesh.py index ba7867490..663e54ccd 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_mesh.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_mesh.py @@ -7,16 +7,20 @@ def register_types(module): module.add_enum('WifiElementId', ['IE11S_MESH_CONFIGURATION', 'IE11S_MESH_ID', 'IE11S_LINK_METRIC_REPORT', 'IE11S_CONGESTION_NOTIFICATION', 'IE11S_PEERING_MANAGEMENT', 'IE11S_SUPP_MBSS_REG_CLASSES_CHANNELS', 'IE11S_MESH_CHANNEL_SWITCH_ANNOUNCEMENT', 'IE11S_MESH_TIM', 'IE11S_AWAKE_WINDOW', 'IE11S_BEACON_TIMING', 'IE11S_MCCAOP_SETUP_REQUEST', 'IE11S_MCCAOP_SETUP_REPLY', 'IE11S_MCCAOP_ADVERTISEMENT', 'IE11S_MCCAOP_RESERVATION_TEARDOWN', 'IE11S_PORTAL_ANNOUNCEMENT', 'IE11S_RANN', 'IE11S_PREQ', 'IE11S_PREP', 'IE11S_PERR', 'IE11S_PROXY_UPDATE', 'IE11S_PROXY_UPDATE_CONFIRMATION', 'IE11S_ABBREVIATED_HANDSHAKE', 'IE11S_MESH_PEERING_PROTOCOL_VERSION']) ## mesh-wifi-beacon.h: ns3::MeshWifiBeacon [class] module.add_class('MeshWifiBeacon') + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::MeshWifiInterfaceMacPlugin', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::WifiInformationElement', 'ns3::empty'], parent=root_module['ns3::empty']) ## wifi-information-element-vector.h: ns3::WifiInformationElement [class] - module.add_class('WifiInformationElement', parent=root_module['ns3::RefCountBase']) - ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin [class] - module.add_class('MeshWifiInterfaceMacPlugin', parent=root_module['ns3::RefCountBase']) + module.add_class('WifiInformationElement', parent=root_module['ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty >']) ## wifi-information-element-vector.h: ns3::WifiInformationElementVector [class] module.add_class('WifiInformationElementVector', parent=root_module['ns3::Header']) ## mesh-l2-routing-protocol.h: ns3::MeshL2RoutingProtocol [class] module.add_class('MeshL2RoutingProtocol', parent=root_module['ns3::Object']) ## mesh-wifi-interface-mac.h: ns3::MeshWifiInterfaceMac [class] module.add_class('MeshWifiInterfaceMac', parent=root_module['ns3::WifiMac']) + ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin [class] + module.add_class('MeshWifiInterfaceMacPlugin', parent=root_module['ns3::SimpleRefCount< ns3::MeshWifiInterfaceMacPlugin, ns3::empty >']) ## mesh-point-device.h: ns3::MeshPointDevice [class] module.add_class('MeshPointDevice', parent=root_module['ns3::NetDevice']) @@ -38,6 +42,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -74,6 +84,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -93,10 +107,10 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3MeshWifiBeacon_methods(root_module, root_module['ns3::MeshWifiBeacon']) register_Ns3WifiInformationElement_methods(root_module, root_module['ns3::WifiInformationElement']) - register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, root_module['ns3::MeshWifiInterfaceMacPlugin']) register_Ns3WifiInformationElementVector_methods(root_module, root_module['ns3::WifiInformationElementVector']) register_Ns3MeshL2RoutingProtocol_methods(root_module, root_module['ns3::MeshL2RoutingProtocol']) register_Ns3MeshWifiInterfaceMac_methods(root_module, root_module['ns3::MeshWifiInterfaceMac']) + register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, root_module['ns3::MeshWifiInterfaceMacPlugin']) register_Ns3MeshPointDevice_methods(root_module, root_module['ns3::MeshPointDevice']) return @@ -163,33 +177,6 @@ def register_Ns3WifiInformationElement_methods(root_module, cls): is_pure_virtual=True, is_const=True, is_virtual=True) return -def register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, cls): - ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin() [constructor] - cls.add_constructor([]) - ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin(ns3::MeshWifiInterfaceMacPlugin const & arg0) [copy constructor] - cls.add_constructor([param('ns3::MeshWifiInterfaceMacPlugin const &', 'arg0')]) - ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::Receive(ns3::Ptr packet, ns3::WifiMacHeader const & header) [member function] - cls.add_method('Receive', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader const &', 'header')], - is_pure_virtual=True, is_virtual=True) - ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::SetParent(ns3::Ptr parent) [member function] - cls.add_method('SetParent', - 'void', - [param('ns3::Ptr< ns3::MeshWifiInterfaceMac >', 'parent')], - is_pure_virtual=True, is_virtual=True) - ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::UpdateBeacon(ns3::MeshWifiBeacon & beacon) const [member function] - cls.add_method('UpdateBeacon', - 'void', - [param('ns3::MeshWifiBeacon &', 'beacon')], - is_pure_virtual=True, is_const=True, is_virtual=True) - ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::UpdateOutcomingFrame(ns3::Ptr packet, ns3::WifiMacHeader & header, ns3::Mac48Address from, ns3::Mac48Address to) [member function] - cls.add_method('UpdateOutcomingFrame', - 'bool', - [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader &', 'header'), param('ns3::Mac48Address', 'from'), param('ns3::Mac48Address', 'to')], - is_pure_virtual=True, is_virtual=True) - return - def register_Ns3WifiInformationElementVector_methods(root_module, cls): cls.add_binary_comparison_operator('==') ## wifi-information-element-vector.h: ns3::WifiInformationElementVector::WifiInformationElementVector(ns3::WifiInformationElementVector const & arg0) [copy constructor] @@ -524,6 +511,33 @@ def register_Ns3MeshWifiInterfaceMac_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3MeshWifiInterfaceMacPlugin_methods(root_module, cls): + ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin() [constructor] + cls.add_constructor([]) + ## mesh-wifi-interface-mac-plugin.h: ns3::MeshWifiInterfaceMacPlugin::MeshWifiInterfaceMacPlugin(ns3::MeshWifiInterfaceMacPlugin const & arg0) [copy constructor] + cls.add_constructor([param('ns3::MeshWifiInterfaceMacPlugin const &', 'arg0')]) + ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::Receive(ns3::Ptr packet, ns3::WifiMacHeader const & header) [member function] + cls.add_method('Receive', + 'bool', + [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader const &', 'header')], + is_pure_virtual=True, is_virtual=True) + ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::SetParent(ns3::Ptr parent) [member function] + cls.add_method('SetParent', + 'void', + [param('ns3::Ptr< ns3::MeshWifiInterfaceMac >', 'parent')], + is_pure_virtual=True, is_virtual=True) + ## mesh-wifi-interface-mac-plugin.h: void ns3::MeshWifiInterfaceMacPlugin::UpdateBeacon(ns3::MeshWifiBeacon & beacon) const [member function] + cls.add_method('UpdateBeacon', + 'void', + [param('ns3::MeshWifiBeacon &', 'beacon')], + is_pure_virtual=True, is_const=True, is_virtual=True) + ## mesh-wifi-interface-mac-plugin.h: bool ns3::MeshWifiInterfaceMacPlugin::UpdateOutcomingFrame(ns3::Ptr packet, ns3::WifiMacHeader & header, ns3::Mac48Address from, ns3::Mac48Address to) [member function] + cls.add_method('UpdateOutcomingFrame', + 'bool', + [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::WifiMacHeader &', 'header'), param('ns3::Mac48Address', 'from'), param('ns3::Mac48Address', 'to')], + is_pure_virtual=True, is_virtual=True) + return + def register_Ns3MeshPointDevice_methods(root_module, cls): ## mesh-point-device.h: ns3::MeshPointDevice::MeshPointDevice(ns3::MeshPointDevice const & arg0) [copy constructor] cls.add_constructor([param('ns3::MeshPointDevice const &', 'arg0')]) @@ -703,6 +717,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -718,6 +733,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_mobility.py b/bindings/python/apidefs/gcc-LP64/ns3_module_mobility.py index 37f4e096e..e2e154434 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_mobility.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_mobility.py @@ -17,14 +17,8 @@ def register_types(module): module.add_class('RandomDiscPositionAllocator', parent=root_module['ns3::PositionAllocator']) ## position-allocator.h: ns3::RandomRectanglePositionAllocator [class] module.add_class('RandomRectanglePositionAllocator', parent=root_module['ns3::PositionAllocator']) - ## rectangle.h: ns3::RectangleChecker [class] - module.add_class('RectangleChecker', parent=root_module['ns3::AttributeChecker']) - ## rectangle.h: ns3::RectangleValue [class] - module.add_class('RectangleValue', parent=root_module['ns3::AttributeValue']) - ## waypoint.h: ns3::WaypointChecker [class] - module.add_class('WaypointChecker', parent=root_module['ns3::AttributeChecker']) - ## waypoint.h: ns3::WaypointValue [class] - module.add_class('WaypointValue', parent=root_module['ns3::AttributeValue']) + ## position-allocator.h: ns3::UniformDiscPositionAllocator [class] + module.add_class('UniformDiscPositionAllocator', parent=root_module['ns3::PositionAllocator']) ## position-allocator.h: ns3::GridPositionAllocator [class] module.add_class('GridPositionAllocator', parent=root_module['ns3::PositionAllocator']) ## position-allocator.h: ns3::GridPositionAllocator::LayoutType [enumeration] @@ -41,8 +35,16 @@ def register_types(module): module.add_enum('Mode', ['MODE_DISTANCE', 'MODE_TIME'], outer_class=root_module['ns3::RandomWalk2dMobilityModel']) ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel [class] module.add_class('RandomWaypointMobilityModel', parent=root_module['ns3::MobilityModel']) + ## rectangle.h: ns3::RectangleChecker [class] + module.add_class('RectangleChecker', parent=root_module['ns3::AttributeChecker']) + ## rectangle.h: ns3::RectangleValue [class] + module.add_class('RectangleValue', parent=root_module['ns3::AttributeValue']) + ## waypoint.h: ns3::WaypointChecker [class] + module.add_class('WaypointChecker', parent=root_module['ns3::AttributeChecker']) ## waypoint-mobility-model.h: ns3::WaypointMobilityModel [class] module.add_class('WaypointMobilityModel', parent=root_module['ns3::MobilityModel']) + ## waypoint.h: ns3::WaypointValue [class] + module.add_class('WaypointValue', parent=root_module['ns3::AttributeValue']) ## constant-acceleration-mobility-model.h: ns3::ConstantAccelerationMobilityModel [class] module.add_class('ConstantAccelerationMobilityModel', parent=root_module['ns3::MobilityModel']) ## constant-position-mobility-model.h: ns3::ConstantPositionMobilityModel [class] @@ -70,6 +72,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -106,6 +114,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -129,17 +141,18 @@ def register_methods(root_module): register_Ns3PositionAllocator_methods(root_module, root_module['ns3::PositionAllocator']) register_Ns3RandomDiscPositionAllocator_methods(root_module, root_module['ns3::RandomDiscPositionAllocator']) register_Ns3RandomRectanglePositionAllocator_methods(root_module, root_module['ns3::RandomRectanglePositionAllocator']) - register_Ns3RectangleChecker_methods(root_module, root_module['ns3::RectangleChecker']) - register_Ns3RectangleValue_methods(root_module, root_module['ns3::RectangleValue']) - register_Ns3WaypointChecker_methods(root_module, root_module['ns3::WaypointChecker']) - register_Ns3WaypointValue_methods(root_module, root_module['ns3::WaypointValue']) + register_Ns3UniformDiscPositionAllocator_methods(root_module, root_module['ns3::UniformDiscPositionAllocator']) register_Ns3GridPositionAllocator_methods(root_module, root_module['ns3::GridPositionAllocator']) register_Ns3ListPositionAllocator_methods(root_module, root_module['ns3::ListPositionAllocator']) register_Ns3MobilityModel_methods(root_module, root_module['ns3::MobilityModel']) register_Ns3RandomDirection2dMobilityModel_methods(root_module, root_module['ns3::RandomDirection2dMobilityModel']) register_Ns3RandomWalk2dMobilityModel_methods(root_module, root_module['ns3::RandomWalk2dMobilityModel']) register_Ns3RandomWaypointMobilityModel_methods(root_module, root_module['ns3::RandomWaypointMobilityModel']) + register_Ns3RectangleChecker_methods(root_module, root_module['ns3::RectangleChecker']) + register_Ns3RectangleValue_methods(root_module, root_module['ns3::RectangleValue']) + register_Ns3WaypointChecker_methods(root_module, root_module['ns3::WaypointChecker']) register_Ns3WaypointMobilityModel_methods(root_module, root_module['ns3::WaypointMobilityModel']) + register_Ns3WaypointValue_methods(root_module, root_module['ns3::WaypointValue']) register_Ns3ConstantAccelerationMobilityModel_methods(root_module, root_module['ns3::ConstantAccelerationMobilityModel']) register_Ns3ConstantPositionMobilityModel_methods(root_module, root_module['ns3::ConstantPositionMobilityModel']) register_Ns3ConstantVelocityMobilityModel_methods(root_module, root_module['ns3::ConstantVelocityMobilityModel']) @@ -315,84 +328,33 @@ def register_Ns3RandomRectanglePositionAllocator_methods(root_module, cls): [param('ns3::RandomVariable', 'y')]) return -def register_Ns3RectangleChecker_methods(root_module, cls): - ## rectangle.h: ns3::RectangleChecker::RectangleChecker() [constructor] +def register_Ns3UniformDiscPositionAllocator_methods(root_module, cls): + ## position-allocator.h: ns3::UniformDiscPositionAllocator::UniformDiscPositionAllocator(ns3::UniformDiscPositionAllocator const & arg0) [copy constructor] + cls.add_constructor([param('ns3::UniformDiscPositionAllocator const &', 'arg0')]) + ## position-allocator.h: ns3::UniformDiscPositionAllocator::UniformDiscPositionAllocator() [constructor] cls.add_constructor([]) - ## rectangle.h: ns3::RectangleChecker::RectangleChecker(ns3::RectangleChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RectangleChecker const &', 'arg0')]) - return - -def register_Ns3RectangleValue_methods(root_module, cls): - ## rectangle.h: ns3::RectangleValue::RectangleValue() [constructor] - cls.add_constructor([]) - ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::RectangleValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RectangleValue const &', 'arg0')]) - ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::Rectangle const & value) [constructor] - cls.add_constructor([param('ns3::Rectangle const &', 'value')]) - ## rectangle.h: ns3::Ptr ns3::RectangleValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', + ## position-allocator.h: ns3::Vector ns3::UniformDiscPositionAllocator::GetNext() const [member function] + cls.add_method('GetNext', + 'ns3::Vector', [], is_const=True, is_virtual=True) - ## rectangle.h: bool ns3::RectangleValue::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) - ## rectangle.h: ns3::Rectangle ns3::RectangleValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Rectangle', + ## position-allocator.h: static ns3::TypeId ns3::UniformDiscPositionAllocator::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', [], - is_const=True) - ## rectangle.h: std::string ns3::RectangleValue::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) - ## rectangle.h: void ns3::RectangleValue::Set(ns3::Rectangle const & value) [member function] - cls.add_method('Set', + is_static=True) + ## position-allocator.h: void ns3::UniformDiscPositionAllocator::SetRho(double rho) [member function] + cls.add_method('SetRho', 'void', - [param('ns3::Rectangle const &', 'value')]) - return - -def register_Ns3WaypointChecker_methods(root_module, cls): - ## waypoint.h: ns3::WaypointChecker::WaypointChecker() [constructor] - cls.add_constructor([]) - ## waypoint.h: ns3::WaypointChecker::WaypointChecker(ns3::WaypointChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WaypointChecker const &', 'arg0')]) - return - -def register_Ns3WaypointValue_methods(root_module, cls): - ## waypoint.h: ns3::WaypointValue::WaypointValue() [constructor] - cls.add_constructor([]) - ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::WaypointValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WaypointValue const &', 'arg0')]) - ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::Waypoint const & value) [constructor] - cls.add_constructor([param('ns3::Waypoint const &', 'value')]) - ## waypoint.h: ns3::Ptr ns3::WaypointValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## waypoint.h: bool ns3::WaypointValue::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) - ## waypoint.h: ns3::Waypoint ns3::WaypointValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Waypoint', - [], - is_const=True) - ## waypoint.h: std::string ns3::WaypointValue::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) - ## waypoint.h: void ns3::WaypointValue::Set(ns3::Waypoint const & value) [member function] - cls.add_method('Set', + [param('double', 'rho')]) + ## position-allocator.h: void ns3::UniformDiscPositionAllocator::SetX(double x) [member function] + cls.add_method('SetX', 'void', - [param('ns3::Waypoint const &', 'value')]) + [param('double', 'x')]) + ## position-allocator.h: void ns3::UniformDiscPositionAllocator::SetY(double y) [member function] + cls.add_method('SetY', + 'void', + [param('double', 'y')]) return def register_Ns3GridPositionAllocator_methods(root_module, cls): @@ -539,10 +501,10 @@ def register_Ns3MobilityModel_methods(root_module, cls): return def register_Ns3RandomDirection2dMobilityModel_methods(root_module, cls): - ## random-direction-2d-mobility-model.h: ns3::RandomDirection2dMobilityModel::RandomDirection2dMobilityModel(ns3::RandomDirection2dMobilityModel const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RandomDirection2dMobilityModel const &', 'arg0')]) ## random-direction-2d-mobility-model.h: ns3::RandomDirection2dMobilityModel::RandomDirection2dMobilityModel() [constructor] cls.add_constructor([]) + ## random-direction-2d-mobility-model.h: ns3::RandomDirection2dMobilityModel::RandomDirection2dMobilityModel(ns3::RandomDirection2dMobilityModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RandomDirection2dMobilityModel const &', 'arg0')]) ## random-direction-2d-mobility-model.h: static ns3::TypeId ns3::RandomDirection2dMobilityModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', @@ -568,13 +530,18 @@ def register_Ns3RandomDirection2dMobilityModel_methods(root_module, cls): 'void', [param('ns3::Vector const &', 'position')], visibility='private', is_virtual=True) + ## random-direction-2d-mobility-model.h: void ns3::RandomDirection2dMobilityModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3RandomWalk2dMobilityModel_methods(root_module, cls): - ## random-walk-2d-mobility-model.h: ns3::RandomWalk2dMobilityModel::RandomWalk2dMobilityModel(ns3::RandomWalk2dMobilityModel const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RandomWalk2dMobilityModel const &', 'arg0')]) ## random-walk-2d-mobility-model.h: ns3::RandomWalk2dMobilityModel::RandomWalk2dMobilityModel() [constructor] cls.add_constructor([]) + ## random-walk-2d-mobility-model.h: ns3::RandomWalk2dMobilityModel::RandomWalk2dMobilityModel(ns3::RandomWalk2dMobilityModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RandomWalk2dMobilityModel const &', 'arg0')]) ## random-walk-2d-mobility-model.h: static ns3::TypeId ns3::RandomWalk2dMobilityModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', @@ -600,18 +567,28 @@ def register_Ns3RandomWalk2dMobilityModel_methods(root_module, cls): 'void', [param('ns3::Vector const &', 'position')], visibility='private', is_virtual=True) + ## random-walk-2d-mobility-model.h: void ns3::RandomWalk2dMobilityModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3RandomWaypointMobilityModel_methods(root_module, cls): - ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel::RandomWaypointMobilityModel(ns3::RandomWaypointMobilityModel const & arg0) [copy constructor] - cls.add_constructor([param('ns3::RandomWaypointMobilityModel const &', 'arg0')]) ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel::RandomWaypointMobilityModel() [constructor] cls.add_constructor([]) + ## random-waypoint-mobility-model.h: ns3::RandomWaypointMobilityModel::RandomWaypointMobilityModel(ns3::RandomWaypointMobilityModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RandomWaypointMobilityModel const &', 'arg0')]) ## random-waypoint-mobility-model.h: static ns3::TypeId ns3::RandomWaypointMobilityModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) + ## random-waypoint-mobility-model.h: void ns3::RandomWaypointMobilityModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## random-waypoint-mobility-model.h: ns3::Vector ns3::RandomWaypointMobilityModel::DoGetPosition() const [member function] cls.add_method('DoGetPosition', 'ns3::Vector', @@ -629,6 +606,53 @@ def register_Ns3RandomWaypointMobilityModel_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3RectangleChecker_methods(root_module, cls): + ## rectangle.h: ns3::RectangleChecker::RectangleChecker() [constructor] + cls.add_constructor([]) + ## rectangle.h: ns3::RectangleChecker::RectangleChecker(ns3::RectangleChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RectangleChecker const &', 'arg0')]) + return + +def register_Ns3RectangleValue_methods(root_module, cls): + ## rectangle.h: ns3::RectangleValue::RectangleValue() [constructor] + cls.add_constructor([]) + ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::RectangleValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RectangleValue const &', 'arg0')]) + ## rectangle.h: ns3::RectangleValue::RectangleValue(ns3::Rectangle const & value) [constructor] + cls.add_constructor([param('ns3::Rectangle const &', 'value')]) + ## rectangle.h: ns3::Ptr ns3::RectangleValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## rectangle.h: bool ns3::RectangleValue::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) + ## rectangle.h: ns3::Rectangle ns3::RectangleValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Rectangle', + [], + is_const=True) + ## rectangle.h: std::string ns3::RectangleValue::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) + ## rectangle.h: void ns3::RectangleValue::Set(ns3::Rectangle const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Rectangle const &', 'value')]) + return + +def register_Ns3WaypointChecker_methods(root_module, cls): + ## waypoint.h: ns3::WaypointChecker::WaypointChecker() [constructor] + cls.add_constructor([]) + ## waypoint.h: ns3::WaypointChecker::WaypointChecker(ns3::WaypointChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WaypointChecker const &', 'arg0')]) + return + def register_Ns3WaypointMobilityModel_methods(root_module, cls): ## waypoint-mobility-model.h: ns3::WaypointMobilityModel::WaypointMobilityModel(ns3::WaypointMobilityModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::WaypointMobilityModel const &', 'arg0')]) @@ -679,6 +703,39 @@ def register_Ns3WaypointMobilityModel_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3WaypointValue_methods(root_module, cls): + ## waypoint.h: ns3::WaypointValue::WaypointValue() [constructor] + cls.add_constructor([]) + ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::WaypointValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WaypointValue const &', 'arg0')]) + ## waypoint.h: ns3::WaypointValue::WaypointValue(ns3::Waypoint const & value) [constructor] + cls.add_constructor([param('ns3::Waypoint const &', 'value')]) + ## waypoint.h: ns3::Ptr ns3::WaypointValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## waypoint.h: bool ns3::WaypointValue::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) + ## waypoint.h: ns3::Waypoint ns3::WaypointValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Waypoint', + [], + is_const=True) + ## waypoint.h: std::string ns3::WaypointValue::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) + ## waypoint.h: void ns3::WaypointValue::Set(ns3::Waypoint const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Waypoint const &', 'value')]) + return + def register_Ns3ConstantAccelerationMobilityModel_methods(root_module, cls): ## constant-acceleration-mobility-model.h: ns3::ConstantAccelerationMobilityModel::ConstantAccelerationMobilityModel(ns3::ConstantAccelerationMobilityModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::ConstantAccelerationMobilityModel const &', 'arg0')]) @@ -826,6 +883,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -841,6 +899,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_nix_vector_routing.py b/bindings/python/apidefs/gcc-LP64/ns3_module_nix_vector_routing.py index f027a698f..dcb57d5f0 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_nix_vector_routing.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_nix_vector_routing.py @@ -30,6 +30,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -66,6 +72,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -129,7 +139,7 @@ def register_Ns3Ipv4NixVectorRouting_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], visibility='private', is_virtual=True) - ## ipv4-nix-vector-routing.h: bool ns3::Ipv4NixVectorRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-nix-vector-routing.h: bool ns3::Ipv4NixVectorRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -151,6 +161,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -166,6 +177,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_node.py b/bindings/python/apidefs/gcc-LP64/ns3_module_node.py index 36d872341..e5fd2bd34 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_node.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_node.py @@ -59,66 +59,36 @@ def register_types(module): module.add_class('PacketSocketAddress') ## packet-socket-address.h: ns3::PacketSocketAddress [class] root_module['ns3::PacketSocketAddress'].implicitly_converts_to(root_module['ns3::Address']) - ## packetbb.h: ns3::PbbAddressBlock [class] - module.add_class('PbbAddressBlock', allow_subclassing=True) - ## packetbb.h: ns3::PbbAddressBlockIpv4 [class] - module.add_class('PbbAddressBlockIpv4', parent=root_module['ns3::PbbAddressBlock']) - ## packetbb.h: ns3::PbbAddressBlockIpv6 [class] - module.add_class('PbbAddressBlockIpv6', parent=root_module['ns3::PbbAddressBlock']) ## packetbb.h: ns3::PbbAddressTlvBlock [class] module.add_class('PbbAddressTlvBlock') - ## packetbb.h: ns3::PbbMessage [class] - module.add_class('PbbMessage', allow_subclassing=True) - ## packetbb.h: ns3::PbbMessageIpv4 [class] - module.add_class('PbbMessageIpv4', parent=root_module['ns3::PbbMessage']) - ## packetbb.h: ns3::PbbMessageIpv6 [class] - module.add_class('PbbMessageIpv6', parent=root_module['ns3::PbbMessage']) - ## packetbb.h: ns3::PbbTlv [class] - module.add_class('PbbTlv') ## packetbb.h: ns3::PbbTlvBlock [class] module.add_class('PbbTlvBlock') - ## ipv4-address.h: ns3::Ipv4AddressChecker [class] - module.add_class('Ipv4AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h: ns3::Ipv4AddressValue [class] - module.add_class('Ipv4AddressValue', parent=root_module['ns3::AttributeValue']) ## ipv4-header.h: ns3::Ipv4Header [class] module.add_class('Ipv4Header', parent=root_module['ns3::Header']) - ## ipv4-address.h: ns3::Ipv4MaskChecker [class] - module.add_class('Ipv4MaskChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv4-address.h: ns3::Ipv4MaskValue [class] - module.add_class('Ipv4MaskValue', parent=root_module['ns3::AttributeValue']) - ## ipv4-route.h: ns3::Ipv4MulticastRoute [class] - module.add_class('Ipv4MulticastRoute', parent=root_module['ns3::RefCountBase']) - ## ipv4-route.h: ns3::Ipv4Route [class] - module.add_class('Ipv4Route', parent=root_module['ns3::RefCountBase']) - ## ipv6-address.h: ns3::Ipv6AddressChecker [class] - module.add_class('Ipv6AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h: ns3::Ipv6AddressValue [class] - module.add_class('Ipv6AddressValue', parent=root_module['ns3::AttributeValue']) ## ipv6-header.h: ns3::Ipv6Header [class] module.add_class('Ipv6Header', parent=root_module['ns3::Header']) ## ipv6-header.h: ns3::Ipv6Header::NextHeader_e [enumeration] module.add_enum('NextHeader_e', ['IPV6_EXT_HOP_BY_HOP', 'IPV6_IPV4', 'IPV6_TCP', 'IPV6_UDP', 'IPV6_IPV6', 'IPV6_EXT_ROUTING', 'IPV6_EXT_FRAGMENTATION', 'IPV6_EXT_CONFIDENTIALITY', 'IPV6_EXT_AUTHENTIFICATION', 'IPV6_ICMPV6', 'IPV6_EXT_END', 'IPV6_EXT_DESTINATION', 'IPV6_SCTP', 'IPV6_EXT_MOBILITY', 'IPV6_UDP_LITE'], outer_class=root_module['ns3::Ipv6Header']) - ## ipv6-route.h: ns3::Ipv6MulticastRoute [class] - module.add_class('Ipv6MulticastRoute', parent=root_module['ns3::RefCountBase']) - ## ipv6-address.h: ns3::Ipv6PrefixChecker [class] - module.add_class('Ipv6PrefixChecker', parent=root_module['ns3::AttributeChecker']) - ## ipv6-address.h: ns3::Ipv6PrefixValue [class] - module.add_class('Ipv6PrefixValue', parent=root_module['ns3::AttributeValue']) - ## ipv6-route.h: ns3::Ipv6Route [class] - module.add_class('Ipv6Route', parent=root_module['ns3::RefCountBase']) ## llc-snap-header.h: ns3::LlcSnapHeader [class] module.add_class('LlcSnapHeader', parent=root_module['ns3::Header']) - ## mac48-address.h: ns3::Mac48AddressChecker [class] - module.add_class('Mac48AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## mac48-address.h: ns3::Mac48AddressValue [class] - module.add_class('Mac48AddressValue', parent=root_module['ns3::AttributeValue']) - ## packetbb.h: ns3::PbbAddressTlv [class] - module.add_class('PbbAddressTlv', parent=root_module['ns3::PbbTlv']) - ## packetbb.h: ns3::PbbPacket [class] - module.add_class('PbbPacket', parent=root_module['ns3::Header']) ## queue.h: ns3::Queue [class] module.add_class('Queue', parent=root_module['ns3::Object']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv4MulticastRoute', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv4Route', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv6MulticastRoute', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::Ipv6Route', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbAddressBlock', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbMessage', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbPacket', 'ns3::Header'], parent=root_module['ns3::Header']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::PbbTlv', 'ns3::empty'], parent=root_module['ns3::empty']) ## socket.h: ns3::Socket [class] module.add_class('Socket', parent=root_module['ns3::Object']) ## socket.h: ns3::Socket::SocketErrno [enumeration] @@ -139,10 +109,6 @@ def register_types(module): module.add_class('UdpSocket', parent=root_module['ns3::Socket']) ## udp-socket-factory.h: ns3::UdpSocketFactory [class] module.add_class('UdpSocketFactory', parent=root_module['ns3::SocketFactory']) - ## address.h: ns3::AddressChecker [class] - module.add_class('AddressChecker', parent=root_module['ns3::AttributeChecker']) - ## address.h: ns3::AddressValue [class] - module.add_class('AddressValue', parent=root_module['ns3::AttributeValue']) ## application.h: ns3::Application [class] module.add_class('Application', parent=root_module['ns3::Object']) ## channel.h: ns3::Channel [class] @@ -157,16 +123,44 @@ def register_types(module): module.add_class('EthernetTrailer', parent=root_module['ns3::Trailer']) ## ipv4.h: ns3::Ipv4 [class] module.add_class('Ipv4', parent=root_module['ns3::Object']) + ## ipv4-address.h: ns3::Ipv4AddressChecker [class] + module.add_class('Ipv4AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv4-address.h: ns3::Ipv4AddressValue [class] + module.add_class('Ipv4AddressValue', parent=root_module['ns3::AttributeValue']) + ## ipv4-address.h: ns3::Ipv4MaskChecker [class] + module.add_class('Ipv4MaskChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv4-address.h: ns3::Ipv4MaskValue [class] + module.add_class('Ipv4MaskValue', parent=root_module['ns3::AttributeValue']) + ## ipv4-route.h: ns3::Ipv4MulticastRoute [class] + module.add_class('Ipv4MulticastRoute', parent=root_module['ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty >']) ## ipv4-raw-socket-factory.h: ns3::Ipv4RawSocketFactory [class] module.add_class('Ipv4RawSocketFactory', parent=root_module['ns3::SocketFactory']) + ## ipv4-route.h: ns3::Ipv4Route [class] + module.add_class('Ipv4Route', parent=root_module['ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty >']) ## ipv4-routing-protocol.h: ns3::Ipv4RoutingProtocol [class] module.add_class('Ipv4RoutingProtocol', parent=root_module['ns3::Object']) ## ipv6.h: ns3::Ipv6 [class] module.add_class('Ipv6', parent=root_module['ns3::Object']) + ## ipv6-address.h: ns3::Ipv6AddressChecker [class] + module.add_class('Ipv6AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv6-address.h: ns3::Ipv6AddressValue [class] + module.add_class('Ipv6AddressValue', parent=root_module['ns3::AttributeValue']) + ## ipv6-route.h: ns3::Ipv6MulticastRoute [class] + module.add_class('Ipv6MulticastRoute', parent=root_module['ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty >']) + ## ipv6-address.h: ns3::Ipv6PrefixChecker [class] + module.add_class('Ipv6PrefixChecker', parent=root_module['ns3::AttributeChecker']) + ## ipv6-address.h: ns3::Ipv6PrefixValue [class] + module.add_class('Ipv6PrefixValue', parent=root_module['ns3::AttributeValue']) ## ipv6-raw-socket-factory.h: ns3::Ipv6RawSocketFactory [class] module.add_class('Ipv6RawSocketFactory', parent=root_module['ns3::SocketFactory']) + ## ipv6-route.h: ns3::Ipv6Route [class] + module.add_class('Ipv6Route', parent=root_module['ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty >']) ## ipv6-routing-protocol.h: ns3::Ipv6RoutingProtocol [class] module.add_class('Ipv6RoutingProtocol', parent=root_module['ns3::Object']) + ## mac48-address.h: ns3::Mac48AddressChecker [class] + module.add_class('Mac48AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## mac48-address.h: ns3::Mac48AddressValue [class] + module.add_class('Mac48AddressValue', parent=root_module['ns3::AttributeValue']) ## net-device.h: ns3::NetDevice [class] module.add_class('NetDevice', parent=root_module['ns3::Object']) ## net-device.h: ns3::NetDevice::PacketType [enumeration] @@ -175,10 +169,32 @@ def register_types(module): module.add_class('Node', parent=root_module['ns3::Object']) ## packet-socket-factory.h: ns3::PacketSocketFactory [class] module.add_class('PacketSocketFactory', parent=root_module['ns3::SocketFactory']) + ## packetbb.h: ns3::PbbAddressBlock [class] + module.add_class('PbbAddressBlock', parent=root_module['ns3::SimpleRefCount< ns3::PbbAddressBlock, ns3::empty >']) + ## packetbb.h: ns3::PbbAddressBlockIpv4 [class] + module.add_class('PbbAddressBlockIpv4', parent=root_module['ns3::PbbAddressBlock']) + ## packetbb.h: ns3::PbbAddressBlockIpv6 [class] + module.add_class('PbbAddressBlockIpv6', parent=root_module['ns3::PbbAddressBlock']) + ## packetbb.h: ns3::PbbMessage [class] + module.add_class('PbbMessage', parent=root_module['ns3::SimpleRefCount< ns3::PbbMessage, ns3::empty >']) + ## packetbb.h: ns3::PbbMessageIpv4 [class] + module.add_class('PbbMessageIpv4', parent=root_module['ns3::PbbMessage']) + ## packetbb.h: ns3::PbbMessageIpv6 [class] + module.add_class('PbbMessageIpv6', parent=root_module['ns3::PbbMessage']) + ## packetbb.h: ns3::PbbPacket [class] + module.add_class('PbbPacket', parent=root_module['ns3::SimpleRefCount< ns3::PbbPacket, ns3::Header >']) + ## packetbb.h: ns3::PbbTlv [class] + module.add_class('PbbTlv', parent=root_module['ns3::SimpleRefCount< ns3::PbbTlv, ns3::empty >']) ## simple-channel.h: ns3::SimpleChannel [class] module.add_class('SimpleChannel', parent=root_module['ns3::Channel']) ## simple-net-device.h: ns3::SimpleNetDevice [class] module.add_class('SimpleNetDevice', parent=root_module['ns3::NetDevice']) + ## address.h: ns3::AddressChecker [class] + module.add_class('AddressChecker', parent=root_module['ns3::AttributeChecker']) + ## address.h: ns3::AddressValue [class] + module.add_class('AddressValue', parent=root_module['ns3::AttributeValue']) + ## packetbb.h: ns3::PbbAddressTlv [class] + module.add_class('PbbAddressTlv', parent=root_module['ns3::PbbTlv']) module.add_container('ns3::olsr::MprSet', 'ns3::Ipv4Address', container_type='set') module.add_container('std::vector< ns3::Ipv4Address >', 'ns3::Ipv4Address', container_type='vector') @@ -200,6 +216,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -236,6 +258,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -269,34 +295,11 @@ def register_methods(root_module): register_Ns3Mac64Address_methods(root_module, root_module['ns3::Mac64Address']) register_Ns3NodeList_methods(root_module, root_module['ns3::NodeList']) register_Ns3PacketSocketAddress_methods(root_module, root_module['ns3::PacketSocketAddress']) - register_Ns3PbbAddressBlock_methods(root_module, root_module['ns3::PbbAddressBlock']) - register_Ns3PbbAddressBlockIpv4_methods(root_module, root_module['ns3::PbbAddressBlockIpv4']) - register_Ns3PbbAddressBlockIpv6_methods(root_module, root_module['ns3::PbbAddressBlockIpv6']) register_Ns3PbbAddressTlvBlock_methods(root_module, root_module['ns3::PbbAddressTlvBlock']) - register_Ns3PbbMessage_methods(root_module, root_module['ns3::PbbMessage']) - register_Ns3PbbMessageIpv4_methods(root_module, root_module['ns3::PbbMessageIpv4']) - register_Ns3PbbMessageIpv6_methods(root_module, root_module['ns3::PbbMessageIpv6']) - register_Ns3PbbTlv_methods(root_module, root_module['ns3::PbbTlv']) register_Ns3PbbTlvBlock_methods(root_module, root_module['ns3::PbbTlvBlock']) - register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker']) - register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue']) register_Ns3Ipv4Header_methods(root_module, root_module['ns3::Ipv4Header']) - register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker']) - register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue']) - register_Ns3Ipv4MulticastRoute_methods(root_module, root_module['ns3::Ipv4MulticastRoute']) - register_Ns3Ipv4Route_methods(root_module, root_module['ns3::Ipv4Route']) - register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker']) - register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue']) register_Ns3Ipv6Header_methods(root_module, root_module['ns3::Ipv6Header']) - register_Ns3Ipv6MulticastRoute_methods(root_module, root_module['ns3::Ipv6MulticastRoute']) - register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker']) - register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue']) - register_Ns3Ipv6Route_methods(root_module, root_module['ns3::Ipv6Route']) register_Ns3LlcSnapHeader_methods(root_module, root_module['ns3::LlcSnapHeader']) - register_Ns3Mac48AddressChecker_methods(root_module, root_module['ns3::Mac48AddressChecker']) - register_Ns3Mac48AddressValue_methods(root_module, root_module['ns3::Mac48AddressValue']) - register_Ns3PbbAddressTlv_methods(root_module, root_module['ns3::PbbAddressTlv']) - register_Ns3PbbPacket_methods(root_module, root_module['ns3::PbbPacket']) register_Ns3Queue_methods(root_module, root_module['ns3::Queue']) register_Ns3Socket_methods(root_module, root_module['ns3::Socket']) register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag']) @@ -307,24 +310,47 @@ def register_methods(root_module): register_Ns3TcpSocketFactory_methods(root_module, root_module['ns3::TcpSocketFactory']) register_Ns3UdpSocket_methods(root_module, root_module['ns3::UdpSocket']) register_Ns3UdpSocketFactory_methods(root_module, root_module['ns3::UdpSocketFactory']) - register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker']) - register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue']) register_Ns3Application_methods(root_module, root_module['ns3::Application']) register_Ns3Channel_methods(root_module, root_module['ns3::Channel']) register_Ns3DropTailQueue_methods(root_module, root_module['ns3::DropTailQueue']) register_Ns3EthernetHeader_methods(root_module, root_module['ns3::EthernetHeader']) register_Ns3EthernetTrailer_methods(root_module, root_module['ns3::EthernetTrailer']) register_Ns3Ipv4_methods(root_module, root_module['ns3::Ipv4']) + 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_Ns3Ipv4MulticastRoute_methods(root_module, root_module['ns3::Ipv4MulticastRoute']) register_Ns3Ipv4RawSocketFactory_methods(root_module, root_module['ns3::Ipv4RawSocketFactory']) + register_Ns3Ipv4Route_methods(root_module, root_module['ns3::Ipv4Route']) register_Ns3Ipv4RoutingProtocol_methods(root_module, root_module['ns3::Ipv4RoutingProtocol']) register_Ns3Ipv6_methods(root_module, root_module['ns3::Ipv6']) + register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker']) + register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue']) + register_Ns3Ipv6MulticastRoute_methods(root_module, root_module['ns3::Ipv6MulticastRoute']) + register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker']) + register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue']) register_Ns3Ipv6RawSocketFactory_methods(root_module, root_module['ns3::Ipv6RawSocketFactory']) + register_Ns3Ipv6Route_methods(root_module, root_module['ns3::Ipv6Route']) register_Ns3Ipv6RoutingProtocol_methods(root_module, root_module['ns3::Ipv6RoutingProtocol']) + 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_Ns3Node_methods(root_module, root_module['ns3::Node']) register_Ns3PacketSocketFactory_methods(root_module, root_module['ns3::PacketSocketFactory']) + register_Ns3PbbAddressBlock_methods(root_module, root_module['ns3::PbbAddressBlock']) + register_Ns3PbbAddressBlockIpv4_methods(root_module, root_module['ns3::PbbAddressBlockIpv4']) + register_Ns3PbbAddressBlockIpv6_methods(root_module, root_module['ns3::PbbAddressBlockIpv6']) + register_Ns3PbbMessage_methods(root_module, root_module['ns3::PbbMessage']) + register_Ns3PbbMessageIpv4_methods(root_module, root_module['ns3::PbbMessageIpv4']) + register_Ns3PbbMessageIpv6_methods(root_module, root_module['ns3::PbbMessageIpv6']) + register_Ns3PbbPacket_methods(root_module, root_module['ns3::PbbPacket']) + register_Ns3PbbTlv_methods(root_module, root_module['ns3::PbbTlv']) register_Ns3SimpleChannel_methods(root_module, root_module['ns3::SimpleChannel']) register_Ns3SimpleNetDevice_methods(root_module, root_module['ns3::SimpleNetDevice']) + register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker']) + register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue']) + register_Ns3PbbAddressTlv_methods(root_module, root_module['ns3::PbbAddressTlv']) return def register_Ns3Address_methods(root_module, cls): @@ -1254,341 +1280,6 @@ def register_Ns3PacketSocketAddress_methods(root_module, cls): [param('uint32_t', 'device')]) return -def register_Ns3PbbAddressBlock_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock(ns3::PbbAddressBlock const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressBlock const &', 'arg0')]) - ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressBack() const [member function] - cls.add_method('AddressBack', - 'ns3::Address', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressBegin() [member function] - cls.add_method('AddressBegin', - 'std::_List_iterator< ns3::Address >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressBegin() const [member function] - cls.add_method('AddressBegin', - 'std::_List_const_iterator< ns3::Address >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::AddressClear() [member function] - cls.add_method('AddressClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbAddressBlock::AddressEmpty() const [member function] - cls.add_method('AddressEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressEnd() [member function] - cls.add_method('AddressEnd', - 'std::_List_iterator< ns3::Address >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressEnd() const [member function] - cls.add_method('AddressEnd', - 'std::_List_const_iterator< ns3::Address >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator position) [member function] - cls.add_method('AddressErase', - 'std::_List_iterator< ns3::Address >', - [param('std::_List_iterator< ns3::Address >', 'position')]) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator first, std::_List_iterator last) [member function] - cls.add_method('AddressErase', - 'std::_List_iterator< ns3::Address >', - [param('std::_List_iterator< ns3::Address >', 'first'), param('std::_List_iterator< ns3::Address >', 'last')]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressFront() const [member function] - cls.add_method('AddressFront', - 'ns3::Address', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressInsert(std::_List_iterator position, ns3::Address const value) [member function] - cls.add_method('AddressInsert', - 'std::_List_iterator< ns3::Address >', - [param('std::_List_iterator< ns3::Address >', 'position'), param('ns3::Address const', 'value')]) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPopBack() [member function] - cls.add_method('AddressPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPopFront() [member function] - cls.add_method('AddressPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPushBack(ns3::Address address) [member function] - cls.add_method('AddressPushBack', - 'void', - [param('ns3::Address', 'address')]) - ## packetbb.h: void ns3::PbbAddressBlock::AddressPushFront(ns3::Address address) [member function] - cls.add_method('AddressPushFront', - 'void', - [param('ns3::Address', 'address')]) - ## packetbb.h: int ns3::PbbAddressBlock::AddressSize() const [member function] - cls.add_method('AddressSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Deserialize(ns3::Buffer::Iterator & start) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')]) - ## packetbb.h: uint32_t ns3::PbbAddressBlock::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixBack() const [member function] - cls.add_method('PrefixBack', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixBegin() [member function] - cls.add_method('PrefixBegin', - 'std::_List_iterator< unsigned char >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixBegin() const [member function] - cls.add_method('PrefixBegin', - 'std::_List_const_iterator< unsigned char >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixClear() [member function] - cls.add_method('PrefixClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbAddressBlock::PrefixEmpty() const [member function] - cls.add_method('PrefixEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixEnd() [member function] - cls.add_method('PrefixEnd', - 'std::_List_iterator< unsigned char >', - []) - ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixEnd() const [member function] - cls.add_method('PrefixEnd', - 'std::_List_const_iterator< unsigned char >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator position) [member function] - cls.add_method('PrefixErase', - 'std::_List_iterator< unsigned char >', - [param('std::_List_iterator< unsigned char >', 'position')]) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator first, std::_List_iterator last) [member function] - cls.add_method('PrefixErase', - 'std::_List_iterator< unsigned char >', - [param('std::_List_iterator< unsigned char >', 'first'), param('std::_List_iterator< unsigned char >', 'last')]) - ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixFront() const [member function] - cls.add_method('PrefixFront', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixInsert(std::_List_iterator position, uint8_t const value) [member function] - cls.add_method('PrefixInsert', - 'std::_List_iterator< unsigned char >', - [param('std::_List_iterator< unsigned char >', 'position'), param('uint8_t const', 'value')]) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopBack() [member function] - cls.add_method('PrefixPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopFront() [member function] - cls.add_method('PrefixPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushBack(uint8_t prefix) [member function] - cls.add_method('PrefixPushBack', - 'void', - [param('uint8_t', 'prefix')]) - ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushFront(uint8_t prefix) [member function] - cls.add_method('PrefixPushFront', - 'void', - [param('uint8_t', 'prefix')]) - ## packetbb.h: int ns3::PbbAddressBlock::PrefixSize() const [member function] - cls.add_method('PrefixSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os, int level) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os'), param('int', 'level')], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Serialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvBack() [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbAddressTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvBack() const [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbAddressTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvBegin() [member function] - cls.add_method('TlvBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvBegin() const [member function] - cls.add_method('TlvBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::TlvClear() [member function] - cls.add_method('TlvClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbAddressBlock::TlvEmpty() const [member function] - cls.add_method('TlvEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvEnd() [member function] - cls.add_method('TlvEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvEnd() const [member function] - cls.add_method('TlvEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > position) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'last')]) - ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvFront() [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbAddressTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvFront() const [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbAddressTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvInsert(std::_List_iterator > position, ns3::Ptr const value) [member function] - cls.add_method('TlvInsert', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position'), param('ns3::Ptr< ns3::PbbTlv > const', 'value')]) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPopBack() [member function] - cls.add_method('TlvPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPopFront() [member function] - cls.add_method('TlvPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPushBack(ns3::Ptr address) [member function] - cls.add_method('TlvPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) - ## packetbb.h: void ns3::PbbAddressBlock::TlvPushFront(ns3::Ptr address) [member function] - cls.add_method('TlvPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) - ## packetbb.h: int ns3::PbbAddressBlock::TlvSize() const [member function] - cls.add_method('TlvSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressBlock::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: ns3::Address ns3::PbbAddressBlock::DeserializeAddress(uint8_t * buffer) const [member function] - cls.add_method('DeserializeAddress', - 'ns3::Address', - [param('uint8_t *', 'buffer')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlock::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'uint8_t', - [], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlock::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] - cls.add_method('PrintAddress', - 'void', - [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlock::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] - cls.add_method('SerializeAddress', - 'void', - [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbAddressBlockIpv4_methods(root_module, cls): - ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4(ns3::PbbAddressBlockIpv4 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressBlockIpv4 const &', 'arg0')]) - ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv4::DeserializeAddress(uint8_t * buffer) const [member function] - cls.add_method('DeserializeAddress', - 'ns3::Address', - [param('uint8_t *', 'buffer')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv4::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'uint8_t', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv4::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] - cls.add_method('PrintAddress', - 'void', - [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv4::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] - cls.add_method('SerializeAddress', - 'void', - [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbAddressBlockIpv6_methods(root_module, cls): - ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6(ns3::PbbAddressBlockIpv6 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressBlockIpv6 const &', 'arg0')]) - ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv6::DeserializeAddress(uint8_t * buffer) const [member function] - cls.add_method('DeserializeAddress', - 'ns3::Address', - [param('uint8_t *', 'buffer')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv6::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'uint8_t', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv6::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] - cls.add_method('PrintAddress', - 'void', - [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbAddressBlockIpv6::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] - cls.add_method('SerializeAddress', - 'void', - [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], - is_const=True, visibility='protected', is_virtual=True) - return - def register_Ns3PbbAddressTlvBlock_methods(root_module, cls): cls.add_binary_comparison_operator('==') cls.add_binary_comparison_operator('!=') @@ -1692,480 +1383,6 @@ def register_Ns3PbbAddressTlvBlock_methods(root_module, cls): is_const=True) return -def register_Ns3PbbMessage_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbMessage::PbbMessage(ns3::PbbMessage const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbMessage const &', 'arg0')]) - ## packetbb.h: ns3::PbbMessage::PbbMessage() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockBack() [member function] - cls.add_method('AddressBlockBack', - 'ns3::Ptr< ns3::PbbAddressBlock >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockBack() const [member function] - cls.add_method('AddressBlockBack', - 'ns3::Ptr< ns3::PbbAddressBlock > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockBegin() [member function] - cls.add_method('AddressBlockBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockBegin() const [member function] - cls.add_method('AddressBlockBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::AddressBlockClear() [member function] - cls.add_method('AddressBlockClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbMessage::AddressBlockEmpty() const [member function] - cls.add_method('AddressBlockEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockEnd() [member function] - cls.add_method('AddressBlockEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockEnd() const [member function] - cls.add_method('AddressBlockEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > position) [member function] - cls.add_method('AddressBlockErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('AddressBlockErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'last')]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockFront() [member function] - cls.add_method('AddressBlockFront', - 'ns3::Ptr< ns3::PbbAddressBlock >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockFront() const [member function] - cls.add_method('AddressBlockFront', - 'ns3::Ptr< ns3::PbbAddressBlock > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPopBack() [member function] - cls.add_method('AddressBlockPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPopFront() [member function] - cls.add_method('AddressBlockPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPushBack(ns3::Ptr block) [member function] - cls.add_method('AddressBlockPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) - ## packetbb.h: void ns3::PbbMessage::AddressBlockPushFront(ns3::Ptr block) [member function] - cls.add_method('AddressBlockPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) - ## packetbb.h: int ns3::PbbMessage::AddressBlockSize() const [member function] - cls.add_method('AddressBlockSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Deserialize(ns3::Buffer::Iterator & start) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')]) - ## packetbb.h: static ns3::Ptr ns3::PbbMessage::DeserializeMessage(ns3::Buffer::Iterator & start) [member function] - cls.add_method('DeserializeMessage', - 'ns3::Ptr< ns3::PbbMessage >', - [param('ns3::Buffer::Iterator &', 'start')], - is_static=True) - ## packetbb.h: uint8_t ns3::PbbMessage::GetHopCount() const [member function] - cls.add_method('GetHopCount', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbMessage::GetHopLimit() const [member function] - cls.add_method('GetHopLimit', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: ns3::Address ns3::PbbMessage::GetOriginatorAddress() const [member function] - cls.add_method('GetOriginatorAddress', - 'ns3::Address', - [], - is_const=True) - ## packetbb.h: uint16_t ns3::PbbMessage::GetSequenceNumber() const [member function] - cls.add_method('GetSequenceNumber', - 'uint16_t', - [], - is_const=True) - ## packetbb.h: uint32_t ns3::PbbMessage::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbMessage::GetType() const [member function] - cls.add_method('GetType', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasHopCount() const [member function] - cls.add_method('HasHopCount', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasHopLimit() const [member function] - cls.add_method('HasHopLimit', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasOriginatorAddress() const [member function] - cls.add_method('HasOriginatorAddress', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbMessage::HasSequenceNumber() const [member function] - cls.add_method('HasSequenceNumber', - 'bool', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os, int level) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os'), param('int', 'level')], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Serialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::SetHopCount(uint8_t hopcount) [member function] - cls.add_method('SetHopCount', - 'void', - [param('uint8_t', 'hopcount')]) - ## packetbb.h: void ns3::PbbMessage::SetHopLimit(uint8_t hoplimit) [member function] - cls.add_method('SetHopLimit', - 'void', - [param('uint8_t', 'hoplimit')]) - ## packetbb.h: void ns3::PbbMessage::SetOriginatorAddress(ns3::Address address) [member function] - cls.add_method('SetOriginatorAddress', - 'void', - [param('ns3::Address', 'address')]) - ## packetbb.h: void ns3::PbbMessage::SetSequenceNumber(uint16_t seqnum) [member function] - cls.add_method('SetSequenceNumber', - 'void', - [param('uint16_t', 'seqnum')]) - ## packetbb.h: void ns3::PbbMessage::SetType(uint8_t type) [member function] - cls.add_method('SetType', - 'void', - [param('uint8_t', 'type')]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvBack() [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvBack() const [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvBegin() [member function] - cls.add_method('TlvBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvBegin() const [member function] - cls.add_method('TlvBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::TlvClear() [member function] - cls.add_method('TlvClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbMessage::TlvEmpty() const [member function] - cls.add_method('TlvEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvEnd() [member function] - cls.add_method('TlvEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvEnd() const [member function] - cls.add_method('TlvEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > position) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('TlvErase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvFront() [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvFront() const [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::TlvPopBack() [member function] - cls.add_method('TlvPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::TlvPopFront() [member function] - cls.add_method('TlvPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbMessage::TlvPushBack(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: void ns3::PbbMessage::TlvPushFront(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: int ns3::PbbMessage::TlvSize() const [member function] - cls.add_method('TlvSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbMessage::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('AddressBlockDeserialize', - 'ns3::Ptr< ns3::PbbAddressBlock >', - [param('ns3::Buffer::Iterator &', 'start')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::Address ns3::PbbMessage::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('DeserializeOriginatorAddress', - 'ns3::Address', - [param('ns3::Buffer::Iterator &', 'start')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessage::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'ns3::PbbAddressLength', - [], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessage::PrintOriginatorAddress(std::ostream & os) const [member function] - cls.add_method('PrintOriginatorAddress', - 'void', - [param('std::ostream &', 'os')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessage::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializeOriginatorAddress', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbMessageIpv4_methods(root_module, cls): - ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4(ns3::PbbMessageIpv4 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbMessageIpv4 const &', 'arg0')]) - ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv4::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('AddressBlockDeserialize', - 'ns3::Ptr< ns3::PbbAddressBlock >', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::Address ns3::PbbMessageIpv4::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('DeserializeOriginatorAddress', - 'ns3::Address', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv4::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'ns3::PbbAddressLength', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv4::PrintOriginatorAddress(std::ostream & os) const [member function] - cls.add_method('PrintOriginatorAddress', - 'void', - [param('std::ostream &', 'os')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv4::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializeOriginatorAddress', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbMessageIpv6_methods(root_module, cls): - ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6(ns3::PbbMessageIpv6 const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbMessageIpv6 const &', 'arg0')]) - ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv6::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('AddressBlockDeserialize', - 'ns3::Ptr< ns3::PbbAddressBlock >', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::Address ns3::PbbMessageIpv6::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('DeserializeOriginatorAddress', - 'ns3::Address', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv6::GetAddressLength() const [member function] - cls.add_method('GetAddressLength', - 'ns3::PbbAddressLength', - [], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv6::PrintOriginatorAddress(std::ostream & os) const [member function] - cls.add_method('PrintOriginatorAddress', - 'void', - [param('std::ostream &', 'os')], - is_const=True, visibility='protected', is_virtual=True) - ## packetbb.h: void ns3::PbbMessageIpv6::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializeOriginatorAddress', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected', is_virtual=True) - return - -def register_Ns3PbbTlv_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbTlv::PbbTlv(ns3::PbbTlv const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbTlv const &', 'arg0')]) - ## packetbb.h: ns3::PbbTlv::PbbTlv() [constructor] - cls.add_constructor([]) - ## packetbb.h: void ns3::PbbTlv::Deserialize(ns3::Buffer::Iterator & start) [member function] - cls.add_method('Deserialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')]) - ## packetbb.h: uint32_t ns3::PbbTlv::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbTlv::GetType() const [member function] - cls.add_method('GetType', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbTlv::GetTypeExt() const [member function] - cls.add_method('GetTypeExt', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: ns3::Buffer ns3::PbbTlv::GetValue() const [member function] - cls.add_method('GetValue', - 'ns3::Buffer', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbTlv::HasTypeExt() const [member function] - cls.add_method('HasTypeExt', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbTlv::HasValue() const [member function] - cls.add_method('HasValue', - 'bool', - [], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os, int level) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os'), param('int', 'level')], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::Serialize(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True) - ## packetbb.h: void ns3::PbbTlv::SetType(uint8_t type) [member function] - cls.add_method('SetType', - 'void', - [param('uint8_t', 'type')]) - ## packetbb.h: void ns3::PbbTlv::SetTypeExt(uint8_t type) [member function] - cls.add_method('SetTypeExt', - 'void', - [param('uint8_t', 'type')]) - ## packetbb.h: void ns3::PbbTlv::SetValue(ns3::Buffer start) [member function] - cls.add_method('SetValue', - 'void', - [param('ns3::Buffer', 'start')]) - ## packetbb.h: void ns3::PbbTlv::SetValue(uint8_t const * buffer, uint32_t size) [member function] - cls.add_method('SetValue', - 'void', - [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) - ## packetbb.h: void ns3::PbbTlv::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStart() const [member function] - cls.add_method('GetIndexStart', - 'uint8_t', - [], - is_const=True, visibility='protected') - ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStop() const [member function] - cls.add_method('GetIndexStop', - 'uint8_t', - [], - is_const=True, visibility='protected') - ## packetbb.h: bool ns3::PbbTlv::HasIndexStart() const [member function] - cls.add_method('HasIndexStart', - 'bool', - [], - is_const=True, visibility='protected') - ## packetbb.h: bool ns3::PbbTlv::HasIndexStop() const [member function] - cls.add_method('HasIndexStop', - 'bool', - [], - is_const=True, visibility='protected') - ## packetbb.h: bool ns3::PbbTlv::IsMultivalue() const [member function] - cls.add_method('IsMultivalue', - 'bool', - [], - is_const=True, visibility='protected') - ## packetbb.h: void ns3::PbbTlv::SetIndexStart(uint8_t index) [member function] - cls.add_method('SetIndexStart', - 'void', - [param('uint8_t', 'index')], - visibility='protected') - ## packetbb.h: void ns3::PbbTlv::SetIndexStop(uint8_t index) [member function] - cls.add_method('SetIndexStop', - 'void', - [param('uint8_t', 'index')], - visibility='protected') - ## packetbb.h: void ns3::PbbTlv::SetMultivalue(bool isMultivalue) [member function] - cls.add_method('SetMultivalue', - 'void', - [param('bool', 'isMultivalue')], - visibility='protected') - return - def register_Ns3PbbTlvBlock_methods(root_module, cls): cls.add_binary_comparison_operator('==') cls.add_binary_comparison_operator('!=') @@ -2269,46 +1486,6 @@ def register_Ns3PbbTlvBlock_methods(root_module, cls): is_const=True) return -def register_Ns3Ipv4AddressChecker_methods(root_module, cls): - ## ipv4-address.h: ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: 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: ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')]) - ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Address const &', 'value')]) - ## ipv4-address.h: 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: 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: ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-address.h: 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: void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Address const &', 'value')]) - return - def register_Ns3Ipv4Header_methods(root_module, cls): ## ipv4-header.h: ns3::Ipv4Header::Ipv4Header(ns3::Ipv4Header const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4Header const &', 'arg0')]) @@ -2453,177 +1630,6 @@ def register_Ns3Ipv4Header_methods(root_module, cls): [param('uint8_t', 'ttl')]) return -def register_Ns3Ipv4MaskChecker_methods(root_module, cls): - ## ipv4-address.h: ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: 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: ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor] - cls.add_constructor([]) - ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')]) - ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor] - cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')]) - ## ipv4-address.h: 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: 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: ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv4Mask', - [], - is_const=True) - ## ipv4-address.h: 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: void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv4Mask const &', 'value')]) - return - -def register_Ns3Ipv4MulticastRoute_methods(root_module, cls): - ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute(ns3::Ipv4MulticastRoute const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4MulticastRoute const &', 'arg0')]) - ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute() [constructor] - cls.add_constructor([]) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetGroup() const [member function] - cls.add_method('GetGroup', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetOrigin() const [member function] - cls.add_method('GetOrigin', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] - cls.add_method('GetOutputTtl', - 'uint32_t', - [param('uint32_t', 'oif')], - is_const=True) - ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetParent() const [member function] - cls.add_method('GetParent', - 'uint32_t', - [], - is_const=True) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetGroup(ns3::Ipv4Address const group) [member function] - cls.add_method('SetGroup', - 'void', - [param('ns3::Ipv4Address const', 'group')]) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOrigin(ns3::Ipv4Address const origin) [member function] - cls.add_method('SetOrigin', - 'void', - [param('ns3::Ipv4Address const', 'origin')]) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] - cls.add_method('SetOutputTtl', - 'void', - [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) - ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetParent(uint32_t iif) [member function] - cls.add_method('SetParent', - 'void', - [param('uint32_t', 'iif')]) - ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_INTERFACES [variable] - cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) - ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_TTL [variable] - cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) - return - -def register_Ns3Ipv4Route_methods(root_module, cls): - cls.add_output_stream_operator() - ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route(ns3::Ipv4Route const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv4Route const &', 'arg0')]) - ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route() [constructor] - cls.add_constructor([]) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetDestination() const [member function] - cls.add_method('GetDestination', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetGateway() const [member function] - cls.add_method('GetGateway', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: ns3::Ptr ns3::Ipv4Route::GetOutputDevice() const [member function] - cls.add_method('GetOutputDevice', - 'ns3::Ptr< ns3::NetDevice >', - [], - is_const=True) - ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetSource() const [member function] - cls.add_method('GetSource', - 'ns3::Ipv4Address', - [], - is_const=True) - ## ipv4-route.h: void ns3::Ipv4Route::SetDestination(ns3::Ipv4Address dest) [member function] - cls.add_method('SetDestination', - 'void', - [param('ns3::Ipv4Address', 'dest')]) - ## ipv4-route.h: void ns3::Ipv4Route::SetGateway(ns3::Ipv4Address gw) [member function] - cls.add_method('SetGateway', - 'void', - [param('ns3::Ipv4Address', 'gw')]) - ## ipv4-route.h: void ns3::Ipv4Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] - cls.add_method('SetOutputDevice', - 'void', - [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) - ## ipv4-route.h: void ns3::Ipv4Route::SetSource(ns3::Ipv4Address src) [member function] - cls.add_method('SetSource', - 'void', - [param('ns3::Ipv4Address', 'src')]) - return - -def register_Ns3Ipv6AddressChecker_methods(root_module, cls): - ## ipv6-address.h: ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: 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: ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')]) - ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Address const &', 'value')]) - ## ipv6-address.h: 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: 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: ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-address.h: 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: void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Address const &', 'value')]) - return - def register_Ns3Ipv6Header_methods(root_module, cls): ## ipv6-header.h: ns3::Ipv6Header::Ipv6Header(ns3::Ipv6Header const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv6Header const &', 'arg0')]) @@ -2724,138 +1730,6 @@ def register_Ns3Ipv6Header_methods(root_module, cls): [param('uint8_t', 'traffic')]) return -def register_Ns3Ipv6MulticastRoute_methods(root_module, cls): - cls.add_output_stream_operator() - ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute(ns3::Ipv6MulticastRoute const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6MulticastRoute const &', 'arg0')]) - ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute() [constructor] - cls.add_constructor([]) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetGroup() const [member function] - cls.add_method('GetGroup', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetOrigin() const [member function] - cls.add_method('GetOrigin', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] - cls.add_method('GetOutputTtl', - 'uint32_t', - [param('uint32_t', 'oif')], - is_const=True) - ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetParent() const [member function] - cls.add_method('GetParent', - 'uint32_t', - [], - is_const=True) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetGroup(ns3::Ipv6Address const group) [member function] - cls.add_method('SetGroup', - 'void', - [param('ns3::Ipv6Address const', 'group')]) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOrigin(ns3::Ipv6Address const origin) [member function] - cls.add_method('SetOrigin', - 'void', - [param('ns3::Ipv6Address const', 'origin')]) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] - cls.add_method('SetOutputTtl', - 'void', - [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) - ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetParent(uint32_t iif) [member function] - cls.add_method('SetParent', - 'void', - [param('uint32_t', 'iif')]) - ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_INTERFACES [variable] - cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) - ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_TTL [variable] - cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) - return - -def register_Ns3Ipv6PrefixChecker_methods(root_module, cls): - ## ipv6-address.h: ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: 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: ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor] - cls.add_constructor([]) - ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')]) - ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor] - cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')]) - ## ipv6-address.h: 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: 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: ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ipv6Prefix', - [], - is_const=True) - ## ipv6-address.h: 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: void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ipv6Prefix const &', 'value')]) - return - -def register_Ns3Ipv6Route_methods(root_module, cls): - cls.add_output_stream_operator() - ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route(ns3::Ipv6Route const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Ipv6Route const &', 'arg0')]) - ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route() [constructor] - cls.add_constructor([]) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetDestination() const [member function] - cls.add_method('GetDestination', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetGateway() const [member function] - cls.add_method('GetGateway', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: ns3::Ptr ns3::Ipv6Route::GetOutputDevice() const [member function] - cls.add_method('GetOutputDevice', - 'ns3::Ptr< ns3::NetDevice >', - [], - is_const=True) - ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetSource() const [member function] - cls.add_method('GetSource', - 'ns3::Ipv6Address', - [], - is_const=True) - ## ipv6-route.h: void ns3::Ipv6Route::SetDestination(ns3::Ipv6Address dest) [member function] - cls.add_method('SetDestination', - 'void', - [param('ns3::Ipv6Address', 'dest')]) - ## ipv6-route.h: void ns3::Ipv6Route::SetGateway(ns3::Ipv6Address gw) [member function] - cls.add_method('SetGateway', - 'void', - [param('ns3::Ipv6Address', 'gw')]) - ## ipv6-route.h: void ns3::Ipv6Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] - cls.add_method('SetOutputDevice', - 'void', - [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) - ## ipv6-route.h: void ns3::Ipv6Route::SetSource(ns3::Ipv6Address src) [member function] - cls.add_method('SetSource', - 'void', - [param('ns3::Ipv6Address', 'src')]) - return - def register_Ns3LlcSnapHeader_methods(root_module, cls): ## llc-snap-header.h: ns3::LlcSnapHeader::LlcSnapHeader(ns3::LlcSnapHeader const & arg0) [copy constructor] cls.add_constructor([param('ns3::LlcSnapHeader const &', 'arg0')]) @@ -2901,311 +1775,6 @@ def register_Ns3LlcSnapHeader_methods(root_module, cls): [param('uint16_t', 'type')]) return -def register_Ns3Mac48AddressChecker_methods(root_module, cls): - ## mac48-address.h: ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor] - cls.add_constructor([]) - ## mac48-address.h: 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: ns3::Mac48AddressValue::Mac48AddressValue() [constructor] - cls.add_constructor([]) - ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')]) - ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor] - cls.add_constructor([param('ns3::Mac48Address const &', 'value')]) - ## mac48-address.h: 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: 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: ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Mac48Address', - [], - is_const=True) - ## mac48-address.h: 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: void ns3::Mac48AddressValue::Set(ns3::Mac48Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Mac48Address const &', 'value')]) - return - -def register_Ns3PbbAddressTlv_methods(root_module, cls): - ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv() [constructor] - cls.add_constructor([]) - ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv(ns3::PbbAddressTlv const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbAddressTlv const &', 'arg0')]) - ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStart() const [member function] - cls.add_method('GetIndexStart', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStop() const [member function] - cls.add_method('GetIndexStop', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStart() const [member function] - cls.add_method('HasIndexStart', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStop() const [member function] - cls.add_method('HasIndexStop', - 'bool', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbAddressTlv::IsMultivalue() const [member function] - cls.add_method('IsMultivalue', - 'bool', - [], - is_const=True) - ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStart(uint8_t index) [member function] - cls.add_method('SetIndexStart', - 'void', - [param('uint8_t', 'index')]) - ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStop(uint8_t index) [member function] - cls.add_method('SetIndexStop', - 'void', - [param('uint8_t', 'index')]) - ## packetbb.h: void ns3::PbbAddressTlv::SetMultivalue(bool isMultivalue) [member function] - cls.add_method('SetMultivalue', - 'void', - [param('bool', 'isMultivalue')]) - return - -def register_Ns3PbbPacket_methods(root_module, cls): - cls.add_binary_comparison_operator('==') - cls.add_binary_comparison_operator('!=') - ## packetbb.h: ns3::PbbPacket::PbbPacket(ns3::PbbPacket const & arg0) [copy constructor] - cls.add_constructor([param('ns3::PbbPacket const &', 'arg0')]) - ## packetbb.h: ns3::PbbPacket::PbbPacket() [constructor] - cls.add_constructor([]) - ## packetbb.h: uint32_t ns3::PbbPacket::Deserialize(ns3::Buffer::Iterator start) [member function] - cls.add_method('Deserialize', - 'uint32_t', - [param('ns3::Buffer::Iterator', 'start')], - is_virtual=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'position')]) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] - cls.add_method('Erase', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'last')]) - ## packetbb.h: ns3::TypeId ns3::PbbPacket::GetInstanceTypeId() const [member function] - cls.add_method('GetInstanceTypeId', - 'ns3::TypeId', - [], - is_const=True, is_virtual=True) - ## packetbb.h: uint16_t ns3::PbbPacket::GetSequenceNumber() const [member function] - cls.add_method('GetSequenceNumber', - 'uint16_t', - [], - is_const=True) - ## packetbb.h: uint32_t ns3::PbbPacket::GetSerializedSize() const [member function] - cls.add_method('GetSerializedSize', - 'uint32_t', - [], - is_const=True, is_virtual=True) - ## packetbb.h: static ns3::TypeId ns3::PbbPacket::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## packetbb.h: uint8_t ns3::PbbPacket::GetVersion() const [member function] - cls.add_method('GetVersion', - 'uint8_t', - [], - is_const=True) - ## packetbb.h: bool ns3::PbbPacket::HasSequenceNumber() const [member function] - cls.add_method('HasSequenceNumber', - 'bool', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageBack() [member function] - cls.add_method('MessageBack', - 'ns3::Ptr< ns3::PbbMessage >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageBack() const [member function] - cls.add_method('MessageBack', - 'ns3::Ptr< ns3::PbbMessage > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageBegin() [member function] - cls.add_method('MessageBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageBegin() const [member function] - cls.add_method('MessageBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::MessageClear() [member function] - cls.add_method('MessageClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbPacket::MessageEmpty() const [member function] - cls.add_method('MessageEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageEnd() [member function] - cls.add_method('MessageEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageEnd() const [member function] - cls.add_method('MessageEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageFront() [member function] - cls.add_method('MessageFront', - 'ns3::Ptr< ns3::PbbMessage >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageFront() const [member function] - cls.add_method('MessageFront', - 'ns3::Ptr< ns3::PbbMessage > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::MessagePopBack() [member function] - cls.add_method('MessagePopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::MessagePopFront() [member function] - cls.add_method('MessagePopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::MessagePushBack(ns3::Ptr message) [member function] - cls.add_method('MessagePushBack', - 'void', - [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) - ## packetbb.h: void ns3::PbbPacket::MessagePushFront(ns3::Ptr message) [member function] - cls.add_method('MessagePushFront', - 'void', - [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) - ## packetbb.h: int ns3::PbbPacket::MessageSize() const [member function] - cls.add_method('MessageSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::Print(std::ostream & os) const [member function] - cls.add_method('Print', - 'void', - [param('std::ostream &', 'os')], - is_const=True, is_virtual=True) - ## packetbb.h: void ns3::PbbPacket::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::Serialize(ns3::Buffer::Iterator start) const [member function] - cls.add_method('Serialize', - 'void', - [param('ns3::Buffer::Iterator', 'start')], - is_const=True, is_virtual=True) - ## packetbb.h: void ns3::PbbPacket::SetSequenceNumber(uint16_t number) [member function] - cls.add_method('SetSequenceNumber', - 'void', - [param('uint16_t', 'number')]) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvBack() [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvBack() const [member function] - cls.add_method('TlvBack', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvBegin() [member function] - cls.add_method('TlvBegin', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvBegin() const [member function] - cls.add_method('TlvBegin', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::TlvClear() [member function] - cls.add_method('TlvClear', - 'void', - []) - ## packetbb.h: bool ns3::PbbPacket::TlvEmpty() const [member function] - cls.add_method('TlvEmpty', - 'bool', - [], - is_const=True) - ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvEnd() [member function] - cls.add_method('TlvEnd', - 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', - []) - ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvEnd() const [member function] - cls.add_method('TlvEnd', - 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', - [], - is_const=True) - ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvFront() [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv >', - []) - ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvFront() const [member function] - cls.add_method('TlvFront', - 'ns3::Ptr< ns3::PbbTlv > const', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::TlvPopBack() [member function] - cls.add_method('TlvPopBack', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::TlvPopFront() [member function] - cls.add_method('TlvPopFront', - 'void', - []) - ## packetbb.h: void ns3::PbbPacket::TlvPushBack(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushBack', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: void ns3::PbbPacket::TlvPushFront(ns3::Ptr tlv) [member function] - cls.add_method('TlvPushFront', - 'void', - [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) - ## packetbb.h: int ns3::PbbPacket::TlvSize() const [member function] - cls.add_method('TlvSize', - 'int', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## packetbb.h: void ns3::PbbPacket::SerializePacketTlv(ns3::Buffer::Iterator & start) const [member function] - cls.add_method('SerializePacketTlv', - 'void', - [param('ns3::Buffer::Iterator &', 'start')], - is_const=True, visibility='protected') - return - def register_Ns3Queue_methods(root_module, cls): ## queue.h: ns3::Queue::Queue(ns3::Queue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Queue const &', 'arg0')]) @@ -3855,46 +2424,6 @@ def register_Ns3UdpSocketFactory_methods(root_module, cls): is_static=True) return -def register_Ns3AddressChecker_methods(root_module, cls): - ## address.h: ns3::AddressChecker::AddressChecker() [constructor] - cls.add_constructor([]) - ## address.h: 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: ns3::AddressValue::AddressValue() [constructor] - cls.add_constructor([]) - ## address.h: ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::AddressValue const &', 'arg0')]) - ## address.h: ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor] - cls.add_constructor([param('ns3::Address const &', 'value')]) - ## address.h: ns3::Ptr ns3::AddressValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## address.h: 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: ns3::Address ns3::AddressValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Address', - [], - is_const=True) - ## address.h: 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: void ns3::AddressValue::Set(ns3::Address const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Address const &', 'value')]) - return - def register_Ns3Application_methods(root_module, cls): ## application.h: ns3::Application::Application(ns3::Application const & arg0) [copy constructor] cls.add_constructor([param('ns3::Application const &', 'arg0')]) @@ -3914,27 +2443,24 @@ def register_Ns3Application_methods(root_module, cls): cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')]) - ## application.h: void ns3::Application::Start(ns3::Time const & startTime) [member function] - cls.add_method('Start', + ## application.h: void ns3::Application::SetStartTime(ns3::Time start) [member function] + cls.add_method('SetStartTime', 'void', - [param('ns3::Time const &', 'startTime')]) - ## application.h: void ns3::Application::Start(ns3::RandomVariable const & startVariable) [member function] - cls.add_method('Start', + [param('ns3::Time', 'start')]) + ## application.h: void ns3::Application::SetStopTime(ns3::Time stop) [member function] + cls.add_method('SetStopTime', 'void', - [param('ns3::RandomVariable const &', 'startVariable')]) - ## application.h: void ns3::Application::Stop(ns3::Time const & stopTime) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::Time const &', 'stopTime')]) - ## application.h: void ns3::Application::Stop(ns3::RandomVariable const & stopVariable) [member function] - cls.add_method('Stop', - 'void', - [param('ns3::RandomVariable const &', 'stopVariable')]) + [param('ns3::Time', 'stop')]) ## application.h: void ns3::Application::DoDispose() [member function] cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True) + ## application.h: void ns3::Application::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## application.h: void ns3::Application::StartApplication() [member function] cls.add_method('StartApplication', 'void', @@ -4228,6 +2754,11 @@ def register_Ns3Ipv4_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) + ## ipv4.h: bool ns3::Ipv4::IsDestinationAddress(ns3::Ipv4Address address, uint32_t iif) const [member function] + cls.add_method('IsDestinationAddress', + 'bool', + [param('ns3::Ipv4Address', 'address'), param('uint32_t', 'iif')], + is_pure_virtual=True, is_const=True, is_virtual=True) ## ipv4.h: bool ns3::Ipv4::IsForwarding(uint32_t interface) const [member function] cls.add_method('IsForwarding', 'bool', @@ -4275,11 +2806,148 @@ def register_Ns3Ipv4_methods(root_module, cls): 'bool', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) + ## ipv4.h: bool ns3::Ipv4::GetWeakEsModel() const [member function] + cls.add_method('GetWeakEsModel', + 'bool', + [], + is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) ## ipv4.h: void ns3::Ipv4::SetIpForward(bool forward) [member function] cls.add_method('SetIpForward', 'void', [param('bool', 'forward')], is_pure_virtual=True, visibility='private', is_virtual=True) + ## ipv4.h: void ns3::Ipv4::SetWeakEsModel(bool model) [member function] + cls.add_method('SetWeakEsModel', + 'void', + [param('bool', 'model')], + is_pure_virtual=True, visibility='private', is_virtual=True) + return + +def register_Ns3Ipv4AddressChecker_methods(root_module, cls): + ## ipv4-address.h: ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: 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: ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')]) + ## ipv4-address.h: ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor] + cls.add_constructor([param('ns3::Ipv4Address const &', 'value')]) + ## ipv4-address.h: 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: 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: ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-address.h: 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: 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: ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: 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: ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor] + cls.add_constructor([]) + ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')]) + ## ipv4-address.h: ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor] + cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')]) + ## ipv4-address.h: 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: 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: ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv4Mask', + [], + is_const=True) + ## ipv4-address.h: 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: void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ipv4Mask const &', 'value')]) + return + +def register_Ns3Ipv4MulticastRoute_methods(root_module, cls): + ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute(ns3::Ipv4MulticastRoute const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4MulticastRoute const &', 'arg0')]) + ## ipv4-route.h: ns3::Ipv4MulticastRoute::Ipv4MulticastRoute() [constructor] + cls.add_constructor([]) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetGroup() const [member function] + cls.add_method('GetGroup', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] + cls.add_method('GetOutputTtl', + 'uint32_t', + [param('uint32_t', 'oif')], + is_const=True) + ## ipv4-route.h: uint32_t ns3::Ipv4MulticastRoute::GetParent() const [member function] + cls.add_method('GetParent', + 'uint32_t', + [], + is_const=True) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetGroup(ns3::Ipv4Address const group) [member function] + cls.add_method('SetGroup', + 'void', + [param('ns3::Ipv4Address const', 'group')]) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOrigin(ns3::Ipv4Address const origin) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv4Address const', 'origin')]) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] + cls.add_method('SetOutputTtl', + 'void', + [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) + ## ipv4-route.h: void ns3::Ipv4MulticastRoute::SetParent(uint32_t iif) [member function] + cls.add_method('SetParent', + 'void', + [param('uint32_t', 'iif')]) + ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_INTERFACES [variable] + cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) + ## ipv4-route.h: ns3::Ipv4MulticastRoute::MAX_TTL [variable] + cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) return def register_Ns3Ipv4RawSocketFactory_methods(root_module, cls): @@ -4294,6 +2962,50 @@ def register_Ns3Ipv4RawSocketFactory_methods(root_module, cls): is_static=True) return +def register_Ns3Ipv4Route_methods(root_module, cls): + cls.add_output_stream_operator() + ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route(ns3::Ipv4Route const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4Route const &', 'arg0')]) + ## ipv4-route.h: ns3::Ipv4Route::Ipv4Route() [constructor] + cls.add_constructor([]) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetDestination() const [member function] + cls.add_method('GetDestination', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetGateway() const [member function] + cls.add_method('GetGateway', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: ns3::Ptr ns3::Ipv4Route::GetOutputDevice() const [member function] + cls.add_method('GetOutputDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## ipv4-route.h: ns3::Ipv4Address ns3::Ipv4Route::GetSource() const [member function] + cls.add_method('GetSource', + 'ns3::Ipv4Address', + [], + is_const=True) + ## ipv4-route.h: void ns3::Ipv4Route::SetDestination(ns3::Ipv4Address dest) [member function] + cls.add_method('SetDestination', + 'void', + [param('ns3::Ipv4Address', 'dest')]) + ## ipv4-route.h: void ns3::Ipv4Route::SetGateway(ns3::Ipv4Address gw) [member function] + cls.add_method('SetGateway', + 'void', + [param('ns3::Ipv4Address', 'gw')]) + ## ipv4-route.h: void ns3::Ipv4Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] + cls.add_method('SetOutputDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) + ## ipv4-route.h: void ns3::Ipv4Route::SetSource(ns3::Ipv4Address src) [member function] + cls.add_method('SetSource', + 'void', + [param('ns3::Ipv4Address', 'src')]) + return + def register_Ns3Ipv4RoutingProtocol_methods(root_module, cls): ## ipv4-routing-protocol.h: ns3::Ipv4RoutingProtocol::Ipv4RoutingProtocol() [constructor] cls.add_constructor([]) @@ -4324,7 +3036,7 @@ def register_Ns3Ipv4RoutingProtocol_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], is_pure_virtual=True, is_virtual=True) - ## ipv4-routing-protocol.h: bool ns3::Ipv4RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-routing-protocol.h: bool ns3::Ipv4RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -4465,6 +3177,134 @@ def register_Ns3Ipv6_methods(root_module, cls): is_pure_virtual=True, visibility='private', is_virtual=True) return +def register_Ns3Ipv6AddressChecker_methods(root_module, cls): + ## ipv6-address.h: ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: 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: ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')]) + ## ipv6-address.h: ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor] + cls.add_constructor([param('ns3::Ipv6Address const &', 'value')]) + ## ipv6-address.h: 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: 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: ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-address.h: 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: void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ipv6Address const &', 'value')]) + return + +def register_Ns3Ipv6MulticastRoute_methods(root_module, cls): + cls.add_output_stream_operator() + ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute(ns3::Ipv6MulticastRoute const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6MulticastRoute const &', 'arg0')]) + ## ipv6-route.h: ns3::Ipv6MulticastRoute::Ipv6MulticastRoute() [constructor] + cls.add_constructor([]) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetGroup() const [member function] + cls.add_method('GetGroup', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetOrigin() const [member function] + cls.add_method('GetOrigin', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetOutputTtl(uint32_t oif) const [member function] + cls.add_method('GetOutputTtl', + 'uint32_t', + [param('uint32_t', 'oif')], + is_const=True) + ## ipv6-route.h: uint32_t ns3::Ipv6MulticastRoute::GetParent() const [member function] + cls.add_method('GetParent', + 'uint32_t', + [], + is_const=True) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetGroup(ns3::Ipv6Address const group) [member function] + cls.add_method('SetGroup', + 'void', + [param('ns3::Ipv6Address const', 'group')]) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOrigin(ns3::Ipv6Address const origin) [member function] + cls.add_method('SetOrigin', + 'void', + [param('ns3::Ipv6Address const', 'origin')]) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function] + cls.add_method('SetOutputTtl', + 'void', + [param('uint32_t', 'oif'), param('uint32_t', 'ttl')]) + ## ipv6-route.h: void ns3::Ipv6MulticastRoute::SetParent(uint32_t iif) [member function] + cls.add_method('SetParent', + 'void', + [param('uint32_t', 'iif')]) + ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_INTERFACES [variable] + cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True) + ## ipv6-route.h: ns3::Ipv6MulticastRoute::MAX_TTL [variable] + cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True) + return + +def register_Ns3Ipv6PrefixChecker_methods(root_module, cls): + ## ipv6-address.h: ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: 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: ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor] + cls.add_constructor([]) + ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')]) + ## ipv6-address.h: ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor] + cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')]) + ## ipv6-address.h: 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: 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: ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ipv6Prefix', + [], + is_const=True) + ## ipv6-address.h: 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: void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ipv6Prefix const &', 'value')]) + return + def register_Ns3Ipv6RawSocketFactory_methods(root_module, cls): ## ipv6-raw-socket-factory.h: ns3::Ipv6RawSocketFactory::Ipv6RawSocketFactory() [constructor] cls.add_constructor([]) @@ -4477,6 +3317,50 @@ def register_Ns3Ipv6RawSocketFactory_methods(root_module, cls): is_static=True) return +def register_Ns3Ipv6Route_methods(root_module, cls): + cls.add_output_stream_operator() + ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route(ns3::Ipv6Route const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6Route const &', 'arg0')]) + ## ipv6-route.h: ns3::Ipv6Route::Ipv6Route() [constructor] + cls.add_constructor([]) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetDestination() const [member function] + cls.add_method('GetDestination', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetGateway() const [member function] + cls.add_method('GetGateway', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: ns3::Ptr ns3::Ipv6Route::GetOutputDevice() const [member function] + cls.add_method('GetOutputDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## ipv6-route.h: ns3::Ipv6Address ns3::Ipv6Route::GetSource() const [member function] + cls.add_method('GetSource', + 'ns3::Ipv6Address', + [], + is_const=True) + ## ipv6-route.h: void ns3::Ipv6Route::SetDestination(ns3::Ipv6Address dest) [member function] + cls.add_method('SetDestination', + 'void', + [param('ns3::Ipv6Address', 'dest')]) + ## ipv6-route.h: void ns3::Ipv6Route::SetGateway(ns3::Ipv6Address gw) [member function] + cls.add_method('SetGateway', + 'void', + [param('ns3::Ipv6Address', 'gw')]) + ## ipv6-route.h: void ns3::Ipv6Route::SetOutputDevice(ns3::Ptr outputDevice) [member function] + cls.add_method('SetOutputDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')]) + ## ipv6-route.h: void ns3::Ipv6Route::SetSource(ns3::Ipv6Address src) [member function] + cls.add_method('SetSource', + 'void', + [param('ns3::Ipv6Address', 'src')]) + return + def register_Ns3Ipv6RoutingProtocol_methods(root_module, cls): ## ipv6-routing-protocol.h: ns3::Ipv6RoutingProtocol::Ipv6RoutingProtocol() [constructor] cls.add_constructor([]) @@ -4534,6 +3418,46 @@ def register_Ns3Ipv6RoutingProtocol_methods(root_module, cls): is_pure_virtual=True, is_virtual=True) return +def register_Ns3Mac48AddressChecker_methods(root_module, cls): + ## mac48-address.h: ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor] + cls.add_constructor([]) + ## mac48-address.h: 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: ns3::Mac48AddressValue::Mac48AddressValue() [constructor] + cls.add_constructor([]) + ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')]) + ## mac48-address.h: ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor] + cls.add_constructor([param('ns3::Mac48Address const &', 'value')]) + ## mac48-address.h: 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: 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: ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Mac48Address', + [], + is_const=True) + ## mac48-address.h: 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: 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: ns3::NetDevice::NetDevice() [constructor] cls.add_constructor([]) @@ -4734,6 +3658,11 @@ def register_Ns3Node_methods(root_module, cls): 'void', [], visibility='protected', is_virtual=True) + ## node.h: void ns3::Node::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## node.h: void ns3::Node::NotifyDeviceAdded(ns3::Ptr device) [member function] cls.add_method('NotifyDeviceAdded', 'void', @@ -4758,6 +3687,996 @@ def register_Ns3PacketSocketFactory_methods(root_module, cls): is_static=True) return +def register_Ns3PbbAddressBlock_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock(ns3::PbbAddressBlock const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressBlock const &', 'arg0')]) + ## packetbb.h: ns3::PbbAddressBlock::PbbAddressBlock() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressBack() const [member function] + cls.add_method('AddressBack', + 'ns3::Address', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressBegin() [member function] + cls.add_method('AddressBegin', + 'std::_List_iterator< ns3::Address >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressBegin() const [member function] + cls.add_method('AddressBegin', + 'std::_List_const_iterator< ns3::Address >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::AddressClear() [member function] + cls.add_method('AddressClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbAddressBlock::AddressEmpty() const [member function] + cls.add_method('AddressEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressEnd() [member function] + cls.add_method('AddressEnd', + 'std::_List_iterator< ns3::Address >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::AddressEnd() const [member function] + cls.add_method('AddressEnd', + 'std::_List_const_iterator< ns3::Address >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator position) [member function] + cls.add_method('AddressErase', + 'std::_List_iterator< ns3::Address >', + [param('std::_List_iterator< ns3::Address >', 'position')]) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressErase(std::_List_iterator first, std::_List_iterator last) [member function] + cls.add_method('AddressErase', + 'std::_List_iterator< ns3::Address >', + [param('std::_List_iterator< ns3::Address >', 'first'), param('std::_List_iterator< ns3::Address >', 'last')]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlock::AddressFront() const [member function] + cls.add_method('AddressFront', + 'ns3::Address', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::AddressInsert(std::_List_iterator position, ns3::Address const value) [member function] + cls.add_method('AddressInsert', + 'std::_List_iterator< ns3::Address >', + [param('std::_List_iterator< ns3::Address >', 'position'), param('ns3::Address const', 'value')]) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPopBack() [member function] + cls.add_method('AddressPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPopFront() [member function] + cls.add_method('AddressPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPushBack(ns3::Address address) [member function] + cls.add_method('AddressPushBack', + 'void', + [param('ns3::Address', 'address')]) + ## packetbb.h: void ns3::PbbAddressBlock::AddressPushFront(ns3::Address address) [member function] + cls.add_method('AddressPushFront', + 'void', + [param('ns3::Address', 'address')]) + ## packetbb.h: int ns3::PbbAddressBlock::AddressSize() const [member function] + cls.add_method('AddressSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Deserialize(ns3::Buffer::Iterator & start) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')]) + ## packetbb.h: uint32_t ns3::PbbAddressBlock::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixBack() const [member function] + cls.add_method('PrefixBack', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixBegin() [member function] + cls.add_method('PrefixBegin', + 'std::_List_iterator< unsigned char >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixBegin() const [member function] + cls.add_method('PrefixBegin', + 'std::_List_const_iterator< unsigned char >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixClear() [member function] + cls.add_method('PrefixClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbAddressBlock::PrefixEmpty() const [member function] + cls.add_method('PrefixEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixEnd() [member function] + cls.add_method('PrefixEnd', + 'std::_List_iterator< unsigned char >', + []) + ## packetbb.h: std::_List_const_iterator ns3::PbbAddressBlock::PrefixEnd() const [member function] + cls.add_method('PrefixEnd', + 'std::_List_const_iterator< unsigned char >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator position) [member function] + cls.add_method('PrefixErase', + 'std::_List_iterator< unsigned char >', + [param('std::_List_iterator< unsigned char >', 'position')]) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixErase(std::_List_iterator first, std::_List_iterator last) [member function] + cls.add_method('PrefixErase', + 'std::_List_iterator< unsigned char >', + [param('std::_List_iterator< unsigned char >', 'first'), param('std::_List_iterator< unsigned char >', 'last')]) + ## packetbb.h: uint8_t ns3::PbbAddressBlock::PrefixFront() const [member function] + cls.add_method('PrefixFront', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: std::_List_iterator ns3::PbbAddressBlock::PrefixInsert(std::_List_iterator position, uint8_t const value) [member function] + cls.add_method('PrefixInsert', + 'std::_List_iterator< unsigned char >', + [param('std::_List_iterator< unsigned char >', 'position'), param('uint8_t const', 'value')]) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopBack() [member function] + cls.add_method('PrefixPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPopFront() [member function] + cls.add_method('PrefixPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushBack(uint8_t prefix) [member function] + cls.add_method('PrefixPushBack', + 'void', + [param('uint8_t', 'prefix')]) + ## packetbb.h: void ns3::PbbAddressBlock::PrefixPushFront(uint8_t prefix) [member function] + cls.add_method('PrefixPushFront', + 'void', + [param('uint8_t', 'prefix')]) + ## packetbb.h: int ns3::PbbAddressBlock::PrefixSize() const [member function] + cls.add_method('PrefixSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Print(std::ostream & os, int level) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os'), param('int', 'level')], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::Serialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvBack() [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbAddressTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvBack() const [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbAddressTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvBegin() [member function] + cls.add_method('TlvBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvBegin() const [member function] + cls.add_method('TlvBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressBlock::TlvClear() [member function] + cls.add_method('TlvClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbAddressBlock::TlvEmpty() const [member function] + cls.add_method('TlvEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvEnd() [member function] + cls.add_method('TlvEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbAddressBlock::TlvEnd() const [member function] + cls.add_method('TlvEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > position) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'last')]) + ## packetbb.h: ns3::Ptr ns3::PbbAddressBlock::TlvFront() [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbAddressTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbAddressBlock::TlvFront() const [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbAddressTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbAddressBlock::TlvInsert(std::_List_iterator > position, ns3::Ptr const value) [member function] + cls.add_method('TlvInsert', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressTlv > >', 'position'), param('ns3::Ptr< ns3::PbbTlv > const', 'value')]) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPopBack() [member function] + cls.add_method('TlvPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPopFront() [member function] + cls.add_method('TlvPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPushBack(ns3::Ptr address) [member function] + cls.add_method('TlvPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) + ## packetbb.h: void ns3::PbbAddressBlock::TlvPushFront(ns3::Ptr address) [member function] + cls.add_method('TlvPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbAddressTlv >', 'address')]) + ## packetbb.h: int ns3::PbbAddressBlock::TlvSize() const [member function] + cls.add_method('TlvSize', + 'int', + [], + is_const=True) + ## packetbb.h: ns3::Address ns3::PbbAddressBlock::DeserializeAddress(uint8_t * buffer) const [member function] + cls.add_method('DeserializeAddress', + 'ns3::Address', + [param('uint8_t *', 'buffer')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlock::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'uint8_t', + [], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlock::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] + cls.add_method('PrintAddress', + 'void', + [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlock::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] + cls.add_method('SerializeAddress', + 'void', + [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbAddressBlockIpv4_methods(root_module, cls): + ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4(ns3::PbbAddressBlockIpv4 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressBlockIpv4 const &', 'arg0')]) + ## packetbb.h: ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv4::DeserializeAddress(uint8_t * buffer) const [member function] + cls.add_method('DeserializeAddress', + 'ns3::Address', + [param('uint8_t *', 'buffer')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv4::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'uint8_t', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv4::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] + cls.add_method('PrintAddress', + 'void', + [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv4::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] + cls.add_method('SerializeAddress', + 'void', + [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbAddressBlockIpv6_methods(root_module, cls): + ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6(ns3::PbbAddressBlockIpv6 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressBlockIpv6 const &', 'arg0')]) + ## packetbb.h: ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Address ns3::PbbAddressBlockIpv6::DeserializeAddress(uint8_t * buffer) const [member function] + cls.add_method('DeserializeAddress', + 'ns3::Address', + [param('uint8_t *', 'buffer')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: uint8_t ns3::PbbAddressBlockIpv6::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'uint8_t', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv6::PrintAddress(std::ostream & os, std::_List_const_iterator iter) const [member function] + cls.add_method('PrintAddress', + 'void', + [param('std::ostream &', 'os'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbAddressBlockIpv6::SerializeAddress(uint8_t * buffer, std::_List_const_iterator iter) const [member function] + cls.add_method('SerializeAddress', + 'void', + [param('uint8_t *', 'buffer'), param('std::_List_const_iterator< ns3::Address >', 'iter')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbMessage_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbMessage::PbbMessage(ns3::PbbMessage const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbMessage const &', 'arg0')]) + ## packetbb.h: ns3::PbbMessage::PbbMessage() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockBack() [member function] + cls.add_method('AddressBlockBack', + 'ns3::Ptr< ns3::PbbAddressBlock >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockBack() const [member function] + cls.add_method('AddressBlockBack', + 'ns3::Ptr< ns3::PbbAddressBlock > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockBegin() [member function] + cls.add_method('AddressBlockBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockBegin() const [member function] + cls.add_method('AddressBlockBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::AddressBlockClear() [member function] + cls.add_method('AddressBlockClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbMessage::AddressBlockEmpty() const [member function] + cls.add_method('AddressBlockEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockEnd() [member function] + cls.add_method('AddressBlockEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::AddressBlockEnd() const [member function] + cls.add_method('AddressBlockEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > position) [member function] + cls.add_method('AddressBlockErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::AddressBlockErase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('AddressBlockErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbAddressBlock > >', 'last')]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockFront() [member function] + cls.add_method('AddressBlockFront', + 'ns3::Ptr< ns3::PbbAddressBlock >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::AddressBlockFront() const [member function] + cls.add_method('AddressBlockFront', + 'ns3::Ptr< ns3::PbbAddressBlock > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPopBack() [member function] + cls.add_method('AddressBlockPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPopFront() [member function] + cls.add_method('AddressBlockPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPushBack(ns3::Ptr block) [member function] + cls.add_method('AddressBlockPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) + ## packetbb.h: void ns3::PbbMessage::AddressBlockPushFront(ns3::Ptr block) [member function] + cls.add_method('AddressBlockPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbAddressBlock >', 'block')]) + ## packetbb.h: int ns3::PbbMessage::AddressBlockSize() const [member function] + cls.add_method('AddressBlockSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Deserialize(ns3::Buffer::Iterator & start) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')]) + ## packetbb.h: static ns3::Ptr ns3::PbbMessage::DeserializeMessage(ns3::Buffer::Iterator & start) [member function] + cls.add_method('DeserializeMessage', + 'ns3::Ptr< ns3::PbbMessage >', + [param('ns3::Buffer::Iterator &', 'start')], + is_static=True) + ## packetbb.h: uint8_t ns3::PbbMessage::GetHopCount() const [member function] + cls.add_method('GetHopCount', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbMessage::GetHopLimit() const [member function] + cls.add_method('GetHopLimit', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: ns3::Address ns3::PbbMessage::GetOriginatorAddress() const [member function] + cls.add_method('GetOriginatorAddress', + 'ns3::Address', + [], + is_const=True) + ## packetbb.h: uint16_t ns3::PbbMessage::GetSequenceNumber() const [member function] + cls.add_method('GetSequenceNumber', + 'uint16_t', + [], + is_const=True) + ## packetbb.h: uint32_t ns3::PbbMessage::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbMessage::GetType() const [member function] + cls.add_method('GetType', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasHopCount() const [member function] + cls.add_method('HasHopCount', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasHopLimit() const [member function] + cls.add_method('HasHopLimit', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasOriginatorAddress() const [member function] + cls.add_method('HasOriginatorAddress', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbMessage::HasSequenceNumber() const [member function] + cls.add_method('HasSequenceNumber', + 'bool', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Print(std::ostream & os, int level) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os'), param('int', 'level')], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::Serialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::SetHopCount(uint8_t hopcount) [member function] + cls.add_method('SetHopCount', + 'void', + [param('uint8_t', 'hopcount')]) + ## packetbb.h: void ns3::PbbMessage::SetHopLimit(uint8_t hoplimit) [member function] + cls.add_method('SetHopLimit', + 'void', + [param('uint8_t', 'hoplimit')]) + ## packetbb.h: void ns3::PbbMessage::SetOriginatorAddress(ns3::Address address) [member function] + cls.add_method('SetOriginatorAddress', + 'void', + [param('ns3::Address', 'address')]) + ## packetbb.h: void ns3::PbbMessage::SetSequenceNumber(uint16_t seqnum) [member function] + cls.add_method('SetSequenceNumber', + 'void', + [param('uint16_t', 'seqnum')]) + ## packetbb.h: void ns3::PbbMessage::SetType(uint8_t type) [member function] + cls.add_method('SetType', + 'void', + [param('uint8_t', 'type')]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvBack() [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvBack() const [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvBegin() [member function] + cls.add_method('TlvBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvBegin() const [member function] + cls.add_method('TlvBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::TlvClear() [member function] + cls.add_method('TlvClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbMessage::TlvEmpty() const [member function] + cls.add_method('TlvEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvEnd() [member function] + cls.add_method('TlvEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbMessage::TlvEnd() const [member function] + cls.add_method('TlvEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > position) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbMessage::TlvErase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('TlvErase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::TlvFront() [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbMessage::TlvFront() const [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbMessage::TlvPopBack() [member function] + cls.add_method('TlvPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::TlvPopFront() [member function] + cls.add_method('TlvPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbMessage::TlvPushBack(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: void ns3::PbbMessage::TlvPushFront(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: int ns3::PbbMessage::TlvSize() const [member function] + cls.add_method('TlvSize', + 'int', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbMessage::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('AddressBlockDeserialize', + 'ns3::Ptr< ns3::PbbAddressBlock >', + [param('ns3::Buffer::Iterator &', 'start')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::Address ns3::PbbMessage::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('DeserializeOriginatorAddress', + 'ns3::Address', + [param('ns3::Buffer::Iterator &', 'start')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessage::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'ns3::PbbAddressLength', + [], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessage::PrintOriginatorAddress(std::ostream & os) const [member function] + cls.add_method('PrintOriginatorAddress', + 'void', + [param('std::ostream &', 'os')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessage::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializeOriginatorAddress', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_pure_virtual=True, is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbMessageIpv4_methods(root_module, cls): + ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4(ns3::PbbMessageIpv4 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbMessageIpv4 const &', 'arg0')]) + ## packetbb.h: ns3::PbbMessageIpv4::PbbMessageIpv4() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv4::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('AddressBlockDeserialize', + 'ns3::Ptr< ns3::PbbAddressBlock >', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::Address ns3::PbbMessageIpv4::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('DeserializeOriginatorAddress', + 'ns3::Address', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv4::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'ns3::PbbAddressLength', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv4::PrintOriginatorAddress(std::ostream & os) const [member function] + cls.add_method('PrintOriginatorAddress', + 'void', + [param('std::ostream &', 'os')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv4::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializeOriginatorAddress', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbMessageIpv6_methods(root_module, cls): + ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6(ns3::PbbMessageIpv6 const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbMessageIpv6 const &', 'arg0')]) + ## packetbb.h: ns3::PbbMessageIpv6::PbbMessageIpv6() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::Ptr ns3::PbbMessageIpv6::AddressBlockDeserialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('AddressBlockDeserialize', + 'ns3::Ptr< ns3::PbbAddressBlock >', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::Address ns3::PbbMessageIpv6::DeserializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('DeserializeOriginatorAddress', + 'ns3::Address', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: ns3::PbbAddressLength ns3::PbbMessageIpv6::GetAddressLength() const [member function] + cls.add_method('GetAddressLength', + 'ns3::PbbAddressLength', + [], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv6::PrintOriginatorAddress(std::ostream & os) const [member function] + cls.add_method('PrintOriginatorAddress', + 'void', + [param('std::ostream &', 'os')], + is_const=True, visibility='protected', is_virtual=True) + ## packetbb.h: void ns3::PbbMessageIpv6::SerializeOriginatorAddress(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializeOriginatorAddress', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected', is_virtual=True) + return + +def register_Ns3PbbPacket_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbPacket::PbbPacket(ns3::PbbPacket const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbPacket const &', 'arg0')]) + ## packetbb.h: ns3::PbbPacket::PbbPacket() [constructor] + cls.add_constructor([]) + ## packetbb.h: uint32_t ns3::PbbPacket::Deserialize(ns3::Buffer::Iterator start) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'start')], + is_virtual=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', 'last')]) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > position) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'position')]) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::Erase(std::_List_iterator > first, std::_List_iterator > last) [member function] + cls.add_method('Erase', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + [param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'first'), param('std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', 'last')]) + ## packetbb.h: ns3::TypeId ns3::PbbPacket::GetInstanceTypeId() const [member function] + cls.add_method('GetInstanceTypeId', + 'ns3::TypeId', + [], + is_const=True, is_virtual=True) + ## packetbb.h: uint16_t ns3::PbbPacket::GetSequenceNumber() const [member function] + cls.add_method('GetSequenceNumber', + 'uint16_t', + [], + is_const=True) + ## packetbb.h: uint32_t ns3::PbbPacket::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True, is_virtual=True) + ## packetbb.h: static ns3::TypeId ns3::PbbPacket::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## packetbb.h: uint8_t ns3::PbbPacket::GetVersion() const [member function] + cls.add_method('GetVersion', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbPacket::HasSequenceNumber() const [member function] + cls.add_method('HasSequenceNumber', + 'bool', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageBack() [member function] + cls.add_method('MessageBack', + 'ns3::Ptr< ns3::PbbMessage >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageBack() const [member function] + cls.add_method('MessageBack', + 'ns3::Ptr< ns3::PbbMessage > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageBegin() [member function] + cls.add_method('MessageBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageBegin() const [member function] + cls.add_method('MessageBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::MessageClear() [member function] + cls.add_method('MessageClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbPacket::MessageEmpty() const [member function] + cls.add_method('MessageEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::MessageEnd() [member function] + cls.add_method('MessageEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbMessage > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::MessageEnd() const [member function] + cls.add_method('MessageEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbMessage > >', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::MessageFront() [member function] + cls.add_method('MessageFront', + 'ns3::Ptr< ns3::PbbMessage >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::MessageFront() const [member function] + cls.add_method('MessageFront', + 'ns3::Ptr< ns3::PbbMessage > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::MessagePopBack() [member function] + cls.add_method('MessagePopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::MessagePopFront() [member function] + cls.add_method('MessagePopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::MessagePushBack(ns3::Ptr message) [member function] + cls.add_method('MessagePushBack', + 'void', + [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) + ## packetbb.h: void ns3::PbbPacket::MessagePushFront(ns3::Ptr message) [member function] + cls.add_method('MessagePushFront', + 'void', + [param('ns3::Ptr< ns3::PbbMessage >', 'message')]) + ## packetbb.h: int ns3::PbbPacket::MessageSize() const [member function] + cls.add_method('MessageSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True, is_virtual=True) + ## packetbb.h: void ns3::PbbPacket::Serialize(ns3::Buffer::Iterator start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'start')], + is_const=True, is_virtual=True) + ## packetbb.h: void ns3::PbbPacket::SetSequenceNumber(uint16_t number) [member function] + cls.add_method('SetSequenceNumber', + 'void', + [param('uint16_t', 'number')]) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvBack() [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvBack() const [member function] + cls.add_method('TlvBack', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvBegin() [member function] + cls.add_method('TlvBegin', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvBegin() const [member function] + cls.add_method('TlvBegin', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::TlvClear() [member function] + cls.add_method('TlvClear', + 'void', + []) + ## packetbb.h: bool ns3::PbbPacket::TlvEmpty() const [member function] + cls.add_method('TlvEmpty', + 'bool', + [], + is_const=True) + ## packetbb.h: std::_List_iterator > ns3::PbbPacket::TlvEnd() [member function] + cls.add_method('TlvEnd', + 'std::_List_iterator< ns3::Ptr< ns3::PbbTlv > >', + []) + ## packetbb.h: std::_List_const_iterator > ns3::PbbPacket::TlvEnd() const [member function] + cls.add_method('TlvEnd', + 'std::_List_const_iterator< ns3::Ptr< ns3::PbbTlv > >', + [], + is_const=True) + ## packetbb.h: ns3::Ptr ns3::PbbPacket::TlvFront() [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv >', + []) + ## packetbb.h: ns3::Ptr const ns3::PbbPacket::TlvFront() const [member function] + cls.add_method('TlvFront', + 'ns3::Ptr< ns3::PbbTlv > const', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::TlvPopBack() [member function] + cls.add_method('TlvPopBack', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::TlvPopFront() [member function] + cls.add_method('TlvPopFront', + 'void', + []) + ## packetbb.h: void ns3::PbbPacket::TlvPushBack(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushBack', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: void ns3::PbbPacket::TlvPushFront(ns3::Ptr tlv) [member function] + cls.add_method('TlvPushFront', + 'void', + [param('ns3::Ptr< ns3::PbbTlv >', 'tlv')]) + ## packetbb.h: int ns3::PbbPacket::TlvSize() const [member function] + cls.add_method('TlvSize', + 'int', + [], + is_const=True) + ## packetbb.h: void ns3::PbbPacket::SerializePacketTlv(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('SerializePacketTlv', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True, visibility='protected') + return + +def register_Ns3PbbTlv_methods(root_module, cls): + cls.add_binary_comparison_operator('==') + cls.add_binary_comparison_operator('!=') + ## packetbb.h: ns3::PbbTlv::PbbTlv(ns3::PbbTlv const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbTlv const &', 'arg0')]) + ## packetbb.h: ns3::PbbTlv::PbbTlv() [constructor] + cls.add_constructor([]) + ## packetbb.h: void ns3::PbbTlv::Deserialize(ns3::Buffer::Iterator & start) [member function] + cls.add_method('Deserialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')]) + ## packetbb.h: uint32_t ns3::PbbTlv::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbTlv::GetType() const [member function] + cls.add_method('GetType', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbTlv::GetTypeExt() const [member function] + cls.add_method('GetTypeExt', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: ns3::Buffer ns3::PbbTlv::GetValue() const [member function] + cls.add_method('GetValue', + 'ns3::Buffer', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbTlv::HasTypeExt() const [member function] + cls.add_method('HasTypeExt', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbTlv::HasValue() const [member function] + cls.add_method('HasValue', + 'bool', + [], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::Print(std::ostream & os, int level) const [member function] + cls.add_method('Print', + 'void', + [param('std::ostream &', 'os'), param('int', 'level')], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::Serialize(ns3::Buffer::Iterator & start) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator &', 'start')], + is_const=True) + ## packetbb.h: void ns3::PbbTlv::SetType(uint8_t type) [member function] + cls.add_method('SetType', + 'void', + [param('uint8_t', 'type')]) + ## packetbb.h: void ns3::PbbTlv::SetTypeExt(uint8_t type) [member function] + cls.add_method('SetTypeExt', + 'void', + [param('uint8_t', 'type')]) + ## packetbb.h: void ns3::PbbTlv::SetValue(ns3::Buffer start) [member function] + cls.add_method('SetValue', + 'void', + [param('ns3::Buffer', 'start')]) + ## packetbb.h: void ns3::PbbTlv::SetValue(uint8_t const * buffer, uint32_t size) [member function] + cls.add_method('SetValue', + 'void', + [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) + ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStart() const [member function] + cls.add_method('GetIndexStart', + 'uint8_t', + [], + is_const=True, visibility='protected') + ## packetbb.h: uint8_t ns3::PbbTlv::GetIndexStop() const [member function] + cls.add_method('GetIndexStop', + 'uint8_t', + [], + is_const=True, visibility='protected') + ## packetbb.h: bool ns3::PbbTlv::HasIndexStart() const [member function] + cls.add_method('HasIndexStart', + 'bool', + [], + is_const=True, visibility='protected') + ## packetbb.h: bool ns3::PbbTlv::HasIndexStop() const [member function] + cls.add_method('HasIndexStop', + 'bool', + [], + is_const=True, visibility='protected') + ## packetbb.h: bool ns3::PbbTlv::IsMultivalue() const [member function] + cls.add_method('IsMultivalue', + 'bool', + [], + is_const=True, visibility='protected') + ## packetbb.h: void ns3::PbbTlv::SetIndexStart(uint8_t index) [member function] + cls.add_method('SetIndexStart', + 'void', + [param('uint8_t', 'index')], + visibility='protected') + ## packetbb.h: void ns3::PbbTlv::SetIndexStop(uint8_t index) [member function] + cls.add_method('SetIndexStop', + 'void', + [param('uint8_t', 'index')], + visibility='protected') + ## packetbb.h: void ns3::PbbTlv::SetMultivalue(bool isMultivalue) [member function] + cls.add_method('SetMultivalue', + 'void', + [param('bool', 'isMultivalue')], + visibility='protected') + return + def register_Ns3SimpleChannel_methods(root_module, cls): ## simple-channel.h: ns3::SimpleChannel::SimpleChannel(ns3::SimpleChannel const & arg0) [copy constructor] cls.add_constructor([param('ns3::SimpleChannel const &', 'arg0')]) @@ -4933,6 +4852,90 @@ def register_Ns3SimpleNetDevice_methods(root_module, cls): visibility='protected', is_virtual=True) return +def register_Ns3AddressChecker_methods(root_module, cls): + ## address.h: ns3::AddressChecker::AddressChecker() [constructor] + cls.add_constructor([]) + ## address.h: 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: ns3::AddressValue::AddressValue() [constructor] + cls.add_constructor([]) + ## address.h: ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::AddressValue const &', 'arg0')]) + ## address.h: ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor] + cls.add_constructor([param('ns3::Address const &', 'value')]) + ## address.h: ns3::Ptr ns3::AddressValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## address.h: 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: ns3::Address ns3::AddressValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Address', + [], + is_const=True) + ## address.h: 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: void ns3::AddressValue::Set(ns3::Address const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Address const &', 'value')]) + return + +def register_Ns3PbbAddressTlv_methods(root_module, cls): + ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv() [constructor] + cls.add_constructor([]) + ## packetbb.h: ns3::PbbAddressTlv::PbbAddressTlv(ns3::PbbAddressTlv const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PbbAddressTlv const &', 'arg0')]) + ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStart() const [member function] + cls.add_method('GetIndexStart', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: uint8_t ns3::PbbAddressTlv::GetIndexStop() const [member function] + cls.add_method('GetIndexStop', + 'uint8_t', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStart() const [member function] + cls.add_method('HasIndexStart', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbAddressTlv::HasIndexStop() const [member function] + cls.add_method('HasIndexStop', + 'bool', + [], + is_const=True) + ## packetbb.h: bool ns3::PbbAddressTlv::IsMultivalue() const [member function] + cls.add_method('IsMultivalue', + 'bool', + [], + is_const=True) + ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStart(uint8_t index) [member function] + cls.add_method('SetIndexStart', + 'void', + [param('uint8_t', 'index')]) + ## packetbb.h: void ns3::PbbAddressTlv::SetIndexStop(uint8_t index) [member function] + cls.add_method('SetIndexStop', + 'void', + [param('uint8_t', 'index')]) + ## packetbb.h: void ns3::PbbAddressTlv::SetMultivalue(bool isMultivalue) [member function] + cls.add_method('SetMultivalue', + 'void', + [param('bool', 'isMultivalue')]) + return + def register_functions(root_module): module = root_module ## address.h: extern ns3::Ptr ns3::MakeAddressChecker() [free function] @@ -4994,6 +4997,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -5013,6 +5017,9 @@ def register_functions_ns3_addressUtils(module, root_module): [param('ns3::Address const &', 'ad')]) return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_olsr.py b/bindings/python/apidefs/gcc-LP64/ns3_module_olsr.py index c90959202..258b8d354 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_olsr.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_olsr.py @@ -30,6 +30,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -66,6 +72,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -109,6 +119,8 @@ def register_types_ns3_olsr(module): module.add_class('NeighborTuple') ## olsr-repositories.h: ns3::olsr::NeighborTuple::Status [enumeration] module.add_enum('Status', ['STATUS_NOT_SYM', 'STATUS_SYM'], outer_class=root_module['ns3::olsr::NeighborTuple']) + ## olsr-routing-protocol.h: ns3::olsr::OlsrMprTestCase [class] + module.add_class('OlsrMprTestCase', parent=root_module['ns3::TestCase']) ## olsr-header.h: ns3::olsr::PacketHeader [class] module.add_class('PacketHeader', parent=root_module['ns3::Header']) ## olsr-routing-protocol.h: ns3::olsr::RoutingProtocol [class] @@ -127,6 +139,9 @@ def register_types_ns3_olsr(module): typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >', 'ns3::olsr::NeighborSet') typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >*', 'ns3::olsr::NeighborSet*') typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >&', 'ns3::olsr::NeighborSet&') + typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >', 'ns3::olsr::LinkSet') + typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >*', 'ns3::olsr::LinkSet*') + typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >&', 'ns3::olsr::LinkSet&') typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >', 'ns3::olsr::MprSet') typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >*', 'ns3::olsr::MprSet*') typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >&', 'ns3::olsr::MprSet&') @@ -145,9 +160,6 @@ def register_types_ns3_olsr(module): typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >', 'ns3::olsr::TwoHopNeighborSet') typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >*', 'ns3::olsr::TwoHopNeighborSet*') typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >&', 'ns3::olsr::TwoHopNeighborSet&') - typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >', 'ns3::olsr::LinkSet') - typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >*', 'ns3::olsr::LinkSet*') - typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >&', 'ns3::olsr::LinkSet&') def register_methods(root_module): register_Ns3OlsrState_methods(root_module, root_module['ns3::OlsrState']) @@ -163,6 +175,7 @@ def register_methods(root_module): register_Ns3OlsrMessageHeaderTc_methods(root_module, root_module['ns3::olsr::MessageHeader::Tc']) register_Ns3OlsrMprSelectorTuple_methods(root_module, root_module['ns3::olsr::MprSelectorTuple']) register_Ns3OlsrNeighborTuple_methods(root_module, root_module['ns3::olsr::NeighborTuple']) + register_Ns3OlsrOlsrMprTestCase_methods(root_module, root_module['ns3::olsr::OlsrMprTestCase']) register_Ns3OlsrPacketHeader_methods(root_module, root_module['ns3::olsr::PacketHeader']) register_Ns3OlsrRoutingProtocol_methods(root_module, root_module['ns3::olsr::RoutingProtocol']) register_Ns3OlsrRoutingTableEntry_methods(root_module, root_module['ns3::olsr::RoutingTableEntry']) @@ -301,6 +314,11 @@ def register_Ns3OlsrState_methods(root_module, cls): 'ns3::olsr::MprSelectorSet const &', [], is_const=True) + ## olsr-state.h: ns3::olsr::MprSet ns3::OlsrState::GetMprSet() const [member function] + cls.add_method('GetMprSet', + 'ns3::olsr::MprSet', + [], + is_const=True) ## olsr-state.h: ns3::olsr::NeighborSet const & ns3::OlsrState::GetNeighbors() const [member function] cls.add_method('GetNeighbors', 'ns3::olsr::NeighborSet const &', @@ -719,6 +737,16 @@ def register_Ns3OlsrNeighborTuple_methods(root_module, cls): cls.add_instance_attribute('willingness', 'uint8_t', is_const=False) return +def register_Ns3OlsrOlsrMprTestCase_methods(root_module, cls): + ## olsr-routing-protocol.h: ns3::olsr::OlsrMprTestCase::OlsrMprTestCase() [constructor] + cls.add_constructor([]) + ## olsr-routing-protocol.h: bool ns3::olsr::OlsrMprTestCase::DoRun() [member function] + cls.add_method('DoRun', + 'bool', + [], + is_virtual=True) + return + def register_Ns3OlsrPacketHeader_methods(root_module, cls): cls.add_output_stream_operator() ## olsr-header.h: ns3::olsr::PacketHeader::PacketHeader(ns3::olsr::PacketHeader const & arg0) [copy constructor] @@ -789,6 +817,11 @@ def register_Ns3OlsrRoutingProtocol_methods(root_module, cls): cls.add_method('SetMainInterface', 'void', [param('uint32_t', 'interface')]) + ## olsr-routing-protocol.h: void ns3::olsr::RoutingProtocol::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='protected', is_virtual=True) ## olsr-routing-protocol.h: void ns3::olsr::RoutingProtocol::DoDispose() [member function] cls.add_method('DoDispose', 'void', @@ -814,7 +847,7 @@ def register_Ns3OlsrRoutingProtocol_methods(root_module, cls): 'void', [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], visibility='private', is_virtual=True) - ## olsr-routing-protocol.h: bool ns3::olsr::RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## olsr-routing-protocol.h: bool ns3::olsr::RoutingProtocol::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -883,6 +916,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -898,6 +932,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_onoff.py b/bindings/python/apidefs/gcc-LP64/ns3_module_onoff.py index d22c42dca..71075ea2a 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_onoff.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_onoff.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -116,6 +126,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -131,6 +142,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_packet_sink.py b/bindings/python/apidefs/gcc-LP64/ns3_module_packet_sink.py index 49390d9ed..5ebb5dd41 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_packet_sink.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_packet_sink.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -117,6 +127,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -132,6 +143,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_ping6.py b/bindings/python/apidefs/gcc-LP64/ns3_module_ping6.py index f66bb20fb..b32ca04cc 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_ping6.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_ping6.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -124,6 +134,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -139,6 +150,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_point_to_point.py b/bindings/python/apidefs/gcc-LP64/ns3_module_point_to_point.py index 72d3e567e..59cad21d5 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_point_to_point.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_point_to_point.py @@ -28,6 +28,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -64,6 +70,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -341,6 +351,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -356,6 +367,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_radvd.py b/bindings/python/apidefs/gcc-LP64/ns3_module_radvd.py index aad164940..ced951773 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_radvd.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_radvd.py @@ -3,12 +3,16 @@ from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler def register_types(module): root_module = module.get_root() - ## radvd-interface.h: ns3::RadvdInterface [class] - module.add_class('RadvdInterface', parent=root_module['ns3::RefCountBase']) - ## radvd-prefix.h: ns3::RadvdPrefix [class] - module.add_class('RadvdPrefix', parent=root_module['ns3::RefCountBase']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::RadvdInterface', 'ns3::empty'], parent=root_module['ns3::empty']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::RadvdPrefix', 'ns3::empty'], parent=root_module['ns3::empty']) ## radvd.h: ns3::Radvd [class] module.add_class('Radvd', parent=root_module['ns3::Application']) + ## radvd-interface.h: ns3::RadvdInterface [class] + module.add_class('RadvdInterface', parent=root_module['ns3::SimpleRefCount< ns3::RadvdInterface, ns3::empty >']) + ## radvd-prefix.h: ns3::RadvdPrefix [class] + module.add_class('RadvdPrefix', parent=root_module['ns3::SimpleRefCount< ns3::RadvdPrefix, ns3::empty >']) ## Register a nested module for the namespace Config @@ -28,6 +32,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -64,6 +74,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -81,9 +95,42 @@ def register_types_ns3_olsr(module): def register_methods(root_module): + register_Ns3Radvd_methods(root_module, root_module['ns3::Radvd']) register_Ns3RadvdInterface_methods(root_module, root_module['ns3::RadvdInterface']) register_Ns3RadvdPrefix_methods(root_module, root_module['ns3::RadvdPrefix']) - register_Ns3Radvd_methods(root_module, root_module['ns3::Radvd']) + return + +def register_Ns3Radvd_methods(root_module, cls): + ## radvd.h: ns3::Radvd::Radvd(ns3::Radvd const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Radvd const &', 'arg0')]) + ## radvd.h: ns3::Radvd::Radvd() [constructor] + cls.add_constructor([]) + ## radvd.h: void ns3::Radvd::AddConfiguration(ns3::Ptr routerInterface) [member function] + cls.add_method('AddConfiguration', + 'void', + [param('ns3::Ptr< ns3::RadvdInterface >', 'routerInterface')]) + ## radvd.h: static ns3::TypeId ns3::Radvd::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## radvd.h: ns3::Radvd::MAX_RA_DELAY_TIME [variable] + cls.add_static_attribute('MAX_RA_DELAY_TIME', 'uint32_t const', is_const=True) + ## radvd.h: void ns3::Radvd::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='protected', is_virtual=True) + ## radvd.h: void ns3::Radvd::StartApplication() [member function] + cls.add_method('StartApplication', + 'void', + [], + visibility='private', is_virtual=True) + ## radvd.h: void ns3::Radvd::StopApplication() [member function] + cls.add_method('StopApplication', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3RadvdInterface_methods(root_module, cls): @@ -350,44 +397,12 @@ def register_Ns3RadvdPrefix_methods(root_module, cls): [param('uint32_t', 'validLifeTime')]) return -def register_Ns3Radvd_methods(root_module, cls): - ## radvd.h: ns3::Radvd::Radvd(ns3::Radvd const & arg0) [copy constructor] - cls.add_constructor([param('ns3::Radvd const &', 'arg0')]) - ## radvd.h: ns3::Radvd::Radvd() [constructor] - cls.add_constructor([]) - ## radvd.h: void ns3::Radvd::AddConfiguration(ns3::Ptr routerInterface) [member function] - cls.add_method('AddConfiguration', - 'void', - [param('ns3::Ptr< ns3::RadvdInterface >', 'routerInterface')]) - ## radvd.h: static ns3::TypeId ns3::Radvd::GetTypeId() [member function] - cls.add_method('GetTypeId', - 'ns3::TypeId', - [], - is_static=True) - ## radvd.h: ns3::Radvd::MAX_RA_DELAY_TIME [variable] - cls.add_static_attribute('MAX_RA_DELAY_TIME', 'uint32_t const', is_const=True) - ## radvd.h: void ns3::Radvd::DoDispose() [member function] - cls.add_method('DoDispose', - 'void', - [], - visibility='protected', is_virtual=True) - ## radvd.h: void ns3::Radvd::StartApplication() [member function] - cls.add_method('StartApplication', - 'void', - [], - visibility='private', is_virtual=True) - ## radvd.h: void ns3::Radvd::StopApplication() [member function] - cls.add_method('StopApplication', - 'void', - [], - visibility='private', is_virtual=True) - return - def register_functions(root_module): module = root_module register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -403,6 +418,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py b/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py index 8f0850175..47d13f278 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py @@ -5,8 +5,6 @@ def register_types(module): ## event-id.h: ns3::EventId [class] module.add_class('EventId') - ## event-impl.h: ns3::EventImpl [class] - module.add_class('EventImpl', allow_subclassing=True) ## high-precision-128.h: ns3::HighPrecision [class] module.add_class('HighPrecision') ## simulator.h: ns3::Simulator [class] @@ -35,20 +33,20 @@ def register_types(module): module.add_class('Event', outer_class=root_module['ns3::Scheduler']) ## scheduler.h: ns3::Scheduler::EventKey [struct] module.add_class('EventKey', outer_class=root_module['ns3::Scheduler']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::EventImpl', 'ns3::empty'], parent=root_module['ns3::empty']) ## simulator-impl.h: ns3::SimulatorImpl [class] module.add_class('SimulatorImpl', parent=root_module['ns3::Object']) ## synchronizer.h: ns3::Synchronizer [class] module.add_class('Synchronizer', parent=root_module['ns3::Object']) - ## nstime.h: ns3::TimeChecker [class] - module.add_class('TimeChecker', parent=root_module['ns3::AttributeChecker']) - ## nstime.h: ns3::TimeValue [class] - module.add_class('TimeValue', parent=root_module['ns3::AttributeValue']) ## wall-clock-synchronizer.h: ns3::WallClockSynchronizer [class] module.add_class('WallClockSynchronizer', parent=root_module['ns3::Synchronizer']) ## calendar-scheduler.h: ns3::CalendarScheduler [class] module.add_class('CalendarScheduler', parent=root_module['ns3::Scheduler']) ## default-simulator-impl.h: ns3::DefaultSimulatorImpl [class] module.add_class('DefaultSimulatorImpl', parent=root_module['ns3::SimulatorImpl']) + ## event-impl.h: ns3::EventImpl [class] + module.add_class('EventImpl', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty >']) ## heap-scheduler.h: ns3::HeapScheduler [class] module.add_class('HeapScheduler', parent=root_module['ns3::Scheduler']) ## list-scheduler.h: ns3::ListScheduler [class] @@ -61,6 +59,10 @@ def register_types(module): module.add_class('RealtimeSimulatorImpl', parent=root_module['ns3::SimulatorImpl']) ## realtime-simulator-impl.h: ns3::RealtimeSimulatorImpl::SynchronizationMode [enumeration] module.add_enum('SynchronizationMode', ['SYNC_BEST_EFFORT', 'SYNC_HARD_LIMIT'], outer_class=root_module['ns3::RealtimeSimulatorImpl']) + ## nstime.h: ns3::TimeChecker [class] + module.add_class('TimeChecker', parent=root_module['ns3::AttributeChecker']) + ## nstime.h: ns3::TimeValue [class] + module.add_class('TimeValue', parent=root_module['ns3::AttributeValue']) typehandlers.add_type_alias('ns3::TimeUnit< 2 >', 'ns3::TimeSquare') typehandlers.add_type_alias('ns3::TimeUnit< 2 >*', 'ns3::TimeSquare*') typehandlers.add_type_alias('ns3::TimeUnit< 2 >&', 'ns3::TimeSquare&') @@ -92,6 +94,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -130,6 +138,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -148,7 +160,6 @@ def register_types_ns3_olsr(module): def register_methods(root_module): register_Ns3EventId_methods(root_module, root_module['ns3::EventId']) - register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl']) register_Ns3HighPrecision_methods(root_module, root_module['ns3::HighPrecision']) register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator']) register_Ns3TimeInvert_methods(root_module, root_module['ns3::TimeInvert']) @@ -163,16 +174,17 @@ def register_methods(root_module): register_Ns3SchedulerEventKey_methods(root_module, root_module['ns3::Scheduler::EventKey']) register_Ns3SimulatorImpl_methods(root_module, root_module['ns3::SimulatorImpl']) register_Ns3Synchronizer_methods(root_module, root_module['ns3::Synchronizer']) - register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker']) - register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue']) register_Ns3WallClockSynchronizer_methods(root_module, root_module['ns3::WallClockSynchronizer']) register_Ns3CalendarScheduler_methods(root_module, root_module['ns3::CalendarScheduler']) register_Ns3DefaultSimulatorImpl_methods(root_module, root_module['ns3::DefaultSimulatorImpl']) + register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl']) register_Ns3HeapScheduler_methods(root_module, root_module['ns3::HeapScheduler']) register_Ns3ListScheduler_methods(root_module, root_module['ns3::ListScheduler']) register_Ns3MapScheduler_methods(root_module, root_module['ns3::MapScheduler']) register_Ns3Ns2CalendarScheduler_methods(root_module, root_module['ns3::Ns2CalendarScheduler']) register_Ns3RealtimeSimulatorImpl_methods(root_module, root_module['ns3::RealtimeSimulatorImpl']) + register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker']) + register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue']) return def register_Ns3EventId_methods(root_module, cls): @@ -182,12 +194,17 @@ def register_Ns3EventId_methods(root_module, cls): cls.add_constructor([param('ns3::EventId const &', 'arg0')]) ## event-id.h: ns3::EventId::EventId() [constructor] cls.add_constructor([]) - ## event-id.h: ns3::EventId::EventId(ns3::Ptr const & impl, uint64_t ts, uint32_t uid) [constructor] - cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'uid')]) + ## event-id.h: 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: void ns3::EventId::Cancel() [member function] cls.add_method('Cancel', 'void', []) + ## event-id.h: uint32_t ns3::EventId::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_const=True) ## event-id.h: uint64_t ns3::EventId::GetTs() const [member function] cls.add_method('GetTs', 'uint64_t', @@ -215,40 +232,6 @@ def register_Ns3EventId_methods(root_module, cls): is_const=True) return -def register_Ns3EventImpl_methods(root_module, cls): - ## event-impl.h: ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor] - cls.add_constructor([param('ns3::EventImpl const &', 'arg0')]) - ## event-impl.h: ns3::EventImpl::EventImpl() [constructor] - cls.add_constructor([]) - ## event-impl.h: void ns3::EventImpl::Cancel() [member function] - cls.add_method('Cancel', - 'void', - []) - ## event-impl.h: void ns3::EventImpl::Invoke() [member function] - cls.add_method('Invoke', - 'void', - []) - ## event-impl.h: bool ns3::EventImpl::IsCancelled() [member function] - cls.add_method('IsCancelled', - 'bool', - []) - ## event-impl.h: void ns3::EventImpl::Ref() const [member function] - cls.add_method('Ref', - 'void', - [], - is_const=True) - ## event-impl.h: void ns3::EventImpl::Unref() const [member function] - cls.add_method('Unref', - 'void', - [], - is_const=True) - ## event-impl.h: void ns3::EventImpl::Notify() [member function] - cls.add_method('Notify', - 'void', - [], - is_pure_virtual=True, visibility='protected', is_virtual=True) - return - def register_Ns3HighPrecision_methods(root_module, cls): ## high-precision-128.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor] cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')]) @@ -314,6 +297,11 @@ def register_Ns3Simulator_methods(root_module, cls): 'void', [], is_static=True) + ## simulator.h: static uint32_t ns3::Simulator::GetContext() [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_static=True) ## simulator.h: static ns3::Time ns3::Simulator::GetDelayLeft(ns3::EventId const & id) [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -364,10 +352,10 @@ def register_Ns3Simulator_methods(root_module, cls): 'void', [param('ns3::Ptr< ns3::SimulatorImpl >', 'impl')], is_static=True) - ## simulator.h: static void ns3::Simulator::SetScheduler(ns3::Ptr scheduler) [member function] + ## simulator.h: static void ns3::Simulator::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_static=True) ## simulator.h: static void ns3::Simulator::Stop() [member function] cls.add_method('Stop', @@ -769,6 +757,8 @@ def register_Ns3SchedulerEventKey_methods(root_module, cls): cls.add_constructor([]) ## scheduler.h: ns3::Scheduler::EventKey::EventKey(ns3::Scheduler::EventKey const & arg0) [copy constructor] cls.add_constructor([param('ns3::Scheduler::EventKey const &', 'arg0')]) + ## scheduler.h: ns3::Scheduler::EventKey::m_context [variable] + cls.add_instance_attribute('m_context', 'uint32_t', is_const=False) ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable] cls.add_instance_attribute('m_ts', 'uint64_t', is_const=False) ## scheduler.h: ns3::Scheduler::EventKey::m_uid [variable] @@ -790,6 +780,11 @@ def register_Ns3SimulatorImpl_methods(root_module, cls): 'void', [], is_pure_virtual=True, is_virtual=True) + ## simulator-impl.h: uint32_t ns3::SimulatorImpl::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_pure_virtual=True, is_const=True, is_virtual=True) ## simulator-impl.h: ns3::Time ns3::SimulatorImpl::GetDelayLeft(ns3::EventId const & id) const [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -850,16 +845,26 @@ def register_Ns3SimulatorImpl_methods(root_module, cls): 'ns3::EventId', [param('ns3::EventImpl *', 'event')], is_pure_virtual=True, is_virtual=True) - ## simulator-impl.h: void ns3::SimulatorImpl::SetScheduler(ns3::Ptr scheduler) [member function] + ## simulator-impl.h: void ns3::SimulatorImpl::ScheduleWithContext(uint32_t context, ns3::Time const & time, ns3::EventImpl * event) [member function] + cls.add_method('ScheduleWithContext', + 'void', + [param('uint32_t', 'context'), param('ns3::Time const &', 'time'), param('ns3::EventImpl *', 'event')], + is_pure_virtual=True, is_virtual=True) + ## simulator-impl.h: void ns3::SimulatorImpl::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_pure_virtual=True, is_virtual=True) ## simulator-impl.h: void ns3::SimulatorImpl::Stop() [member function] cls.add_method('Stop', 'void', [], is_pure_virtual=True, is_virtual=True) + ## simulator-impl.h: void ns3::SimulatorImpl::Stop(ns3::Time const & time) [member function] + cls.add_method('Stop', + 'void', + [param('ns3::Time const &', 'time')], + is_pure_virtual=True, is_virtual=True) return def register_Ns3Synchronizer_methods(root_module, cls): @@ -959,46 +964,6 @@ def register_Ns3Synchronizer_methods(root_module, cls): is_pure_virtual=True, visibility='protected', is_virtual=True) return -def register_Ns3TimeChecker_methods(root_module, cls): - ## nstime.h: ns3::TimeChecker::TimeChecker() [constructor] - cls.add_constructor([]) - ## nstime.h: ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')]) - return - -def register_Ns3TimeValue_methods(root_module, cls): - ## nstime.h: ns3::TimeValue::TimeValue() [constructor] - cls.add_constructor([]) - ## nstime.h: ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::TimeValue const &', 'arg0')]) - ## nstime.h: ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor] - cls.add_constructor([param('ns3::Time const &', 'value')]) - ## nstime.h: ns3::Ptr ns3::TimeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## nstime.h: 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: ns3::Time ns3::TimeValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Time', - [], - is_const=True) - ## nstime.h: 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: void ns3::TimeValue::Set(ns3::Time const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Time const &', 'value')]) - return - def register_Ns3WallClockSynchronizer_methods(root_module, cls): ## wall-clock-synchronizer.h: ns3::WallClockSynchronizer::WallClockSynchronizer(ns3::WallClockSynchronizer const & arg0) [copy constructor] cls.add_constructor([param('ns3::WallClockSynchronizer const &', 'arg0')]) @@ -1149,6 +1114,11 @@ def register_Ns3DefaultSimulatorImpl_methods(root_module, cls): 'void', [], is_virtual=True) + ## default-simulator-impl.h: uint32_t ns3::DefaultSimulatorImpl::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_const=True, is_virtual=True) ## default-simulator-impl.h: ns3::Time ns3::DefaultSimulatorImpl::GetDelayLeft(ns3::EventId const & id) const [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -1214,16 +1184,50 @@ def register_Ns3DefaultSimulatorImpl_methods(root_module, cls): 'ns3::EventId', [param('ns3::EventImpl *', 'event')], is_virtual=True) - ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::SetScheduler(ns3::Ptr scheduler) [member function] + ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::ScheduleWithContext(uint32_t context, ns3::Time const & time, ns3::EventImpl * event) [member function] + cls.add_method('ScheduleWithContext', + 'void', + [param('uint32_t', 'context'), param('ns3::Time const &', 'time'), param('ns3::EventImpl *', 'event')], + is_virtual=True) + ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_virtual=True) ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::Stop() [member function] cls.add_method('Stop', 'void', [], is_virtual=True) + ## default-simulator-impl.h: void ns3::DefaultSimulatorImpl::Stop(ns3::Time const & time) [member function] + cls.add_method('Stop', + 'void', + [param('ns3::Time const &', 'time')], + is_virtual=True) + return + +def register_Ns3EventImpl_methods(root_module, cls): + ## event-impl.h: ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor] + cls.add_constructor([param('ns3::EventImpl const &', 'arg0')]) + ## event-impl.h: ns3::EventImpl::EventImpl() [constructor] + cls.add_constructor([]) + ## event-impl.h: void ns3::EventImpl::Cancel() [member function] + cls.add_method('Cancel', + 'void', + []) + ## event-impl.h: void ns3::EventImpl::Invoke() [member function] + cls.add_method('Invoke', + 'void', + []) + ## event-impl.h: bool ns3::EventImpl::IsCancelled() [member function] + cls.add_method('IsCancelled', + 'bool', + []) + ## event-impl.h: void ns3::EventImpl::Notify() [member function] + cls.add_method('Notify', + 'void', + [], + is_pure_virtual=True, visibility='protected', is_virtual=True) return def register_Ns3HeapScheduler_methods(root_module, cls): @@ -1389,6 +1393,11 @@ def register_Ns3RealtimeSimulatorImpl_methods(root_module, cls): 'void', [], is_virtual=True) + ## realtime-simulator-impl.h: uint32_t ns3::RealtimeSimulatorImpl::GetContext() const [member function] + cls.add_method('GetContext', + 'uint32_t', + [], + is_const=True, is_virtual=True) ## realtime-simulator-impl.h: ns3::Time ns3::RealtimeSimulatorImpl::GetDelayLeft(ns3::EventId const & id) const [member function] cls.add_method('GetDelayLeft', 'ns3::Time', @@ -1477,14 +1486,19 @@ def register_Ns3RealtimeSimulatorImpl_methods(root_module, cls): cls.add_method('ScheduleRealtimeNow', 'void', [param('ns3::EventImpl *', 'event')]) + ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::ScheduleWithContext(uint32_t context, ns3::Time const & time, ns3::EventImpl * event) [member function] + cls.add_method('ScheduleWithContext', + 'void', + [param('uint32_t', 'context'), param('ns3::Time const &', 'time'), param('ns3::EventImpl *', 'event')], + is_virtual=True) ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetHardLimit(ns3::Time limit) [member function] cls.add_method('SetHardLimit', 'void', [param('ns3::Time', 'limit')]) - ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetScheduler(ns3::Ptr scheduler) [member function] + ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', - [param('ns3::Ptr< ns3::Scheduler >', 'scheduler')], + [param('ns3::ObjectFactory', 'schedulerFactory')], is_virtual=True) ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::SetSynchronizationMode(ns3::RealtimeSimulatorImpl::SynchronizationMode mode) [member function] cls.add_method('SetSynchronizationMode', @@ -1495,6 +1509,51 @@ def register_Ns3RealtimeSimulatorImpl_methods(root_module, cls): 'void', [], is_virtual=True) + ## realtime-simulator-impl.h: void ns3::RealtimeSimulatorImpl::Stop(ns3::Time const & time) [member function] + cls.add_method('Stop', + 'void', + [param('ns3::Time const &', 'time')], + is_virtual=True) + return + +def register_Ns3TimeChecker_methods(root_module, cls): + ## nstime.h: ns3::TimeChecker::TimeChecker() [constructor] + cls.add_constructor([]) + ## nstime.h: ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')]) + return + +def register_Ns3TimeValue_methods(root_module, cls): + ## nstime.h: ns3::TimeValue::TimeValue() [constructor] + cls.add_constructor([]) + ## nstime.h: ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::TimeValue const &', 'arg0')]) + ## nstime.h: ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor] + cls.add_constructor([param('ns3::Time const &', 'value')]) + ## nstime.h: ns3::Ptr ns3::TimeValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## nstime.h: 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: ns3::Time ns3::TimeValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Time', + [], + is_const=True) + ## nstime.h: 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: void ns3::TimeValue::Set(ns3::Time const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Time const &', 'value')]) return def register_functions(root_module): @@ -1554,6 +1613,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1577,6 +1637,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_static_routing.py b/bindings/python/apidefs/gcc-LP64/ns3_module_static_routing.py index 22b6f3c13..ccf56190f 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_static_routing.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_static_routing.py @@ -34,6 +34,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -70,6 +76,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -447,7 +457,7 @@ def register_Ns3Ipv4StaticRouting_methods(root_module, cls): cls.add_method('RemoveRoute', 'void', [param('uint32_t', 'i')]) - ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function] + ## ipv4-static-routing.h: bool ns3::Ipv4StaticRouting::RouteInput(ns3::Ptr p, ns3::Ipv4Header const & header, ns3::Ptr idev, ns3::Callback, ns3::Ptr, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback,ns3::Ptr,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] cls.add_method('RouteInput', 'bool', [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], @@ -622,6 +632,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -637,6 +648,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_stats.py b/bindings/python/apidefs/gcc-LP64/ns3_module_stats.py index bfd42eb05..cb6915c12 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_stats.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_stats.py @@ -48,6 +48,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -84,6 +90,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -468,6 +478,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -483,6 +494,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_tap_bridge.py b/bindings/python/apidefs/gcc-LP64/ns3_module_tap_bridge.py index cf1171490..0b44ab435 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_tap_bridge.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_tap_bridge.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -258,6 +268,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -273,6 +284,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_test.py b/bindings/python/apidefs/gcc-LP64/ns3_module_test.py index b79f151cd..e773c3012 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_test.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_test.py @@ -22,6 +22,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -58,6 +64,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -82,6 +92,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -97,6 +108,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_udp_echo.py b/bindings/python/apidefs/gcc-LP64/ns3_module_udp_echo.py index b79097d2f..8d34185ab 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_udp_echo.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_udp_echo.py @@ -26,6 +26,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -62,6 +68,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -167,6 +177,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -182,6 +193,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_v4ping.py b/bindings/python/apidefs/gcc-LP64/ns3_module_v4ping.py index b087bfb02..801ca106c 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_v4ping.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_v4ping.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -112,6 +122,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -127,6 +138,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_virtual_net_device.py b/bindings/python/apidefs/gcc-LP64/ns3_module_virtual_net_device.py index f03bcc785..974754fdf 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_virtual_net_device.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_virtual_net_device.py @@ -24,6 +24,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -60,6 +66,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -242,6 +252,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -257,6 +268,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_wifi.py b/bindings/python/apidefs/gcc-LP64/ns3_module_wifi.py index 7d28518e3..30a701c72 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_wifi.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_wifi.py @@ -8,7 +8,7 @@ def register_types(module): ## wifi-preamble.h: ns3::WifiPreamble [enumeration] module.add_enum('WifiPreamble', ['WIFI_PREAMBLE_LONG', 'WIFI_PREAMBLE_SHORT']) ## wifi-phy-standard.h: ns3::WifiPhyStandard [enumeration] - module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_UNKNOWN']) + module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_STANDARD_80211p_CCH', 'WIFI_PHY_STANDARD_80211p_SCH', 'WIFI_PHY_UNKNOWN']) ## qos-utils.h: ns3::AccessClass [enumeration] module.add_enum('AccessClass', ['AC_VO', 'AC_VI', 'AC_BE', 'AC_BK', 'AC_BE_NQOS', 'AC_UNDEF']) ## edca-txop-n.h: ns3::TypeOfStation [enumeration] @@ -83,10 +83,8 @@ def register_types(module): module.add_class('RandomPropagationLossModel', parent=root_module['ns3::PropagationLossModel']) ## rraa-wifi-manager.h: ns3::RraaWifiRemoteStation [class] module.add_class('RraaWifiRemoteStation', parent=root_module['ns3::WifiRemoteStation']) - ## ssid.h: ns3::SsidChecker [class] - module.add_class('SsidChecker', parent=root_module['ns3::AttributeChecker']) - ## ssid.h: ns3::SsidValue [class] - module.add_class('SsidValue', parent=root_module['ns3::AttributeValue']) + ## simple-ref-count.h: ns3::SimpleRefCount [class] + module.add_class('SimpleRefCount', template_parameters=['ns3::InterferenceHelper::Event', 'ns3::empty'], parent=root_module['ns3::empty']) ## propagation-loss-model.h: ns3::ThreeLogDistancePropagationLossModel [class] module.add_class('ThreeLogDistancePropagationLossModel', parent=root_module['ns3::PropagationLossModel']) ## wifi-mac.h: ns3::WifiMac [class] @@ -97,10 +95,6 @@ def register_types(module): module.add_enum('QosAckPolicy', ['NORMAL_ACK', 'NO_ACK', 'NO_EXPLICIT_ACK', 'BLOCK_ACK'], outer_class=root_module['ns3::WifiMacHeader']) ## wifi-mac-header.h: ns3::WifiMacHeader::AddressType [enumeration] module.add_enum('AddressType', ['ADDR1', 'ADDR2', 'ADDR3', 'ADDR4'], outer_class=root_module['ns3::WifiMacHeader']) - ## wifi-mode.h: ns3::WifiModeChecker [class] - module.add_class('WifiModeChecker', parent=root_module['ns3::AttributeChecker']) - ## wifi-mode.h: ns3::WifiModeValue [class] - module.add_class('WifiModeValue', parent=root_module['ns3::AttributeValue']) ## wifi-phy.h: ns3::WifiPhy [class] module.add_class('WifiPhy', parent=root_module['ns3::Object']) ## wifi-phy.h: ns3::WifiPhy::State [enumeration] @@ -163,8 +157,16 @@ def register_types(module): module.add_class('QstaWifiMac', parent=root_module['ns3::WifiMac']) ## rraa-wifi-manager.h: ns3::RraaWifiManager [class] module.add_class('RraaWifiManager', parent=root_module['ns3::WifiRemoteStationManager']) + ## ssid.h: ns3::SsidChecker [class] + module.add_class('SsidChecker', parent=root_module['ns3::AttributeChecker']) + ## ssid.h: ns3::SsidValue [class] + module.add_class('SsidValue', parent=root_module['ns3::AttributeValue']) ## wifi-channel.h: ns3::WifiChannel [class] module.add_class('WifiChannel', parent=root_module['ns3::Channel']) + ## wifi-mode.h: ns3::WifiModeChecker [class] + module.add_class('WifiModeChecker', parent=root_module['ns3::AttributeChecker']) + ## wifi-mode.h: ns3::WifiModeValue [class] + module.add_class('WifiModeValue', parent=root_module['ns3::AttributeValue']) ## wifi-net-device.h: ns3::WifiNetDevice [class] module.add_class('WifiNetDevice', parent=root_module['ns3::NetDevice']) ## yans-error-rate-model.h: ns3::YansErrorRateModel [class] @@ -203,6 +205,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -239,6 +247,10 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -290,13 +302,9 @@ def register_methods(root_module): register_Ns3RandomPropagationDelayModel_methods(root_module, root_module['ns3::RandomPropagationDelayModel']) register_Ns3RandomPropagationLossModel_methods(root_module, root_module['ns3::RandomPropagationLossModel']) register_Ns3RraaWifiRemoteStation_methods(root_module, root_module['ns3::RraaWifiRemoteStation']) - register_Ns3SsidChecker_methods(root_module, root_module['ns3::SsidChecker']) - register_Ns3SsidValue_methods(root_module, root_module['ns3::SsidValue']) register_Ns3ThreeLogDistancePropagationLossModel_methods(root_module, root_module['ns3::ThreeLogDistancePropagationLossModel']) register_Ns3WifiMac_methods(root_module, root_module['ns3::WifiMac']) register_Ns3WifiMacHeader_methods(root_module, root_module['ns3::WifiMacHeader']) - register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker']) - register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue']) register_Ns3WifiPhy_methods(root_module, root_module['ns3::WifiPhy']) register_Ns3WifiRemoteStationManager_methods(root_module, root_module['ns3::WifiRemoteStationManager']) register_Ns3YansWifiPhy_methods(root_module, root_module['ns3::YansWifiPhy']) @@ -327,7 +335,11 @@ def register_methods(root_module): register_Ns3QapWifiMac_methods(root_module, root_module['ns3::QapWifiMac']) register_Ns3QstaWifiMac_methods(root_module, root_module['ns3::QstaWifiMac']) register_Ns3RraaWifiManager_methods(root_module, root_module['ns3::RraaWifiManager']) + register_Ns3SsidChecker_methods(root_module, root_module['ns3::SsidChecker']) + register_Ns3SsidValue_methods(root_module, root_module['ns3::SsidValue']) register_Ns3WifiChannel_methods(root_module, root_module['ns3::WifiChannel']) + register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker']) + register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue']) register_Ns3WifiNetDevice_methods(root_module, root_module['ns3::WifiNetDevice']) register_Ns3YansErrorRateModel_methods(root_module, root_module['ns3::YansErrorRateModel']) register_Ns3YansWifiChannel_methods(root_module, root_module['ns3::YansWifiChannel']) @@ -2112,46 +2124,6 @@ def register_Ns3RraaWifiRemoteStation_methods(root_module, cls): is_const=True, visibility='private', is_virtual=True) return -def register_Ns3SsidChecker_methods(root_module, cls): - ## ssid.h: ns3::SsidChecker::SsidChecker() [constructor] - cls.add_constructor([]) - ## ssid.h: ns3::SsidChecker::SsidChecker(ns3::SsidChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SsidChecker const &', 'arg0')]) - return - -def register_Ns3SsidValue_methods(root_module, cls): - ## ssid.h: ns3::SsidValue::SsidValue() [constructor] - cls.add_constructor([]) - ## ssid.h: ns3::SsidValue::SsidValue(ns3::SsidValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::SsidValue const &', 'arg0')]) - ## ssid.h: ns3::SsidValue::SsidValue(ns3::Ssid const & value) [constructor] - cls.add_constructor([param('ns3::Ssid const &', 'value')]) - ## ssid.h: ns3::Ptr ns3::SsidValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## ssid.h: bool ns3::SsidValue::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) - ## ssid.h: ns3::Ssid ns3::SsidValue::Get() const [member function] - cls.add_method('Get', - 'ns3::Ssid', - [], - is_const=True) - ## ssid.h: std::string ns3::SsidValue::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) - ## ssid.h: void ns3::SsidValue::Set(ns3::Ssid const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::Ssid const &', 'value')]) - return - def register_Ns3ThreeLogDistancePropagationLossModel_methods(root_module, cls): ## propagation-loss-model.h: static ns3::TypeId ns3::ThreeLogDistancePropagationLossModel::GetTypeId() [member function] cls.add_method('GetTypeId', @@ -2345,6 +2317,11 @@ def register_Ns3WifiMac_methods(root_module, cls): 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) + ## wifi-mac.h: void ns3::WifiMac::ConfigureCCHDcf(ns3::Ptr dcf, uint32_t cwmin, uint32_t cwmax, ns3::AccessClass ac) [member function] + cls.add_method('ConfigureCCHDcf', + 'void', + [param('ns3::Ptr< ns3::Dcf >', 'dcf'), param('uint32_t', 'cwmin'), param('uint32_t', 'cwmax'), param('ns3::AccessClass', 'ac')], + visibility='protected') ## wifi-mac.h: void ns3::WifiMac::ConfigureDcf(ns3::Ptr dcf, uint32_t cwmin, uint32_t cwmax, ns3::AccessClass ac) [member function] cls.add_method('ConfigureDcf', 'void', @@ -2746,46 +2723,6 @@ def register_Ns3WifiMacHeader_methods(root_module, cls): []) return -def register_Ns3WifiModeChecker_methods(root_module, cls): - ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker() [constructor] - cls.add_constructor([]) - ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')]) - return - -def register_Ns3WifiModeValue_methods(root_module, cls): - ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue() [constructor] - cls.add_constructor([]) - ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor] - cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')]) - ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor] - cls.add_constructor([param('ns3::WifiMode const &', 'value')]) - ## wifi-mode.h: ns3::Ptr ns3::WifiModeValue::Copy() const [member function] - cls.add_method('Copy', - 'ns3::Ptr< ns3::AttributeValue >', - [], - is_const=True, is_virtual=True) - ## wifi-mode.h: bool ns3::WifiModeValue::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) - ## wifi-mode.h: ns3::WifiMode ns3::WifiModeValue::Get() const [member function] - cls.add_method('Get', - 'ns3::WifiMode', - [], - is_const=True) - ## wifi-mode.h: std::string ns3::WifiModeValue::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) - ## wifi-mode.h: void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function] - cls.add_method('Set', - 'void', - [param('ns3::WifiMode const &', 'value')]) - return - def register_Ns3WifiPhy_methods(root_module, cls): ## wifi-phy.h: ns3::WifiPhy::WifiPhy(ns3::WifiPhy const & arg0) [copy constructor] cls.add_constructor([param('ns3::WifiPhy const &', 'arg0')]) @@ -4510,6 +4447,11 @@ def register_Ns3NqapWifiMac_methods(root_module, cls): 'void', [], visibility='private', is_virtual=True) + ## nqap-wifi-mac.h: void ns3::NqapWifiMac::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) ## nqap-wifi-mac.h: void ns3::NqapWifiMac::FinishConfigureStandard(ns3::WifiPhyStandard standard) [member function] cls.add_method('FinishConfigureStandard', 'void', @@ -4991,6 +4933,11 @@ def register_Ns3QapWifiMac_methods(root_module, cls): 'void', [], visibility='private', is_virtual=True) + ## qap-wifi-mac.h: void ns3::QapWifiMac::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) ## qap-wifi-mac.h: void ns3::QapWifiMac::FinishConfigureStandard(ns3::WifiPhyStandard standard) [member function] cls.add_method('FinishConfigureStandard', 'void', @@ -5190,6 +5137,46 @@ def register_Ns3RraaWifiManager_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3SsidChecker_methods(root_module, cls): + ## ssid.h: ns3::SsidChecker::SsidChecker() [constructor] + cls.add_constructor([]) + ## ssid.h: ns3::SsidChecker::SsidChecker(ns3::SsidChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::SsidChecker const &', 'arg0')]) + return + +def register_Ns3SsidValue_methods(root_module, cls): + ## ssid.h: ns3::SsidValue::SsidValue() [constructor] + cls.add_constructor([]) + ## ssid.h: ns3::SsidValue::SsidValue(ns3::SsidValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::SsidValue const &', 'arg0')]) + ## ssid.h: ns3::SsidValue::SsidValue(ns3::Ssid const & value) [constructor] + cls.add_constructor([param('ns3::Ssid const &', 'value')]) + ## ssid.h: ns3::Ptr ns3::SsidValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## ssid.h: bool ns3::SsidValue::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) + ## ssid.h: ns3::Ssid ns3::SsidValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Ssid', + [], + is_const=True) + ## ssid.h: std::string ns3::SsidValue::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) + ## ssid.h: void ns3::SsidValue::Set(ns3::Ssid const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Ssid const &', 'value')]) + return + def register_Ns3WifiChannel_methods(root_module, cls): ## wifi-channel.h: ns3::WifiChannel::WifiChannel() [constructor] cls.add_constructor([]) @@ -5202,6 +5189,46 @@ def register_Ns3WifiChannel_methods(root_module, cls): is_static=True) return +def register_Ns3WifiModeChecker_methods(root_module, cls): + ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker() [constructor] + cls.add_constructor([]) + ## wifi-mode.h: ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')]) + return + +def register_Ns3WifiModeValue_methods(root_module, cls): + ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue() [constructor] + cls.add_constructor([]) + ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')]) + ## wifi-mode.h: ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor] + cls.add_constructor([param('ns3::WifiMode const &', 'value')]) + ## wifi-mode.h: ns3::Ptr ns3::WifiModeValue::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::AttributeValue >', + [], + is_const=True, is_virtual=True) + ## wifi-mode.h: bool ns3::WifiModeValue::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) + ## wifi-mode.h: ns3::WifiMode ns3::WifiModeValue::Get() const [member function] + cls.add_method('Get', + 'ns3::WifiMode', + [], + is_const=True) + ## wifi-mode.h: std::string ns3::WifiModeValue::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) + ## wifi-mode.h: void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function] + cls.add_method('Set', + 'void', + [param('ns3::WifiMode const &', 'value')]) + return + def register_Ns3WifiNetDevice_methods(root_module, cls): ## wifi-net-device.h: ns3::WifiNetDevice::WifiNetDevice(ns3::WifiNetDevice const & arg0) [copy constructor] cls.add_constructor([param('ns3::WifiNetDevice const &', 'arg0')]) @@ -5364,6 +5391,11 @@ def register_Ns3WifiNetDevice_methods(root_module, cls): 'void', [], visibility='private', is_virtual=True) + ## wifi-net-device.h: void ns3::WifiNetDevice::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) return def register_Ns3YansErrorRateModel_methods(root_module, cls): @@ -5537,6 +5569,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -5552,6 +5585,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py b/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py index a34101ded..781810f50 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py +++ b/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py @@ -37,6 +37,7 @@ import ns3_module_global_routing import ns3_module_udp_echo import ns3_module_nix_vector_routing import ns3_module_olsr +import ns3_module_aodv import ns3_module_radvd import ns3_module_ping6 import ns3_module_flow_monitor @@ -327,6 +328,17 @@ def register_types(module): ns3_module_olsr__local.register_types(module) root_module.end_section('ns3_module_olsr') + root_module.begin_section('ns3_module_aodv') + ns3_module_aodv.register_types(module) + + try: + import ns3_module_aodv__local + except ImportError: + pass + else: + ns3_module_aodv__local.register_types(module) + + root_module.end_section('ns3_module_aodv') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_types(module) @@ -436,6 +448,12 @@ def register_types(module): register_types_ns3_addressUtils(nested_module) + ## Register a nested module for the namespace aodv + + nested_module = module.add_cpp_namespace('aodv') + register_types_ns3_aodv(nested_module) + + ## Register a nested module for the namespace dot11s nested_module = module.add_cpp_namespace('dot11s') @@ -473,6 +491,11 @@ def register_types_ns3_addressUtils(module): root_module = module.get_root() +def register_types_ns3_aodv(module): + root_module = module.get_root() + + module.add_container('std::map< ns3::Ipv4Address, unsigned int >', ('ns3::Ipv4Address', 'unsigned int'), container_type='map') + def register_types_ns3_dot11s(module): root_module = module.get_root() @@ -769,6 +792,17 @@ def register_methods(root_module): ns3_module_olsr__local.register_methods(root_module) root_module.end_section('ns3_module_olsr') + root_module.begin_section('ns3_module_aodv') + ns3_module_aodv.register_methods(root_module) + + try: + import ns3_module_aodv__local + except ImportError: + pass + else: + ns3_module_aodv__local.register_methods(root_module) + + root_module.end_section('ns3_module_aodv') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_methods(root_module) @@ -1259,6 +1293,17 @@ def register_functions(root_module): ns3_module_olsr__local.register_functions(root_module) root_module.end_section('ns3_module_olsr') + root_module.begin_section('ns3_module_aodv') + ns3_module_aodv.register_functions(root_module) + + try: + import ns3_module_aodv__local + except ImportError: + pass + else: + ns3_module_aodv__local.register_functions(root_module) + + root_module.end_section('ns3_module_aodv') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_functions(root_module) @@ -1339,6 +1384,7 @@ def register_functions(root_module): register_functions_ns3_Config(module.get_submodule('Config'), root_module) register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) + register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) register_functions_ns3_flame(module.get_submodule('flame'), root_module) register_functions_ns3_internal(module.get_submodule('internal'), root_module) @@ -1354,6 +1400,9 @@ def register_functions_ns3_TimeStepPrecision(module, root_module): def register_functions_ns3_addressUtils(module, root_module): return +def register_functions_ns3_aodv(module, root_module): + return + def register_functions_ns3_dot11s(module, root_module): return diff --git a/bindings/python/ns3modulegen_core_customizations.py b/bindings/python/ns3modulegen_core_customizations.py index 194d99599..d82aa1e63 100644 --- a/bindings/python/ns3modulegen_core_customizations.py +++ b/bindings/python/ns3modulegen_core_customizations.py @@ -246,18 +246,43 @@ public: "parses python args to get C++ value" assert isinstance(wrapper, typehandlers.ForwardWrapperBase) - py_callback = wrapper.declarations.declare_variable('PyObject*', self.name) - wrapper.parse_params.add_parameter('O', ['&'+py_callback], self.name) - wrapper.before_call.write_error_check( - '!PyCallable_Check(%s)' % py_callback, - 'PyErr_SetString(PyExc_TypeError, "parameter \'%s\' must be callbale");' % self.name) - callback_impl = wrapper.declarations.declare_variable( - 'ns3::Ptr<%s>' % self.PYTHON_CALLBACK_IMPL_NAME, - '%s_cb_impl' % self.name) - wrapper.before_call.write_code("%s = ns3::Create<%s> (%s);" - % (callback_impl, self.PYTHON_CALLBACK_IMPL_NAME, py_callback)) - wrapper.call_params.append( - 'ns3::Callback<%s> (%s)' % (', '.join(self.TEMPLATE_ARGS), callback_impl)) + if self.default_value is None: + py_callback = wrapper.declarations.declare_variable('PyObject*', self.name) + wrapper.parse_params.add_parameter('O', ['&'+py_callback], self.name) + wrapper.before_call.write_error_check( + '!PyCallable_Check(%s)' % py_callback, + 'PyErr_SetString(PyExc_TypeError, "parameter \'%s\' must be callbale");' % self.name) + callback_impl = wrapper.declarations.declare_variable( + 'ns3::Ptr<%s>' % self.PYTHON_CALLBACK_IMPL_NAME, + '%s_cb_impl' % self.name) + wrapper.before_call.write_code("%s = ns3::Create<%s> (%s);" + % (callback_impl, self.PYTHON_CALLBACK_IMPL_NAME, py_callback)) + wrapper.call_params.append( + 'ns3::Callback<%s> (%s)' % (', '.join(self.TEMPLATE_ARGS), callback_impl)) + else: + py_callback = wrapper.declarations.declare_variable('PyObject*', self.name, 'NULL') + wrapper.parse_params.add_parameter('O', ['&'+py_callback], self.name, optional=True) + value = wrapper.declarations.declare_variable( + 'ns3::Callback<%s>' % ', '.join(self.TEMPLATE_ARGS), + self.name+'_value', + self.default_value) + + wrapper.before_call.write_code("if (%s) {" % (py_callback,)) + wrapper.before_call.indent() + + wrapper.before_call.write_error_check( + '!PyCallable_Check(%s)' % py_callback, + 'PyErr_SetString(PyExc_TypeError, "parameter \'%s\' must be callbale");' % self.name) + + wrapper.before_call.write_code("%s = ns3::Callback<%s> (ns3::Create<%s> (%s));" + % (value, ', '.join(self.TEMPLATE_ARGS), + self.PYTHON_CALLBACK_IMPL_NAME, py_callback)) + + wrapper.before_call.unindent() + wrapper.before_call.write_code("}") # closes: if (py_callback) { + + wrapper.call_params.append(value) + def convert_c_to_python(self, wrapper): raise typehandlers.NotSupportedError("Reverse wrappers for ns3::Callback<...> types " diff --git a/bindings/python/ns3modulescan.py b/bindings/python/ns3modulescan.py index eadf318cf..1a2530f29 100644 --- a/bindings/python/ns3modulescan.py +++ b/bindings/python/ns3modulescan.py @@ -8,7 +8,7 @@ from pybindgen.gccxmlparser import ModuleParser, PygenClassifier, PygenSection, from pybindgen.typehandlers.codesink import FileCodeSink from pygccxml.declarations import templates from pygccxml.declarations.class_declaration import class_t -from pygccxml.declarations.calldef import free_function_t, member_function_t, constructor_t +from pygccxml.declarations.calldef import free_function_t, member_function_t, constructor_t, calldef_t ## we need the smart pointer type transformation to be active even @@ -161,6 +161,13 @@ def pre_scan_hook(dummy_module_parser, and pygccxml_definition.name == 'Run': global_annotations['ignore'] = True + ## http://www.gccxml.org/Bug/view.php?id=9915 + if isinstance(pygccxml_definition, calldef_t): + for arg in pygccxml_definition.arguments: + if arg.default_value is None: + continue + if "ns3::MilliSeconds( )" == arg.default_value: + arg.default_value = "ns3::MilliSeconds(0)" ## classes if isinstance(pygccxml_definition, class_t): @@ -231,8 +238,9 @@ def scan_callback_classes(module_parser, callback_classes_file): class MyPygenClassifier(PygenClassifier): - def __init__(self, headers_map): + def __init__(self, headers_map, section_precendences): self.headers_map = headers_map + self.section_precendences = section_precendences def classify(self, pygccxml_definition): name = os.path.basename(pygccxml_definition.location.file_name) @@ -241,6 +249,11 @@ class MyPygenClassifier(PygenClassifier): except KeyError: return '__main__' + def get_section_precedence(self, section_name): + if section_name == '__main__': + return -1 + return self.section_precendences[section_name] + def ns3_module_scan(top_builddir, pygen_file_name, everything_h, cflags): @@ -257,13 +270,15 @@ def ns3_module_scan(top_builddir, pygen_file_name, everything_h, cflags): sections = [PygenSection('__main__', FileCodeSink(open(pygen_file_name, "wt")))] headers_map = {} # header_name -> section_name - for ns3_module in sorted_ns3_modules: + section_precendences = {} # section_name -> precedence + for prec, ns3_module in enumerate(sorted_ns3_modules): section_name = "ns3_module_%s" % ns3_module.replace('-', '_') file_name = os.path.join(os.path.dirname(pygen_file_name), "%s.py" % section_name) sections.append(PygenSection(section_name, FileCodeSink(open(file_name, "wt")), section_name + "__local")) for header in ns3_modules[ns3_module][1]: headers_map[header] = section_name + section_precendences[section_name] = prec module_parser = ModuleParser('ns3', 'ns3') @@ -283,7 +298,7 @@ def ns3_module_scan(top_builddir, pygen_file_name, everything_h, cflags): None, whitelist_paths=[top_builddir, os.path.dirname(everything_h)], #includes=['"ns3/everything.h"'], pygen_sink=sections, - pygen_classifier=MyPygenClassifier(headers_map), + pygen_classifier=MyPygenClassifier(headers_map, section_precendences), gccxml_options=gccxml_options) module_parser.scan_types() diff --git a/bindings/python/wscript b/bindings/python/wscript index 792e0029f..5bb703dea 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -15,7 +15,7 @@ import Build import Utils ## https://launchpad.net/pybindgen/ -REQUIRED_PYBINDGEN_VERSION = (0, 12, 0, 703) +REQUIRED_PYBINDGEN_VERSION = (0, 12, 0, 710) REQUIRED_PYGCCXML_VERSION = (0, 9, 5) @@ -119,10 +119,55 @@ def configure(conf): "PyBindGen version not correct and newer version could not be retrieved") return + + def test(t1, t2): + test_program = ''' +#include +#include + +int main () +{ + std::vector< %(type1)s > t = std::vector< %(type2)s > (); + return 0; +} +''' % dict(type1=t1, type2=t2) + + try: + ret = conf.run_c_code(code=test_program, + env=conf.env.copy(), compile_filename='test.cc', + compile_mode='cxx',type='cprogram', execute=False) + except Configure.ConfigurationError: + ret = 1 + conf.check_message_custom('types %s and %s' % (t1, t2), 'equivalency', (ret and 'no' or 'yes')) + return not ret + + uint64_is_long = test("uint64_t", "unsigned long") + uint64_is_long_long = test("uint64_t", "unsigned long long") + + if uint64_is_long: + conf.env['PYTHON_BINDINGS_APIDEFS'] = 'gcc-LP64' + elif uint64_is_long_long: + conf.env['PYTHON_BINDINGS_APIDEFS'] = 'gcc-ILP32' + else: + conf.env['PYTHON_BINDINGS_APIDEFS'] = None + if conf.env['PYTHON_BINDINGS_APIDEFS'] is None: + msg = 'none available' + else: + msg = conf.env['PYTHON_BINDINGS_APIDEFS'] + + conf.check_message_custom('the apidefs that can be used for Python bindings', '', msg) + + if conf.env['PYTHON_BINDINGS_APIDEFS'] is None: + conf.report_optional_feature("python", "Python Bindings", False, + "No apidefs are available that can be used in this system") + return + ## If all has gone well, we finally enable the Python bindings conf.env['ENABLE_PYTHON_BINDINGS'] = True conf.report_optional_feature("python", "Python Bindings", True, None) + + ## Check for pygccxml try: conf.check_python_module('pygccxml') @@ -427,18 +472,7 @@ def build(bld): return if env['ENABLE_PYTHON_BINDINGS']: - if sys.platform == 'cygwin': - apidefs = 'gcc-cygwin' - else: - import struct - if struct.calcsize('I') == 4 and struct.calcsize('L') == 8 and struct.calcsize('P') == 8: - apidefs = 'gcc-LP64' - elif struct.calcsize('I') == 4 and struct.calcsize('L') == 4 and struct.calcsize('P') == 4: - apidefs = 'gcc-ILP32' - else: - print "Cannot build python bindings for unsupported data model" - return - #print "Will build python bindings for target:", apidefs + apidefs = env['PYTHON_BINDINGS_APIDEFS'] ## Get a list of scanned modules; the set of scanned modules ## may be smaller than the set of all modules, in case a new diff --git a/src/contrib/net-anim/test-dumbbell.cc b/examples/animation/dumbbell-animation.cc similarity index 85% rename from src/contrib/net-anim/test-dumbbell.cc rename to examples/animation/dumbbell-animation.cc index 8267e6a49..3ad0be2f1 100644 --- a/src/contrib/net-anim/test-dumbbell.cc +++ b/examples/animation/dumbbell-animation.cc @@ -22,7 +22,6 @@ #include "ns3/simulator-module.h" #include "ns3/node-module.h" #include "ns3/helper-module.h" -#include "ns3/net-anim-module.h" using namespace ns3; @@ -68,9 +67,9 @@ int main (int argc, char *argv[]) d.InstallStack (stack); // Assign IP Addresses - d.AssignAddresses(Ipv4AddressHelper("10.1.1.0", "255.255.255.0"), - Ipv4AddressHelper("10.2.1.0", "255.255.255.0"), - Ipv4AddressHelper("10.3.1.0", "255.255.255.0")); + d.AssignIpv4Addresses (Ipv4AddressHelper ("10.1.1.0", "255.255.255.0"), + Ipv4AddressHelper ("10.2.1.0", "255.255.255.0"), + Ipv4AddressHelper ("10.3.1.0", "255.255.255.0")); // Install on/off app on all right side nodes OnOffHelper clientHelper ("ns3::UdpSocketFactory", Address ()); @@ -80,31 +79,31 @@ int main (int argc, char *argv[]) ("OffTime", RandomVariableValue (UniformVariable (0, 1))); ApplicationContainer clientApps; - for (uint32_t i = 0; i < d.RightCount(); ++i) + for (uint32_t i = 0; i < d.RightCount (); ++i) { // Create an on/off app sending packets to the same leaf right side - AddressValue remoteAddress(InetSocketAddress(d.GetLeftAddress(i), 1000)); - clientHelper.SetAttribute("Remote", remoteAddress); - clientApps.Add(clientHelper.Install(d.GetRight(i))); + AddressValue remoteAddress (InetSocketAddress (d.GetLeftIpv4Address (i), 1000)); + clientHelper.SetAttribute ("Remote", remoteAddress); + clientApps.Add(clientHelper.Install (d.GetRight (i))); } clientApps.Start (Seconds (0.0)); clientApps.Stop (Seconds (10.0)); // Set the bounding box for animation - d.BoundingBox(1, 1, 10, 10); + d.BoundingBox (1, 1, 10, 10); // Create the animation object and configure for specified output AnimationInterface anim; if (port > 0) { - anim.SetServerPort(port); + anim.SetServerPort (port); } - else if (!animFile.empty()) + else if (!animFile.empty ()) { - anim.SetOutputFile(animFile); + anim.SetOutputFile (animFile); } - anim.StartAnimation(); + anim.StartAnimation (); // Set up the acutal simulation Ipv4GlobalRoutingHelper::PopulateRoutingTables (); diff --git a/src/contrib/net-anim/test-grid.cc b/examples/animation/grid-animation.cc similarity index 78% rename from src/contrib/net-anim/test-grid.cc rename to examples/animation/grid-animation.cc index a97747e8a..aaff47b3a 100644 --- a/src/contrib/net-anim/test-grid.cc +++ b/examples/animation/grid-animation.cc @@ -22,7 +22,6 @@ #include "ns3/simulator-module.h" #include "ns3/node-module.h" #include "ns3/helper-module.h" -#include "ns3/net-anim-module.h" using namespace ns3; @@ -43,12 +42,10 @@ int main (int argc, char *argv[]) cmd.AddValue ("animFile", "File Name for Animation Output", animFile); cmd.Parse (argc,argv); - if (xSize < 1) - NS_FATAL_ERROR ("Need more nodes for grid."); - if (ySize < 1) - NS_FATAL_ERROR ("Need more nodes for grid."); - if (xSize < 2 && ySize < 2) - NS_FATAL_ERROR ("Need more nodes for grid."); + if (xSize < 1 || ySize < 1 || (xSize < 2 && ySize < 2)) + { + NS_FATAL_ERROR ("Need more nodes for grid."); + } PointToPointHelper pointToPoint; pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); @@ -62,8 +59,8 @@ int main (int argc, char *argv[]) grid.InstallStack (stack); // Assign Addresses to Grid - grid.AssignAddresses (Ipv4AddressHelper("10.1.1.0", "255.255.255.0"), - Ipv4AddressHelper("10.2.1.0", "255.255.255.0")); + grid.AssignIpv4Addresses (Ipv4AddressHelper ("10.1.1.0", "255.255.255.0"), + Ipv4AddressHelper ("10.2.1.0", "255.255.255.0")); OnOffHelper clientHelper ("ns3::UdpSocketFactory", Address ()); @@ -74,27 +71,27 @@ int main (int argc, char *argv[]) ApplicationContainer clientApps; // Create an on/off app sending packets - AddressValue remoteAddress(InetSocketAddress(grid.GetAddress (xSize-1,ySize-1), 1000)); - clientHelper.SetAttribute("Remote", remoteAddress); - clientApps.Add(clientHelper.Install(grid.GetNode (0,0))); + AddressValue remoteAddress (InetSocketAddress (grid.GetIpv4Address (xSize-1,ySize-1), 1000)); + clientHelper.SetAttribute ("Remote", remoteAddress); + clientApps.Add (clientHelper.Install (grid.GetNode (0,0))); clientApps.Start (Seconds (0.0)); clientApps.Stop (Seconds (1.5)); // Set the bounding box for animation - grid.BoundingBox(1, 1, 10, 10); + grid.BoundingBox (1, 1, 10, 10); // Create the animation object and configure for specified output AnimationInterface anim; if (port > 0) { - anim.SetServerPort(port); + anim.SetServerPort (port); } - else if (!animFile.empty()) + else if (!animFile.empty ()) { - anim.SetOutputFile(animFile); + anim.SetOutputFile (animFile); } - anim.StartAnimation(); + anim.StartAnimation (); // Set up the actual simulation Ipv4GlobalRoutingHelper::PopulateRoutingTables (); diff --git a/examples/animation/star-animation.cc b/examples/animation/star-animation.cc new file mode 100644 index 000000000..e46c9e171 --- /dev/null +++ b/examples/animation/star-animation.cc @@ -0,0 +1,134 @@ +/* -*- 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 + * + */ + +#include "ns3/core-module.h" +#include "ns3/simulator-module.h" +#include "ns3/node-module.h" +#include "ns3/helper-module.h" + +// Network topology (default) +// +// n2 n3 n4 . +// \ | / . +// \|/ . +// n1--- n0---n5 . +// /|\ . +// / | \ . +// n8 n7 n6 . +// + + +using namespace ns3; + +NS_LOG_COMPONENT_DEFINE ("StarAnimation"); + +int +main (int argc, char *argv[]) +{ + + // + // Set up some default values for the simulation. + // + Config::SetDefault ("ns3::OnOffApplication::PacketSize", UintegerValue (137)); + + // ??? try and stick 15kb/s into the data rate + Config::SetDefault ("ns3::OnOffApplication::DataRate", StringValue ("14kb/s")); + + // + // Default number of nodes in the star. Overridable by command line argument. + // + uint32_t nSpokes = 8; + uint32_t animPort = 0; + std::string animFile; + + CommandLine cmd; + cmd.AddValue("nSpokes", "Number of spoke nodes to place in the star", nSpokes); + cmd.AddValue ("animPort", "Port Number for Remote Animation", animPort); + cmd.AddValue ("animFile", "File Name for Animation Output", animFile); + + cmd.Parse (argc, argv); + + NS_LOG_INFO ("Build star topology."); + PointToPointHelper pointToPoint; + pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); + pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); + PointToPointStarHelper star (nSpokes, pointToPoint); + + NS_LOG_INFO ("Install internet stack on all nodes."); + InternetStackHelper internet; + star.InstallStack (internet); + + NS_LOG_INFO ("Assign IP Addresses."); + star.AssignIpv4Addresses (Ipv4AddressHelper ("10.1.1.0", "255.255.255.0")); + + NS_LOG_INFO ("Create applications."); + // + // Create a packet sink on the star "hub" to receive packets. + // + uint16_t port = 50000; + Address hubLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port)); + PacketSinkHelper packetSinkHelper ("ns3::TcpSocketFactory", hubLocalAddress); + ApplicationContainer hubApp = packetSinkHelper.Install (star.GetHub ()); + hubApp.Start (Seconds (1.0)); + hubApp.Stop (Seconds (10.0)); + + // + // Create OnOff applications to send TCP to the hub, one on each spoke node. + // + OnOffHelper onOffHelper ("ns3::TcpSocketFactory", Address ()); + onOffHelper.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1))); + onOffHelper.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0))); + + ApplicationContainer spokeApps; + + for (uint32_t i = 0; i < star.SpokeCount (); ++i) + { + AddressValue remoteAddress (InetSocketAddress (star.GetHubIpv4Address (i), port)); + onOffHelper.SetAttribute ("Remote", remoteAddress); + spokeApps.Add (onOffHelper.Install (star.GetSpoke (i))); + } + spokeApps.Start (Seconds (1.0)); + spokeApps.Stop (Seconds (10.0)); + + NS_LOG_INFO ("Enable static global routing."); + // + // Turn on global static routing so we can actually be routed across the star. + // + Ipv4GlobalRoutingHelper::PopulateRoutingTables (); + + // Set the bounding box for animation + star.BoundingBox (1, 1, 10, 10); + + // Create the animation object and configure for specified output + AnimationInterface anim; + if (animPort > 0) + { + anim.SetServerPort (animPort); + } + else if (!animFile.empty ()) + { + anim.SetOutputFile (animFile); + } + anim.StartAnimation (); + + NS_LOG_INFO ("Run Simulation."); + Simulator::Run (); + Simulator::Destroy (); + NS_LOG_INFO ("Done."); + + return 0; +} diff --git a/examples/animation/waf b/examples/animation/waf new file mode 100644 index 000000000..941d56b43 --- /dev/null +++ b/examples/animation/waf @@ -0,0 +1 @@ +exec "`dirname "$0"`"/../../waf "$@" diff --git a/examples/animation/wscript b/examples/animation/wscript new file mode 100644 index 000000000..369b47629 --- /dev/null +++ b/examples/animation/wscript @@ -0,0 +1,14 @@ +## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- + +def build(bld): + obj = bld.create_ns3_program('dumbbell-animation', + ['point-to-point', 'internet-stack']) + obj.source = 'dumbbell-animation.cc' + + obj = bld.create_ns3_program('grid-animation', + ['point-to-point', 'internet-stack']) + obj.source = 'grid-animation.cc' + + obj = bld.create_ns3_program('star-animation', + ['point-to-point', 'internet-stack']) + obj.source = 'star-animation.cc' diff --git a/examples/csma/csma-star.cc b/examples/csma/csma-star.cc index d64082703..dd8400c50 100644 --- a/examples/csma/csma-star.cc +++ b/examples/csma/csma-star.cc @@ -58,26 +58,17 @@ main (int argc, char *argv[]) // // Default number of nodes in the star. Overridable by command line argument. // - uint32_t nNodes = 7; + uint32_t nSpokes = 7; CommandLine cmd; - cmd.AddValue("nNodes", "Number of nodes to place in the star", nNodes); + cmd.AddValue("nSpokes", "Number of spoke nodes to place in the star", nSpokes); cmd.Parse (argc, argv); - NS_LOG_INFO ("Create nodes."); - NodeContainer hubNode; - NodeContainer spokeNodes; - hubNode.Create (1); - Ptr hub = hubNode.Get (0); - spokeNodes.Create (nNodes - 1); - + NS_LOG_INFO ("Build star topology."); CsmaHelper csma; csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); csma.SetChannelAttribute ("Delay", StringValue ("1ms")); - - NS_LOG_INFO ("Build star topology."); - NetDeviceContainer hubDevices, spokeDevices; - csma.InstallStar (hubNode.Get (0), spokeNodes, hubDevices, spokeDevices); + CsmaStarHelper star (nSpokes, csma); NodeContainer fillNodes; @@ -89,12 +80,11 @@ main (int argc, char *argv[]) NetDeviceContainer fillDevices; uint32_t nFill = 14; - for (uint32_t i = 0; i < spokeDevices.GetN (); ++i) + for (uint32_t i = 0; i < star.GetSpokeDevices ().GetN (); ++i) { - Ptr channel = spokeDevices.Get (i)->GetChannel (); + Ptr channel = star.GetSpokeDevices ().Get (i)->GetChannel (); Ptr csmaChannel = channel->GetObject (); NodeContainer newNodes; - NetDeviceContainer newDevices; newNodes.Create (nFill); fillNodes.Add (newNodes); fillDevices.Add (csma.Install (newNodes, csmaChannel)); @@ -102,39 +92,30 @@ main (int argc, char *argv[]) NS_LOG_INFO ("Install internet stack on all nodes."); InternetStackHelper internet; - internet.Install (NodeContainer (hubNode, spokeNodes, fillNodes)); + star.InstallStack (internet); + internet.Install (fillNodes); NS_LOG_INFO ("Assign IP Addresses."); + star.AssignIpv4Addresses (Ipv4AddressHelper ("10.1.0.0", "255.255.255.0")); + + // + // We assigned addresses to the logical hub and the first "drop" of the + // CSMA network that acts as the spoke, but we also have a number of fill + // devices (nFill) also hanging off the CSMA network. We have got to + // assign addresses to them as well. We put all of the fill devices into + // a single device container, so the first nFill devices are associated + // with the channel connected to spokeDevices.Get (0), the second nFill + // devices afe associated with the channel connected to spokeDevices.Get (1) + // etc. + // Ipv4AddressHelper address; - - // - // Assign IPv4 interfaces and IP addresses to the devices we previously - // created. Keep track of the resulting addresses, one for the addresses - // of the hub node, and one for addresses on the spoke nodes. Despite the - // name of the class (Ipv4InterfaceContainer), what is visible to clients - // is really the address not the interface. - // - Ipv4InterfaceContainer hubAddresses; - Ipv4InterfaceContainer spokeAddresses; - - for(uint32_t i = 0; i < spokeNodes.GetN (); ++i) + for(uint32_t i = 0; i < star.SpokeCount (); ++i) { std::ostringstream subnet; subnet << "10.1." << i << ".0"; NS_LOG_INFO ("Assign IP Addresses for CSMA subnet " << subnet.str ()); - address.SetBase (subnet.str ().c_str (), "255.255.255.0"); - hubAddresses.Add (address.Assign (hubDevices.Get (i))); - spokeAddresses.Add (address.Assign (spokeDevices.Get (i))); - // - // We assigned addresses to the logical hub and the first "drop" of the - // CSMA network that acts as the spoke, but we also have a number of fill - // devices (nFill) also hanging off the CSMA network. We have got to - // assign addresses to them as well. We put all of the fill devices into - // a single device container, so the first nFill devices are associated - // with the channel connected to spokeDevices.Get (0), the second nFill - // devices afe associated with the channel connected to spokeDevices.Get (1) - // etc. - // + address.SetBase (subnet.str ().c_str (), "255.255.255.0", "0.0.0.3"); + for (uint32_t j = 0; j < nFill; ++j) { address.Assign (fillDevices.Get (i * nFill + j)); @@ -148,7 +129,7 @@ main (int argc, char *argv[]) uint16_t port = 50000; Address hubLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port)); PacketSinkHelper packetSinkHelper ("ns3::TcpSocketFactory", hubLocalAddress); - ApplicationContainer hubApp = packetSinkHelper.Install (hubNode); + ApplicationContainer hubApp = packetSinkHelper.Install (star.GetHub ()); hubApp.Start (Seconds (1.0)); hubApp.Stop (Seconds (10.0)); @@ -161,11 +142,11 @@ main (int argc, char *argv[]) ApplicationContainer spokeApps; - for (uint32_t i = 0; i < spokeNodes.GetN (); ++i) + for (uint32_t i = 0; i < star.SpokeCount (); ++i) { - AddressValue remoteAddress (InetSocketAddress (hubAddresses.GetAddress (i), port)); + AddressValue remoteAddress (InetSocketAddress (star.GetHubIpv4Address (i), port)); onOffHelper.SetAttribute ("Remote", remoteAddress); - spokeApps.Add (onOffHelper.Install (spokeNodes.Get (i))); + spokeApps.Add (onOffHelper.Install (star.GetSpoke (i))); } spokeApps.Start (Seconds (1.0)); @@ -183,7 +164,7 @@ main (int argc, char *argv[]) for (uint32_t i = 0; i < fillNodes.GetN (); ++i) { - AddressValue remoteAddress (InetSocketAddress (hubAddresses.GetAddress (i / nFill), port)); + AddressValue remoteAddress (InetSocketAddress (star.GetHubIpv4Address (i / nFill), port)); onOffHelper.SetAttribute ("Remote", remoteAddress); fillApps.Add (onOffHelper.Install (fillNodes.Get (i))); } diff --git a/examples/tcp/star.cc b/examples/tcp/star.cc index 0092c1f86..cfce911aa 100644 --- a/examples/tcp/star.cc +++ b/examples/tcp/star.cc @@ -51,52 +51,24 @@ main (int argc, char *argv[]) // // Default number of nodes in the star. Overridable by command line argument. // - uint32_t nNodes = 9; + uint32_t nSpokes = 8; CommandLine cmd; - cmd.AddValue("nNodes", "Number of nodes to place in the star", nNodes); + cmd.AddValue("nSpokes", "Number of nodes to place in the star", nSpokes); cmd.Parse (argc, argv); - NS_LOG_INFO ("Create nodes."); - NodeContainer hubNode; - NodeContainer spokeNodes; - hubNode.Create (1); - Ptr hub = hubNode.Get (0); - spokeNodes.Create (nNodes - 1); - - NS_LOG_INFO ("Install internet stack on all nodes."); - InternetStackHelper internet; - internet.Install (NodeContainer (hubNode, spokeNodes)); - + NS_LOG_INFO ("Build star topology."); PointToPointHelper pointToPoint; pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); + PointToPointStarHelper star (nSpokes, pointToPoint); - NS_LOG_INFO ("Build star topology."); - NetDeviceContainer hubDevices, spokeDevices; - pointToPoint.InstallStar (hubNode.Get (0), spokeNodes, hubDevices, spokeDevices); + NS_LOG_INFO ("Install internet stack on all nodes."); + InternetStackHelper internet; + star.InstallStack (internet); NS_LOG_INFO ("Assign IP Addresses."); - Ipv4AddressHelper address; - - // - // Assign IPv4 interfaces and IP addresses to the devices we previously - // created. Keep track of the resulting addresses, one for the addresses - // of the hub node, and one for addresses on the spoke nodes. Despite the - // name of the class, what is visible to clients is really the address. - // - Ipv4InterfaceContainer hubAddresses; - Ipv4InterfaceContainer spokeAddresses; - - for(uint32_t i = 0; i < spokeNodes.GetN (); ++i) - { - std::ostringstream subnet; - subnet << "10.1.1." << (i << 2); - NS_LOG_INFO ("Assign IP Addresses for point-to-point subnet " << subnet.str ()); - address.SetBase (subnet.str ().c_str (), "255.255.255.252"); - hubAddresses.Add (address.Assign (hubDevices.Get (i))); - spokeAddresses.Add (address.Assign (spokeDevices.Get (i))); - } + star.AssignIpv4Addresses (Ipv4AddressHelper ("10.1.1.0", "255.255.255.0")); NS_LOG_INFO ("Create applications."); // @@ -105,7 +77,7 @@ main (int argc, char *argv[]) uint16_t port = 50000; Address hubLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port)); PacketSinkHelper packetSinkHelper ("ns3::TcpSocketFactory", hubLocalAddress); - ApplicationContainer hubApp = packetSinkHelper.Install (hubNode); + ApplicationContainer hubApp = packetSinkHelper.Install (star.GetHub ()); hubApp.Start (Seconds (1.0)); hubApp.Stop (Seconds (10.0)); @@ -118,11 +90,11 @@ main (int argc, char *argv[]) ApplicationContainer spokeApps; - for (uint32_t i = 0; i < spokeNodes.GetN (); ++i) + for (uint32_t i = 0; i < star.SpokeCount (); ++i) { - AddressValue remoteAddress (InetSocketAddress (hubAddresses.GetAddress (i), port)); + AddressValue remoteAddress (InetSocketAddress (star.GetHubIpv4Address (i), port)); onOffHelper.SetAttribute ("Remote", remoteAddress); - spokeApps.Add (onOffHelper.Install (spokeNodes.Get (i))); + spokeApps.Add (onOffHelper.Install (star.GetSpoke (i))); } spokeApps.Start (Seconds (1.0)); spokeApps.Stop (Seconds (10.0)); diff --git a/examples/wscript b/examples/wscript index ebe1590f9..b441943ac 100644 --- a/examples/wscript +++ b/examples/wscript @@ -3,6 +3,7 @@ def build(bld): env = bld.env_of_name('default') if env['ENABLE_EXAMPLES']: + bld.add_subdirs('animation') bld.add_subdirs('csma') bld.add_subdirs('emulation') bld.add_subdirs('error-model') diff --git a/src/common/packet.h b/src/common/packet.h index 77841235f..0fdff7efb 100644 --- a/src/common/packet.h +++ b/src/common/packet.h @@ -32,6 +32,7 @@ #include "ns3/callback.h" #include "ns3/assert.h" #include "ns3/ptr.h" +#include "ns3/deprecated.h" namespace ns3 { @@ -326,10 +327,14 @@ public: /** * If you try to change the content of the buffer * returned by this method, you will die. + * Note that this method is now deprecated and will be removed in + * the next version of ns-3. If you need to get access to the content + * of the byte buffer of a packet, you need to call + * ns3::Packet::CopyData to perform an explicit copy. * * \returns a pointer to the internal buffer of the packet. */ - uint8_t const *PeekData (void) const; + uint8_t const *PeekData (void) const NS_DEPRECATED; /** * \param buffer a pointer to a byte buffer where the packet data diff --git a/src/common/pcap-writer.cc b/src/common/pcap-writer.cc index c69cb223e..c56d463f1 100644 --- a/src/common/pcap-writer.cc +++ b/src/common/pcap-writer.cc @@ -333,7 +333,7 @@ void PcapWriter::WriteWifiMonitorPacket(Ptr packet, uint16_t chann Write32(isTx ? 1 : 0); Write32(PRISM_DID_FRMLEN); - Write16(PRISM_STATUS_ABSENT); + Write16(PRISM_STATUS_PRESENT); Write16(PRISM_ITEM_LENGTH); Write32(packet->GetSize ()); diff --git a/src/contrib/net-anim/wscript b/src/contrib/net-anim/wscript deleted file mode 100644 index a3cd21edc..000000000 --- a/src/contrib/net-anim/wscript +++ /dev/null @@ -1,31 +0,0 @@ -## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- - -def configure(conf): - conf.check(header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H') - conf.check(header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H') - conf.write_config_header('ns3/net-anim-config.h', top=True) - - -def build(bld): - obj = bld.create_ns3_module('net-anim') - obj.source = [ - 'point-to-point-dumbbell-helper.cc', - 'point-to-point-grid-helper.cc', - 'animation-interface.cc', - 'node-location.cc' - ] - - headers = bld.new_task_gen('ns3header') - headers.module = 'net-anim' - headers.source = [ - 'point-to-point-dumbbell-helper.h', - 'point-to-point-grid-helper.h', - 'animation-interface.h', - 'node-location.h' - ] - - obj = bld.create_ns3_program('test-dumbbell', ['net-anim', 'point-to-point', 'internet-stack']) - obj.source = 'test-dumbbell.cc' - - obj = bld.create_ns3_program('test-grid', ['net-anim', 'point-to-point', 'internet-stack']) - obj.source = 'test-grid.cc' diff --git a/src/contrib/stats/sqlite-data-output.cc b/src/contrib/stats/sqlite-data-output.cc index f04a0e342..b809f03f8 100644 --- a/src/contrib/stats/sqlite-data-output.cc +++ b/src/contrib/stats/sqlite-data-output.cc @@ -131,11 +131,13 @@ SqliteDataOutput::Output(DataCollector &dc) blob.second + "')"); } + Exec("BEGIN"); SqliteOutputCallback callback(this, run); for (DataCalculatorList::iterator i = dc.DataCalculatorBegin(); i != dc.DataCalculatorEnd(); i++) { (*i)->Output(callback); } + Exec("COMMIT"); sqlite3_close(m_db); diff --git a/src/contrib/wscript b/src/contrib/wscript index 09c857581..8def0e779 100644 --- a/src/contrib/wscript +++ b/src/contrib/wscript @@ -17,7 +17,6 @@ def configure(conf): conf.write_config_header('ns3/contrib-config.h', top=True) conf.sub_config('stats') - conf.sub_config('net-anim') def build(bld): diff --git a/src/core/object.cc b/src/core/object.cc index 34c35fc50..af2f772e9 100644 --- a/src/core/object.cc +++ b/src/core/object.cc @@ -163,24 +163,49 @@ Object::DoGetObject (TypeId tid) const void Object::Start (void) { + /** + * Note: the code here is a bit tricky because we need to protect ourselves from + * modifications in the aggregate array while DoStart is called. The user's + * implementation of the DoStart method could call GetObject (which could + * reorder the array) and it could call AggregateObject which would add an + * object at the end of the array. To be safe, we restart iteration over the + * array whenever we call some user code, just in case. + */ + restart: uint32_t n = m_aggregates->n; for (uint32_t i = 0; i < n; i++) { Object *current = m_aggregates->buffer[i]; - current->DoStart (); - current->m_started = true; + if (!current->m_started) + { + current->DoStart (); + current->m_started = true; + goto restart; + } } } void Object::Dispose (void) { + /** + * Note: the code here is a bit tricky because we need to protect ourselves from + * modifications in the aggregate array while DoDispose is called. The user's + * DoDispose implementation could call GetObject (which could reorder the array) + * and it could call AggregateObject which would add an object at the end of the array. + * So, to be safe, we restart the iteration over the array whenever we call some + * user code. + */ + restart: uint32_t n = m_aggregates->n; for (uint32_t i = 0; i < n; i++) { Object *current = m_aggregates->buffer[i]; - NS_ASSERT (!current->m_disposed); - current->DoDispose (); - current->m_disposed = true; + if (!current->m_disposed) + { + current->DoDispose (); + current->m_disposed = true; + goto restart; + } } } void @@ -216,21 +241,25 @@ Object::AggregateObject (Ptr o) struct Aggregates *aggregates = (struct Aggregates *)malloc (sizeof(struct Aggregates)+(total-1)*sizeof(Object*)); aggregates->n = total; + + // copy our buffer to the new buffer memcpy (&aggregates->buffer[0], &m_aggregates->buffer[0], m_aggregates->n*sizeof(Object*)); - // append the other aggregates in the new buffer + + // append the other buffer into the new buffer too for (uint32_t i = 0; i < other->m_aggregates->n; i++) { aggregates->buffer[m_aggregates->n+i] = other->m_aggregates->buffer[i]; UpdateSortedArray (aggregates, m_aggregates->n + i); } - // free both aggregate buffers - free (m_aggregates); - free (other->m_aggregates); + // keep track of the old aggregate buffers for the iteration + // of NotifyNewAggregates + struct Aggregates *a = m_aggregates; + struct Aggregates *b = other->m_aggregates; - // Then, assign that buffer to every object + // Then, assign the new aggregation buffer to every object uint32_t n = aggregates->n; for (uint32_t i = 0; i < n; i++) { @@ -241,12 +270,25 @@ Object::AggregateObject (Ptr o) // share the counts ShareCount (other); - // Finally, call NotifyNewAggregate in the listed chain - for (uint32_t i = 0; i < n; i++) + // Finally, call NotifyNewAggregate on all the objects aggregates together. + // We purposedly use the old aggregate buffers to iterate over the objects + // because this allows us to assume that they will not change from under + // our feet, even if our users call AggregateObject from within their + // NotifyNewAggregate method. + for (uint32_t i = 0; i < a->n; i++) { - Object *current = m_aggregates->buffer[i]; + Object *current = a->buffer[i]; current->NotifyNewAggregate (); } + for (uint32_t i = 0; i < b->n; i++) + { + Object *current = b->buffer[i]; + current->NotifyNewAggregate (); + } + + // Now that we are done with them, we can free our old aggregate buffers + free (a); + free (b); } /** * This function must be implemented in the stack that needs to notify diff --git a/src/core/object.h b/src/core/object.h index f9d6edaed..2014a6a63 100644 --- a/src/core/object.h +++ b/src/core/object.h @@ -127,6 +127,12 @@ public: * This method aggregates the two objects together: after this * method returns, it becomes possible to call GetObject * on one to get the other, and vice-versa. + * + * This method calls the virtual method NotifyNewAggregates to + * notify all aggregated objects that they have been aggregated + * together. + * + * \sa NotifyNewAggregate */ void AggregateObject (Ptr other); @@ -141,26 +147,32 @@ public: AggregateIterator GetAggregateIterator (void) const; /** - * Execute starting code of an object. What this method does is really up - * to the user. + * This method calls the virtual DoStart method on all the objects + * aggregated to this object. DoStart will be called only once over + * the lifetime of an object, just like DoDispose is called only + * once. + * + * \sa DoStart */ void Start (void); protected: /** - * This function is called by the AggregateObject on all the objects connected in the listed chain. - * This way the new object aggregated will be used if needed by the NotifyNewAggregate corresponding - * to each object connected in the listed chain. It should be implemented by objects needing an - * additional/special behavior when aggregated to another object. + * This method is invoked whenever two sets of objects are aggregated together. + * It is invoked exactly once for each object in both sets. + * This method can be overriden by subclasses who wish to be notified of aggregation + * events. These subclasses must chain up to their base class NotifyNewAggregate method. + * It is safe to call GetObject and AggregateObject from within this method. */ - virtual void NotifyNewAggregate (); + virtual void NotifyNewAggregate (void); /** * This method is called only once by Object::Start. If the user * calls Object::Start multiple times, DoStart is called only the * first time. * * Subclasses are expected to override this method and _chain up_ - * to their parent's implementation once they are done. + * to their parent's implementation once they are done. It is + * safe to call GetObject and AggregateObject from within this method. */ virtual void DoStart (void); /** @@ -173,6 +185,8 @@ protected: * i.e., for simplicity, the destructor of every subclass should * be empty and its content should be moved to the associated * DoDispose method. + * + * It is safe to call GetObject from within this method. */ virtual void DoDispose (void); /** diff --git a/src/devices/mesh/mesh-wifi-interface-mac.cc b/src/devices/mesh/mesh-wifi-interface-mac.cc index d11f02690..4e53a1378 100644 --- a/src/devices/mesh/mesh-wifi-interface-mac.cc +++ b/src/devices/mesh/mesh-wifi-interface-mac.cc @@ -401,11 +401,11 @@ MeshWifiInterfaceMac::ForwardDown (Ptr const_packet, Mac48Address if (packet->RemovePacketTag (tag)) { hdr.SetType (WIFI_MAC_QOSDATA); - hdr.SetQosTid (tag.Get ()); + hdr.SetQosTid (tag.GetTid ()); //Aftre setting type DsFrom and DsTo fields are reset. hdr.SetDsFrom (); hdr.SetDsTo (); - ac = QosUtilsMapTidToAc (tag.Get ()); + ac = QosUtilsMapTidToAc (tag.GetTid ()); } m_stats.sentFrames++; m_stats.sentBytes += packet->GetSize (); diff --git a/src/devices/wifi/qadhoc-wifi-mac.cc b/src/devices/wifi/qadhoc-wifi-mac.cc index d795d2263..2b7b3d8fb 100644 --- a/src/devices/wifi/qadhoc-wifi-mac.cc +++ b/src/devices/wifi/qadhoc-wifi-mac.cc @@ -410,6 +410,18 @@ QadhocWifiMac::FinishConfigureStandard (enum WifiPhyStandard standard) { switch (standard) { + case WIFI_PHY_STANDARD_80211p_CCH: + ConfigureCCHDcf (m_queues[AC_BK], 15, 511, AC_BK); + ConfigureCCHDcf (m_queues[AC_BE], 15, 511, AC_BE); + ConfigureCCHDcf (m_queues[AC_VI], 15, 511, AC_VI); + ConfigureCCHDcf (m_queues[AC_VO], 15, 511, AC_VO); + break; + case WIFI_PHY_STANDARD_80211p_SCH: + ConfigureDcf (m_queues[AC_BK], 15, 511, AC_BK); + ConfigureDcf (m_queues[AC_BE], 15, 511, AC_BE); + ConfigureDcf (m_queues[AC_VI], 15, 511, AC_VI); + ConfigureDcf (m_queues[AC_VO], 15, 511, AC_VO); + break; case WIFI_PHY_STANDARD_holland: // fall through case WIFI_PHY_STANDARD_80211a: diff --git a/src/devices/wifi/qap-wifi-mac.cc b/src/devices/wifi/qap-wifi-mac.cc index e66fdf5bc..9dc75eab9 100644 --- a/src/devices/wifi/qap-wifi-mac.cc +++ b/src/devices/wifi/qap-wifi-mac.cc @@ -752,6 +752,18 @@ QapWifiMac::FinishConfigureStandard (enum WifiPhyStandard standard) { switch (standard) { + case WIFI_PHY_STANDARD_80211p_CCH: + ConfigureCCHDcf (m_queues[AC_BK], 15, 511, AC_BK); + ConfigureCCHDcf (m_queues[AC_BE], 15, 511, AC_BE); + ConfigureCCHDcf (m_queues[AC_VI], 15, 511, AC_VI); + ConfigureCCHDcf (m_queues[AC_VO], 15, 511, AC_VO); + break; + case WIFI_PHY_STANDARD_80211p_SCH: + ConfigureDcf (m_queues[AC_BK], 15, 511, AC_BK); + ConfigureDcf (m_queues[AC_BE], 15, 511, AC_BE); + ConfigureDcf (m_queues[AC_VI], 15, 511, AC_VI); + ConfigureDcf (m_queues[AC_VO], 15, 511, AC_VO); + break; case WIFI_PHY_STANDARD_holland: // fall through case WIFI_PHY_STANDARD_80211a: diff --git a/src/devices/wifi/qos-tag.cc b/src/devices/wifi/qos-tag.cc index 2010be3c1..09c453ab7 100644 --- a/src/devices/wifi/qos-tag.cc +++ b/src/devices/wifi/qos-tag.cc @@ -31,7 +31,7 @@ QosTag::GetTypeId (void) .AddConstructor () .AddAttribute ("tid", "The tid that indicates AC which packet belongs", UintegerValue (0), - MakeUintegerAccessor (&QosTag::Get), + MakeUintegerAccessor (&QosTag::GetTid), MakeUintegerChecker ()) ; return tid; @@ -49,6 +49,18 @@ QosTag::QosTag (): QosTag::QosTag (uint8_t tid): m_tid (tid) {} + +void +QosTag::SetTid (uint8_t tid) +{ + m_tid = tid; +} + +void +QosTag::SetUserPriority (UserPriority up) +{ + m_tid = up; +} uint32_t QosTag::GetSerializedSize (void) const @@ -65,17 +77,11 @@ QosTag::Serialize (TagBuffer i) const void QosTag::Deserialize (TagBuffer i) { - m_tid = i.ReadU8 (); -} - -void -QosTag::Set (uint8_t tid) -{ - m_tid = tid; + m_tid = (UserPriority) i.ReadU8 (); } uint8_t -QosTag::Get () const +QosTag::GetTid () const { return m_tid; } diff --git a/src/devices/wifi/qos-tag.h b/src/devices/wifi/qos-tag.h index 1e8ab9dac..6e70702fa 100644 --- a/src/devices/wifi/qos-tag.h +++ b/src/devices/wifi/qos-tag.h @@ -26,21 +26,79 @@ namespace ns3 { class Tag; + +/** + * As per IEEE Std. 802.11-2007, Section 6.1.1.1.1, when EDCA is used the + * the Traffic ID (TID) value corresponds to one of the User Priority (UP) + * values defined by the IEEE Std. 802.1D-2004, Annex G, table G-2. + * + * Note that this correspondence does not hold for HCCA, since in that + * case the mapping between UPs and TIDs should be determined by a + * TSPEC element as per IEEE Std. 802.11-2007, Section 7.3.2.30 + */ +enum UserPriority { + UP_BK = 1, /**< background */ + UP_BE = 0, /**< best effort (default) */ + UP_EE = 3, /**< excellent effort */ + UP_CL = 4, /**< controlled load */ + UP_VI = 5, /**< video, < 100ms latency and jitter */ + UP_VO = 6, /**< voice, < 10ms latency and jitter */ + UP_NC = 7 /**< network control */ +}; + + + + /** + * The aim of the QosTag is to provide means for an Application to + * specify the TID which will be used by a QoS-aware WifiMac for a + * given traffic flow. Note that the current QosTag class was + * designed to be completely mac/wifi specific without any attempt + * at being generic. + */ class QosTag : public Tag { public: static TypeId GetTypeId (void); virtual TypeId GetInstanceTypeId (void) const; - + + /** + * Create a QosTag with the default TID = 0 (best effort traffic) + */ QosTag (); + + /** + * Create a QosTag with the given TID + */ QosTag (uint8_t tid); + + /** + * Set the TID to the given value. This assumes that the + * application is aware of the QoS support provided by the MAC + * layer, and is therefore able to set the correct TID. + * + * @param tid the value of the TID to set + */ + void SetTid (uint8_t tid); + + /** + * Set the TID to the value that corresponds to the requested + * UserPriority. Note that, since the mapping of UserPriority to TID + * is defined for EDCA only, you should call this method only when + * EDCA is used. When using HDCA, QosTag(uint8_t tid) should be used + * instead. + * + * @param up the requested UserPriority + * + */ + void SetUserPriority (UserPriority up); + virtual void Serialize (TagBuffer i) const; virtual void Deserialize (TagBuffer i); virtual uint32_t GetSerializedSize () const; virtual void Print (std::ostream &os) const; - uint8_t Get (void) const; - void Set (uint8_t tid); + uint8_t GetTid (void) const; + private: uint8_t m_tid; }; diff --git a/src/devices/wifi/qos-utils.cc b/src/devices/wifi/qos-utils.cc index 8effbe1ab..bb79ff613 100644 --- a/src/devices/wifi/qos-utils.cc +++ b/src/devices/wifi/qos-utils.cc @@ -61,9 +61,9 @@ QosUtilsGetTidForPacket (Ptr packet) uint8_t tid = 8; if (packet->PeekPacketTag (qos)) { - if (qos.Get () < 8) + if (qos.GetTid () < 8) { - tid = qos.Get (); + tid = qos.GetTid (); } } return tid; diff --git a/src/devices/wifi/qsta-wifi-mac.cc b/src/devices/wifi/qsta-wifi-mac.cc index ba8f2f1f5..95669311d 100644 --- a/src/devices/wifi/qsta-wifi-mac.cc +++ b/src/devices/wifi/qsta-wifi-mac.cc @@ -739,6 +739,18 @@ QstaWifiMac::FinishConfigureStandard (enum WifiPhyStandard standard) { switch (standard) { + case WIFI_PHY_STANDARD_80211p_CCH: + ConfigureCCHDcf (m_queues[AC_BK], 15, 511, AC_BK); + ConfigureCCHDcf (m_queues[AC_BE], 15, 511, AC_BE); + ConfigureCCHDcf (m_queues[AC_VI], 15, 511, AC_VI); + ConfigureCCHDcf (m_queues[AC_VO], 15, 511, AC_VO); + break; + case WIFI_PHY_STANDARD_80211p_SCH: + ConfigureDcf (m_queues[AC_BK], 15, 511, AC_BK); + ConfigureDcf (m_queues[AC_BE], 15, 511, AC_BE); + ConfigureDcf (m_queues[AC_VI], 15, 511, AC_VI); + ConfigureDcf (m_queues[AC_VO], 15, 511, AC_VO); + break; case WIFI_PHY_STANDARD_holland: // fall through case WIFI_PHY_STANDARD_80211a: diff --git a/src/devices/wifi/wifi-mac.cc b/src/devices/wifi/wifi-mac.cc index 8448e5e9d..629fb5a6d 100644 --- a/src/devices/wifi/wifi-mac.cc +++ b/src/devices/wifi/wifi-mac.cc @@ -220,6 +220,12 @@ WifiMac::ConfigureStandard (enum WifiPhyStandard standard) case WIFI_PHY_STANDARD_holland: Configure80211a (); break; + case WIFI_PHY_STANDARD_80211p_CCH: + Configure80211p_CCH (); + break; + case WIFI_PHY_STANDARD_80211p_SCH: + Configure80211p_SCH (); + break; default: NS_ASSERT (false); break; @@ -271,6 +277,28 @@ WifiMac::Configure80211_5Mhz (void) SetAckTimeout(MicroSeconds(64+176+21+GetDefaultMaxPropagationDelay().GetMicroSeconds ()*2)); } +void +WifiMac::Configure80211p_CCH (void) +{ + SetSifs(MicroSeconds(32)); + SetSlot(MicroSeconds(16)); + SetEifsNoDifs(MicroSeconds(32+88)); + SetPifs(MicroSeconds(32+16)); + SetCtsTimeout(MicroSeconds(32+88+16+GetDefaultMaxPropagationDelay().GetMicroSeconds ()*2)); + SetAckTimeout(MicroSeconds(32+88+16+GetDefaultMaxPropagationDelay().GetMicroSeconds ()*2)); +} + +void +WifiMac::Configure80211p_SCH (void) +{ + SetSifs(MicroSeconds(32)); + SetSlot(MicroSeconds(16)); + SetEifsNoDifs(MicroSeconds(32+88)); + SetPifs(MicroSeconds(32+16)); + SetCtsTimeout(MicroSeconds(32+88+16+GetDefaultMaxPropagationDelay().GetMicroSeconds ()*2)); + SetAckTimeout(MicroSeconds(32+88+16+GetDefaultMaxPropagationDelay().GetMicroSeconds ()*2)); +} + void WifiMac::ConfigureDcf (Ptr dcf, uint32_t cwmin, uint32_t cwmax, enum AccessClass ac) { @@ -307,5 +335,39 @@ WifiMac::ConfigureDcf (Ptr dcf, uint32_t cwmin, uint32_t cwmax, enum Access } } - +void +WifiMac::ConfigureCCHDcf (Ptr dcf, uint32_t cwmin, uint32_t cwmax, enum AccessClass ac) +{ + /* see IEEE 1609.4-2006 section 6.3.1, Table 1 */ + switch (ac) { + case AC_VO: + dcf->SetMinCw ((cwmin+1)/4-1); + dcf->SetMaxCw ((cwmin+1)/2-1); + dcf->SetAifsn (2); + break; + case AC_VI: + dcf->SetMinCw ((cwmin+1)/4-1); + dcf->SetMaxCw ((cwmin+1)/2-1); + dcf->SetAifsn (3); + break; + case AC_BE: + dcf->SetMinCw ((cwmin+1)/2-1); + dcf->SetMaxCw (cwmin); + dcf->SetAifsn (6); + break; + case AC_BK: + dcf->SetMinCw (cwmin); + dcf->SetMaxCw (cwmax); + dcf->SetAifsn (9); + break; + case AC_BE_NQOS: + dcf->SetMinCw (cwmin); + dcf->SetMaxCw (cwmax); + dcf->SetAifsn (2); + break; + case AC_UNDEF: + NS_FATAL_ERROR ("I don't know what to do with this"); + break; + } +} } // namespace ns3 diff --git a/src/devices/wifi/wifi-mac.h b/src/devices/wifi/wifi-mac.h index 0a59acd59..eb5f0841a 100644 --- a/src/devices/wifi/wifi-mac.h +++ b/src/devices/wifi/wifi-mac.h @@ -216,6 +216,7 @@ public: protected: void ConfigureDcf (Ptr dcf, uint32_t cwmin, uint32_t cwmax, enum AccessClass ac); + void ConfigureCCHDcf (Ptr dcf, uint32_t cwmin, uint32_t cwmax, enum AccessClass ac); private: static Time GetDefaultMaxPropagationDelay (void); static Time GetDefaultSlot (void); @@ -240,6 +241,8 @@ private: void Configure80211b (void); void Configure80211_10Mhz (void); void Configure80211_5Mhz (); + void Configure80211p_CCH (void); + void Configure80211p_SCH (void); /** * The trace source fired when packets come into the "top" of the device diff --git a/src/devices/wifi/wifi-phy-standard.h b/src/devices/wifi/wifi-phy-standard.h index 8a3a7b757..906e7235c 100644 --- a/src/devices/wifi/wifi-phy-standard.h +++ b/src/devices/wifi/wifi-phy-standard.h @@ -28,6 +28,8 @@ enum WifiPhyStandard { WIFI_PHY_STANDARD_80211_10Mhz, WIFI_PHY_STANDARD_80211_5Mhz, WIFI_PHY_STANDARD_holland, + WIFI_PHY_STANDARD_80211p_CCH, + WIFI_PHY_STANDARD_80211p_SCH, WIFI_PHY_UNKNOWN }; diff --git a/src/devices/wifi/yans-wifi-phy.cc b/src/devices/wifi/yans-wifi-phy.cc index d3be72062..7c0bf4fd7 100644 --- a/src/devices/wifi/yans-wifi-phy.cc +++ b/src/devices/wifi/yans-wifi-phy.cc @@ -171,6 +171,12 @@ YansWifiPhy::ConfigureStandard (enum WifiPhyStandard standard) case WIFI_PHY_STANDARD_holland: ConfigureHolland (); break; + case WIFI_PHY_STANDARD_80211p_CCH: + Configure80211p_CCH (); + break; + case WIFI_PHY_STANDARD_80211p_SCH: + Configure80211p_SCH (); + break; default: NS_ASSERT (false); break; @@ -592,6 +598,36 @@ YansWifiPhy::ConfigureHolland (void) m_modes.push_back (WifiPhy::Get54mba ()); } +void +YansWifiPhy::Configure80211p_CCH (void) +{ + NS_LOG_FUNCTION (this); + m_channelStartingFrequency = 5e3; // 802.11p works over the 5Ghz freq range + m_modes.push_back (WifiPhy::Get3mb10Mhz ()); + m_modes.push_back (WifiPhy::Get4_5mb10Mhz ()); + m_modes.push_back (WifiPhy::Get6mb10Mhz ()); + m_modes.push_back (WifiPhy::Get9mb10Mhz ()); + m_modes.push_back (WifiPhy::Get12mb10Mhz ()); + m_modes.push_back (WifiPhy::Get18mb10Mhz ()); + m_modes.push_back (WifiPhy::Get24mb10Mhz ()); + m_modes.push_back (WifiPhy::Get27mb10Mhz ()); +} + +void +YansWifiPhy::Configure80211p_SCH (void) +{ + NS_LOG_FUNCTION (this); + m_channelStartingFrequency = 5e3; // 802.11p works over the 5Ghz freq range + m_modes.push_back (WifiPhy::Get3mb10Mhz ()); + m_modes.push_back (WifiPhy::Get4_5mb10Mhz ()); + m_modes.push_back (WifiPhy::Get6mb10Mhz ()); + m_modes.push_back (WifiPhy::Get9mb10Mhz ()); + m_modes.push_back (WifiPhy::Get12mb10Mhz ()); + m_modes.push_back (WifiPhy::Get18mb10Mhz ()); + m_modes.push_back (WifiPhy::Get24mb10Mhz ()); + m_modes.push_back (WifiPhy::Get27mb10Mhz ()); +} + void YansWifiPhy::RegisterListener (WifiPhyListener *listener) { diff --git a/src/devices/wifi/yans-wifi-phy.h b/src/devices/wifi/yans-wifi-phy.h index 948d97bfb..26a52817e 100644 --- a/src/devices/wifi/yans-wifi-phy.h +++ b/src/devices/wifi/yans-wifi-phy.h @@ -153,6 +153,8 @@ private: void Configure80211_10Mhz (void); void Configure80211_5Mhz (); void ConfigureHolland (void); + void Configure80211p_CCH (void); + void Configure80211p_SCH (void); double GetEdThresholdW (void) const; double DbmToW (double dbm) const; double DbToRatio (double db) const; diff --git a/src/contrib/net-anim/animation-interface.cc b/src/helper/animation-interface.cc similarity index 94% rename from src/contrib/net-anim/animation-interface.cc rename to src/helper/animation-interface.cc index 5a750a906..e8cbd7ea4 100644 --- a/src/contrib/net-anim/animation-interface.cc +++ b/src/helper/animation-interface.cc @@ -25,8 +25,8 @@ // Socket related includes #if defined(HAVE_SYS_SOCKET_H) && defined(HAVE_NETINET_IN_H) -# include -# include +#include +#include #else #include #endif @@ -36,7 +36,7 @@ #include "ns3/channel.h" #include "ns3/config.h" #include "ns3/node.h" -#include "ns3/node-location.h" +#include "ns3/canvas-location.h" #include "ns3/packet.h" #include "ns3/simulator.h" @@ -51,6 +51,10 @@ AnimationInterface::AnimationInterface () { } +AnimationInterface::~AnimationInterface () +{ +} + bool AnimationInterface::SetOutputFile (const std::string& fn) { FILE* f = fopen (fn.c_str (), "w"); @@ -85,12 +89,8 @@ bool AnimationInterface::SetServerPort (uint16_t port) setsockopt (s, SOL_SOCKET, SO_LINGER, &t, sizeof(t)); return true; #endif - return false;//never reached unless the above is disabled -} - -bool AnimationInterface::SetInternalAnimation () -{ - return false; // Not implemented yet + return false; // never reached unless the above is disabled + // which is done to support a platform like MinGW } void AnimationInterface::StartAnimation () @@ -99,7 +99,7 @@ void AnimationInterface::StartAnimation () for (NodeList::Iterator i = NodeList::Begin (); i != NodeList::End (); ++i) { Ptr n = *i; - Ptr loc = n->GetObject (); + Ptr loc = n->GetObject (); if (loc) { // Location exists, dump it @@ -111,7 +111,7 @@ void AnimationInterface::StartAnimation () } } // Now dump the p2p links - for (NodeList::Iterator i = NodeList::Begin (); i != NodeList::End(); ++i) + for (NodeList::Iterator i = NodeList::Begin (); i != NodeList::End (); ++i) { Ptr n = *i; uint32_t n1Id = n->GetId (); diff --git a/src/contrib/net-anim/animation-interface.h b/src/helper/animation-interface.h similarity index 88% rename from src/contrib/net-anim/animation-interface.h rename to src/helper/animation-interface.h index 9ba6ca685..7ca6751d6 100644 --- a/src/contrib/net-anim/animation-interface.h +++ b/src/helper/animation-interface.h @@ -18,8 +18,8 @@ // Interface between ns3 and the network animator -#ifndef __ANIMATION_INTERFACE__H__ -#define __ANIMATION_INTERFACE__H__ +#ifndef ANIMATION_INTERFACE__H +#define ANIMATION_INTERFACE__H #include @@ -46,6 +46,10 @@ public: * @brief Construct the animator interface. No arguments needed. */ AnimationInterface (); +/** + * @brief Destructor for the animator interface. + */ + ~AnimationInterface (); /** * @brief Specify that animation commands are to be written * to the specified output file. @@ -72,18 +76,6 @@ public: */ bool SetServerPort (uint16_t port); -/** - * @brief Specify that animation window is to be created as part - * of the ns3 process. - * - * This call is used to set the ns3 animator internal to the - * current process. This will fail if the ns3 library was built - * without the QT4 developer packages. - * - * @returns true if animation started, false if failed. - */ - bool SetInternalAnimation (); - /** * @brief Writes the topology information and sets up the appropriate * animation packet tx callback diff --git a/src/contrib/net-anim/node-location.cc b/src/helper/canvas-location.cc similarity index 69% rename from src/contrib/net-anim/node-location.cc rename to src/helper/canvas-location.cc index add805142..a0a5c1079 100644 --- a/src/contrib/net-anim/node-location.cc +++ b/src/helper/canvas-location.cc @@ -18,37 +18,39 @@ * Author: George Riley */ -#include "node-location.h" +#include "canvas-location.h" namespace ns3 { TypeId -NodeLocation::GetTypeId (void) +CanvasLocation::GetTypeId (void) { - static TypeId tid = TypeId ("ns3::NodeLocation") + static TypeId tid = TypeId ("ns3::CanvasLocation") .SetParent () - .AddAttribute ("Position", "The current position of the mobility model.", + .AddAttribute ("Location", "The current location on the canvas.", TypeId::ATTR_SET | TypeId::ATTR_GET, VectorValue (Vector (0.0, 0.0, 0.0)), - MakeVectorAccessor (&NodeLocation::SetLocation, - &NodeLocation::GetLocation), + MakeVectorAccessor (&CanvasLocation::SetLocation, + &CanvasLocation::GetLocation), MakeVectorChecker ()) ; return tid; } -NodeLocation::NodeLocation () +CanvasLocation::CanvasLocation () {} -NodeLocation::~NodeLocation () +CanvasLocation::~CanvasLocation () {} -Vector NodeLocation::GetLocation (void) const +Vector +CanvasLocation::GetLocation (void) const { return m_location; } -void NodeLocation::SetLocation (const Vector &location) +void +CanvasLocation::SetLocation (const Vector &location) { m_location = location; } diff --git a/src/contrib/net-anim/node-location.h b/src/helper/canvas-location.h similarity index 90% rename from src/contrib/net-anim/node-location.h rename to src/helper/canvas-location.h index 6119f92e4..12dcdfca4 100644 --- a/src/contrib/net-anim/node-location.h +++ b/src/helper/canvas-location.h @@ -17,8 +17,8 @@ * * Author: George Riley */ -#ifndef __NODE_LOCATION_H__ -#define __NODE_LOCATION_H__ +#ifndef CANVAS_LOCATION_H +#define CANVAS_LOCATION_H #include "ns3/object.h" #include "ns3/traced-callback.h" @@ -37,12 +37,12 @@ namespace ns3 { * arbitrary and dimensionless. In the case of use by the * animator they dimensions are in pixels. */ -class NodeLocation : public Object +class CanvasLocation : public Object { public: static TypeId GetTypeId (void); - NodeLocation (); - virtual ~NodeLocation (); + CanvasLocation (); + virtual ~CanvasLocation (); /** * \returns the current location @@ -58,4 +58,4 @@ private: }; // namespace ns3 -#endif /* __NODE_LOCATION_H__ */ +#endif /* CANVAS_LOCATION_H */ diff --git a/src/helper/csma-helper.cc b/src/helper/csma-helper.cc index 234a75c2f..388c9ea1f 100644 --- a/src/helper/csma-helper.cc +++ b/src/helper/csma-helper.cc @@ -268,27 +268,6 @@ CsmaHelper::InstallPriv (Ptr node, Ptr channel) const return device; } -void -CsmaHelper::InstallStar (Ptr hub, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices) -{ - for (uint32_t i = 0; i < spokes.GetN (); ++i) - { - NodeContainer nodes (hub, spokes.Get (i)); - NetDeviceContainer nd = Install (nodes); - hubDevices.Add (nd.Get (0)); - spokeDevices.Add (nd.Get (1)); - } -} - -void -CsmaHelper::InstallStar (std::string hubName, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices) -{ - Ptr hub = Names::Find (hubName); - InstallStar (hub, spokes, hubDevices, spokeDevices); -} - void CsmaHelper::SniffEvent (Ptr writer, Ptr packet) { diff --git a/src/helper/csma-helper.h b/src/helper/csma-helper.h index 7f98d139b..867ff7f82 100644 --- a/src/helper/csma-helper.h +++ b/src/helper/csma-helper.h @@ -285,72 +285,6 @@ public: */ NetDeviceContainer Install (const NodeContainer &c, std::string channelName) const; - /** - * \brief Make a star network topology. - * - * Given a pointer to a node that will become the hub of the star, and a - * NodeContainer containing pointers to the nodes that will become the - * spokes; we construct CSMA net devices on the hub (corresponding to the - * spokes) and store them in the hubDevices NetDeviceContainer. We add a - * net device to each spoke node and store them in the spokeDevices - * NetDeviceContainer. A CSMA is created for each spoke. - * - * Usually when one thinks of a star network, one thinks of point-to-point - * links. We're just using a single pair of devices on a multi-point-to-point - * network "drops" as the link. You are free to add any number of other - * devices on the link if you want. - * - * The ordering of the devices in the hubDevices container is according to - * the order of the spokes container -- that is, hubDevices[0] will be the - * net device used on the hub that talks to spokes[0]. the container entry - * spokeDevices[0] will have the device that hubDevices[0] talks to -- those - * two devices are the ones that connect hub to spokes[0]. - * - * \param hub The central node of the star network - * \param spokes A NodeContainer of the nodes that will be the spoke (leaf) - * nodes - * \param hubDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on the hub. - * \param spokeDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on each of - * the spokes. - */ - void InstallStar (Ptr hub, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices); - - /** - * \brief Make a star network topology. - * - * Given a pointer to a node that will become the hub of the star, and a - * NodeContainer containing pointers to the nodes that will become the - * spokes; we construct CSMA net devices on the hub (corresponding to the - * spokes) and store them in the hubDevices NetDeviceContainer. We add a - * net device to each spoke node and store them in the spokeDevices - * NetDeviceContainer. A CSMA is created for each spoke. - * - * Usually when one thinks of a star network, one thinks of point-to-point - * links. We're just using a single pair of devices on a multi-point-to-point - * network "drops" as the link. You are free to add any number of other - * devices on the link if you want. - * - * The ordering of the devices in the hubDevices container is according to - * the order of the spokes container -- that is, hubDevices[0] will be the - * net device used on the hub that talks to spokes[0]. the container entry - * spokeDevices[0] will have the device that hubDevices[0] talks to -- those - * two devices are the ones that connect hub to spokes[0]. - * - * \param hubName The name of the central node of the star network - * \param spokes A NodeContainer of the nodes that will be the spoke (leaf) - * nodes - * \param hubDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on the hub. - * \param spokeDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on each of - * the spokes. - */ - void InstallStar (std::string hubName, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices); - private: /* * \internal diff --git a/src/helper/csma-star-helper.cc b/src/helper/csma-star-helper.cc new file mode 100644 index 000000000..5bc2f8f50 --- /dev/null +++ b/src/helper/csma-star-helper.cc @@ -0,0 +1,110 @@ +/* -*- 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 + */ + +#include +#include + +// ns3 includes +#include "ns3/animation-interface.h" +#include "ns3/csma-star-helper.h" + +#include "ns3/node-list.h" +#include "ns3/point-to-point-net-device.h" +#include "ns3/vector.h" + +NS_LOG_COMPONENT_DEFINE("CsmaStarHelper"); + +namespace ns3 { + +CsmaStarHelper::CsmaStarHelper (uint32_t numSpokes, + CsmaHelper csmaHelper) +{ + m_hub.Create (1); + m_spokes.Create (numSpokes); + + for (uint32_t i = 0; i < m_spokes.GetN (); ++i) + { + NodeContainer nodes (m_hub.Get (0), m_spokes.Get (i)); + NetDeviceContainer nd = csmaHelper.Install (nodes); + m_hubDevices.Add (nd.Get (0)); + m_spokeDevices.Add (nd.Get (1)); + } +} + +CsmaStarHelper::~CsmaStarHelper () +{} + +Ptr +CsmaStarHelper::GetHub () const +{ + return m_hub.Get (0); +} + +Ptr +CsmaStarHelper::GetSpoke (uint32_t i) const +{ + return m_spokes.Get (i); +} + +NetDeviceContainer +CsmaStarHelper::GetHubDevices () const +{ + return m_spokeDevices; +} + +NetDeviceContainer +CsmaStarHelper::GetSpokeDevices () const +{ + return m_spokeDevices; +} + +Ipv4Address +CsmaStarHelper::GetHubIpv4Address (uint32_t i) const +{ + return m_hubInterfaces.GetAddress (i); +} + +Ipv4Address +CsmaStarHelper::GetSpokeIpv4Address (uint32_t i) const +{ + return m_spokeInterfaces.GetAddress (i); +} + +uint32_t +CsmaStarHelper::SpokeCount () const +{ + return m_spokes.GetN (); +} + +void +CsmaStarHelper::InstallStack (InternetStackHelper stack) +{ + stack.Install (m_hub); + stack.Install (m_spokes); +} + +void +CsmaStarHelper::AssignIpv4Addresses (Ipv4AddressHelper address) +{ + for (uint32_t i = 0; i < m_spokes.GetN (); ++i) + { + m_hubInterfaces.Add (address.Assign (m_hubDevices.Get (i))); + m_spokeInterfaces.Add (address.Assign (m_spokeDevices.Get (i))); + address.NewNetwork (); + } +} + +} // namespace ns3 diff --git a/src/helper/csma-star-helper.h b/src/helper/csma-star-helper.h new file mode 100644 index 000000000..6900118b0 --- /dev/null +++ b/src/helper/csma-star-helper.h @@ -0,0 +1,59 @@ +/* -*- 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 + */ + +// Define an object to create a dumbbell topology. + +#ifndef CSMA_STAR_HELPER_H +#define CSMA_STAR_HELPER_H + +#include + +#include "csma-helper.h" +#include "ipv4-address-helper.h" +#include "internet-stack-helper.h" +#include "ipv4-interface-container.h" + +namespace ns3 { + +class CsmaStarHelper +{ +public: + CsmaStarHelper (uint32_t numSpokes, + CsmaHelper csmaHelper); + ~CsmaStarHelper (); +public: + Ptr GetHub () const; + Ptr GetSpoke (uint32_t) const; + NetDeviceContainer GetHubDevices () const; + NetDeviceContainer GetSpokeDevices () const; + Ipv4Address GetHubIpv4Address (uint32_t) const; + Ipv4Address GetSpokeIpv4Address (uint32_t) const; + uint32_t SpokeCount () const; + void InstallStack (InternetStackHelper stack); + void AssignIpv4Addresses (Ipv4AddressHelper address); + +private: + NodeContainer m_hub; + NetDeviceContainer m_hubDevices; + NodeContainer m_spokes; + NetDeviceContainer m_spokeDevices; + Ipv4InterfaceContainer m_hubInterfaces; + Ipv4InterfaceContainer m_spokeInterfaces; +}; +} +#endif + + diff --git a/src/contrib/net-anim/point-to-point-dumbbell-helper.cc b/src/helper/point-to-point-dumbbell-helper.cc similarity index 85% rename from src/contrib/net-anim/point-to-point-dumbbell-helper.cc rename to src/helper/point-to-point-dumbbell-helper.cc index 0188315ec..0bb06b34e 100644 --- a/src/contrib/net-anim/point-to-point-dumbbell-helper.cc +++ b/src/helper/point-to-point-dumbbell-helper.cc @@ -24,23 +24,21 @@ // ns3 includes #include "ns3/animation-interface.h" #include "ns3/point-to-point-dumbbell-helper.h" -#include "ns3/node-location.h" +#include "ns3/canvas-location.h" #include "ns3/node-list.h" #include "ns3/point-to-point-net-device.h" #include "ns3/vector.h" -using namespace std; - NS_LOG_COMPONENT_DEFINE("PointToPointDumbbellHelper"); namespace ns3 { PointToPointDumbbellHelper::PointToPointDumbbellHelper (uint32_t nLeftLeaf, - PointToPointHelper& leftHelper, + PointToPointHelper leftHelper, uint32_t nRightLeaf, - PointToPointHelper& rightHelper, - PointToPointHelper& bottleneckHelper) + PointToPointHelper rightHelper, + PointToPointHelper bottleneckHelper) { // Create the bottleneck routers m_routers.Create (2); @@ -68,6 +66,9 @@ PointToPointDumbbellHelper::PointToPointDumbbellHelper (uint32_t nLeftLeaf, } } +PointToPointDumbbellHelper::~PointToPointDumbbellHelper () +{} + Ptr PointToPointDumbbellHelper::GetLeft () const { // Get the left side bottleneck router return m_routers.Get (0); @@ -88,12 +89,12 @@ Ptr PointToPointDumbbellHelper::GetRight (uint32_t i) const return m_rightLeaf.Get (i); } -Ipv4Address PointToPointDumbbellHelper::GetLeftAddress (uint32_t i) const +Ipv4Address PointToPointDumbbellHelper::GetLeftIpv4Address (uint32_t i) const { return m_leftLeafInterfaces.GetAddress (i); } -Ipv4Address PointToPointDumbbellHelper::GetRightAddress (uint32_t i) const +Ipv4Address PointToPointDumbbellHelper::GetRightIpv4Address (uint32_t i) const { return m_rightLeafInterfaces.GetAddress (i); } @@ -115,7 +116,7 @@ void PointToPointDumbbellHelper::InstallStack (InternetStackHelper stack) stack.Install (m_rightLeaf); } -void PointToPointDumbbellHelper::AssignAddresses (Ipv4AddressHelper leftIp, +void PointToPointDumbbellHelper::AssignIpv4Addresses (Ipv4AddressHelper leftIp, Ipv4AddressHelper rightIp, Ipv4AddressHelper routerIp) { @@ -132,7 +133,7 @@ void PointToPointDumbbellHelper::AssignAddresses (Ipv4AddressHelper leftIp, m_leftRouterInterfaces.Add (ifc.Get (1)); leftIp.NewNetwork (); } - // Assign to right size + // Assign to right side for (uint32_t i = 0; i < RightCount (); ++i) { NetDeviceContainer ndc; @@ -149,18 +150,35 @@ void PointToPointDumbbellHelper::AssignAddresses (Ipv4AddressHelper leftIp, void PointToPointDumbbellHelper::BoundingBox (double ulx, double uly, // Upper left x/y double lrx, double lry) // Lower right y { - double xDist = lrx - ulx; - double yDist = lry - uly; + double xDist; + double yDist; + if (lrx > ulx) + { + xDist = lrx - ulx; + } + else + { + xDist = ulx - lrx; + } + if (lry > uly) + { + yDist = lry - uly; + } + else + { + yDist = uly - lry; + } + double xAdder = xDist / 3.0; double thetaL = M_PI / (LeftCount () + 1.0); double thetaR = M_PI / (RightCount () + 1.0); // Place the left router Ptr lr = GetLeft (); - Ptr loc = lr->GetObject (); + Ptr loc = lr->GetObject (); if (loc == 0) { - loc = CreateObject (); + loc = CreateObject (); lr->AggregateObject (loc); } Vector lrl (ulx + xAdder, uly + yDist/2.0, 0); @@ -168,10 +186,10 @@ void PointToPointDumbbellHelper::BoundingBox (double ulx, double uly, // Upper l // Place the right router Ptr rr = GetRight (); - loc = rr->GetObject (); + loc = rr->GetObject (); if (loc == 0) { - loc = CreateObject (); + loc = CreateObject (); rr->AggregateObject (loc); } Vector rrl (ulx + xAdder * 2, uly + yDist/2.0, 0); // Right router location @@ -191,10 +209,10 @@ void PointToPointDumbbellHelper::BoundingBox (double ulx, double uly, // Upper l } } Ptr ln = GetLeft (l); - loc = ln->GetObject (); + loc = ln->GetObject (); if (loc == 0) { - loc = CreateObject (); + loc = CreateObject (); ln->AggregateObject (loc); } Vector lnl (lrl.x - cos (theta) * xAdder, @@ -224,10 +242,10 @@ void PointToPointDumbbellHelper::BoundingBox (double ulx, double uly, // Upper l } } Ptr rn = GetRight (r); - loc = rn->GetObject (); + loc = rn->GetObject (); if (loc == 0) { - loc = CreateObject (); + loc = CreateObject (); rn->AggregateObject (loc); } Vector rnl (rrl.x + cos (theta) * xAdder, // Right node location diff --git a/src/contrib/net-anim/point-to-point-dumbbell-helper.h b/src/helper/point-to-point-dumbbell-helper.h similarity index 85% rename from src/contrib/net-anim/point-to-point-dumbbell-helper.h rename to src/helper/point-to-point-dumbbell-helper.h index c54caaeaf..06487461e 100644 --- a/src/contrib/net-anim/point-to-point-dumbbell-helper.h +++ b/src/helper/point-to-point-dumbbell-helper.h @@ -18,8 +18,8 @@ // Define an object to create a dumbbell topology. -#ifndef __POINT_TO_POINT_DUMBBELL_HELPER_H__ -#define __POINT_TO_POINT_DUMBBELL_HELPER_H__ +#ifndef POINT_TO_POINT_DUMBBELL_HELPER_H +#define POINT_TO_POINT_DUMBBELL_HELPER_H #include @@ -34,21 +34,22 @@ class PointToPointDumbbellHelper { public: PointToPointDumbbellHelper (uint32_t nLeftLeaf, // Number of left size leaf nodes - PointToPointHelper& leftHelper, + PointToPointHelper leftHelper, uint32_t nRightLeaf, // Number of right side leaf nodes - PointToPointHelper& rightHelper, - PointToPointHelper& bottleneckHelper); + PointToPointHelper rightHelper, + PointToPointHelper bottleneckHelper); + ~PointToPointDumbbellHelper (); public: Ptr GetLeft () const; // Get the left side bottleneck router Ptr GetLeft (uint32_t) const; // Get the i'th left side leaf Ptr GetRight () const; // Get the right side bottleneck router Ptr GetRight (uint32_t) const; // Get the i'th right side leaf - Ipv4Address GetLeftAddress (uint32_t) const; // Get left leaf address - Ipv4Address GetRightAddress (uint32_t) const; // Get right leaf address + Ipv4Address GetLeftIpv4Address (uint32_t) const; // Get left leaf address + Ipv4Address GetRightIpv4Address (uint32_t) const; // Get right leaf address uint32_t LeftCount () const; // Number of left side nodes uint32_t RightCount () const; // Number of right side nodes void InstallStack (InternetStackHelper stack); - void AssignAddresses (Ipv4AddressHelper leftIp, + void AssignIpv4Addresses (Ipv4AddressHelper leftIp, Ipv4AddressHelper rightIp, Ipv4AddressHelper routerIp); // Add locations in the specified bounding box diff --git a/src/contrib/net-anim/point-to-point-grid-helper.cc b/src/helper/point-to-point-grid-helper.cc similarity index 79% rename from src/contrib/net-anim/point-to-point-grid-helper.cc rename to src/helper/point-to-point-grid-helper.cc index 20b232b6d..8a1bbaa21 100644 --- a/src/contrib/net-anim/point-to-point-grid-helper.cc +++ b/src/helper/point-to-point-grid-helper.cc @@ -20,7 +20,7 @@ #include "ns3/animation-interface.h" #include "ns3/internet-stack-helper.h" #include "ns3/point-to-point-helper.h" -#include "ns3/node-location.h" +#include "ns3/canvas-location.h" #include "ns3/string.h" #include "ns3/vector.h" #include "ns3/log.h" @@ -34,6 +34,12 @@ PointToPointGridHelper::PointToPointGridHelper (uint32_t nRows, PointToPointHelper pointToPoint) : m_xSize (nCols), m_ySize (nRows) { + // Bounds check + if (m_xSize < 1 || m_ySize < 1 || (m_xSize < 2 && m_ySize < 2)) + { + NS_FATAL_ERROR ("Need more nodes for grid."); + } + InternetStackHelper stack; for (uint32_t y = 0; y < nRows; ++y) @@ -44,7 +50,7 @@ PointToPointGridHelper::PointToPointGridHelper (uint32_t nRows, for (uint32_t x = 0; x < nCols; ++x) { - rowNodes.Create(1); + rowNodes.Create (1); // install p2p links across the row if (x > 0) @@ -61,7 +67,7 @@ PointToPointGridHelper::PointToPointGridHelper (uint32_t nRows, } } - m_nodes.push_back(rowNodes); + m_nodes.push_back (rowNodes); m_rowDevices.push_back (rowDevices); if (y > 0) @@ -69,6 +75,9 @@ PointToPointGridHelper::PointToPointGridHelper (uint32_t nRows, } } +PointToPointGridHelper::~PointToPointGridHelper () +{} + void PointToPointGridHelper::InstallStack (InternetStackHelper stack) { @@ -83,7 +92,7 @@ PointToPointGridHelper::InstallStack (InternetStackHelper stack) } void -PointToPointGridHelper::AssignAddresses (Ipv4AddressHelper rowIp, Ipv4AddressHelper colIp) +PointToPointGridHelper::AssignIpv4Addresses (Ipv4AddressHelper rowIp, Ipv4AddressHelper colIp) { // Assign addresses to all row devices in the grid. // These devices are stored in a vector. Each row @@ -124,9 +133,24 @@ void PointToPointGridHelper::BoundingBox (double ulx, double uly, double lrx, double lry) { - double xDist = lrx - ulx; - double yDist = lry - uly; - + double xDist; + double yDist; + if (lrx > ulx) + { + xDist = lrx - ulx; + } + else + { + xDist = ulx - lrx; + } + if (lry > uly) + { + yDist = lry - uly; + } + else + { + yDist = uly - lry; + } double xAdder = xDist / m_xSize; double yAdder = yDist / m_ySize; double yLoc = yDist / 2; @@ -136,10 +160,10 @@ PointToPointGridHelper::BoundingBox (double ulx, double uly, for (uint32_t j = 0; j < m_xSize; ++j) { Ptr node = GetNode (i, j); - Ptr loc = node->GetObject (); + Ptr loc = node->GetObject (); if (loc ==0) { - loc = CreateObject (); + loc = CreateObject (); node->AggregateObject (loc); } Vector locVec (xLoc, yLoc, 0); @@ -154,12 +178,26 @@ PointToPointGridHelper::BoundingBox (double ulx, double uly, Ptr PointToPointGridHelper::GetNode (uint32_t row, uint32_t col) { - return (m_nodes.at (row)).Get (col); + if (row < 0 || col < 0 || + row > m_nodes.size () - 1 || + col > m_nodes.at (row).GetN () - 1) + { + NS_FATAL_ERROR ("Index out of bounds in PointToPointGridHelper::GetNode."); + } + + return (m_nodes.at (row)).Get (col); } Ipv4Address -PointToPointGridHelper::GetAddress (uint32_t row, uint32_t col) +PointToPointGridHelper::GetIpv4Address (uint32_t row, uint32_t col) { + if (row < 0 || col < 0 || + row > m_nodes.size () - 1 || + col > m_nodes.at (row).GetN () - 1) + { + NS_FATAL_ERROR ("Index out of bounds in PointToPointGridHelper::GetIpv4Address."); + } + // Right now this just gets one of the addresses of the // specified node. The exact device can't be specified. // If you picture the grid, the address returned is the diff --git a/src/contrib/net-anim/point-to-point-grid-helper.h b/src/helper/point-to-point-grid-helper.h similarity index 84% rename from src/contrib/net-anim/point-to-point-grid-helper.h rename to src/helper/point-to-point-grid-helper.h index 9799c18b3..8b572fa8c 100644 --- a/src/contrib/net-anim/point-to-point-grid-helper.h +++ b/src/helper/point-to-point-grid-helper.h @@ -16,8 +16,8 @@ * Author: Josh Pelkey */ -#ifndef __POINT_TO_POINT_GRID_HELPER_H__ -#define __POINT_TO_POINT_GRID_HELPER_H__ +#ifndef POINT_TO_POINT_GRID_HELPER_H +#define POINT_TO_POINT_GRID_HELPER_H #include @@ -33,12 +33,13 @@ class PointToPointGridHelper { public: PointToPointGridHelper (uint32_t nRows, uint32_t nCols, PointToPointHelper pointToPoint); + ~PointToPointGridHelper (); Ptr GetNode (uint32_t row, uint32_t col); - Ipv4Address GetAddress (uint32_t row, uint32_t col); + Ipv4Address GetIpv4Address (uint32_t row, uint32_t col); void InstallStack (InternetStackHelper stack); - void AssignAddresses (Ipv4AddressHelper rowIp, Ipv4AddressHelper colIp); + void AssignIpv4Addresses (Ipv4AddressHelper rowIp, Ipv4AddressHelper colIp); void BoundingBox (double ulx, double uly, double lrx, double lry); private: @@ -54,4 +55,4 @@ class PointToPointGridHelper } // namespace ns3 -#endif /* GRID_HELPER_H */ +#endif /* POINT_TO_POINT_GRID_HELPER_H */ diff --git a/src/helper/point-to-point-helper.cc b/src/helper/point-to-point-helper.cc index d3d182e6d..4a1d53e17 100644 --- a/src/helper/point-to-point-helper.cc +++ b/src/helper/point-to-point-helper.cc @@ -232,26 +232,6 @@ PointToPointHelper::Install (std::string aName, std::string bName) return Install (a, b); } -void -PointToPointHelper::InstallStar (Ptr hub, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices) -{ - for (uint32_t i = 0; i < spokes.GetN (); ++i) - { - NetDeviceContainer nd = Install (hub, spokes.Get (i)); - hubDevices.Add (nd.Get (0)); - spokeDevices.Add (nd.Get (1)); - } -} - -void -PointToPointHelper::InstallStar (std::string hubName, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices) -{ - Ptr hub = Names::Find (hubName); - InstallStar (hub, spokes, hubDevices, spokeDevices); -} - void PointToPointHelper::SniffEvent (Ptr writer, Ptr packet) { diff --git a/src/helper/point-to-point-helper.h b/src/helper/point-to-point-helper.h index 5b1c6d884..12fdcbe35 100644 --- a/src/helper/point-to-point-helper.h +++ b/src/helper/point-to-point-helper.h @@ -240,62 +240,6 @@ public: */ NetDeviceContainer Install (std::string aNode, std::string bNode); - /** - * \brief Make a star network topology. - * - * Given a pointer to a node that will become the hub of the star, and a - * NodeContainer containing pointers to the nodes that will become the - * spokes; we construct point to point net devices on the hub (corresponding - * to the spokes) and store them in the hubDevices NetDeviceContainer. We - * add a net device to each spoke node and store them in the spokeDevices - * NetDeviceContainer. A point-to-point channel is created for each spoke. - * - * The ordering of the devices in the hubDevices container is according to - * the order of the spokes container -- that is, hubDevices[0] will be the - * net device used on the hub that talks to spokes[0]. the container entry - * spokeDevices[0] will have the device that hubDevices[0] talks to -- those - * two devices are the ones that connect hub to spokes[0]. - * - * \param hub The central node of the star network - * \param spokes A NodeContainer of the nodes that will be the spoke (leaf) - * nodes - * \param hubDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on the hub. - * \param spokeDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on each of - * the spokes. - */ - void InstallStar (Ptr hub, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices); - - /** - * \brief Make a star network topology. - * - * Given a pointer to a node that will become the hub of the star, and a - * NodeContainer containing pointers to the nodes that will become the - * spokes; we construct point to point net devices on the hub (corresponding - * to the spokes) and store them in the hubDevices NetDeviceContainer. We - * add a net device to each spoke node and store them in the spokeDevices - * NetDeviceContainer. A point-to-point channel is created for each spoke. - * - * The ordering of the devices in the hubDevices container is according to - * the order of the spokes container -- that is, hubDevices[0] will be the - * net device used on the hub that talks to spokes[0]. the container entry - * spokeDevices[0] will have the device that hubDevices[0] talks to -- those - * two devices are the ones that connect hub to spokes[0]. - * - * \param hubName The name of the central node of the star network - * \param spokes A NodeContainer of the nodes that will be the spoke (leaf) - * nodes - * \param hubDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on the hub. - * \param spokeDevices A NetDeviceContainer that will be filled with pointers - * to the point-to-point net devices created on each of - * the spokes. - */ - void InstallStar (std::string hubName, NodeContainer spokes, - NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices); - private: void EnablePcap (Ptr node, Ptr device, Ptr queue); static void SniffEvent (Ptr writer, Ptr packet); diff --git a/src/helper/point-to-point-star-helper.cc b/src/helper/point-to-point-star-helper.cc new file mode 100644 index 000000000..d3bc6b483 --- /dev/null +++ b/src/helper/point-to-point-star-helper.cc @@ -0,0 +1,159 @@ +/* -*- 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 + */ + +#include +#include + +// ns3 includes +#include "ns3/animation-interface.h" +#include "ns3/point-to-point-star-helper.h" +#include "ns3/canvas-location.h" + +#include "ns3/node-list.h" +#include "ns3/point-to-point-net-device.h" +#include "ns3/vector.h" + +NS_LOG_COMPONENT_DEFINE("PointToPointStarHelper"); + +namespace ns3 { + +PointToPointStarHelper::PointToPointStarHelper (uint32_t numSpokes, + PointToPointHelper p2pHelper) +{ + m_hub.Create (1); + m_spokes.Create (numSpokes); + + for (uint32_t i = 0; i < m_spokes.GetN (); ++i) + { + NetDeviceContainer nd = p2pHelper.Install (m_hub.Get (0), m_spokes.Get (i)); + m_hubDevices.Add (nd.Get (0)); + m_spokeDevices.Add (nd.Get (1)); + } +} + +PointToPointStarHelper::~PointToPointStarHelper () +{} + +Ptr +PointToPointStarHelper::GetHub () const +{ + return m_hub.Get (0); +} + +Ptr +PointToPointStarHelper::GetSpoke (uint32_t i) const +{ + return m_spokes.Get (i); +} + +Ipv4Address +PointToPointStarHelper::GetHubIpv4Address (uint32_t i) const +{ + return m_hubInterfaces.GetAddress (i); +} + +Ipv4Address +PointToPointStarHelper::GetSpokeIpv4Address (uint32_t i) const +{ + return m_spokeInterfaces.GetAddress (i); +} + +uint32_t +PointToPointStarHelper::SpokeCount () const +{ + return m_spokes.GetN (); +} + +void +PointToPointStarHelper::InstallStack (InternetStackHelper stack) +{ + stack.Install (m_hub); + stack.Install (m_spokes); +} + +void +PointToPointStarHelper::AssignIpv4Addresses (Ipv4AddressHelper address) +{ + for (uint32_t i = 0; i < m_spokes.GetN (); ++i) + { + m_hubInterfaces.Add (address.Assign (m_hubDevices.Get (i))); + m_spokeInterfaces.Add (address.Assign (m_spokeDevices.Get (i))); + address.NewNetwork (); + } +} + +void +PointToPointStarHelper::BoundingBox (double ulx, double uly, + double lrx, double lry) +{ + double xDist; + double yDist; + if (lrx > ulx) + { + xDist = lrx - ulx; + } + else + { + xDist = ulx - lrx; + } + if (lry > uly) + { + yDist = lry - uly; + } + else + { + yDist = uly - lry; + } + + // Place the hub + Ptr hub = m_hub.Get (0); + Ptr hubLoc = hub->GetObject (); + if (hubLoc == 0) + { + hubLoc = CreateObject (); + hub->AggregateObject (hubLoc); + } + Vector hubVec (ulx + xDist/2.0, uly + yDist/2.0, 0); + hubLoc->SetLocation (hubVec); + + double spokeDist; + if (xDist > yDist) + { + spokeDist = yDist/4.0; + } + else + { + spokeDist = xDist/4.0; + } + + double theta = 2*M_PI/m_spokes.GetN (); + for (uint32_t i = 0; i < m_spokes.GetN (); ++i) + { + Ptr spokeNode = m_spokes.Get (i); + Ptr spokeLoc = spokeNode->GetObject (); + if (spokeLoc == 0) + { + spokeLoc = CreateObject (); + spokeNode->AggregateObject (spokeLoc); + } + Vector spokeVec (hubVec.x + cos (theta*i) * spokeDist, + hubVec.y + sin (theta*i) * spokeDist, + 0); + spokeLoc->SetLocation (spokeVec); + } +} + +} // namespace ns3 diff --git a/src/helper/point-to-point-star-helper.h b/src/helper/point-to-point-star-helper.h new file mode 100644 index 000000000..b311ed58a --- /dev/null +++ b/src/helper/point-to-point-star-helper.h @@ -0,0 +1,58 @@ +/* -*- 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 + */ + +// Define an object to create a dumbbell topology. + +#ifndef POINT_TO_POINT_STAR_HELPER_H +#define POINT_TO_POINT_STAR_HELPER_H + +#include + +#include "point-to-point-helper.h" +#include "ipv4-address-helper.h" +#include "internet-stack-helper.h" +#include "ipv4-interface-container.h" + +namespace ns3 { + +class PointToPointStarHelper +{ +public: + PointToPointStarHelper (uint32_t numSpokes, + PointToPointHelper p2pHelper); + ~PointToPointStarHelper (); +public: + Ptr GetHub () const; + Ptr GetSpoke (uint32_t) const; + Ipv4Address GetHubIpv4Address (uint32_t) const; + Ipv4Address GetSpokeIpv4Address (uint32_t) const; + uint32_t SpokeCount () const; + void InstallStack (InternetStackHelper stack); + void AssignIpv4Addresses (Ipv4AddressHelper address); + void BoundingBox (double, double, double, double); + +private: + NodeContainer m_hub; + NetDeviceContainer m_hubDevices; + NodeContainer m_spokes; + NetDeviceContainer m_spokeDevices; + Ipv4InterfaceContainer m_hubInterfaces; + Ipv4InterfaceContainer m_spokeInterfaces; +}; +} +#endif + + diff --git a/src/helper/wscript b/src/helper/wscript index 6c845735c..1fe25d705 100644 --- a/src/helper/wscript +++ b/src/helper/wscript @@ -41,6 +41,12 @@ def build(bld): 'ipv6-routing-helper.cc', 'ping6-helper.cc', 'flow-monitor-helper.cc', + 'animation-interface.cc', + 'canvas-location.cc', + 'point-to-point-dumbbell-helper.cc', + 'point-to-point-grid-helper.cc', + 'point-to-point-star-helper.cc', + 'csma-star-helper.cc', ] headers = bld.new_task_gen('ns3header') @@ -85,6 +91,12 @@ def build(bld): 'ipv6-routing-helper.h', 'ping6-helper.h', 'flow-monitor-helper.h', + 'animation-interface.h', + 'canvas-location.h', + 'point-to-point-dumbbell-helper.h', + 'point-to-point-grid-helper.h', + 'point-to-point-star-helper.h', + 'csma-star-helper.h', ] env = bld.env_of_name('default') @@ -103,3 +115,8 @@ def build(bld): 'tap-bridge-helper.h', ]) +def configure(conf): + conf.check(header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H') + conf.check(header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H') + conf.write_config_header('ns3/net-anim-config.h', top=True) + diff --git a/src/internet-stack/ipv4-l3-protocol.cc b/src/internet-stack/ipv4-l3-protocol.cc index df612dc9b..3b4897a69 100644 --- a/src/internet-stack/ipv4-l3-protocol.cc +++ b/src/internet-stack/ipv4-l3-protocol.cc @@ -355,6 +355,70 @@ Ipv4L3Protocol::GetInterfaceForDevice ( return -1; } +bool +Ipv4L3Protocol::IsDestinationAddress (Ipv4Address address, uint32_t iif) const +{ + NS_LOG_FUNCTION (this << address << " " << iif); + + // First check the incoming interface for a unicast address match + for (uint32_t i = 0; i < GetNAddresses (iif); i++) + { + Ipv4InterfaceAddress iaddr = GetAddress (iif, i); + if (address == iaddr.GetLocal ()) + { + NS_LOG_LOGIC ("For me (destination " << address << " match)"); + return true; + } + if (address == iaddr.GetBroadcast ()) + { + NS_LOG_LOGIC ("For me (interface broadcast address)"); + return true; + } + } + + if (address.IsMulticast ()) + { +#ifdef NOTYET + if (MulticastCheckGroup (iif, address )) +#endif + if (true) + { + NS_LOG_LOGIC ("For me (Ipv4Addr multicast address"); + return true; + } + } + + if (address.IsBroadcast ()) + { + NS_LOG_LOGIC ("For me (Ipv4Addr broadcast address)"); + return true; + } + + if (GetWeakEsModel ()) // Check other interfaces + { + for (uint32_t j = 0; j < GetNInterfaces (); j++) + { + if (j == uint32_t (iif)) continue; + for (uint32_t i = 0; i < GetNAddresses (j); i++) + { + Ipv4InterfaceAddress iaddr = GetAddress (j, i); + if (address == iaddr.GetLocal ()) + { + NS_LOG_LOGIC ("For me (destination " << address << " match) on another interface"); + return true; + } + // This is a small corner case: match another interface's broadcast address + if (address == iaddr.GetBroadcast ()) + { + NS_LOG_LOGIC ("For me (interface broadcast address on another interface)"); + return true; + } + } + } + } + return false; +} + void Ipv4L3Protocol::Receive( Ptr device, Ptr p, uint16_t protocol, const Address &from, const Address &to, NetDevice::PacketType packetType) @@ -901,6 +965,18 @@ Ipv4L3Protocol::GetIpForward (void) const return m_ipForward; } +void +Ipv4L3Protocol::SetWeakEsModel (bool model) +{ + m_weakEsModel = model; +} + +bool +Ipv4L3Protocol::GetWeakEsModel (void) const +{ + return m_weakEsModel; +} + void Ipv4L3Protocol::RouteInputError (Ptr p, const Ipv4Header & ipHeader, Socket::SocketErrno sockErrno) { diff --git a/src/internet-stack/ipv4-l3-protocol.h b/src/internet-stack/ipv4-l3-protocol.h index d56ea3754..28facbd90 100644 --- a/src/internet-stack/ipv4-l3-protocol.h +++ b/src/internet-stack/ipv4-l3-protocol.h @@ -170,6 +170,7 @@ public: int32_t GetInterfaceForAddress (Ipv4Address addr) const; int32_t GetInterfaceForPrefix (Ipv4Address addr, Ipv4Mask mask) const; int32_t GetInterfaceForDevice (Ptr device) const; + bool IsDestinationAddress (Ipv4Address address, uint32_t iif) const; bool AddAddress (uint32_t i, Ipv4InterfaceAddress address); Ipv4InterfaceAddress GetAddress (uint32_t interfaceIndex, uint32_t addressIndex) const; @@ -200,8 +201,11 @@ private: Ipv4L3Protocol(const Ipv4L3Protocol &); Ipv4L3Protocol &operator = (const Ipv4L3Protocol &); + // class Ipv4 attributes virtual void SetIpForward (bool forward); virtual bool GetIpForward (void) const; + virtual void SetWeakEsModel (bool model); + virtual bool GetWeakEsModel (void) const; Ipv4Header BuildHeader ( Ipv4Address source, @@ -239,6 +243,7 @@ private: typedef std::list > L4List_t; bool m_ipForward; + bool m_weakEsModel; L4List_t m_protocols; Ipv4InterfaceList m_interfaces; uint8_t m_defaultTtl; diff --git a/src/internet-stack/udp-socket-impl.cc b/src/internet-stack/udp-socket-impl.cc index b76408dbc..71225eefa 100644 --- a/src/internet-stack/udp-socket-impl.cc +++ b/src/internet-stack/udp-socket-impl.cc @@ -401,6 +401,11 @@ UdpSocketImpl::DoSendTo (Ptr p, Ipv4Address dest, uint16_t port) NS_LOG_LOGIC ("Limited broadcast end."); return p->GetSize(); } + else if (m_endPoint->GetLocalAddress() != Ipv4Address::GetAny()) + { + m_udp->Send(p->Copy (), m_endPoint->GetLocalAddress(), dest, + m_endPoint->GetLocalPort(), port, 0); + } else if (ipv4->GetRoutingProtocol () != 0) { Ipv4Header header; diff --git a/src/node/ipv4.cc b/src/node/ipv4.cc index 8ec7b14dd..8ab83de4f 100644 --- a/src/node/ipv4.cc +++ b/src/node/ipv4.cc @@ -37,6 +37,12 @@ Ipv4::GetTypeId (void) MakeBooleanAccessor (&Ipv4::SetIpForward, &Ipv4::GetIpForward), MakeBooleanChecker ()) + .AddAttribute ("WeakEsModel", + "RFC1122 term for whether host accepts datagram with a dest. address on another interface", + BooleanValue (true), + MakeBooleanAccessor (&Ipv4::SetWeakEsModel, + &Ipv4::GetWeakEsModel), + MakeBooleanChecker ()) #if 0 .AddAttribute ("MtuDiscover", "If enabled, every outgoing ip packet will have the DF flag set.", BooleanValue (false), diff --git a/src/node/ipv4.h b/src/node/ipv4.h index 833fa7281..722e6043d 100644 --- a/src/node/ipv4.h +++ b/src/node/ipv4.h @@ -123,10 +123,32 @@ public: * This method searches the list of interfaces for one that holds a * particular address. This call takes an IP address as a parameter and * returns the interface number of the first interface that has been assigned - * that address, or -1 if not found. There must be an exact match. + * that address, or -1 if not found. There must be an exact match; this + * method will not match broadcast or multicast addresses. */ virtual int32_t GetInterfaceForAddress (Ipv4Address address) const = 0; + /** + * \brief Determine whether address and interface corresponding to + * received packet can be accepted for local delivery + * + * \param address The IP address being considered + * \param iif The incoming Ipv4 interface index + * + * This method can be used to determine whether a received packet has + * an acceptable address for local delivery on the host. The address + * may be a unicast, multicast, or broadcast address. This method will + * return true if address is an exact match of a unicast address on + * one of the host's interfaces (see below), if address corresponds to + * a multicast group that the host has joined (and the incoming device + * is acceptable), or if address corresponds to a broadcast address. + * + * If the Ipv4 attribute WeakEsModel is true, the unicast address may + * match any of the Ipv4 addresses on any interface. If the attribute is + * false, the address must match one assigned to the incoming device. + */ + virtual bool IsDestinationAddress (Ipv4Address address, uint32_t iif) const = 0; + /** * \brief Return the interface number of first interface found that * has an Ipv4 address within the prefix specified by the input @@ -257,6 +279,8 @@ private: // Indirect the Ipv4 attributes through private pure virtual methods virtual void SetIpForward (bool forward) = 0; virtual bool GetIpForward (void) const = 0; + virtual void SetWeakEsModel (bool model) = 0; + virtual bool GetWeakEsModel (void) const = 0; }; } // namespace ns3 diff --git a/src/routing/manet/dpd/dpd.cc b/src/routing/aodv/aodv-dpd.cc similarity index 97% rename from src/routing/manet/dpd/dpd.cc rename to src/routing/aodv/aodv-dpd.cc index b08bba83b..58d8ca898 100644 --- a/src/routing/manet/dpd/dpd.cc +++ b/src/routing/aodv/aodv-dpd.cc @@ -20,11 +20,11 @@ * Pavel Boyko */ -#include "dpd.h" +#include "aodv-dpd.h" namespace ns3 { -namespace dpd +namespace aodv { bool diff --git a/src/routing/manet/dpd/dpd.h b/src/routing/aodv/aodv-dpd.h similarity index 88% rename from src/routing/manet/dpd/dpd.h rename to src/routing/aodv/aodv-dpd.h index 18f070e6f..97722b056 100644 --- a/src/routing/manet/dpd/dpd.h +++ b/src/routing/aodv/aodv-dpd.h @@ -23,19 +23,22 @@ #ifndef DUPLICATEPACKETDETECTION_H_ #define DUPLICATEPACKETDETECTION_H_ -#include "id-cache.h" +#include "aodv-id-cache.h" #include "ns3/nstime.h" #include "ns3/packet.h" #include "ns3/ipv4-header.h" namespace ns3 { -namespace dpd +namespace aodv { /** - * \ingroup dpd + * \ingroup aodv * * \brief Helper class used to remember already seen packets and detect duplicates. + * + * Currently duplicate detection is based on uinique packet ID given by Packet::GetUid () + * This approach is known to be weak and should be changed. */ class DuplicatePacketDetection { diff --git a/src/routing/manet/dpd/id-cache.cc b/src/routing/aodv/aodv-id-cache.cc similarity index 98% rename from src/routing/manet/dpd/id-cache.cc rename to src/routing/aodv/aodv-id-cache.cc index 03376a2c2..4106ad6c5 100644 --- a/src/routing/manet/dpd/id-cache.cc +++ b/src/routing/aodv/aodv-id-cache.cc @@ -25,13 +25,13 @@ * Authors: Elena Buchatskaia * Pavel Boyko */ -#include "id-cache.h" +#include "aodv-id-cache.h" #include "ns3/test.h" #include namespace ns3 { -namespace dpd +namespace aodv { bool IdCache::IsDuplicate (Ipv4Address addr, uint32_t id) diff --git a/src/routing/manet/dpd/id-cache.h b/src/routing/aodv/aodv-id-cache.h similarity index 98% rename from src/routing/manet/dpd/id-cache.h rename to src/routing/aodv/aodv-id-cache.h index ba76b4386..5330af007 100644 --- a/src/routing/manet/dpd/id-cache.h +++ b/src/routing/aodv/aodv-id-cache.h @@ -35,10 +35,10 @@ namespace ns3 { -namespace dpd +namespace aodv { /** - * \ingroup dpd + * \ingroup aodv * * \brief Unique packets identification cache used for simple duplicate detection. */ diff --git a/src/routing/manet/aodv/aodv-neighbor.cc b/src/routing/aodv/aodv-neighbor.cc similarity index 100% rename from src/routing/manet/aodv/aodv-neighbor.cc rename to src/routing/aodv/aodv-neighbor.cc diff --git a/src/routing/manet/aodv/aodv-neighbor.h b/src/routing/aodv/aodv-neighbor.h similarity index 100% rename from src/routing/manet/aodv/aodv-neighbor.h rename to src/routing/aodv/aodv-neighbor.h diff --git a/src/routing/manet/aodv/aodv-packet.cc b/src/routing/aodv/aodv-packet.cc similarity index 100% rename from src/routing/manet/aodv/aodv-packet.cc rename to src/routing/aodv/aodv-packet.cc diff --git a/src/routing/manet/aodv/aodv-packet.h b/src/routing/aodv/aodv-packet.h similarity index 100% rename from src/routing/manet/aodv/aodv-packet.h rename to src/routing/aodv/aodv-packet.h diff --git a/src/routing/manet/aodv/aodv-routing-protocol.cc b/src/routing/aodv/aodv-routing-protocol.cc similarity index 100% rename from src/routing/manet/aodv/aodv-routing-protocol.cc rename to src/routing/aodv/aodv-routing-protocol.cc diff --git a/src/routing/manet/aodv/aodv-routing-protocol.h b/src/routing/aodv/aodv-routing-protocol.h similarity index 99% rename from src/routing/manet/aodv/aodv-routing-protocol.h rename to src/routing/aodv/aodv-routing-protocol.h index 07db2c225..28ec4cbb9 100644 --- a/src/routing/manet/aodv/aodv-routing-protocol.h +++ b/src/routing/aodv/aodv-routing-protocol.h @@ -32,8 +32,7 @@ #include "aodv-rqueue.h" #include "aodv-packet.h" #include "aodv-neighbor.h" - -#include "ns3/dpd.h" +#include "aodv-dpd.h" #include "ns3/node.h" #include "ns3/ipv4-routing-protocol.h" #include "ns3/ipv4-interface.h" @@ -139,9 +138,9 @@ private: /// Request sequence number uint32_t m_seqNo; /// Handle duplicated RREQ - dpd::IdCache m_rreqIdCache; + IdCache m_rreqIdCache; /// Handle duplicated broadcast/multicast packets - dpd::DuplicatePacketDetection m_dpd; + DuplicatePacketDetection m_dpd; /// Handle neighbors Neighbors m_nb; /// Number of RREQs used for RREQ rate control diff --git a/src/routing/manet/aodv/aodv-rqueue.cc b/src/routing/aodv/aodv-rqueue.cc similarity index 100% rename from src/routing/manet/aodv/aodv-rqueue.cc rename to src/routing/aodv/aodv-rqueue.cc diff --git a/src/routing/manet/aodv/aodv-rqueue.h b/src/routing/aodv/aodv-rqueue.h similarity index 100% rename from src/routing/manet/aodv/aodv-rqueue.h rename to src/routing/aodv/aodv-rqueue.h diff --git a/src/routing/manet/aodv/aodv-rtable.cc b/src/routing/aodv/aodv-rtable.cc similarity index 99% rename from src/routing/manet/aodv/aodv-rtable.cc rename to src/routing/aodv/aodv-rtable.cc index dbe3f5ea5..2393a7c76 100644 --- a/src/routing/manet/aodv/aodv-rtable.cc +++ b/src/routing/aodv/aodv-rtable.cc @@ -309,7 +309,10 @@ RoutingTable::Purge () else ++i; } - ++i; + else + { + ++i; + } } } diff --git a/src/routing/manet/aodv/aodv-rtable.h b/src/routing/aodv/aodv-rtable.h similarity index 100% rename from src/routing/manet/aodv/aodv-rtable.h rename to src/routing/aodv/aodv-rtable.h diff --git a/src/routing/manet/aodv/aodv-test-suite.cc b/src/routing/aodv/aodv-test-suite.cc similarity index 100% rename from src/routing/manet/aodv/aodv-test-suite.cc rename to src/routing/aodv/aodv-test-suite.cc diff --git a/src/routing/manet/aodv/aodv.h b/src/routing/aodv/aodv.h similarity index 97% rename from src/routing/manet/aodv/aodv.h rename to src/routing/aodv/aodv.h index 96587e236..58095d4c8 100644 --- a/src/routing/manet/aodv/aodv.h +++ b/src/routing/aodv/aodv.h @@ -72,7 +72,7 @@ * failure for all retries. This mechanism meant for active links and work much more faster, than first method. * Layer 2 feedback implementation relies on TxErrHeader trace source, currently it is supported in AdhocWifiMac only. * - * 3) Duplicate packet detection. We use special class dpd::DuplicatePacketDetection for this purpose. + * 3) Duplicate packet detection. We use special class DuplicatePacketDetection for this purpose. * * Following optional protocol optimizations aren't implemented: * - Expanding ring search. diff --git a/src/routing/manet/aodv/test/aodv-chain-regression-test-0-0.pcap b/src/routing/aodv/test/aodv-chain-regression-test-0-0.pcap similarity index 100% rename from src/routing/manet/aodv/test/aodv-chain-regression-test-0-0.pcap rename to src/routing/aodv/test/aodv-chain-regression-test-0-0.pcap diff --git a/src/routing/manet/aodv/test/aodv-chain-regression-test-1-0.pcap b/src/routing/aodv/test/aodv-chain-regression-test-1-0.pcap similarity index 100% rename from src/routing/manet/aodv/test/aodv-chain-regression-test-1-0.pcap rename to src/routing/aodv/test/aodv-chain-regression-test-1-0.pcap diff --git a/src/routing/manet/aodv/test/aodv-chain-regression-test-2-0.pcap b/src/routing/aodv/test/aodv-chain-regression-test-2-0.pcap similarity index 100% rename from src/routing/manet/aodv/test/aodv-chain-regression-test-2-0.pcap rename to src/routing/aodv/test/aodv-chain-regression-test-2-0.pcap diff --git a/src/routing/manet/aodv/test/aodv-chain-regression-test-3-0.pcap b/src/routing/aodv/test/aodv-chain-regression-test-3-0.pcap similarity index 100% rename from src/routing/manet/aodv/test/aodv-chain-regression-test-3-0.pcap rename to src/routing/aodv/test/aodv-chain-regression-test-3-0.pcap diff --git a/src/routing/manet/aodv/test/aodv-chain-regression-test-4-0.pcap b/src/routing/aodv/test/aodv-chain-regression-test-4-0.pcap similarity index 100% rename from src/routing/manet/aodv/test/aodv-chain-regression-test-4-0.pcap rename to src/routing/aodv/test/aodv-chain-regression-test-4-0.pcap diff --git a/src/routing/manet/aodv/test/aodv-regression.cc b/src/routing/aodv/test/aodv-regression.cc similarity index 100% rename from src/routing/manet/aodv/test/aodv-regression.cc rename to src/routing/aodv/test/aodv-regression.cc diff --git a/src/routing/manet/aodv/test/aodv-regression.h b/src/routing/aodv/test/aodv-regression.h similarity index 100% rename from src/routing/manet/aodv/test/aodv-regression.h rename to src/routing/aodv/test/aodv-regression.h diff --git a/src/routing/manet/aodv/waf b/src/routing/aodv/waf similarity index 100% rename from src/routing/manet/aodv/waf rename to src/routing/aodv/waf diff --git a/src/routing/manet/aodv/wscript b/src/routing/aodv/wscript similarity index 87% rename from src/routing/manet/aodv/wscript rename to src/routing/aodv/wscript index 201e1c596..7e3d9f851 100644 --- a/src/routing/manet/aodv/wscript +++ b/src/routing/aodv/wscript @@ -4,6 +4,8 @@ def build(bld): module = bld.create_ns3_module('aodv', ['internet-stack', 'contrib']) module.includes = '.' module.source = [ + 'aodv-id-cache.cc', + 'aodv-dpd.cc', 'aodv-rtable.cc', 'aodv-rqueue.cc', 'aodv-packet.cc', @@ -16,6 +18,8 @@ def build(bld): headers = bld.new_task_gen('ns3header') headers.module = 'aodv' headers.source = [ + 'aodv-id-cache.h', + 'aodv-dpd.h', 'aodv-rtable.h', 'aodv-rqueue.h', 'aodv-packet.h', diff --git a/src/routing/global-routing/global-route-manager.cc b/src/routing/global-routing/global-route-manager.cc index ac5721599..6e2282fb4 100644 --- a/src/routing/global-routing/global-route-manager.cc +++ b/src/routing/global-routing/global-route-manager.cc @@ -32,21 +32,6 @@ namespace ns3 { // // --------------------------------------------------------------------------- - void -GlobalRouteManager::PopulateRoutingTables (void) -{ - BuildGlobalRoutingDatabase (); - InitializeRoutes (); -} - - void -GlobalRouteManager::RecomputeRoutingTables () -{ - DeleteGlobalRoutes (); - BuildGlobalRoutingDatabase (); - InitializeRoutes (); -} - void GlobalRouteManager::DeleteGlobalRoutes () { diff --git a/src/routing/global-routing/global-route-manager.h b/src/routing/global-routing/global-route-manager.h index 74817c407..aab837285 100644 --- a/src/routing/global-routing/global-route-manager.h +++ b/src/routing/global-routing/global-route-manager.h @@ -39,37 +39,6 @@ namespace ns3 { */ class GlobalRouteManager { -public: -/** - * @brief Build a routing database and initialize the routing tables of - * the nodes in the simulation. Makes all nodes in the simulation into - * routers. - * - * All this function does is call the functions - * BuildGlobalRoutingDatabase () and InitializeRoutes (). - * - * @see BuildGlobalRoutingDatabase (); - * @see InitializeRoutes (); - */ - static void PopulateRoutingTables () NS_DEPRECATED; - - /** - *@brief Remove all routes that were previously installed in a prior call - * to either PopulateRoutingTables() or RecomputeRoutingTables(), and - * add a new set of routes. - * - * This method does not change the set of nodes - * over which GlobalRouting is being used, but it will dynamically update - * its representation of the global topology before recomputing routes. - * Users must first call PopulateRoutingTables() and then may subsequently - * call RecomputeRoutingTables() at any later time in the simulation. - * - * @see DeleteGlobalRoutes (); - * @see BuildGlobalRoutingDatabase (); - * @see InitializeRoutes (); - */ - static void RecomputeRoutingTables () NS_DEPRECATED; - public: /** * @brief Allocate a 32-bit router ID from monotonically increasing counter. diff --git a/src/routing/list-routing/ipv4-list-routing.cc b/src/routing/list-routing/ipv4-list-routing.cc index a8e265baf..299ce024f 100644 --- a/src/routing/list-routing/ipv4-list-routing.cc +++ b/src/routing/list-routing/ipv4-list-routing.cc @@ -121,75 +121,21 @@ Ipv4ListRouting::RouteInput (Ptr p, const Ipv4Header &header, Ptr< NS_ASSERT (m_ipv4->GetInterfaceForDevice (idev) >= 0); uint32_t iif = m_ipv4->GetInterfaceForDevice (idev); - // Multicast recognition; handle local delivery here - // - if (header.GetDestination().IsMulticast ()) + retVal = m_ipv4->IsDestinationAddress (header.GetDestination (), iif); + if (retVal == true) { -#ifdef NOTYET - if (m_ipv4->MulticastCheckGroup (iif, header.GetDestination ())) -#endif - if (true) + NS_LOG_LOGIC ("Address "<< header.GetDestination () << " is a match for local delivery"); + if (header.GetDestination ().IsMulticast ()) { - NS_LOG_LOGIC ("Multicast packet for me-- local deliver"); Ptr packetCopy = p->Copy(); - // Here may want to disable lcb callback in recursive RouteInput - // call below lcb (packetCopy, header, iif); - // Fall through-- we may also need to forward this retVal = true; + // Fall through } - for (Ipv4RoutingProtocolList::const_iterator rprotoIter = - m_routingProtocols.begin (); rprotoIter != m_routingProtocols.end (); - rprotoIter++) + else { - NS_LOG_LOGIC ("Multicast packet for me-- trying to forward"); - if ((*rprotoIter).second->RouteInput (p, header, idev, ucb, mcb, lcb, ecb)) - { - retVal = true; - } - } - return retVal; - } - - if (header.GetDestination ().IsBroadcast ()) - { - NS_LOG_LOGIC ("For me (Ipv4Addr broadcast address)"); - // TODO: Local Deliver for broadcast - // TODO: Forward broadcast - } - - // TODO: Configurable option to enable RFC 1222 Strong End System Model - // Right now, we will be permissive and allow a source to send us - // a packet to one of our other interface addresses; that is, the - // destination unicast address does not match one of the iif addresses, - // but we check our other interfaces. This could be an option - // (to remove the outer loop immediately below and just check iif). - for (uint32_t j = 0; j < m_ipv4->GetNInterfaces (); j++) - { - for (uint32_t i = 0; i < m_ipv4->GetNAddresses (j); i++) - { - Ipv4InterfaceAddress iaddr = m_ipv4->GetAddress (j, i); - Ipv4Address addr = iaddr.GetLocal (); - if (addr.IsEqual (header.GetDestination ())) - { - if (j == iif) - { - NS_LOG_LOGIC ("For me (destination " << addr << " match)"); - } - else - { - NS_LOG_LOGIC ("For me (destination " << addr << " match) on another interface " << header.GetDestination ()); - } - lcb (p, header, iif); - return true; - } - if (header.GetDestination ().IsEqual (iaddr.GetBroadcast ())) - { - NS_LOG_LOGIC ("For me (interface broadcast address)"); - lcb (p, header, iif); - return true; - } - NS_LOG_LOGIC ("Address "<< addr << " not a match"); + lcb (p, header, iif); + return true; } } // Check if input device supports IP forwarding @@ -200,13 +146,21 @@ Ipv4ListRouting::RouteInput (Ptr p, const Ipv4Header &header, Ptr< return false; } // Next, try to find a route + // If we have already delivered a packet locally (e.g. multicast) + // we suppress further downstream local delivery by nulling the callback + LocalDeliverCallback downstreamLcb = lcb; + if (retVal == true) + { + downstreamLcb = MakeNullCallback, const Ipv4Header &, uint32_t > (); + } for (Ipv4RoutingProtocolList::const_iterator rprotoIter = m_routingProtocols.begin (); rprotoIter != m_routingProtocols.end (); rprotoIter++) { - if ((*rprotoIter).second->RouteInput (p, header, idev, ucb, mcb, lcb, ecb)) + if ((*rprotoIter).second->RouteInput (p, header, idev, ucb, mcb, downstreamLcb, ecb)) { + NS_LOG_LOGIC ("Route found to forward packet in protocol " << (*rprotoIter).second->GetInstanceTypeId ().GetName ()); return true; } } diff --git a/src/routing/manet/dpd/waf b/src/routing/manet/dpd/waf deleted file mode 100755 index 0ca1fc3f4..000000000 --- a/src/routing/manet/dpd/waf +++ /dev/null @@ -1 +0,0 @@ -exec "`dirname "$0"`"/../../../../waf "$@" diff --git a/src/routing/manet/dpd/wscript b/src/routing/manet/dpd/wscript deleted file mode 100644 index 2692d1bc7..000000000 --- a/src/routing/manet/dpd/wscript +++ /dev/null @@ -1,17 +0,0 @@ -## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- - -def build(bld): - module = bld.create_ns3_module('dpd', ['contrib']) - module.includes = '.' - module.source = [ - 'id-cache.cc', - 'dpd.cc' - ] - - headers = bld.new_task_gen('ns3header') - headers.module = 'dpd' - headers.source = [ - 'dpd.h', - 'id-cache.h', - ] - diff --git a/src/routing/olsr/olsr-routing-protocol.cc b/src/routing/olsr/olsr-routing-protocol.cc index be16fb25d..4963cc452 100644 --- a/src/routing/olsr/olsr-routing-protocol.cc +++ b/src/routing/olsr/olsr-routing-protocol.cc @@ -72,7 +72,7 @@ /********** Holding times **********/ /// Neighbor holding time. -#define OLSR_NEIGHB_HOLD_TIME (Scalar (3) * OLSR_REFRESH_INTERVAL) +#define OLSR_NEIGHB_HOLD_TIME (Scalar (3) * m_helloInterval) /// Top holding time. #define OLSR_TOP_HOLD_TIME (Scalar (3) * m_tcInterval) /// Dup holding time. @@ -219,7 +219,7 @@ void RoutingProtocol::DoDispose () { m_ipv4 = 0; - for (std::map< Ptr, Ipv4Address >::iterator iter = m_socketAddresses.begin (); + for (std::map< Ptr, Ipv4InterfaceAddress >::iterator iter = m_socketAddresses.begin (); iter != m_socketAddresses.end (); iter++) { iter->first->Close (); @@ -278,7 +278,7 @@ void RoutingProtocol::DoStart () NS_FATAL_ERROR ("Failed to bind() OLSR receive socket"); } socket->Connect (InetSocketAddress (Ipv4Address (0xffffffff), OLSR_PORT_NUMBER)); - m_socketAddresses[socket] = addr; + m_socketAddresses[socket] = m_ipv4->GetAddress (i, 0); } HelloTimerExpire (); @@ -305,7 +305,7 @@ RoutingProtocol::RecvOlsr (Ptr socket) InetSocketAddress inetSourceAddr = InetSocketAddress::ConvertFrom (sourceAddress); Ipv4Address senderIfaceAddr = inetSourceAddr.GetIpv4 (); - Ipv4Address receiverIfaceAddr = m_socketAddresses[socket]; + Ipv4Address receiverIfaceAddr = m_socketAddresses[socket].GetLocal (); NS_ASSERT (receiverIfaceAddr != Ipv4Address ()); NS_LOG_DEBUG ("OLSR node " << m_mainAddress << " received a OLSR packet from " << senderIfaceAddr << " to " << receiverIfaceAddr); @@ -464,6 +464,37 @@ RoutingProtocol::Degree (NeighborTuple const &tuple) return degree; } +namespace { +/// +/// \brief Remove all covered 2-hop neighbors from N2 set. This is a helper function used by MprComputation algorithm. +/// +void +CoverTwoHopNeighbors (Ipv4Address neighborMainAddr, TwoHopNeighborSet & N2) +{ + // first gather all 2-hop neighbors to be removed + std::set toRemove; + for (TwoHopNeighborSet::iterator twoHopNeigh = N2.begin (); twoHopNeigh != N2.end (); twoHopNeigh ++) + { + if (twoHopNeigh->neighborMainAddr == neighborMainAddr) + { + toRemove.insert (twoHopNeigh->twoHopNeighborAddr); + } + } + // Now remove all matching records from N2 + for (TwoHopNeighborSet::iterator twoHopNeigh = N2.begin (); twoHopNeigh != N2.end (); ) + { + if (toRemove.find (twoHopNeigh->twoHopNeighborAddr) != toRemove.end ()) + { + twoHopNeigh = N2.erase (twoHopNeigh); + } + else + { + twoHopNeigh ++; + } + } +} +} // anonymous namespace + /// /// \brief Computates MPR set of a node following RFC 3626 hints. /// @@ -577,18 +608,7 @@ RoutingProtocol::MprComputation() mprSet.insert (neighbor->neighborMainAddr); // (not in RFC but I think is needed: remove the 2-hop // neighbors reachable by the MPR from N2) - for (TwoHopNeighborSet::iterator twoHopNeigh = N2.begin (); - twoHopNeigh != N2.end (); ) - { - if (twoHopNeigh->neighborMainAddr == neighbor->neighborMainAddr) - { - twoHopNeigh = N2.erase (twoHopNeigh); - } - else - { - twoHopNeigh++; - } - } + CoverTwoHopNeighbors (neighbor->neighborMainAddr, N2); } } @@ -637,6 +657,8 @@ RoutingProtocol::MprComputation() { if (coveredTwoHopNeighbors.find (twoHopNeigh->twoHopNeighborAddr) != coveredTwoHopNeighbors.end ()) { + // This works correctly only because it is known that twoHopNeigh is reachable by exactly one neighbor, + // so only one record in N2 exists for each of them. This record is erased here. NS_LOG_LOGIC ("2-hop neigh. " << twoHopNeigh->twoHopNeighborAddr << " is already covered by an MPR."); twoHopNeigh = N2.erase (twoHopNeigh); } @@ -714,10 +736,6 @@ RoutingProtocol::MprComputation() if (max == NULL || nb_tuple->willingness > max->willingness) { max = nb_tuple; - for (TwoHopNeighborSet::iterator newCovered = N2.begin (); newCovered != N2.end (); newCovered++) - { - coveredTwoHopNeighbors.insert (newCovered->twoHopNeighborAddr); - } max_r = r; } else if (nb_tuple->willingness == max->willingness) @@ -742,19 +760,8 @@ RoutingProtocol::MprComputation() if (max != NULL) { mprSet.insert (max->neighborMainAddr); - // Remove the nodes from N2 which are now covered by a node in the MPR set. - for (TwoHopNeighborSet::iterator twoHopNeigh = N2.begin (); twoHopNeigh != N2.end (); ) - { - if (coveredTwoHopNeighbors.find (twoHopNeigh->twoHopNeighborAddr) != coveredTwoHopNeighbors.end ()) - { - NS_LOG_LOGIC ("2-hop neigh. " << twoHopNeigh->twoHopNeighborAddr << " is already covered by an MPR."); - twoHopNeigh = N2.erase (twoHopNeigh); - } - else - { - twoHopNeigh++; - } - } + CoverTwoHopNeighbors (max->neighborMainAddr, N2); + NS_LOG_LOGIC (N2.size () << " 2-hop neighbors left to cover!"); } } @@ -1451,7 +1458,7 @@ RoutingProtocol::SendHello () msg.SetMessageSequenceNumber (GetMessageSequenceNumber ()); olsr::MessageHeader::Hello &hello = msg.GetHello (); - hello.SetHTime (Scalar (3) * m_helloInterval); + hello.SetHTime (m_helloInterval); hello.willingness = m_willingness; std::vector @@ -2646,11 +2653,32 @@ RoutingProtocol::RouteOutput (Ptr p, const Ipv4Header &header, uint32_t } bool RoutingProtocol::RouteInput (Ptr p, - const Ipv4Header &header, Ptr idev, UnicastForwardCallback ucb, MulticastForwardCallback mcb, + const Ipv4Header &header, Ptr idev, + UnicastForwardCallback ucb, MulticastForwardCallback mcb, LocalDeliverCallback lcb, ErrorCallback ecb) { NS_LOG_FUNCTION (this << " " << m_ipv4->GetObject ()->GetId() << " " << header.GetDestination ()); + Ipv4Address dst = header.GetDestination (); + Ipv4Address origin = header.GetSource (); + + // Consume self-originated packets + if (IsMyOwnAddress (origin) == true) + { + return true; + } + + // Local delivery + NS_ASSERT (m_ipv4->GetInterfaceForDevice (idev) >= 0); + uint32_t iif = m_ipv4->GetInterfaceForDevice (idev); + if (m_ipv4->IsDestinationAddress (dst, iif)) + { + NS_LOG_LOGIC ("Local delivery to " << dst); + lcb (p, header, iif); + return true; + } + + // Forwarding Ptr rtentry; RoutingTableEntry entry1, entry2; if (Lookup (header.GetDestination (), entry1)) @@ -2793,104 +2821,111 @@ OlsrMprTestCase::~OlsrMprTestCase () bool OlsrMprTestCase::DoRun () { + Ptr protocol = CreateObject (); + protocol->m_mainAddress = Ipv4Address ("10.0.0.1"); + OlsrState & state = protocol->m_state; + /* - * Create a 3x3 grid like the following: - * 3---6---9 - * |\ /|\ /| - * | X | X | - * |/ \|/ \| - * 2---5---8 - * |\ /|\ /| - * | X | X | - * |/ \|/ \| - * 1---4---7 - * PrepareTopology fills all 2-hop neighbors of station 1 and creates a routing protocol - * We are the station number 2. Obvious, that an only MPR in this case is 5 + * 1 -- 2 + * | | + * 3 -- 4 + * + * Node 1 must select only one MPR (2 or 3, doesn't matter) */ - Ptr m_protocol = CreateObject (); - m_protocol->m_mainAddress = Ipv4Address ("10.0.0.2"); - // we fill all possible 2-hop neighborhood - TwoHopNeighborTuple tuple; - tuple.expirationTime = Seconds (3600); - // All neighbor stations which are seen from station 5 - tuple.neighborMainAddr = Ipv4Address ("10.0.0.5"); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.1"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.2"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.3"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.4"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.6"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.7"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.8"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.9"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - // All neighbor stations which are seen from station 4 - tuple.neighborMainAddr = Ipv4Address ("10.0.0.4"); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.1"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.2"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.5"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.8"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.7"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - - // All neighbor stations which are seen from station 6 - tuple.neighborMainAddr = Ipv4Address ("10.0.0.6"); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.3"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.2"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.5"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.8"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.9"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - - // All neighbor stations which are seen from station 1 - tuple.neighborMainAddr = Ipv4Address ("10.0.0.1"); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.2"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.5"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.4"); - - // All neighbor stations which are seen from station 3 - tuple.neighborMainAddr = Ipv4Address ("10.0.0.3"); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.2"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.5"); - m_protocol->m_state.InsertTwoHopNeighborTuple (tuple); - tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.6"); - // First, we fill all neighbors - // If neighbors willingness = OLSR_WILL_DEFAULT, an only station number 5 will be an MPR NeighborTuple neigbor; neigbor.status = NeighborTuple::STATUS_SYM; neigbor.willingness = OLSR_WILL_DEFAULT; + neigbor.neighborMainAddr = Ipv4Address ("10.0.0.2"); + protocol->m_state.InsertNeighborTuple (neigbor); neigbor.neighborMainAddr = Ipv4Address ("10.0.0.3"); - m_protocol->m_state.InsertNeighborTuple (neigbor); - neigbor.neighborMainAddr = Ipv4Address ("10.0.0.6"); - m_protocol->m_state.InsertNeighborTuple (neigbor); - neigbor.neighborMainAddr = Ipv4Address ("10.0.0.5"); - m_protocol->m_state.InsertNeighborTuple (neigbor); - neigbor.neighborMainAddr = Ipv4Address ("10.0.0.4"); - m_protocol->m_state.InsertNeighborTuple (neigbor); - neigbor.neighborMainAddr = Ipv4Address ("10.0.0.1"); - m_protocol->m_state.InsertNeighborTuple (neigbor); - //Now, calculateMPR - m_protocol->MprComputation (); - //Check results - NS_TEST_ASSERT_MSG_EQ (m_protocol->m_state.FindMprAddress (Ipv4Address ("10.0.0.5")), true, "MPR is incorrect!"); - NS_TEST_ASSERT_MSG_EQ (m_protocol->m_state.GetMprSet ().size (), 1 , "An only address must be chosen!\n"); + protocol->m_state.InsertNeighborTuple (neigbor); + TwoHopNeighborTuple tuple; + tuple.expirationTime = Seconds (3600); + tuple.neighborMainAddr = Ipv4Address ("10.0.0.2"); + tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.4"); + protocol->m_state.InsertTwoHopNeighborTuple (tuple); + tuple.neighborMainAddr = Ipv4Address ("10.0.0.3"); + tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.4"); + protocol->m_state.InsertTwoHopNeighborTuple (tuple); + + protocol->MprComputation (); + NS_TEST_EXPECT_MSG_EQ (state.GetMprSet ().size (), 1 , "An only address must be chosen."); + /* + * 1 -- 2 -- 5 + * | | + * 3 -- 4 + * + * Node 1 must select node 2 as MPR. + */ + tuple.neighborMainAddr = Ipv4Address ("10.0.0.2"); + tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.5"); + protocol->m_state.InsertTwoHopNeighborTuple (tuple); + + protocol->MprComputation (); + MprSet mpr = state.GetMprSet (); + NS_TEST_EXPECT_MSG_EQ (mpr.size (), 1 , "An only address must be chosen."); + NS_TEST_EXPECT_MSG_EQ ((mpr.find ("10.0.0.2") != mpr.end ()), true, "Node 1 must select node 2 as MPR"); + /* + * 1 -- 2 -- 5 + * | | + * 3 -- 4 + * | + * 6 + * + * Node 1 must select nodes 2 and 3 as MPRs. + */ + tuple.neighborMainAddr = Ipv4Address ("10.0.0.3"); + tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.6"); + protocol->m_state.InsertTwoHopNeighborTuple (tuple); + + protocol->MprComputation (); + mpr = state.GetMprSet (); + NS_TEST_EXPECT_MSG_EQ (mpr.size (), 2 , "An only address must be chosen."); + NS_TEST_EXPECT_MSG_EQ ((mpr.find ("10.0.0.2") != mpr.end ()), true, "Node 1 must select node 2 as MPR"); + NS_TEST_EXPECT_MSG_EQ ((mpr.find ("10.0.0.3") != mpr.end ()), true, "Node 1 must select node 3 as MPR"); + /* + * 7 (OLSR_WILL_ALWAYS) + * | + * 1 -- 2 -- 5 + * | | + * 3 -- 4 + * | + * 6 + * + * Node 1 must select nodes 2, 3 and 7 (since it is WILL_ALWAYS) as MPRs. + */ + neigbor.willingness = OLSR_WILL_ALWAYS; + neigbor.neighborMainAddr = Ipv4Address ("10.0.0.7"); + protocol->m_state.InsertNeighborTuple (neigbor); + + protocol->MprComputation (); + mpr = state.GetMprSet (); + NS_TEST_EXPECT_MSG_EQ (mpr.size (), 3 , "An only address must be chosen."); + NS_TEST_EXPECT_MSG_EQ ((mpr.find ("10.0.0.7") != mpr.end ()), true, "Node 1 must select node 7 as MPR"); + /* + * 7 <- WILL_ALWAYS + * | + * 9 -- 8 -- 1 -- 2 -- 5 + * | | + * ^ 3 -- 4 + * | | + * WILL_NEVER 6 + * + * Node 1 must select nodes 2, 3 and 7 (since it is WILL_ALWAYS) as MPRs. + * Node 1 must NOT select node 8 as MPR since it is WILL_NEVER + */ + neigbor.willingness = OLSR_WILL_NEVER; + neigbor.neighborMainAddr = Ipv4Address ("10.0.0.8"); + protocol->m_state.InsertNeighborTuple (neigbor); + tuple.neighborMainAddr = Ipv4Address ("10.0.0.8"); + tuple.twoHopNeighborAddr = Ipv4Address ("10.0.0.9"); + protocol->m_state.InsertTwoHopNeighborTuple (tuple); + + protocol->MprComputation (); + mpr = state.GetMprSet (); + NS_TEST_EXPECT_MSG_EQ (mpr.size (), 3 , "An only address must be chosen."); + NS_TEST_EXPECT_MSG_EQ ((mpr.find ("10.0.0.9") == mpr.end ()), true, "Node 1 must NOT select node 8 as MPR"); + return false; } @@ -2906,6 +2941,21 @@ OlsrProtocolTestSuite::OlsrProtocolTestSuite() AddTestCase (new OlsrMprTestCase ()); } +bool +RoutingProtocol::IsMyOwnAddress (const Ipv4Address & a) const +{ + for (std::map , Ipv4InterfaceAddress>::const_iterator j = + m_socketAddresses.begin (); j != m_socketAddresses.end (); ++j) + { + Ipv4InterfaceAddress iface = j->second; + if (a == iface.GetLocal ()) + { + return true; + } + } + return false; +} + }} // namespace olsr, ns3 diff --git a/src/routing/olsr/olsr-routing-protocol.h b/src/routing/olsr/olsr-routing-protocol.h index 30f5e2c01..9b4e8e0eb 100644 --- a/src/routing/olsr/olsr-routing-protocol.h +++ b/src/routing/olsr/olsr-routing-protocol.h @@ -229,13 +229,15 @@ private: const olsr::MessageHeader::Hello &hello); int Degree (NeighborTuple const &tuple); + /// Check that address is one of my interfaces + bool IsMyOwnAddress (const Ipv4Address & a) const; Ipv4Address m_mainAddress; // One socket per interface, each bound to that interface's address // (reason: for OLSR Link Sensing we need to know on which interface // HELLO messages arrive) - std::map< Ptr, Ipv4Address > m_socketAddresses; + std::map< Ptr, Ipv4InterfaceAddress > m_socketAddresses; TracedCallback m_rxPacketTrace; diff --git a/src/routing/olsr/test/hello-regression-test.cc b/src/routing/olsr/test/hello-regression-test.cc new file mode 100644 index 000000000..5b50ff432 --- /dev/null +++ b/src/routing/olsr/test/hello-regression-test.cc @@ -0,0 +1,111 @@ +/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2009 IITP RAS + * + * 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 + * + * Authors: Pavel Boyko + */ + +#include "hello-regression-test.h" +#include "ns3/simulator.h" +#include "ns3/random-variable.h" +#include "ns3/double.h" +#include "ns3/uinteger.h" +#include "ns3/string.h" +#include "ns3/pcap-file.h" +#include "ns3/olsr-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/point-to-point-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/abort.h" + +/// Set to true to rewrite reference traces, leave false to run regression tests +const bool WRITE_VECTORS = false; + +namespace ns3 +{ +namespace olsr +{ + +const char * const HelloRegressionTest::PREFIX = "olsr-hello-regression-test"; + +HelloRegressionTest::HelloRegressionTest() : + TestCase ("Test OLSR Hello messages generation"), + m_time (Seconds (5)) +{ +} + +HelloRegressionTest::~HelloRegressionTest() +{ +} + +bool +HelloRegressionTest::DoRun () +{ + SeedManager::SetSeed(12345); + CreateNodes (); + + Simulator::Stop (m_time); + Simulator::Run (); + Simulator::Destroy (); + + if (!WRITE_VECTORS) CheckResults (); + return GetErrorStatus (); +} + +void +HelloRegressionTest::CreateNodes () +{ + // create 2 nodes + NodeContainer c; + c.Create (2); + // install TCP/IP & OLSR + OlsrHelper olsr; + InternetStackHelper internet; + internet.SetRoutingHelper (olsr); + internet.Install (c); + // create p2p channel & devices + PointToPointHelper p2p; + p2p.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); + p2p.SetChannelAttribute ("Delay", StringValue ("2ms")); + NetDeviceContainer nd = p2p.Install (c); + // setup IP addresses + Ipv4AddressHelper ipv4; + ipv4.SetBase ("10.1.1.0", "255.255.255.0"); + ipv4.Assign (nd); + // setup PCAP traces + std::string prefix = (WRITE_VECTORS ? NS_TEST_SOURCEDIR : GetTempDir ()) + PREFIX; + p2p.EnablePcapAll (prefix); +} + +void +HelloRegressionTest::CheckResults () +{ + for (uint32_t i = 0; i < 2; ++i) + { + std::ostringstream os1, os2; + // File naming conventions are hard-coded here. + os1 << NS_TEST_SOURCEDIR << PREFIX << "-" << i << "-1.pcap"; + os2 << GetTempDir () << PREFIX << "-" << i << "-1.pcap"; + + uint32_t sec(0), usec(0); + bool diff = PcapFile::Diff (os1.str(), os2.str(), sec, usec); + NS_TEST_EXPECT_MSG_EQ (diff, false, "PCAP traces " << os1.str() << " and " << os2.str() + << " differ starting from " << sec << " s " << usec << " us"); + } +} + +} +} diff --git a/src/routing/olsr/test/hello-regression-test.h b/src/routing/olsr/test/hello-regression-test.h new file mode 100644 index 000000000..e43f1890b --- /dev/null +++ b/src/routing/olsr/test/hello-regression-test.h @@ -0,0 +1,69 @@ +/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2009 IITP RAS + * + * 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 + * + * Authors: Pavel Boyko + */ + +#ifndef HELLOREGRESSIONTEST_H_ +#define HELLOREGRESSIONTEST_H_ +#include "ns3/test.h" +#include "ns3/nstime.h" +#include "ns3/node-container.h" + +namespace ns3 +{ +namespace olsr +{ +/** + * \ingroup olsr + * \brief Trivial (still useful) test of OLSR operation + * + * This test creates 2 stations with point-to-point link and runs OLSR without any extra traffic. + * It is expected that only HELLO messages will be sent. + * + * Expected trace (5 seconds): + \verbatim + 1 2 + |------>| HELLO (empty) src = 10.1.1.1 + |<------| HELLO (empty) src = 10.1.1.2 + |------>| HELLO (Link type: Asymmetric link, Neighbor address: 10.1.1.2) src = 10.1.1.1 + |<------| HELLO (Link type: Asymmetric link, Neighbor address: 10.1.1.1) src = 10.1.1.2 + |------>| HELLO (Link type: Symmetric link, Neighbor address: 10.1.1.2) src = 10.1.1.1 + |<------| HELLO (Link type: Symmetric link, Neighbor address: 10.1.1.1) src = 10.1.1.2 + \endverbatim + */ +class HelloRegressionTest : public TestCase +{ +public: + HelloRegressionTest (); + ~HelloRegressionTest (); +private: + /// Unique PCAP files prefix for this test + static const char * const PREFIX; + /// Total simulation time + const Time m_time; + /// Create & configure test network + void CreateNodes (); + /// Compare traces with reference ones + void CheckResults (); + /// Go + bool DoRun (); +}; + +} +} +#endif /* HELLOREGRESSIONTEST_H_ */ diff --git a/src/routing/olsr/test/olsr-hello-regression-test-0-1.pcap b/src/routing/olsr/test/olsr-hello-regression-test-0-1.pcap new file mode 100644 index 000000000..d1218b1f8 Binary files /dev/null and b/src/routing/olsr/test/olsr-hello-regression-test-0-1.pcap differ diff --git a/src/routing/olsr/test/olsr-hello-regression-test-1-1.pcap b/src/routing/olsr/test/olsr-hello-regression-test-1-1.pcap new file mode 100644 index 000000000..39ee00cc8 Binary files /dev/null and b/src/routing/olsr/test/olsr-hello-regression-test-1-1.pcap differ diff --git a/src/routing/olsr/test/olsr-tc-regression-test-0-1.pcap b/src/routing/olsr/test/olsr-tc-regression-test-0-1.pcap new file mode 100644 index 000000000..067f8fd4a Binary files /dev/null and b/src/routing/olsr/test/olsr-tc-regression-test-0-1.pcap differ diff --git a/src/routing/olsr/test/olsr-tc-regression-test-1-1.pcap b/src/routing/olsr/test/olsr-tc-regression-test-1-1.pcap new file mode 100644 index 000000000..d4cb9b67c Binary files /dev/null and b/src/routing/olsr/test/olsr-tc-regression-test-1-1.pcap differ diff --git a/src/routing/olsr/test/olsr-tc-regression-test-2-1.pcap b/src/routing/olsr/test/olsr-tc-regression-test-2-1.pcap new file mode 100644 index 000000000..387ba190b Binary files /dev/null and b/src/routing/olsr/test/olsr-tc-regression-test-2-1.pcap differ diff --git a/src/routing/olsr/test/regression-test-suite.cc b/src/routing/olsr/test/regression-test-suite.cc new file mode 100644 index 000000000..3d5e7b1fb --- /dev/null +++ b/src/routing/olsr/test/regression-test-suite.cc @@ -0,0 +1,38 @@ +/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2009 IITP RAS + * + * 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 + * + * Authors: Pavel Boyko + */ + +#include "hello-regression-test.h" +#include "tc-regression-test.h" + +namespace ns3 { +namespace olsr { + +class RegressionTestSuite : public TestSuite +{ +public: + RegressionTestSuite () : TestSuite ("routing-olsr-regression", SYSTEM) + { + AddTestCase (new HelloRegressionTest); + AddTestCase (new TcRegressionTest); + } +} g_olsrRegressionTestSuite; + +} +} diff --git a/src/routing/olsr/test/tc-regression-test.cc b/src/routing/olsr/test/tc-regression-test.cc new file mode 100644 index 000000000..c3286919c --- /dev/null +++ b/src/routing/olsr/test/tc-regression-test.cc @@ -0,0 +1,135 @@ +/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2009 IITP RAS + * + * 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 + * + * Authors: Pavel Boyko + */ + +#include "tc-regression-test.h" +#include "ns3/simulator.h" +#include "ns3/random-variable.h" +#include "ns3/double.h" +#include "ns3/uinteger.h" +#include "ns3/string.h" +#include "ns3/pcap-file.h" +#include "ns3/olsr-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/point-to-point-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/abort.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/mobility-helper.h" +#include "ns3/nqos-wifi-mac-helper.h" + +/// Set to true to rewrite reference traces, leave false to run regression tests +const bool WRITE_VECTORS = false; + +namespace ns3 +{ +namespace olsr +{ + +const char * const TcRegressionTest::PREFIX = "olsr-tc-regression-test"; + +TcRegressionTest::TcRegressionTest() : + TestCase ("Test OLSR Topology Control message generation"), + m_time (Seconds (20)), + m_step (120) +{ +} + +TcRegressionTest::~TcRegressionTest() +{ +} + +bool +TcRegressionTest::DoRun () +{ + SeedManager::SetSeed(12345); + CreateNodes (); + + Simulator::Stop (m_time); + Simulator::Run (); + Simulator::Destroy (); + + if (!WRITE_VECTORS) CheckResults (); + return GetErrorStatus (); +} + +void +TcRegressionTest::CreateNodes () +{ + // create 3 nodes + NodeContainer c; + c.Create (3); + + // place nodes in the chain + MobilityHelper mobility; + mobility.SetPositionAllocator ("ns3::GridPositionAllocator", + "MinX", DoubleValue (0.0), + "MinY", DoubleValue (0.0), + "DeltaX", DoubleValue (m_step), + "DeltaY", DoubleValue (0), + "GridWidth", UintegerValue (3), + "LayoutType", StringValue ("RowFirst")); + mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); + mobility.Install (c); + + // install TCP/IP & OLSR + OlsrHelper olsr; + InternetStackHelper internet; + internet.SetRoutingHelper (olsr); + internet.Install (c); + + // create wifi channel & devices + NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default (); + wifiMac.SetType ("ns3::AdhocWifiMac"); + YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); + YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default (); + wifiPhy.SetChannel (wifiChannel.Create ()); + WifiHelper wifi = WifiHelper::Default (); + wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("wifia-6mbs"), "RtsCtsThreshold", StringValue ("2200")); + NetDeviceContainer nd = wifi.Install (wifiPhy, wifiMac, c); + + // setup IP addresses + Ipv4AddressHelper ipv4; + ipv4.SetBase ("10.1.1.0", "255.255.255.0"); + ipv4.Assign (nd); + + // setup PCAP traces + std::string prefix = (WRITE_VECTORS ? NS_TEST_SOURCEDIR : GetTempDir ()) + PREFIX; + wifiPhy.EnablePcapAll (prefix); +} + +void +TcRegressionTest::CheckResults () +{ + for (uint32_t i = 0; i < 3; ++i) + { + std::ostringstream os1, os2; + // File naming conventions are hard-coded here. + os1 << NS_TEST_SOURCEDIR << PREFIX << "-" << i << "-1.pcap"; + os2 << GetTempDir () << PREFIX << "-" << i << "-1.pcap"; + + uint32_t sec(0), usec(0); + bool diff = PcapFile::Diff (os1.str(), os2.str(), sec, usec); + NS_TEST_EXPECT_MSG_EQ (diff, false, "PCAP traces " << os1.str() << " and " << os2.str() + << " differ starting from " << sec << " s " << usec << " us"); + } +} + +} +} diff --git a/src/routing/olsr/test/tc-regression-test.h b/src/routing/olsr/test/tc-regression-test.h new file mode 100644 index 000000000..db6610a13 --- /dev/null +++ b/src/routing/olsr/test/tc-regression-test.h @@ -0,0 +1,96 @@ +/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2009 IITP RAS + * + * 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 + * + * Authors: Pavel Boyko + */ + +#ifndef TCREGRESSIONTEST_H_ +#define TCREGRESSIONTEST_H_ +#include "ns3/test.h" +#include "ns3/nstime.h" +#include "ns3/node-container.h" + +namespace ns3 +{ +namespace olsr +{ +/** + * \ingroup olsr + * \brief Less trivial test of OLSR Topology Control message generation + * + * This test creates 3 WiFi stations with chain topology and runs OLSR without any extra traffic. + * It is expected that only second station will send TC messages. + * + * Expected trace (20 seconds, note random b-cast jitter): + \verbatim + 1 2 3 + |<------|------>| HELLO (empty) src = 10.1.1.2 + | |<------|------> HELLO (empty) src = 10.1.1.3 + <------|------>| | HELLO (empty) src = 10.1.1.1 + <------|------>| | HELLO (Link Type: Asymmetric, Neighbor: 10.1.1.2) src = 10.1.1.1 + | |<------|------> HELLO (Link Type: Asymmetric, Neighbor: 10.1.1.2) src = 10.1.1.3 + |<------|------>| HELLO (Link Type: Asymmetric, Neighbor: 10.1.1.3; Link Type: Asymmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + |<------|------>| HELLO (Link Type: Asymmetric, Neighbor: 10.1.1.3; Link Type: Asymmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + <------|------>| | HELLO (Link Type: Symmetric, Neighbor: 10.1.1.2) src = 10.1.1.1 + | |<------|------> HELLO (Link Type: Symmetric, Neighbor: 10.1.1.2) src = 10.1.1.3 + |<------|------>| HELLO (Link Type: Symmetric, Neighbor: 10.1.1.3; Link Type: Symmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + <------|------>| | HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.1 + | |<------|------> HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.3 + |<------|------>| HELLO (Link Type: Symmetric, Neighbor: 10.1.1.3; Link Type: Symmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + <------|------>| | HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.1 + | |<------|------> HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.3 + |<======|======>| TC (10.1.1.3; 10.1.1.1) + HELLO (Link Type: Symmetric, Neighbor: 10.1.1.3; Link Type: Symmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + | |<------|------> HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.3 + <------|------>| | HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.1 + |<------|------>| HELLO (Link Type: Symmetric, Neighbor: 10.1.1.3; Link Type: Symmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + <------|------>| | HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.1 + | |<------|------> HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.3 + <------|------>| | HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.1 + | |<------|------> HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.3 + |<------|------>| HELLO (Link Type: Symmetric, Neighbor: 10.1.1.3; Link Type: Symmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + |<======|======>| TC (10.1.1.3; 10.1.1.1) src = 10.1.1.2 + | |<------|------> HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.3 + <------|------>| | HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.1 + |<------|------>| HELLO (Link Type: Symmetric, Neighbor: 10.1.1.3; Link Type: Symmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + <------|------>| | HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.1 + | |<------|------> HELLO (Link Type: MPR Link, Neighbor: 10.1.1.2) src = 10.1.1.3 + |<------|------>| HELLO (Link Type: Symmetric, Neighbor: 10.1.1.3; Link Type: Symmetric, Neighbor: 10.1.1.1) src = 10.1.1.2 + \endverbatim + */ +class TcRegressionTest : public TestCase +{ +public: + TcRegressionTest(); + ~TcRegressionTest(); +private: + /// Unique PCAP files prefix for this test + static const char * const PREFIX; + /// Total simulation time + const Time m_time; + /// Distance between nodes in meters, 0.8 of RX range is recommended + const double m_step; + /// Create & configure test network + void CreateNodes (); + /// Compare traces with reference ones + void CheckResults (); + /// Go + bool DoRun (); +}; + +} +} +#endif /* TCREGRESSIONTEST_H_ */ diff --git a/src/routing/olsr/wscript b/src/routing/olsr/wscript index 7170e4478..83f821fbe 100644 --- a/src/routing/olsr/wscript +++ b/src/routing/olsr/wscript @@ -7,6 +7,9 @@ def build(bld): 'olsr-header.cc', 'olsr-state.cc', 'olsr-routing-protocol.cc', + 'test/regression-test-suite.cc', + 'test/hello-regression-test.cc', + 'test/tc-regression-test.cc', ] headers = bld.new_task_gen('ns3header') diff --git a/src/simulator/high-precision.cc b/src/simulator/high-precision.cc index 6f98a1949..685822567 100644 --- a/src/simulator/high-precision.cc +++ b/src/simulator/high-precision.cc @@ -38,27 +38,5 @@ HighPrecision Abs (HighPrecision const &value) return value; } } -HighPrecision Max (HighPrecision const &a, HighPrecision const &b) -{ - if (a.Compare (b) >= 0) - { - return a; - } - else - { - return b; - } -} -HighPrecision Min (HighPrecision const &a, HighPrecision const &b) -{ - if (a.Compare (b) <= 0) - { - return a; - } - else - { - return b; - } -} }; /* namespace ns3 */ diff --git a/src/simulator/high-precision.h b/src/simulator/high-precision.h index 61e414dd5..0b62b912e 100644 --- a/src/simulator/high-precision.h +++ b/src/simulator/high-precision.h @@ -32,8 +32,32 @@ namespace ns3 { HighPrecision Abs (HighPrecision const &value); -HighPrecision Max (HighPrecision const &a, HighPrecision const &b); -HighPrecision Min (HighPrecision const &a, HighPrecision const &b); +inline HighPrecision Max (HighPrecision const &a, HighPrecision const &b); +inline HighPrecision Min (HighPrecision const &a, HighPrecision const &b); + + +inline HighPrecision Max (HighPrecision const &a, HighPrecision const &b) +{ + if (a.Compare (b) >= 0) + { + return a; + } + else + { + return b; + } +} +inline HighPrecision Min (HighPrecision const &a, HighPrecision const &b) +{ + if (a.Compare (b) <= 0) + { + return a; + } + else + { + return b; + } +} }; /* namespace ns3 */ diff --git a/src/wscript b/src/wscript index 30e58fa65..8d8b7a2bd 100644 --- a/src/wscript +++ b/src/wscript @@ -32,8 +32,7 @@ all_modules = ( 'routing/global-routing', 'routing/static-routing', 'routing/list-routing', - 'routing/manet/aodv', - 'routing/manet/dpd', + 'routing/aodv', 'mobility', 'devices/wifi', 'helper', @@ -48,7 +47,6 @@ all_modules = ( 'test/ns3tcp', 'test/ns3wifi', 'contrib/flow-monitor', - 'contrib/net-anim', ) def set_options(opt): @@ -72,6 +70,7 @@ def configure(conf): conf.sub_config('devices/tap-bridge') conf.sub_config('contrib') conf.sub_config('internet-stack') + conf.sub_config('helper') blddir = os.path.abspath(os.path.join(conf.blddir, conf.env.variant())) conf.env.append_value('NS3_MODULE_PATH', blddir)