bindings/python/ns3_module_bridge.py
changeset 3574 b6804efbe16b
parent 3567 728eb3f583b3
child 3584 4eb48239b4dc
equal deleted inserted replaced
3573:352cfe96e593 3574:b6804efbe16b
    53     register_Ns3BridgeChannel_methods(root_module, root_module['ns3::BridgeChannel'])
    53     register_Ns3BridgeChannel_methods(root_module, root_module['ns3::BridgeChannel'])
    54     return
    54     return
    55 
    55 
    56 def register_Ns3BridgeNetDevice_methods(root_module, cls):
    56 def register_Ns3BridgeNetDevice_methods(root_module, cls):
    57     ## bridge-net-device.h: ns3::BridgeNetDevice::BridgeNetDevice(ns3::BridgeNetDevice const & arg0) [copy constructor]
    57     ## bridge-net-device.h: ns3::BridgeNetDevice::BridgeNetDevice(ns3::BridgeNetDevice const & arg0) [copy constructor]
    58     cls.add_constructor([param('ns3::BridgeNetDevice&', 'arg0', is_const=True)])
    58     cls.add_constructor([param('ns3::BridgeNetDevice const &', 'arg0')])
    59     ## bridge-net-device.h: static ns3::TypeId ns3::BridgeNetDevice::GetTypeId() [member function]
    59     ## bridge-net-device.h: static ns3::TypeId ns3::BridgeNetDevice::GetTypeId() [member function]
    60     cls.add_method('GetTypeId', 
    60     cls.add_method('GetTypeId', 
    61                    'ns3::TypeId', 
    61                    'ns3::TypeId', 
    62                    [], 
    62                    [], 
    63                    is_static=True)
    63                    is_static=True)
    68                    'void', 
    68                    'void', 
    69                    [param('ns3::Ptr< ns3::NetDevice >', 'bridgePort')])
    69                    [param('ns3::Ptr< ns3::NetDevice >', 'bridgePort')])
    70     ## bridge-net-device.h: void ns3::BridgeNetDevice::SetName(std::string const name) [member function]
    70     ## bridge-net-device.h: void ns3::BridgeNetDevice::SetName(std::string const name) [member function]
    71     cls.add_method('SetName', 
    71     cls.add_method('SetName', 
    72                    'void', 
    72                    'void', 
    73                    [param('std::string', 'name', is_const=True)], 
    73                    [param('std::string const', 'name')], 
    74                    is_virtual=True)
    74                    is_virtual=True)
    75     ## bridge-net-device.h: std::string ns3::BridgeNetDevice::GetName() const [member function]
    75     ## bridge-net-device.h: std::string ns3::BridgeNetDevice::GetName() const [member function]
    76     cls.add_method('GetName', 
    76     cls.add_method('GetName', 
    77                    'std::string', 
    77                    'std::string', 
    78                    [], 
    78                    [], 
    79                    is_const=True, is_virtual=True)
    79                    is_const=True, is_virtual=True)
    80     ## bridge-net-device.h: void ns3::BridgeNetDevice::SetIfIndex(uint32_t const index) [member function]
    80     ## bridge-net-device.h: void ns3::BridgeNetDevice::SetIfIndex(uint32_t const index) [member function]
    81     cls.add_method('SetIfIndex', 
    81     cls.add_method('SetIfIndex', 
    82                    'void', 
    82                    'void', 
    83                    [param('uint32_t', 'index', is_const=True)], 
    83                    [param('uint32_t const', 'index')], 
    84                    is_virtual=True)
    84                    is_virtual=True)
    85     ## bridge-net-device.h: uint32_t ns3::BridgeNetDevice::GetIfIndex() const [member function]
    85     ## bridge-net-device.h: uint32_t ns3::BridgeNetDevice::GetIfIndex() const [member function]
    86     cls.add_method('GetIfIndex', 
    86     cls.add_method('GetIfIndex', 
    87                    'uint32_t', 
    87                    'uint32_t', 
    88                    [], 
    88                    [], 
    98                    [], 
    98                    [], 
    99                    is_const=True, is_virtual=True)
    99                    is_const=True, is_virtual=True)
   100     ## bridge-net-device.h: bool ns3::BridgeNetDevice::SetMtu(uint16_t const mtu) [member function]
   100     ## bridge-net-device.h: bool ns3::BridgeNetDevice::SetMtu(uint16_t const mtu) [member function]
   101     cls.add_method('SetMtu', 
   101     cls.add_method('SetMtu', 
   102                    'bool', 
   102                    'bool', 
   103                    [param('uint16_t', 'mtu', is_const=True)], 
   103                    [param('uint16_t const', 'mtu')], 
   104                    is_virtual=True)
   104                    is_virtual=True)
   105     ## bridge-net-device.h: uint16_t ns3::BridgeNetDevice::GetMtu() const [member function]
   105     ## bridge-net-device.h: uint16_t ns3::BridgeNetDevice::GetMtu() const [member function]
   106     cls.add_method('GetMtu', 
   106     cls.add_method('GetMtu', 
   107                    'uint16_t', 
   107                    'uint16_t', 
   108                    [], 
   108                    [], 
   148                    [], 
   148                    [], 
   149                    is_const=True, is_virtual=True)
   149                    is_const=True, is_virtual=True)
   150     ## bridge-net-device.h: bool ns3::BridgeNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   150     ## bridge-net-device.h: bool ns3::BridgeNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   151     cls.add_method('Send', 
   151     cls.add_method('Send', 
   152                    'bool', 
   152                    'bool', 
   153                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], 
   153                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   154                    is_virtual=True)
   154                    is_virtual=True)
   155     ## bridge-net-device.h: bool ns3::BridgeNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   155     ## bridge-net-device.h: bool ns3::BridgeNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   156     cls.add_method('SendFrom', 
   156     cls.add_method('SendFrom', 
   157                    'bool', 
   157                    'bool', 
   158                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'source', is_const=True), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], 
   158                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   159                    is_virtual=True)
   159                    is_virtual=True)
   160     ## bridge-net-device.h: ns3::Ptr<ns3::Node> ns3::BridgeNetDevice::GetNode() const [member function]
   160     ## bridge-net-device.h: ns3::Ptr<ns3::Node> ns3::BridgeNetDevice::GetNode() const [member function]
   161     cls.add_method('GetNode', 
   161     cls.add_method('GetNode', 
   162                    'ns3::Ptr< ns3::Node >', 
   162                    'ns3::Ptr< ns3::Node >', 
   163                    [], 
   163                    [], 
   193                    [], 
   193                    [], 
   194                    visibility='protected', is_virtual=True)
   194                    visibility='protected', is_virtual=True)
   195     ## bridge-net-device.h: void ns3::BridgeNetDevice::ReceiveFromDevice(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Address const & source, ns3::Address const & destination, ns3::NetDevice::PacketType packetType) [member function]
   195     ## bridge-net-device.h: void ns3::BridgeNetDevice::ReceiveFromDevice(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Address const & source, ns3::Address const & destination, ns3::NetDevice::PacketType packetType) [member function]
   196     cls.add_method('ReceiveFromDevice', 
   196     cls.add_method('ReceiveFromDevice', 
   197                    'void', 
   197                    'void', 
   198                    [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< const ns3::Packet >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Address&', 'source', is_const=True), param('ns3::Address&', 'destination', is_const=True), param('ns3::NetDevice::PacketType', 'packetType')], 
   198                    [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< const ns3::Packet >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'destination'), param('ns3::NetDevice::PacketType', 'packetType')], 
   199                    visibility='protected')
   199                    visibility='protected')
   200     ## bridge-net-device.h: void ns3::BridgeNetDevice::ForwardUnicast(ns3::Ptr<ns3::NetDevice> incomingPort, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Mac48Address src, ns3::Mac48Address dst) [member function]
   200     ## bridge-net-device.h: void ns3::BridgeNetDevice::ForwardUnicast(ns3::Ptr<ns3::NetDevice> incomingPort, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Mac48Address src, ns3::Mac48Address dst) [member function]
   201     cls.add_method('ForwardUnicast', 
   201     cls.add_method('ForwardUnicast', 
   202                    'void', 
   202                    'void', 
   203                    [param('ns3::Ptr< ns3::NetDevice >', 'incomingPort'), param('ns3::Ptr< const ns3::Packet >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'src'), param('ns3::Mac48Address', 'dst')], 
   203                    [param('ns3::Ptr< ns3::NetDevice >', 'incomingPort'), param('ns3::Ptr< const ns3::Packet >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'src'), param('ns3::Mac48Address', 'dst')], 
   219                    visibility='protected')
   219                    visibility='protected')
   220     return
   220     return
   221 
   221 
   222 def register_Ns3BridgeChannel_methods(root_module, cls):
   222 def register_Ns3BridgeChannel_methods(root_module, cls):
   223     ## bridge-channel.h: ns3::BridgeChannel::BridgeChannel(ns3::BridgeChannel const & arg0) [copy constructor]
   223     ## bridge-channel.h: ns3::BridgeChannel::BridgeChannel(ns3::BridgeChannel const & arg0) [copy constructor]
   224     cls.add_constructor([param('ns3::BridgeChannel&', 'arg0', is_const=True)])
   224     cls.add_constructor([param('ns3::BridgeChannel const &', 'arg0')])
   225     ## bridge-channel.h: static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
   225     ## bridge-channel.h: static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
   226     cls.add_method('GetTypeId', 
   226     cls.add_method('GetTypeId', 
   227                    'ns3::TypeId', 
   227                    'ns3::TypeId', 
   228                    [], 
   228                    [], 
   229                    is_static=True)
   229                    is_static=True)