bindings/python/ns3_module_tap_bridge.py
author Raj Bhattacharjea <raj.b@gatech.edu>
Tue, 24 Feb 2009 00:12:22 -0500
changeset 4237 f086b7b943b8
parent 4204 1b2a20c85856
child 4241 c35796bc0b4b
permissions -rw-r--r--
Rescan the bindings
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'])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     8
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     9
    ## Register a nested module for the namespace Config
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
    nested_module = module.add_cpp_namespace('Config')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    12
    register_types_ns3_Config(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    13
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    14
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    15
    ## Register a nested module for the namespace TimeStepPrecision
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
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    18
    register_types_ns3_TimeStepPrecision(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    19
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    20
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    21
    ## Register a nested module for the namespace internal
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
    nested_module = module.add_cpp_namespace('internal')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    24
    register_types_ns3_internal(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    25
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    26
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    27
    ## Register a nested module for the namespace olsr
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
    nested_module = module.add_cpp_namespace('olsr')
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    30
    register_types_ns3_olsr(nested_module)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    31
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    32
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    33
def register_types_ns3_Config(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    34
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    35
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    36
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    37
def register_types_ns3_TimeStepPrecision(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    38
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    39
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    40
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    41
def register_types_ns3_internal(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    42
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    43
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    44
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    45
def register_types_ns3_olsr(module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    46
    root_module = module.get_root()
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    47
    
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    48
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    49
def register_methods(root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    50
    register_Ns3TapBridge_methods(root_module, root_module['ns3::TapBridge'])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    51
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    52
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    53
def register_Ns3TapBridge_methods(root_module, cls):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    54
    ## 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
    55
    cls.add_method('GetTypeId', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    56
                   'ns3::TypeId', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    57
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    58
                   is_static=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    59
    ## tap-bridge.h: ns3::TapBridge::TapBridge() [constructor]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    60
    cls.add_constructor([])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    61
    ## 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
    62
    cls.add_method('GetBridgedNetDevice', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    63
                   'ns3::Ptr< ns3::NetDevice >', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    64
                   [])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    65
    ## 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
    66
    cls.add_method('SetBridgedNetDevice', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    67
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    68
                   [param('ns3::Ptr< ns3::NetDevice >', 'bridgedDevice')])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    69
    ## 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
    70
    cls.add_method('Start', 
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::Time', 'tStart')])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    73
    ## 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
    74
    cls.add_method('Stop', 
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', 'tStop')])
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    77
    ## tap-bridge.h: void ns3::TapBridge::SetName(std::string const name) [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    78
    cls.add_method('SetName', 
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('std::string const', 'name')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    81
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    82
    ## tap-bridge.h: std::string ns3::TapBridge::GetName() const [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    83
    cls.add_method('GetName', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    84
                   'std::string', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    85
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    86
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    87
    ## 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
    88
    cls.add_method('SetIfIndex', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    89
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    90
                   [param('uint32_t const', 'index')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    91
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    92
    ## 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
    93
    cls.add_method('GetIfIndex', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    94
                   'uint32_t', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    95
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    96
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    97
    ## 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
    98
    cls.add_method('GetChannel', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    99
                   'ns3::Ptr< ns3::Channel >', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   100
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   101
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   102
    ## 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
   103
    cls.add_method('GetAddress', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   104
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   105
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   106
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   107
    ## 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
   108
    cls.add_method('SetMtu', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   109
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   110
                   [param('uint16_t const', 'mtu')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   111
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   112
    ## 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
   113
    cls.add_method('GetMtu', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   114
                   'uint16_t', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   115
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   116
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   117
    ## 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
   118
    cls.add_method('IsLinkUp', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   119
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   120
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   121
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   122
    ## 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
   123
    cls.add_method('SetLinkChangeCallback', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   124
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   125
                   [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
   126
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   127
    ## 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
   128
    cls.add_method('IsBroadcast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   129
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   130
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   131
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   132
    ## 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
   133
    cls.add_method('GetBroadcast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   134
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   135
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   136
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   137
    ## 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
   138
    cls.add_method('IsMulticast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   139
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   140
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   141
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   142
    ## 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
   143
    cls.add_method('GetMulticast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   144
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   145
                   [param('ns3::Ipv4Address', 'multicastGroup')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   146
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   147
    ## 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
   148
    cls.add_method('IsPointToPoint', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   149
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   150
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   151
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   152
    ## 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
   153
    cls.add_method('IsBridge', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   154
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   155
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   156
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   157
    ## 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
   158
    cls.add_method('Send', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   159
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   160
                   [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
   161
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   162
    ## 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
   163
    cls.add_method('SendFrom', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   164
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   165
                   [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
   166
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   167
    ## 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
   168
    cls.add_method('GetNode', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   169
                   'ns3::Ptr< ns3::Node >', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   170
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   171
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   172
    ## 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
   173
    cls.add_method('SetNode', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   174
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   175
                   [param('ns3::Ptr< ns3::Node >', 'node')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   176
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   177
    ## 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
   178
    cls.add_method('NeedsArp', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   179
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   180
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   181
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   182
    ## 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
   183
    cls.add_method('SetReceiveCallback', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   184
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   185
                   [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
   186
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   187
    ## 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
   188
    cls.add_method('SetPromiscReceiveCallback', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   189
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   190
                   [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
   191
                   is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   192
    ## 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
   193
    cls.add_method('SupportsSendFrom', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   194
                   'bool', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   195
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   196
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   197
    ## 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
   198
    cls.add_method('GetMulticast', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   199
                   'ns3::Address', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   200
                   [param('ns3::Ipv6Address', 'addr')], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   201
                   is_const=True, is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   202
    ## tap-bridge.h: void ns3::TapBridge::DoDispose() [member function]
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   203
    cls.add_method('DoDispose', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   204
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   205
                   [], 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   206
                   visibility='protected', is_virtual=True)
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   207
    ## 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
   208
    cls.add_method('ReceiveFromBridgedDevice', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   209
                   'void', 
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   210
                   [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
   211
                   visibility='protected')
4237
f086b7b943b8 Rescan the bindings
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 4204
diff changeset
   212
    cls.add_copy_constructor()
4204
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   213
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   214
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   215
def register_functions(root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   216
    module = root_module
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   217
    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
   218
    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
   219
    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
   220
    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
   221
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   222
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   223
def register_functions_ns3_Config(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   224
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   225
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   226
def register_functions_ns3_TimeStepPrecision(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   227
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   228
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   229
def register_functions_ns3_internal(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   230
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   231
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   232
def register_functions_ns3_olsr(module, root_module):
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   233
    return
1b2a20c85856 Rescan python bindings.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   234