bindings/python/ns3_module_tap_bridge.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 16 Apr 2009 11:10:27 +0200
changeset 4323 689bece0b361
parent 4298 cc2db3e6bcae
child 4407 ef566eeff84f
permissions -rw-r--r--
rescan python
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4204
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     2
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     3
def register_types(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     4
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     5
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     6
    ## tap-bridge.h: ns3::TapBridge [class]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     7
    module.add_class('TapBridge', parent=root_module['ns3::NetDevice'])
4298
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
     8
    ## tap-bridge.h: ns3::TapBridge::Mode [enumeration]
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
     9
    module.add_enum('Mode', ['ILLEGAL', 'CONFIGURE_LOCAL', 'USE_LOCAL', 'USE_BRIDGE'], outer_class=root_module['ns3::TapBridge'])
4204
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    10
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    11
    ## Register a nested module for the namespace Config
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    12
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    13
    nested_module = module.add_cpp_namespace('Config')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    14
    register_types_ns3_Config(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    15
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    16
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    17
    ## Register a nested module for the namespace TimeStepPrecision
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    18
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    19
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    20
    register_types_ns3_TimeStepPrecision(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    21
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    22
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    23
    ## Register a nested module for the namespace internal
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    24
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    25
    nested_module = module.add_cpp_namespace('internal')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    26
    register_types_ns3_internal(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    27
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    28
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    29
    ## Register a nested module for the namespace olsr
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    30
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    31
    nested_module = module.add_cpp_namespace('olsr')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    32
    register_types_ns3_olsr(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    33
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    34
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    35
def register_types_ns3_Config(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    36
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    37
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    38
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    39
def register_types_ns3_TimeStepPrecision(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    40
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    41
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    42
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    43
def register_types_ns3_internal(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    44
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    45
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    46
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    47
def register_types_ns3_olsr(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    48
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    49
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    50
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    51
def register_methods(root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    52
    register_Ns3TapBridge_methods(root_module, root_module['ns3::TapBridge'])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    53
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    54
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    55
def register_Ns3TapBridge_methods(root_module, cls):
4241
c35796bc0b4b rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4237
diff changeset
    56
    ## tap-bridge.h: ns3::TapBridge::TapBridge(ns3::TapBridge const & arg0) [copy constructor]
c35796bc0b4b rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4237
diff changeset
    57
    cls.add_constructor([param('ns3::TapBridge const &', 'arg0')])
4204
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    58
    ## tap-bridge.h: static ns3::TypeId ns3::TapBridge::GetTypeId() [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    59
    cls.add_method('GetTypeId', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    60
                   'ns3::TypeId', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    61
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    62
                   is_static=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    63
    ## tap-bridge.h: ns3::TapBridge::TapBridge() [constructor]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    64
    cls.add_constructor([])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    65
    ## tap-bridge.h: ns3::Ptr<ns3::NetDevice> ns3::TapBridge::GetBridgedNetDevice() [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    66
    cls.add_method('GetBridgedNetDevice', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    67
                   'ns3::Ptr< ns3::NetDevice >', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    68
                   [])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    69
    ## tap-bridge.h: void ns3::TapBridge::SetBridgedNetDevice(ns3::Ptr<ns3::NetDevice> bridgedDevice) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    70
    cls.add_method('SetBridgedNetDevice', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    71
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    72
                   [param('ns3::Ptr< ns3::NetDevice >', 'bridgedDevice')])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    73
    ## tap-bridge.h: void ns3::TapBridge::Start(ns3::Time tStart) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    74
    cls.add_method('Start', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    75
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    76
                   [param('ns3::Time', 'tStart')])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    77
    ## tap-bridge.h: void ns3::TapBridge::Stop(ns3::Time tStop) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    78
    cls.add_method('Stop', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    79
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    80
                   [param('ns3::Time', 'tStop')])
4298
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    81
    ## tap-bridge.h: void ns3::TapBridge::SetMode(ns3::TapBridge::Mode mode) [member function]
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    82
    cls.add_method('SetMode', 
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    83
                   'void', 
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    84
                   [param('ns3::TapBridge::Mode', 'mode')])
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    85
    ## tap-bridge.h: ns3::TapBridge::Mode ns3::TapBridge::GetMode() [member function]
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    86
    cls.add_method('GetMode', 
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    87
                   'ns3::TapBridge::Mode', 
cc2db3e6bcae Make Names API return void not bool, rescan for Python Bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 4241
diff changeset
    88
                   [])
4204
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    89
    ## tap-bridge.h: void ns3::TapBridge::SetIfIndex(uint32_t const index) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    90
    cls.add_method('SetIfIndex', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    91
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    92
                   [param('uint32_t const', 'index')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    93
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    94
    ## tap-bridge.h: uint32_t ns3::TapBridge::GetIfIndex() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    95
    cls.add_method('GetIfIndex', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    96
                   'uint32_t', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    97
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    98
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    99
    ## tap-bridge.h: ns3::Ptr<ns3::Channel> ns3::TapBridge::GetChannel() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   100
    cls.add_method('GetChannel', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   101
                   'ns3::Ptr< ns3::Channel >', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   102
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   103
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   104
    ## tap-bridge.h: ns3::Address ns3::TapBridge::GetAddress() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   105
    cls.add_method('GetAddress', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   106
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   107
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   108
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   109
    ## tap-bridge.h: bool ns3::TapBridge::SetMtu(uint16_t const mtu) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   110
    cls.add_method('SetMtu', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   111
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   112
                   [param('uint16_t const', 'mtu')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   113
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   114
    ## tap-bridge.h: uint16_t ns3::TapBridge::GetMtu() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   115
    cls.add_method('GetMtu', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   116
                   'uint16_t', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   117
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   118
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   119
    ## tap-bridge.h: bool ns3::TapBridge::IsLinkUp() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   120
    cls.add_method('IsLinkUp', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   121
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   122
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   123
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   124
    ## tap-bridge.h: void ns3::TapBridge::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]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   125
    cls.add_method('SetLinkChangeCallback', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   126
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   127
                   [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   128
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   129
    ## tap-bridge.h: bool ns3::TapBridge::IsBroadcast() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   130
    cls.add_method('IsBroadcast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   131
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   132
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   133
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   134
    ## tap-bridge.h: ns3::Address ns3::TapBridge::GetBroadcast() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   135
    cls.add_method('GetBroadcast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   136
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   137
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   138
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   139
    ## tap-bridge.h: bool ns3::TapBridge::IsMulticast() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   140
    cls.add_method('IsMulticast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   141
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   142
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   143
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   144
    ## tap-bridge.h: ns3::Address ns3::TapBridge::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   145
    cls.add_method('GetMulticast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   146
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   147
                   [param('ns3::Ipv4Address', 'multicastGroup')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   148
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   149
    ## tap-bridge.h: bool ns3::TapBridge::IsPointToPoint() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   150
    cls.add_method('IsPointToPoint', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   151
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   152
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   153
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   154
    ## tap-bridge.h: bool ns3::TapBridge::IsBridge() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   155
    cls.add_method('IsBridge', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   156
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   157
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   158
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   159
    ## tap-bridge.h: bool ns3::TapBridge::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   160
    cls.add_method('Send', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   161
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   162
                   [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   163
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   164
    ## tap-bridge.h: bool ns3::TapBridge::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   165
    cls.add_method('SendFrom', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   166
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   167
                   [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   168
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   169
    ## tap-bridge.h: ns3::Ptr<ns3::Node> ns3::TapBridge::GetNode() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   170
    cls.add_method('GetNode', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   171
                   'ns3::Ptr< ns3::Node >', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   172
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   173
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   174
    ## tap-bridge.h: void ns3::TapBridge::SetNode(ns3::Ptr<ns3::Node> node) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   175
    cls.add_method('SetNode', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   176
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   177
                   [param('ns3::Ptr< ns3::Node >', 'node')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   178
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   179
    ## tap-bridge.h: bool ns3::TapBridge::NeedsArp() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   180
    cls.add_method('NeedsArp', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   181
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   182
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   183
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   184
    ## tap-bridge.h: void ns3::TapBridge::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]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   185
    cls.add_method('SetReceiveCallback', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   186
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   187
                   [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')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   188
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   189
    ## tap-bridge.h: void ns3::TapBridge::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]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   190
    cls.add_method('SetPromiscReceiveCallback', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   191
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   192
                   [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')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   193
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   194
    ## tap-bridge.h: bool ns3::TapBridge::SupportsSendFrom() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   195
    cls.add_method('SupportsSendFrom', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   196
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   197
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   198
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   199
    ## tap-bridge.h: ns3::Address ns3::TapBridge::GetMulticast(ns3::Ipv6Address addr) const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   200
    cls.add_method('GetMulticast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   201
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   202
                   [param('ns3::Ipv6Address', 'addr')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   203
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   204
    ## tap-bridge.h: void ns3::TapBridge::DoDispose() [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   205
    cls.add_method('DoDispose', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   206
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   207
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   208
                   visibility='protected', is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   209
    ## tap-bridge.h: void ns3::TapBridge::ReceiveFromBridgedDevice(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Address const & src, ns3::Address const & dst, ns3::NetDevice::PacketType packetType) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   210
    cls.add_method('ReceiveFromBridgedDevice', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   211
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   212
                   [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'src'), param('ns3::Address const &', 'dst'), param('ns3::NetDevice::PacketType', 'packetType')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   213
                   visibility='protected')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   214
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   215
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   216
def register_functions(root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   217
    module = root_module
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   218
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   219
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   220
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   221
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   222
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   223
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   224
def register_functions_ns3_Config(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   225
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   226
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   227
def register_functions_ns3_TimeStepPrecision(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   228
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   229
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   230
def register_functions_ns3_internal(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   231
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   232
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   233
def register_functions_ns3_olsr(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   234
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   235