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