bindings/python/ns3_module_virtual_net_device.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 4559 51fb48b38c2f
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
     1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
     2 
     3 def register_types(module):
     4     root_module = module.get_root()
     5     
     6     ## virtual-net-device.h: ns3::VirtualNetDevice [class]
     7     module.add_class('VirtualNetDevice', parent=root_module['ns3::NetDevice'])
     8     
     9     ## Register a nested module for the namespace Config
    10     
    11     nested_module = module.add_cpp_namespace('Config')
    12     register_types_ns3_Config(nested_module)
    13     
    14     
    15     ## Register a nested module for the namespace TimeStepPrecision
    16     
    17     nested_module = module.add_cpp_namespace('TimeStepPrecision')
    18     register_types_ns3_TimeStepPrecision(nested_module)
    19     
    20     
    21     ## Register a nested module for the namespace addressUtils
    22     
    23     nested_module = module.add_cpp_namespace('addressUtils')
    24     register_types_ns3_addressUtils(nested_module)
    25     
    26     
    27     ## Register a nested module for the namespace internal
    28     
    29     nested_module = module.add_cpp_namespace('internal')
    30     register_types_ns3_internal(nested_module)
    31     
    32     
    33     ## Register a nested module for the namespace olsr
    34     
    35     nested_module = module.add_cpp_namespace('olsr')
    36     register_types_ns3_olsr(nested_module)
    37     
    38 
    39 def register_types_ns3_Config(module):
    40     root_module = module.get_root()
    41     
    42 
    43 def register_types_ns3_TimeStepPrecision(module):
    44     root_module = module.get_root()
    45     
    46 
    47 def register_types_ns3_addressUtils(module):
    48     root_module = module.get_root()
    49     
    50 
    51 def register_types_ns3_internal(module):
    52     root_module = module.get_root()
    53     
    54 
    55 def register_types_ns3_olsr(module):
    56     root_module = module.get_root()
    57     
    58 
    59 def register_methods(root_module):
    60     register_Ns3VirtualNetDevice_methods(root_module, root_module['ns3::VirtualNetDevice'])
    61     return
    62 
    63 def register_Ns3VirtualNetDevice_methods(root_module, cls):
    64     ## virtual-net-device.h: ns3::VirtualNetDevice::VirtualNetDevice(ns3::VirtualNetDevice const & arg0) [copy constructor]
    65     cls.add_constructor([param('ns3::VirtualNetDevice const &', 'arg0')])
    66     ## virtual-net-device.h: static ns3::TypeId ns3::VirtualNetDevice::GetTypeId() [member function]
    67     cls.add_method('GetTypeId', 
    68                    'ns3::TypeId', 
    69                    [], 
    70                    is_static=True)
    71     ## virtual-net-device.h: ns3::VirtualNetDevice::VirtualNetDevice() [constructor]
    72     cls.add_constructor([])
    73     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetSendCallback(ns3::Callback<bool, ns3::Ptr<ns3::Packet>, ns3::Address const&, ns3::Address const&, unsigned short, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> transmitCb) [member function]
    74     cls.add_method('SetSendCallback', 
    75                    'void', 
    76                    [param('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::Address const &, ns3::Address const &, unsigned short, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'transmitCb')])
    77     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetNeedsArp(bool needsArp) [member function]
    78     cls.add_method('SetNeedsArp', 
    79                    'void', 
    80                    [param('bool', 'needsArp')])
    81     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetIsPointToPoint(bool isPointToPoint) [member function]
    82     cls.add_method('SetIsPointToPoint', 
    83                    'void', 
    84                    [param('bool', 'isPointToPoint')])
    85     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetSupportsSendFrom(bool supportsSendFrom) [member function]
    86     cls.add_method('SetSupportsSendFrom', 
    87                    'void', 
    88                    [param('bool', 'supportsSendFrom')])
    89     ## virtual-net-device.h: bool ns3::VirtualNetDevice::SetMtu(uint16_t const mtu) [member function]
    90     cls.add_method('SetMtu', 
    91                    'bool', 
    92                    [param('uint16_t const', 'mtu')], 
    93                    is_virtual=True)
    94     ## virtual-net-device.h: bool ns3::VirtualNetDevice::Receive(ns3::Ptr<ns3::Packet> packet, uint16_t protocol, ns3::Address const & source, ns3::Address const & destination, ns3::NetDevice::PacketType packetType) [member function]
    95     cls.add_method('Receive', 
    96                    'bool', 
    97                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'destination'), param('ns3::NetDevice::PacketType', 'packetType')])
    98     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetIfIndex(uint32_t const index) [member function]
    99     cls.add_method('SetIfIndex', 
   100                    'void', 
   101                    [param('uint32_t const', 'index')], 
   102                    is_virtual=True)
   103     ## virtual-net-device.h: uint32_t ns3::VirtualNetDevice::GetIfIndex() const [member function]
   104     cls.add_method('GetIfIndex', 
   105                    'uint32_t', 
   106                    [], 
   107                    is_const=True, is_virtual=True)
   108     ## virtual-net-device.h: ns3::Ptr<ns3::Channel> ns3::VirtualNetDevice::GetChannel() const [member function]
   109     cls.add_method('GetChannel', 
   110                    'ns3::Ptr< ns3::Channel >', 
   111                    [], 
   112                    is_const=True, is_virtual=True)
   113     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetAddress(ns3::Address address) [member function]
   114     cls.add_method('SetAddress', 
   115                    'void', 
   116                    [param('ns3::Address', 'address')], 
   117                    is_virtual=True)
   118     ## virtual-net-device.h: ns3::Address ns3::VirtualNetDevice::GetAddress() const [member function]
   119     cls.add_method('GetAddress', 
   120                    'ns3::Address', 
   121                    [], 
   122                    is_const=True, is_virtual=True)
   123     ## virtual-net-device.h: uint16_t ns3::VirtualNetDevice::GetMtu() const [member function]
   124     cls.add_method('GetMtu', 
   125                    'uint16_t', 
   126                    [], 
   127                    is_const=True, is_virtual=True)
   128     ## virtual-net-device.h: bool ns3::VirtualNetDevice::IsLinkUp() const [member function]
   129     cls.add_method('IsLinkUp', 
   130                    'bool', 
   131                    [], 
   132                    is_const=True, is_virtual=True)
   133     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
   134     cls.add_method('SetLinkChangeCallback', 
   135                    'void', 
   136                    [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], 
   137                    is_virtual=True)
   138     ## virtual-net-device.h: bool ns3::VirtualNetDevice::IsBroadcast() const [member function]
   139     cls.add_method('IsBroadcast', 
   140                    'bool', 
   141                    [], 
   142                    is_const=True, is_virtual=True)
   143     ## virtual-net-device.h: ns3::Address ns3::VirtualNetDevice::GetBroadcast() const [member function]
   144     cls.add_method('GetBroadcast', 
   145                    'ns3::Address', 
   146                    [], 
   147                    is_const=True, is_virtual=True)
   148     ## virtual-net-device.h: bool ns3::VirtualNetDevice::IsMulticast() const [member function]
   149     cls.add_method('IsMulticast', 
   150                    'bool', 
   151                    [], 
   152                    is_const=True, is_virtual=True)
   153     ## virtual-net-device.h: ns3::Address ns3::VirtualNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
   154     cls.add_method('GetMulticast', 
   155                    'ns3::Address', 
   156                    [param('ns3::Ipv4Address', 'multicastGroup')], 
   157                    is_const=True, is_virtual=True)
   158     ## virtual-net-device.h: ns3::Address ns3::VirtualNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
   159     cls.add_method('GetMulticast', 
   160                    'ns3::Address', 
   161                    [param('ns3::Ipv6Address', 'addr')], 
   162                    is_const=True, is_virtual=True)
   163     ## virtual-net-device.h: bool ns3::VirtualNetDevice::IsPointToPoint() const [member function]
   164     cls.add_method('IsPointToPoint', 
   165                    'bool', 
   166                    [], 
   167                    is_const=True, is_virtual=True)
   168     ## virtual-net-device.h: bool ns3::VirtualNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   169     cls.add_method('Send', 
   170                    'bool', 
   171                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   172                    is_virtual=True)
   173     ## virtual-net-device.h: bool ns3::VirtualNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   174     cls.add_method('SendFrom', 
   175                    'bool', 
   176                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   177                    is_virtual=True)
   178     ## virtual-net-device.h: ns3::Ptr<ns3::Node> ns3::VirtualNetDevice::GetNode() const [member function]
   179     cls.add_method('GetNode', 
   180                    'ns3::Ptr< ns3::Node >', 
   181                    [], 
   182                    is_const=True, is_virtual=True)
   183     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   184     cls.add_method('SetNode', 
   185                    'void', 
   186                    [param('ns3::Ptr< ns3::Node >', 'node')], 
   187                    is_virtual=True)
   188     ## virtual-net-device.h: bool ns3::VirtualNetDevice::NeedsArp() const [member function]
   189     cls.add_method('NeedsArp', 
   190                    'bool', 
   191                    [], 
   192                    is_const=True, is_virtual=True)
   193     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
   194     cls.add_method('SetReceiveCallback', 
   195                    'void', 
   196                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], 
   197                    is_virtual=True)
   198     ## virtual-net-device.h: void ns3::VirtualNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
   199     cls.add_method('SetPromiscReceiveCallback', 
   200                    'void', 
   201                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], 
   202                    is_virtual=True)
   203     ## virtual-net-device.h: bool ns3::VirtualNetDevice::SupportsSendFrom() const [member function]
   204     cls.add_method('SupportsSendFrom', 
   205                    'bool', 
   206                    [], 
   207                    is_const=True, is_virtual=True)
   208     ## virtual-net-device.h: bool ns3::VirtualNetDevice::IsBridge() const [member function]
   209     cls.add_method('IsBridge', 
   210                    'bool', 
   211                    [], 
   212                    is_const=True, is_virtual=True)
   213     ## virtual-net-device.h: void ns3::VirtualNetDevice::DoDispose() [member function]
   214     cls.add_method('DoDispose', 
   215                    'void', 
   216                    [], 
   217                    visibility='protected', is_virtual=True)
   218     return
   219 
   220 def register_functions(root_module):
   221     module = root_module
   222     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
   223     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
   224     register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
   225     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   226     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
   227     return
   228 
   229 def register_functions_ns3_Config(module, root_module):
   230     return
   231 
   232 def register_functions_ns3_TimeStepPrecision(module, root_module):
   233     return
   234 
   235 def register_functions_ns3_addressUtils(module, root_module):
   236     return
   237 
   238 def register_functions_ns3_internal(module, root_module):
   239     return
   240 
   241 def register_functions_ns3_olsr(module, root_module):
   242     return
   243