diff --git a/bindings/python/ns3_module_common.py b/bindings/python/ns3_module_common.py index bdffb32c8..a7a0c4975 100644 --- a/bindings/python/ns3_module_common.py +++ b/bindings/python/ns3_module_common.py @@ -65,6 +65,8 @@ def register_types(module): 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']) ## error-model.h: ns3::RateErrorModel [class] module.add_class('RateErrorModel', parent=root_module['ns3::ErrorModel']) @@ -167,6 +169,7 @@ def register_methods(root_module): register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) 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_Ns3RateErrorModel_methods(root_module, root_module['ns3::RateErrorModel']) return @@ -611,6 +614,11 @@ def register_Ns3Packet_methods(root_module, cls): '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', @@ -693,6 +701,10 @@ def register_Ns3Packet_methods(root_module, cls): '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): @@ -1308,6 +1320,60 @@ def register_Ns3ListErrorModel_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3NixVector_methods(root_module, cls): + cls.add_output_stream_operator() + ## nix-vector.h: ns3::NixVector::NixVector() [constructor] + cls.add_constructor([]) + ## nix-vector.h: ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor] + cls.add_constructor([param('ns3::NixVector const &', 'o')]) + ## nix-vector.h: void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function] + cls.add_method('AddNeighborIndex', + 'void', + [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')]) + ## nix-vector.h: uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function] + cls.add_method('BitCount', + 'uint32_t', + [param('uint32_t', 'numberOfNeighbors')], + is_const=True) + ## nix-vector.h: ns3::Ptr ns3::NixVector::Copy() const [member function] + cls.add_method('Copy', + 'ns3::Ptr< ns3::NixVector >', + [], + is_const=True) + ## nix-vector.h: uint32_t ns3::NixVector::Deserialize(ns3::Buffer::Iterator i) [member function] + cls.add_method('Deserialize', + 'uint32_t', + [param('ns3::Buffer::Iterator', 'i')]) + ## nix-vector.h: void ns3::NixVector::DumpNixVector(std::ostream & os) const [member function] + cls.add_method('DumpNixVector', + 'void', + [param('std::ostream &', 'os')], + is_const=True) + ## nix-vector.h: uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function] + cls.add_method('ExtractNeighborIndex', + 'uint32_t', + [param('uint32_t', 'numberOfBits')]) + ## nix-vector.h: uint32_t ns3::NixVector::GetRemainingBits() [member function] + cls.add_method('GetRemainingBits', + 'uint32_t', + []) + ## nix-vector.h: uint32_t ns3::NixVector::GetSerializedSize() const [member function] + cls.add_method('GetSerializedSize', + 'uint32_t', + [], + is_const=True) + ## nix-vector.h: static ns3::TypeId ns3::NixVector::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## nix-vector.h: void ns3::NixVector::Serialize(ns3::Buffer::Iterator i, uint32_t size) const [member function] + cls.add_method('Serialize', + 'void', + [param('ns3::Buffer::Iterator', 'i'), param('uint32_t', 'size')], + is_const=True) + 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')]) diff --git a/bindings/python/ns3_module_helper.py b/bindings/python/ns3_module_helper.py index 559e78b9a..b859378f3 100644 --- a/bindings/python/ns3_module_helper.py +++ b/bindings/python/ns3_module_helper.py @@ -81,6 +81,8 @@ def register_types(module): module.add_class('Ipv4GlobalRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper']) ## ipv4-list-routing-helper.h: ns3::Ipv4ListRoutingHelper [class] module.add_class('Ipv4ListRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper']) + ## ipv4-nix-vector-helper.h: ns3::Ipv4NixVectorHelper [class] + module.add_class('Ipv4NixVectorHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper']) ## ipv6-list-routing-helper.h: ns3::Ipv6ListRoutingHelper [class] module.add_class('Ipv6ListRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv6RoutingHelper']) ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper [class] @@ -204,6 +206,7 @@ def register_methods(root_module): register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper']) 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']) register_Ns3Ipv6ListRoutingHelper_methods(root_module, root_module['ns3::Ipv6ListRoutingHelper']) register_Ns3NqosWifiMacHelper_methods(root_module, root_module['ns3::NqosWifiMacHelper']) register_Ns3QosWifiMacHelper_methods(root_module, root_module['ns3::QosWifiMacHelper']) @@ -610,6 +613,8 @@ def register_Ns3Ipv4AddressHelper_methods(root_module, cls): cls.add_constructor([param('ns3::Ipv4AddressHelper const &', 'arg0')]) ## ipv4-address-helper.h: ns3::Ipv4AddressHelper::Ipv4AddressHelper() [constructor] cls.add_constructor([]) + ## ipv4-address-helper.h: ns3::Ipv4AddressHelper::Ipv4AddressHelper(ns3::Ipv4Address network, ns3::Ipv4Mask mask, ns3::Ipv4Address base="0.0.0.1") [constructor] + cls.add_constructor([param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'mask'), param('ns3::Ipv4Address', 'base', default_value='"0.0.0.1"')]) ## ipv4-address-helper.h: ns3::Ipv4InterfaceContainer ns3::Ipv4AddressHelper::Assign(ns3::NetDeviceContainer const & c) [member function] cls.add_method('Assign', 'ns3::Ipv4InterfaceContainer', @@ -641,10 +646,19 @@ def register_Ns3Ipv4InterfaceContainer_methods(root_module, cls): cls.add_method('Add', 'void', [param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface')]) + ## ipv4-interface-container.h: void ns3::Ipv4InterfaceContainer::Add(std::pair,unsigned int> arg0) [member function] + cls.add_method('Add', + 'void', + [param('std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int >', 'arg0')]) ## ipv4-interface-container.h: void ns3::Ipv4InterfaceContainer::Add(std::string ipv4Name, uint32_t interface) [member function] cls.add_method('Add', 'void', [param('std::string', 'ipv4Name'), param('uint32_t', 'interface')]) + ## ipv4-interface-container.h: std::pair,unsigned int> ns3::Ipv4InterfaceContainer::Get(uint32_t arg0) const [member function] + cls.add_method('Get', + 'std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int >', + [param('uint32_t', 'arg0')], + is_const=True) ## ipv4-interface-container.h: ns3::Ipv4Address ns3::Ipv4InterfaceContainer::GetAddress(uint32_t i, uint32_t j=0) const [member function] cls.add_method('GetAddress', 'ns3::Ipv4Address', @@ -1617,6 +1631,18 @@ def register_Ns3Ipv4ListRoutingHelper_methods(root_module, cls): is_const=True, is_virtual=True) return +def register_Ns3Ipv4NixVectorHelper_methods(root_module, cls): + ## ipv4-nix-vector-helper.h: ns3::Ipv4NixVectorHelper::Ipv4NixVectorHelper(ns3::Ipv4NixVectorHelper const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4NixVectorHelper const &', 'arg0')]) + ## ipv4-nix-vector-helper.h: ns3::Ipv4NixVectorHelper::Ipv4NixVectorHelper() [constructor] + cls.add_constructor([]) + ## ipv4-nix-vector-helper.h: ns3::Ptr ns3::Ipv4NixVectorHelper::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) + return + def register_Ns3Ipv6ListRoutingHelper_methods(root_module, cls): ## ipv6-list-routing-helper.h: ns3::Ipv6ListRoutingHelper::Ipv6ListRoutingHelper(ns3::Ipv6ListRoutingHelper const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv6ListRoutingHelper const &', 'arg0')]) diff --git a/bindings/python/ns3_module_internet_stack.py b/bindings/python/ns3_module_internet_stack.py index a4163c546..c8eef2d76 100644 --- a/bindings/python/ns3_module_internet_stack.py +++ b/bindings/python/ns3_module_internet_stack.py @@ -998,11 +998,11 @@ def register_Ns3Icmpv6ParameterError_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## icmpv6-header.h: void ns3::Icmpv6ParameterError::Print(std::ostream & os) [member function] + ## icmpv6-header.h: void ns3::Icmpv6ParameterError::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], - is_virtual=True) + is_const=True, is_virtual=True) ## icmpv6-header.h: void ns3::Icmpv6ParameterError::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', @@ -1157,11 +1157,11 @@ def register_Ns3Icmpv6RS_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## icmpv6-header.h: void ns3::Icmpv6RS::Print(std::ostream & os) [member function] + ## icmpv6-header.h: void ns3::Icmpv6RS::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], - is_virtual=True) + is_const=True, is_virtual=True) ## icmpv6-header.h: void ns3::Icmpv6RS::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', @@ -1213,11 +1213,11 @@ def register_Ns3Icmpv6Redirection_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## icmpv6-header.h: void ns3::Icmpv6Redirection::Print(std::ostream & os) [member function] + ## icmpv6-header.h: void ns3::Icmpv6Redirection::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], - is_virtual=True) + is_const=True, is_virtual=True) ## icmpv6-header.h: void ns3::Icmpv6Redirection::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', @@ -1267,11 +1267,11 @@ def register_Ns3Icmpv6TimeExceeded_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## icmpv6-header.h: void ns3::Icmpv6TimeExceeded::Print(std::ostream & os) [member function] + ## icmpv6-header.h: void ns3::Icmpv6TimeExceeded::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], - is_virtual=True) + is_const=True, is_virtual=True) ## icmpv6-header.h: void ns3::Icmpv6TimeExceeded::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', @@ -1318,11 +1318,11 @@ def register_Ns3Icmpv6TooBig_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## icmpv6-header.h: void ns3::Icmpv6TooBig::Print(std::ostream & os) [member function] + ## icmpv6-header.h: void ns3::Icmpv6TooBig::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], - is_virtual=True) + is_const=True, is_virtual=True) ## icmpv6-header.h: void ns3::Icmpv6TooBig::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', @@ -1743,11 +1743,11 @@ def register_Ns3Icmpv6DestinationUnreachable_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## icmpv6-header.h: void ns3::Icmpv6DestinationUnreachable::Print(std::ostream & os) [member function] + ## icmpv6-header.h: void ns3::Icmpv6DestinationUnreachable::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], - is_virtual=True) + is_const=True, is_virtual=True) ## icmpv6-header.h: void ns3::Icmpv6DestinationUnreachable::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', diff --git a/bindings/python/ns3_module_nix_vector_routing.py b/bindings/python/ns3_module_nix_vector_routing.py new file mode 100644 index 000000000..f027a698f --- /dev/null +++ b/bindings/python/ns3_module_nix_vector_routing.py @@ -0,0 +1,180 @@ +from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers + +def register_types(module): + root_module = module.get_root() + + ## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting [class] + module.add_class('Ipv4NixVectorRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) + typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >', 'ns3::NixMap_t') + typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >*', 'ns3::NixMap_t*') + typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >&', 'ns3::NixMap_t&') + typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >', 'ns3::Ipv4RouteMap_t') + typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >*', 'ns3::Ipv4RouteMap_t*') + typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >&', 'ns3::Ipv4RouteMap_t&') + + ## 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 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_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_Ns3Ipv4NixVectorRouting_methods(root_module, root_module['ns3::Ipv4NixVectorRouting']) + return + +def register_Ns3Ipv4NixVectorRouting_methods(root_module, cls): + ## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting(ns3::Ipv4NixVectorRouting const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv4NixVectorRouting const &', 'arg0')]) + ## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting() [constructor] + cls.add_constructor([]) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::FlushGlobalNixRoutingCache() [member function] + cls.add_method('FlushGlobalNixRoutingCache', + 'void', + []) + ## ipv4-nix-vector-routing.h: static ns3::TypeId ns3::Ipv4NixVectorRouting::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetNode(ns3::Ptr arg0) [member function] + cls.add_method('SetNode', + 'void', + [param('ns3::Ptr< ns3::Node >', 'arg0')]) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='private', is_virtual=True) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('NotifyAddAddress', + 'void', + [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], + visibility='private', is_virtual=True) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceDown(uint32_t interface) [member function] + cls.add_method('NotifyInterfaceDown', + 'void', + [param('uint32_t', 'interface')], + visibility='private', is_virtual=True) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceUp(uint32_t interface) [member function] + cls.add_method('NotifyInterfaceUp', + 'void', + [param('uint32_t', 'interface')], + visibility='private', is_virtual=True) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] + cls.add_method('NotifyRemoveAddress', + '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] + 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')], + visibility='private', is_virtual=True) + ## ipv4-nix-vector-routing.h: ns3::Ptr ns3::Ipv4NixVectorRouting::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')], + visibility='private', is_virtual=True) + ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetIpv4(ns3::Ptr ipv4) [member function] + cls.add_method('SetIpv4', + 'void', + [param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')], + 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_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_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/ns3modulegen_generated.py b/bindings/python/ns3modulegen_generated.py index 5535306e6..065ca142f 100644 --- a/bindings/python/ns3modulegen_generated.py +++ b/bindings/python/ns3modulegen_generated.py @@ -35,6 +35,7 @@ import ns3_module_bridge import ns3_module_onoff import ns3_module_udp_echo import ns3_module_ping6 +import ns3_module_nix_vector_routing import ns3_module_olsr import ns3_module_flow_monitor import ns3_module_radvd @@ -303,6 +304,17 @@ def register_types(module): ns3_module_ping6__local.register_types(module) root_module.end_section('ns3_module_ping6') + root_module.begin_section('ns3_module_nix_vector_routing') + ns3_module_nix_vector_routing.register_types(module) + + try: + import ns3_module_nix_vector_routing__local + except ImportError: + pass + else: + ns3_module_nix_vector_routing__local.register_types(module) + + root_module.end_section('ns3_module_nix_vector_routing') root_module.begin_section('ns3_module_olsr') ns3_module_olsr.register_types(module) @@ -380,6 +392,14 @@ def register_types(module): ns3_module_flame__local.register_types(module) root_module.end_section('ns3_module_flame') + ## animation-interface.h: ns3::AnimationInterface [class] + module.add_class('AnimationInterface') + ## point-to-point-dumbbell-helper.h: ns3::PointToPointDumbbellHelper [class] + module.add_class('PointToPointDumbbellHelper', allow_subclassing=False) + ## point-to-point-grid-helper.h: ns3::PointToPointGridHelper [class] + module.add_class('PointToPointGridHelper', allow_subclassing=False) + ## node-location.h: ns3::NodeLocation [class] + module.add_class('NodeLocation', parent=root_module['ns3::Object']) module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector') module.add_container('std::vector< bool >', 'bool', container_type='vector') module.add_container('std::vector< unsigned long >', 'long unsigned int', container_type='vector') @@ -458,6 +478,10 @@ def register_types_ns3_olsr(module): def register_methods(root_module): + register_Ns3AnimationInterface_methods(root_module, root_module['ns3::AnimationInterface']) + register_Ns3PointToPointDumbbellHelper_methods(root_module, root_module['ns3::PointToPointDumbbellHelper']) + register_Ns3PointToPointGridHelper_methods(root_module, root_module['ns3::PointToPointGridHelper']) + register_Ns3NodeLocation_methods(root_module, root_module['ns3::NodeLocation']) root_module.begin_section('ns3_module_core') ns3_module_core.register_methods(root_module) @@ -711,6 +735,17 @@ def register_methods(root_module): ns3_module_ping6__local.register_methods(root_module) root_module.end_section('ns3_module_ping6') + root_module.begin_section('ns3_module_nix_vector_routing') + ns3_module_nix_vector_routing.register_methods(root_module) + + try: + import ns3_module_nix_vector_routing__local + except ImportError: + pass + else: + ns3_module_nix_vector_routing__local.register_methods(root_module) + + root_module.end_section('ns3_module_nix_vector_routing') root_module.begin_section('ns3_module_olsr') ns3_module_olsr.register_methods(root_module) @@ -790,6 +825,142 @@ def register_methods(root_module): root_module.end_section('ns3_module_flame') return +def register_Ns3AnimationInterface_methods(root_module, cls): + ## animation-interface.h: ns3::AnimationInterface::AnimationInterface(ns3::AnimationInterface const & arg0) [copy constructor] + cls.add_constructor([param('ns3::AnimationInterface const &', 'arg0')]) + ## animation-interface.h: ns3::AnimationInterface::AnimationInterface() [constructor] + cls.add_constructor([]) + ## animation-interface.h: bool ns3::AnimationInterface::SetInternalAnimation() [member function] + cls.add_method('SetInternalAnimation', + 'bool', + []) + ## animation-interface.h: bool ns3::AnimationInterface::SetOutputFile(std::string const & fn) [member function] + cls.add_method('SetOutputFile', + 'bool', + [param('std::string const &', 'fn')]) + ## animation-interface.h: bool ns3::AnimationInterface::SetServerPort(uint16_t port) [member function] + cls.add_method('SetServerPort', + 'bool', + [param('uint16_t', 'port')]) + ## animation-interface.h: void ns3::AnimationInterface::StartAnimation() [member function] + cls.add_method('StartAnimation', + 'void', + []) + ## animation-interface.h: void ns3::AnimationInterface::StopAnimation() [member function] + cls.add_method('StopAnimation', + 'void', + []) + return + +def register_Ns3PointToPointDumbbellHelper_methods(root_module, cls): + ## point-to-point-dumbbell-helper.h: ns3::PointToPointDumbbellHelper::PointToPointDumbbellHelper(ns3::PointToPointDumbbellHelper const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PointToPointDumbbellHelper const &', 'arg0')]) + ## point-to-point-dumbbell-helper.h: ns3::PointToPointDumbbellHelper::PointToPointDumbbellHelper(uint32_t nLeftLeaf, ns3::PointToPointHelper & leftHelper, uint32_t nRightLeaf, ns3::PointToPointHelper & rightHelper, ns3::PointToPointHelper & bottleneckHelper) [constructor] + cls.add_constructor([param('uint32_t', 'nLeftLeaf'), param('ns3::PointToPointHelper &', 'leftHelper'), param('uint32_t', 'nRightLeaf'), param('ns3::PointToPointHelper &', 'rightHelper'), param('ns3::PointToPointHelper &', 'bottleneckHelper')]) + ## point-to-point-dumbbell-helper.h: void ns3::PointToPointDumbbellHelper::AssignAddresses(ns3::Ipv4AddressHelper leftIp, ns3::Ipv4AddressHelper rightIp, ns3::Ipv4AddressHelper routerIp) [member function] + cls.add_method('AssignAddresses', + 'void', + [param('ns3::Ipv4AddressHelper', 'leftIp'), param('ns3::Ipv4AddressHelper', 'rightIp'), param('ns3::Ipv4AddressHelper', 'routerIp')]) + ## point-to-point-dumbbell-helper.h: void ns3::PointToPointDumbbellHelper::BoundingBox(double arg0, double arg1, double arg2, double arg3) [member function] + cls.add_method('BoundingBox', + 'void', + [param('double', 'arg0'), param('double', 'arg1'), param('double', 'arg2'), param('double', 'arg3')]) + ## point-to-point-dumbbell-helper.h: ns3::Ptr ns3::PointToPointDumbbellHelper::GetLeft() const [member function] + cls.add_method('GetLeft', + 'ns3::Ptr< ns3::Node >', + [], + is_const=True) + ## point-to-point-dumbbell-helper.h: ns3::Ptr ns3::PointToPointDumbbellHelper::GetLeft(uint32_t arg0) const [member function] + cls.add_method('GetLeft', + 'ns3::Ptr< ns3::Node >', + [param('uint32_t', 'arg0')], + is_const=True) + ## point-to-point-dumbbell-helper.h: ns3::Ipv4Address ns3::PointToPointDumbbellHelper::GetLeftAddress(uint32_t arg0) const [member function] + cls.add_method('GetLeftAddress', + 'ns3::Ipv4Address', + [param('uint32_t', 'arg0')], + is_const=True) + ## point-to-point-dumbbell-helper.h: ns3::Ptr ns3::PointToPointDumbbellHelper::GetRight() const [member function] + cls.add_method('GetRight', + 'ns3::Ptr< ns3::Node >', + [], + is_const=True) + ## point-to-point-dumbbell-helper.h: ns3::Ptr ns3::PointToPointDumbbellHelper::GetRight(uint32_t arg0) const [member function] + cls.add_method('GetRight', + 'ns3::Ptr< ns3::Node >', + [param('uint32_t', 'arg0')], + is_const=True) + ## point-to-point-dumbbell-helper.h: ns3::Ipv4Address ns3::PointToPointDumbbellHelper::GetRightAddress(uint32_t arg0) const [member function] + cls.add_method('GetRightAddress', + 'ns3::Ipv4Address', + [param('uint32_t', 'arg0')], + is_const=True) + ## point-to-point-dumbbell-helper.h: void ns3::PointToPointDumbbellHelper::InstallStack(ns3::InternetStackHelper stack) [member function] + cls.add_method('InstallStack', + 'void', + [param('ns3::InternetStackHelper', 'stack')]) + ## point-to-point-dumbbell-helper.h: uint32_t ns3::PointToPointDumbbellHelper::LeftCount() const [member function] + cls.add_method('LeftCount', + 'uint32_t', + [], + is_const=True) + ## point-to-point-dumbbell-helper.h: uint32_t ns3::PointToPointDumbbellHelper::RightCount() const [member function] + cls.add_method('RightCount', + 'uint32_t', + [], + is_const=True) + return + +def register_Ns3PointToPointGridHelper_methods(root_module, cls): + ## point-to-point-grid-helper.h: ns3::PointToPointGridHelper::PointToPointGridHelper(ns3::PointToPointGridHelper const & arg0) [copy constructor] + cls.add_constructor([param('ns3::PointToPointGridHelper const &', 'arg0')]) + ## point-to-point-grid-helper.h: ns3::PointToPointGridHelper::PointToPointGridHelper(uint32_t nRows, uint32_t nCols, ns3::PointToPointHelper pointToPoint) [constructor] + cls.add_constructor([param('uint32_t', 'nRows'), param('uint32_t', 'nCols'), param('ns3::PointToPointHelper', 'pointToPoint')]) + ## point-to-point-grid-helper.h: ns3::PointToPointGridHelper::PointToPointGridHelper(uint32_t nRows, uint32_t nCols, ns3::PointToPointHelper pointToPoint, uint16_t mpiSize) [constructor] + cls.add_constructor([param('uint32_t', 'nRows'), param('uint32_t', 'nCols'), param('ns3::PointToPointHelper', 'pointToPoint'), param('uint16_t', 'mpiSize')]) + ## point-to-point-grid-helper.h: void ns3::PointToPointGridHelper::AssignAddresses(ns3::Ipv4AddressHelper rowIp, ns3::Ipv4AddressHelper colIp) [member function] + cls.add_method('AssignAddresses', + 'void', + [param('ns3::Ipv4AddressHelper', 'rowIp'), param('ns3::Ipv4AddressHelper', 'colIp')]) + ## point-to-point-grid-helper.h: void ns3::PointToPointGridHelper::BoundingBox(double ulx, double uly, double lrx, double lry) [member function] + cls.add_method('BoundingBox', + 'void', + [param('double', 'ulx'), param('double', 'uly'), param('double', 'lrx'), param('double', 'lry')]) + ## point-to-point-grid-helper.h: ns3::Ipv4Address ns3::PointToPointGridHelper::GetAddress(uint32_t row, uint32_t col) [member function] + cls.add_method('GetAddress', + 'ns3::Ipv4Address', + [param('uint32_t', 'row'), param('uint32_t', 'col')]) + ## point-to-point-grid-helper.h: ns3::Ptr ns3::PointToPointGridHelper::GetNode(uint32_t row, uint32_t col) [member function] + cls.add_method('GetNode', + 'ns3::Ptr< ns3::Node >', + [param('uint32_t', 'row'), param('uint32_t', 'col')]) + ## point-to-point-grid-helper.h: void ns3::PointToPointGridHelper::InstallStack(ns3::InternetStackHelper stack) [member function] + cls.add_method('InstallStack', + 'void', + [param('ns3::InternetStackHelper', 'stack')]) + return + +def register_Ns3NodeLocation_methods(root_module, cls): + ## node-location.h: ns3::NodeLocation::NodeLocation(ns3::NodeLocation const & arg0) [copy constructor] + cls.add_constructor([param('ns3::NodeLocation const &', 'arg0')]) + ## node-location.h: ns3::NodeLocation::NodeLocation() [constructor] + cls.add_constructor([]) + ## node-location.h: ns3::Vector ns3::NodeLocation::GetLocation() const [member function] + cls.add_method('GetLocation', + 'ns3::Vector', + [], + is_const=True) + ## node-location.h: static ns3::TypeId ns3::NodeLocation::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## node-location.h: void ns3::NodeLocation::SetLocation(ns3::Vector const & location) [member function] + cls.add_method('SetLocation', + 'void', + [param('ns3::Vector const &', 'location')]) + return + def register_functions(root_module): module = root_module root_module.begin_section('ns3_module_core') @@ -1045,6 +1216,17 @@ def register_functions(root_module): ns3_module_ping6__local.register_functions(root_module) root_module.end_section('ns3_module_ping6') + root_module.begin_section('ns3_module_nix_vector_routing') + ns3_module_nix_vector_routing.register_functions(root_module) + + try: + import ns3_module_nix_vector_routing__local + except ImportError: + pass + else: + ns3_module_nix_vector_routing__local.register_functions(root_module) + + root_module.end_section('ns3_module_nix_vector_routing') root_module.begin_section('ns3_module_olsr') ns3_module_olsr.register_functions(root_module)