This commit will change a lot the scanned API definitions, once, but should allow much more stable scanning in the future, as right now only types were being sorted, but free functions can jump up or down when different people on different machines scan the API. Well, no more will that happen in the future, I hope.
268 lines
14 KiB
Python
268 lines
14 KiB
Python
from pybindgen import Module, FileCodeSink, param, retval, cppclass
|
|
|
|
def register_types(module):
|
|
root_module = module.get_root()
|
|
|
|
## bridge-channel.h: ns3::BridgeChannel [class]
|
|
module.add_class('BridgeChannel', parent=root_module['ns3::Channel'])
|
|
## bridge-net-device.h: ns3::BridgeNetDevice [class]
|
|
module.add_class('BridgeNetDevice', parent=root_module['ns3::NetDevice'])
|
|
|
|
## 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 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_internal(module):
|
|
root_module = module.get_root()
|
|
|
|
|
|
def register_types_ns3_olsr(module):
|
|
root_module = module.get_root()
|
|
|
|
|
|
def register_methods(root_module):
|
|
register_Ns3BridgeChannel_methods(root_module, root_module['ns3::BridgeChannel'])
|
|
register_Ns3BridgeNetDevice_methods(root_module, root_module['ns3::BridgeNetDevice'])
|
|
return
|
|
|
|
def register_Ns3BridgeChannel_methods(root_module, cls):
|
|
## bridge-channel.h: ns3::BridgeChannel::BridgeChannel(ns3::BridgeChannel const & arg0) [copy constructor]
|
|
cls.add_constructor([param('ns3::BridgeChannel const &', 'arg0')])
|
|
## bridge-channel.h: static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
|
|
cls.add_method('GetTypeId',
|
|
'ns3::TypeId',
|
|
[],
|
|
is_static=True)
|
|
## bridge-channel.h: ns3::BridgeChannel::BridgeChannel() [constructor]
|
|
cls.add_constructor([])
|
|
## bridge-channel.h: void ns3::BridgeChannel::AddChannel(ns3::Ptr<ns3::Channel> bridgedChannel) [member function]
|
|
cls.add_method('AddChannel',
|
|
'void',
|
|
[param('ns3::Ptr< ns3::Channel >', 'bridgedChannel')])
|
|
## bridge-channel.h: uint32_t ns3::BridgeChannel::GetNDevices() const [member function]
|
|
cls.add_method('GetNDevices',
|
|
'uint32_t',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-channel.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeChannel::GetDevice(uint32_t i) const [member function]
|
|
cls.add_method('GetDevice',
|
|
'ns3::Ptr< ns3::NetDevice >',
|
|
[param('uint32_t', 'i')],
|
|
is_const=True, is_virtual=True)
|
|
return
|
|
|
|
def register_Ns3BridgeNetDevice_methods(root_module, cls):
|
|
## bridge-net-device.h: ns3::BridgeNetDevice::BridgeNetDevice(ns3::BridgeNetDevice const & arg0) [copy constructor]
|
|
cls.add_constructor([param('ns3::BridgeNetDevice const &', 'arg0')])
|
|
## bridge-net-device.h: static ns3::TypeId ns3::BridgeNetDevice::GetTypeId() [member function]
|
|
cls.add_method('GetTypeId',
|
|
'ns3::TypeId',
|
|
[],
|
|
is_static=True)
|
|
## bridge-net-device.h: ns3::BridgeNetDevice::BridgeNetDevice() [constructor]
|
|
cls.add_constructor([])
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::AddBridgePort(ns3::Ptr<ns3::NetDevice> bridgePort) [member function]
|
|
cls.add_method('AddBridgePort',
|
|
'void',
|
|
[param('ns3::Ptr< ns3::NetDevice >', 'bridgePort')])
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::SetName(std::string const name) [member function]
|
|
cls.add_method('SetName',
|
|
'void',
|
|
[param('std::string const', 'name')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: std::string ns3::BridgeNetDevice::GetName() const [member function]
|
|
cls.add_method('GetName',
|
|
'std::string',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::SetIfIndex(uint32_t const index) [member function]
|
|
cls.add_method('SetIfIndex',
|
|
'void',
|
|
[param('uint32_t const', 'index')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: uint32_t ns3::BridgeNetDevice::GetIfIndex() const [member function]
|
|
cls.add_method('GetIfIndex',
|
|
'uint32_t',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: ns3::Ptr<ns3::Channel> ns3::BridgeNetDevice::GetChannel() const [member function]
|
|
cls.add_method('GetChannel',
|
|
'ns3::Ptr< ns3::Channel >',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: ns3::Address ns3::BridgeNetDevice::GetAddress() const [member function]
|
|
cls.add_method('GetAddress',
|
|
'ns3::Address',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::SetMtu(uint16_t const mtu) [member function]
|
|
cls.add_method('SetMtu',
|
|
'bool',
|
|
[param('uint16_t const', 'mtu')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: uint16_t ns3::BridgeNetDevice::GetMtu() const [member function]
|
|
cls.add_method('GetMtu',
|
|
'uint16_t',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::IsLinkUp() const [member function]
|
|
cls.add_method('IsLinkUp',
|
|
'bool',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
|
|
cls.add_method('SetLinkChangeCallback',
|
|
'void',
|
|
[param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::IsBroadcast() const [member function]
|
|
cls.add_method('IsBroadcast',
|
|
'bool',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: ns3::Address ns3::BridgeNetDevice::GetBroadcast() const [member function]
|
|
cls.add_method('GetBroadcast',
|
|
'ns3::Address',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::IsMulticast() const [member function]
|
|
cls.add_method('IsMulticast',
|
|
'bool',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: ns3::Address ns3::BridgeNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
|
|
cls.add_method('GetMulticast',
|
|
'ns3::Address',
|
|
[param('ns3::Ipv4Address', 'multicastGroup')],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::IsPointToPoint() const [member function]
|
|
cls.add_method('IsPointToPoint',
|
|
'bool',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
|
|
cls.add_method('Send',
|
|
'bool',
|
|
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
|
|
is_virtual=True)
|
|
## 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]
|
|
cls.add_method('SendFrom',
|
|
'bool',
|
|
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: ns3::Ptr<ns3::Node> ns3::BridgeNetDevice::GetNode() const [member function]
|
|
cls.add_method('GetNode',
|
|
'ns3::Ptr< ns3::Node >',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
|
|
cls.add_method('SetNode',
|
|
'void',
|
|
[param('ns3::Ptr< ns3::Node >', 'node')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::NeedsArp() const [member function]
|
|
cls.add_method('NeedsArp',
|
|
'bool',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
|
|
cls.add_method('SetReceiveCallback',
|
|
'void',
|
|
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty >', 'cb')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
|
|
cls.add_method('SetPromiscReceiveCallback',
|
|
'void',
|
|
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType >', 'cb')],
|
|
is_virtual=True)
|
|
## bridge-net-device.h: bool ns3::BridgeNetDevice::SupportsSendFrom() const [member function]
|
|
cls.add_method('SupportsSendFrom',
|
|
'bool',
|
|
[],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: ns3::Address ns3::BridgeNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
|
|
cls.add_method('GetMulticast',
|
|
'ns3::Address',
|
|
[param('ns3::Ipv6Address', 'addr')],
|
|
is_const=True, is_virtual=True)
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::DoDispose() [member function]
|
|
cls.add_method('DoDispose',
|
|
'void',
|
|
[],
|
|
visibility='protected', is_virtual=True)
|
|
## 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]
|
|
cls.add_method('ReceiveFromDevice',
|
|
'void',
|
|
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'destination'), param('ns3::NetDevice::PacketType', 'packetType')],
|
|
visibility='protected')
|
|
## 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]
|
|
cls.add_method('ForwardUnicast',
|
|
'void',
|
|
[param('ns3::Ptr< ns3::NetDevice >', 'incomingPort'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'src'), param('ns3::Mac48Address', 'dst')],
|
|
visibility='protected')
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::ForwardBroadcast(ns3::Ptr<ns3::NetDevice> incomingPort, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Mac48Address src, ns3::Mac48Address dst) [member function]
|
|
cls.add_method('ForwardBroadcast',
|
|
'void',
|
|
[param('ns3::Ptr< ns3::NetDevice >', 'incomingPort'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'src'), param('ns3::Mac48Address', 'dst')],
|
|
visibility='protected')
|
|
## bridge-net-device.h: void ns3::BridgeNetDevice::Learn(ns3::Mac48Address source, ns3::Ptr<ns3::NetDevice> port) [member function]
|
|
cls.add_method('Learn',
|
|
'void',
|
|
[param('ns3::Mac48Address', 'source'), param('ns3::Ptr< ns3::NetDevice >', 'port')],
|
|
visibility='protected')
|
|
## bridge-net-device.h: ns3::Ptr<ns3::NetDevice> ns3::BridgeNetDevice::GetLearnedState(ns3::Mac48Address source) [member function]
|
|
cls.add_method('GetLearnedState',
|
|
'ns3::Ptr< ns3::NetDevice >',
|
|
[param('ns3::Mac48Address', 'source')],
|
|
visibility='protected')
|
|
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_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_internal(module, root_module):
|
|
return
|
|
|
|
def register_functions_ns3_olsr(module, root_module):
|
|
return
|
|
|