bindings/python/ns3_module_internet_stack.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 4574 8c0ff401237e
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
tomh@4474
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
gjc@3408
     2
gjc@3408
     3
def register_types(module):
gjc@3408
     4
    root_module = module.get_root()
gjc@3408
     5
    
craigdo@3820
     6
    ## icmpv4.h: ns3::Icmpv4DestinationUnreachable [class]
craigdo@3820
     7
    module.add_class('Icmpv4DestinationUnreachable', parent=root_module['ns3::Header'])
craigdo@3820
     8
    ## icmpv4.h: ns3::Icmpv4DestinationUnreachable [enumeration]
craigdo@3820
     9
    module.add_enum('', ['NET_UNREACHABLE', 'HOST_UNREACHABLE', 'PROTOCOL_UNREACHABLE', 'PORT_UNREACHABLE', 'FRAG_NEEDED', 'SOURCE_ROUTE_FAILED'], outer_class=root_module['ns3::Icmpv4DestinationUnreachable'])
craigdo@3820
    10
    ## icmpv4.h: ns3::Icmpv4Echo [class]
craigdo@3820
    11
    module.add_class('Icmpv4Echo', parent=root_module['ns3::Header'])
craigdo@3820
    12
    ## icmpv4.h: ns3::Icmpv4Header [class]
craigdo@3820
    13
    module.add_class('Icmpv4Header', parent=root_module['ns3::Header'])
craigdo@3820
    14
    ## icmpv4.h: ns3::Icmpv4Header [enumeration]
craigdo@3820
    15
    module.add_enum('', ['ECHO_REPLY', 'DEST_UNREACH', 'ECHO', 'TIME_EXCEEDED'], outer_class=root_module['ns3::Icmpv4Header'])
craigdo@3820
    16
    ## icmpv4.h: ns3::Icmpv4TimeExceeded [class]
craigdo@3820
    17
    module.add_class('Icmpv4TimeExceeded', parent=root_module['ns3::Header'])
craigdo@3820
    18
    ## icmpv4.h: ns3::Icmpv4TimeExceeded [enumeration]
craigdo@3820
    19
    module.add_enum('', ['TIME_TO_LIVE', 'FRAGMENT_REASSEMBLY'], outer_class=root_module['ns3::Icmpv4TimeExceeded'])
gjc@3408
    20
    ## tcp-header.h: ns3::TcpHeader [class]
gjc@3457
    21
    module.add_class('TcpHeader', parent=root_module['ns3::Header'])
gjc@3408
    22
    ## tcp-header.h: ns3::TcpHeader::Flags_t [enumeration]
gjc@3408
    23
    module.add_enum('Flags_t', ['NONE', 'FIN', 'SYN', 'RST', 'PSH', 'ACK', 'URG'], outer_class=root_module['ns3::TcpHeader'])
gjc@3731
    24
    ## udp-header.h: ns3::UdpHeader [class]
gjc@3731
    25
    module.add_class('UdpHeader', parent=root_module['ns3::Header'])
gjc@3408
    26
    
gjc@3855
    27
    ## Register a nested module for the namespace Config
gjc@3408
    28
    
gjc@3855
    29
    nested_module = module.add_cpp_namespace('Config')
gjc@3855
    30
    register_types_ns3_Config(nested_module)
gjc@3408
    31
    
gjc@3408
    32
    
gjc@3408
    33
    ## Register a nested module for the namespace TimeStepPrecision
gjc@3408
    34
    
gjc@3408
    35
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
gjc@3408
    36
    register_types_ns3_TimeStepPrecision(nested_module)
gjc@3408
    37
    
gjc@3408
    38
    
tomh@4474
    39
    ## Register a nested module for the namespace addressUtils
tomh@4474
    40
    
tomh@4474
    41
    nested_module = module.add_cpp_namespace('addressUtils')
tomh@4474
    42
    register_types_ns3_addressUtils(nested_module)
tomh@4474
    43
    
tomh@4474
    44
    
gjc@3855
    45
    ## Register a nested module for the namespace internal
gjc@3408
    46
    
gjc@3855
    47
    nested_module = module.add_cpp_namespace('internal')
gjc@3855
    48
    register_types_ns3_internal(nested_module)
gjc@3408
    49
    
gjc@3408
    50
    
gjc@3408
    51
    ## Register a nested module for the namespace olsr
gjc@3408
    52
    
gjc@3408
    53
    nested_module = module.add_cpp_namespace('olsr')
gjc@3408
    54
    register_types_ns3_olsr(nested_module)
gjc@3408
    55
    
gjc@3408
    56
gjc@3855
    57
def register_types_ns3_Config(module):
gjc@3408
    58
    root_module = module.get_root()
gjc@3408
    59
    
gjc@3408
    60
gjc@3408
    61
def register_types_ns3_TimeStepPrecision(module):
gjc@3408
    62
    root_module = module.get_root()
gjc@3408
    63
    
gjc@3408
    64
tomh@4474
    65
def register_types_ns3_addressUtils(module):
tomh@4474
    66
    root_module = module.get_root()
tomh@4474
    67
    
tomh@4474
    68
gjc@3855
    69
def register_types_ns3_internal(module):
gjc@3408
    70
    root_module = module.get_root()
gjc@3408
    71
    
gjc@3408
    72
gjc@3408
    73
def register_types_ns3_olsr(module):
gjc@3408
    74
    root_module = module.get_root()
gjc@3408
    75
    
gjc@3408
    76
gjc@3408
    77
def register_methods(root_module):
craigdo@3820
    78
    register_Ns3Icmpv4DestinationUnreachable_methods(root_module, root_module['ns3::Icmpv4DestinationUnreachable'])
craigdo@3820
    79
    register_Ns3Icmpv4Echo_methods(root_module, root_module['ns3::Icmpv4Echo'])
craigdo@3820
    80
    register_Ns3Icmpv4Header_methods(root_module, root_module['ns3::Icmpv4Header'])
craigdo@3820
    81
    register_Ns3Icmpv4TimeExceeded_methods(root_module, root_module['ns3::Icmpv4TimeExceeded'])
gjc@3731
    82
    register_Ns3TcpHeader_methods(root_module, root_module['ns3::TcpHeader'])
gjc@3731
    83
    register_Ns3UdpHeader_methods(root_module, root_module['ns3::UdpHeader'])
gjc@3408
    84
    return
gjc@3408
    85
craigdo@3820
    86
def register_Ns3Icmpv4DestinationUnreachable_methods(root_module, cls):
mathieu@4241
    87
    ## icmpv4.h: ns3::Icmpv4DestinationUnreachable::Icmpv4DestinationUnreachable(ns3::Icmpv4DestinationUnreachable const & arg0) [copy constructor]
mathieu@4241
    88
    cls.add_constructor([param('ns3::Icmpv4DestinationUnreachable const &', 'arg0')])
craigdo@3820
    89
    ## icmpv4.h: static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function]
craigdo@3820
    90
    cls.add_method('GetTypeId', 
craigdo@3820
    91
                   'ns3::TypeId', 
craigdo@3820
    92
                   [], 
craigdo@3820
    93
                   is_static=True)
craigdo@3820
    94
    ## icmpv4.h: ns3::Icmpv4DestinationUnreachable::Icmpv4DestinationUnreachable() [constructor]
craigdo@3820
    95
    cls.add_constructor([])
craigdo@3820
    96
    ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::SetNextHopMtu(uint16_t mtu) [member function]
craigdo@3820
    97
    cls.add_method('SetNextHopMtu', 
craigdo@3820
    98
                   'void', 
craigdo@3820
    99
                   [param('uint16_t', 'mtu')])
craigdo@3820
   100
    ## icmpv4.h: uint16_t ns3::Icmpv4DestinationUnreachable::GetNextHopMtu() const [member function]
craigdo@3820
   101
    cls.add_method('GetNextHopMtu', 
craigdo@3820
   102
                   'uint16_t', 
craigdo@3820
   103
                   [], 
craigdo@3820
   104
                   is_const=True)
mathieu@4407
   105
    ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::SetData(ns3::Ptr<ns3::Packet const> data) [member function]
craigdo@3820
   106
    cls.add_method('SetData', 
craigdo@3820
   107
                   'void', 
craigdo@3820
   108
                   [param('ns3::Ptr< ns3::Packet const >', 'data')])
craigdo@3820
   109
    ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::SetHeader(ns3::Ipv4Header header) [member function]
craigdo@3820
   110
    cls.add_method('SetHeader', 
craigdo@3820
   111
                   'void', 
craigdo@3820
   112
                   [param('ns3::Ipv4Header', 'header')])
craigdo@3820
   113
    ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::GetData(uint8_t * payload) const [member function]
craigdo@3820
   114
    cls.add_method('GetData', 
craigdo@3820
   115
                   'void', 
craigdo@3820
   116
                   [param('uint8_t *', 'payload')], 
craigdo@3820
   117
                   is_const=True)
craigdo@3820
   118
    ## icmpv4.h: ns3::Ipv4Header ns3::Icmpv4DestinationUnreachable::GetHeader() const [member function]
craigdo@3820
   119
    cls.add_method('GetHeader', 
craigdo@3820
   120
                   'ns3::Ipv4Header', 
craigdo@3820
   121
                   [], 
craigdo@3820
   122
                   is_const=True)
craigdo@3820
   123
    ## icmpv4.h: ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetInstanceTypeId() const [member function]
craigdo@3820
   124
    cls.add_method('GetInstanceTypeId', 
craigdo@3820
   125
                   'ns3::TypeId', 
craigdo@3820
   126
                   [], 
craigdo@3820
   127
                   is_const=True, visibility='private', is_virtual=True)
craigdo@3820
   128
    ## icmpv4.h: uint32_t ns3::Icmpv4DestinationUnreachable::GetSerializedSize() const [member function]
craigdo@3820
   129
    cls.add_method('GetSerializedSize', 
craigdo@3820
   130
                   'uint32_t', 
craigdo@3820
   131
                   [], 
craigdo@3820
   132
                   is_const=True, visibility='private', is_virtual=True)
craigdo@3820
   133
    ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Serialize(ns3::Buffer::Iterator start) const [member function]
craigdo@3820
   134
    cls.add_method('Serialize', 
craigdo@3820
   135
                   'void', 
craigdo@3820
   136
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   137
                   is_const=True, visibility='private', is_virtual=True)
craigdo@3820
   138
    ## icmpv4.h: uint32_t ns3::Icmpv4DestinationUnreachable::Deserialize(ns3::Buffer::Iterator start) [member function]
craigdo@3820
   139
    cls.add_method('Deserialize', 
craigdo@3820
   140
                   'uint32_t', 
craigdo@3820
   141
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   142
                   visibility='private', is_virtual=True)
craigdo@3820
   143
    ## icmpv4.h: void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function]
craigdo@3820
   144
    cls.add_method('Print', 
craigdo@3820
   145
                   'void', 
craigdo@3820
   146
                   [param('std::ostream &', 'os')], 
craigdo@3820
   147
                   is_const=True, visibility='private', is_virtual=True)
craigdo@3820
   148
    return
craigdo@3820
   149
craigdo@3820
   150
def register_Ns3Icmpv4Echo_methods(root_module, cls):
mathieu@4241
   151
    ## icmpv4.h: ns3::Icmpv4Echo::Icmpv4Echo(ns3::Icmpv4Echo const & arg0) [copy constructor]
mathieu@4241
   152
    cls.add_constructor([param('ns3::Icmpv4Echo const &', 'arg0')])
craigdo@3820
   153
    ## icmpv4.h: void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function]
craigdo@3820
   154
    cls.add_method('SetIdentifier', 
craigdo@3820
   155
                   'void', 
craigdo@3820
   156
                   [param('uint16_t', 'id')])
craigdo@3820
   157
    ## icmpv4.h: void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function]
craigdo@3820
   158
    cls.add_method('SetSequenceNumber', 
craigdo@3820
   159
                   'void', 
craigdo@3820
   160
                   [param('uint16_t', 'seq')])
mathieu@4407
   161
    ## icmpv4.h: void ns3::Icmpv4Echo::SetData(ns3::Ptr<ns3::Packet const> data) [member function]
craigdo@3820
   162
    cls.add_method('SetData', 
craigdo@3820
   163
                   'void', 
craigdo@3820
   164
                   [param('ns3::Ptr< ns3::Packet const >', 'data')])
craigdo@3820
   165
    ## icmpv4.h: uint16_t ns3::Icmpv4Echo::GetIdentifier() const [member function]
craigdo@3820
   166
    cls.add_method('GetIdentifier', 
craigdo@3820
   167
                   'uint16_t', 
craigdo@3820
   168
                   [], 
craigdo@3820
   169
                   is_const=True)
craigdo@3820
   170
    ## icmpv4.h: uint16_t ns3::Icmpv4Echo::GetSequenceNumber() const [member function]
craigdo@3820
   171
    cls.add_method('GetSequenceNumber', 
craigdo@3820
   172
                   'uint16_t', 
craigdo@3820
   173
                   [], 
craigdo@3820
   174
                   is_const=True)
tomh@4589
   175
    ## icmpv4.h: uint32_t ns3::Icmpv4Echo::GetDataSize() const [member function]
tomh@4589
   176
    cls.add_method('GetDataSize', 
tomh@4589
   177
                   'uint32_t', 
tomh@4589
   178
                   [], 
tomh@4589
   179
                   is_const=True)
mathieu@4524
   180
    ## icmpv4.h: uint32_t ns3::Icmpv4Echo::GetData(uint8_t * payload) const [member function]
craigdo@3820
   181
    cls.add_method('GetData', 
mathieu@4524
   182
                   'uint32_t', 
mathieu@4524
   183
                   [param('uint8_t *', 'payload')], 
craigdo@3820
   184
                   is_const=True)
craigdo@3820
   185
    ## icmpv4.h: static ns3::TypeId ns3::Icmpv4Echo::GetTypeId() [member function]
craigdo@3820
   186
    cls.add_method('GetTypeId', 
craigdo@3820
   187
                   'ns3::TypeId', 
craigdo@3820
   188
                   [], 
craigdo@3820
   189
                   is_static=True)
craigdo@3820
   190
    ## icmpv4.h: ns3::Icmpv4Echo::Icmpv4Echo() [constructor]
craigdo@3820
   191
    cls.add_constructor([])
craigdo@3820
   192
    ## icmpv4.h: ns3::TypeId ns3::Icmpv4Echo::GetInstanceTypeId() const [member function]
craigdo@3820
   193
    cls.add_method('GetInstanceTypeId', 
craigdo@3820
   194
                   'ns3::TypeId', 
craigdo@3820
   195
                   [], 
craigdo@3820
   196
                   is_const=True, is_virtual=True)
craigdo@3820
   197
    ## icmpv4.h: uint32_t ns3::Icmpv4Echo::GetSerializedSize() const [member function]
craigdo@3820
   198
    cls.add_method('GetSerializedSize', 
craigdo@3820
   199
                   'uint32_t', 
craigdo@3820
   200
                   [], 
craigdo@3820
   201
                   is_const=True, is_virtual=True)
craigdo@3820
   202
    ## icmpv4.h: void ns3::Icmpv4Echo::Serialize(ns3::Buffer::Iterator start) const [member function]
craigdo@3820
   203
    cls.add_method('Serialize', 
craigdo@3820
   204
                   'void', 
craigdo@3820
   205
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   206
                   is_const=True, is_virtual=True)
craigdo@3820
   207
    ## icmpv4.h: uint32_t ns3::Icmpv4Echo::Deserialize(ns3::Buffer::Iterator start) [member function]
craigdo@3820
   208
    cls.add_method('Deserialize', 
craigdo@3820
   209
                   'uint32_t', 
craigdo@3820
   210
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   211
                   is_virtual=True)
craigdo@3820
   212
    ## icmpv4.h: void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function]
craigdo@3820
   213
    cls.add_method('Print', 
craigdo@3820
   214
                   'void', 
craigdo@3820
   215
                   [param('std::ostream &', 'os')], 
craigdo@3820
   216
                   is_const=True, is_virtual=True)
craigdo@3820
   217
    return
craigdo@3820
   218
craigdo@3820
   219
def register_Ns3Icmpv4Header_methods(root_module, cls):
mathieu@4241
   220
    ## icmpv4.h: ns3::Icmpv4Header::Icmpv4Header(ns3::Icmpv4Header const & arg0) [copy constructor]
mathieu@4241
   221
    cls.add_constructor([param('ns3::Icmpv4Header const &', 'arg0')])
craigdo@3820
   222
    ## icmpv4.h: void ns3::Icmpv4Header::EnableChecksum() [member function]
craigdo@3820
   223
    cls.add_method('EnableChecksum', 
craigdo@3820
   224
                   'void', 
craigdo@3820
   225
                   [])
craigdo@3820
   226
    ## icmpv4.h: void ns3::Icmpv4Header::SetType(uint8_t type) [member function]
craigdo@3820
   227
    cls.add_method('SetType', 
craigdo@3820
   228
                   'void', 
craigdo@3820
   229
                   [param('uint8_t', 'type')])
craigdo@3820
   230
    ## icmpv4.h: void ns3::Icmpv4Header::SetCode(uint8_t code) [member function]
craigdo@3820
   231
    cls.add_method('SetCode', 
craigdo@3820
   232
                   'void', 
craigdo@3820
   233
                   [param('uint8_t', 'code')])
craigdo@3820
   234
    ## icmpv4.h: uint8_t ns3::Icmpv4Header::GetType() const [member function]
craigdo@3820
   235
    cls.add_method('GetType', 
craigdo@3820
   236
                   'uint8_t', 
craigdo@3820
   237
                   [], 
craigdo@3820
   238
                   is_const=True)
craigdo@3820
   239
    ## icmpv4.h: uint8_t ns3::Icmpv4Header::GetCode() const [member function]
craigdo@3820
   240
    cls.add_method('GetCode', 
craigdo@3820
   241
                   'uint8_t', 
craigdo@3820
   242
                   [], 
craigdo@3820
   243
                   is_const=True)
craigdo@3820
   244
    ## icmpv4.h: static ns3::TypeId ns3::Icmpv4Header::GetTypeId() [member function]
craigdo@3820
   245
    cls.add_method('GetTypeId', 
craigdo@3820
   246
                   'ns3::TypeId', 
craigdo@3820
   247
                   [], 
craigdo@3820
   248
                   is_static=True)
craigdo@3820
   249
    ## icmpv4.h: ns3::Icmpv4Header::Icmpv4Header() [constructor]
craigdo@3820
   250
    cls.add_constructor([])
craigdo@3820
   251
    ## icmpv4.h: ns3::TypeId ns3::Icmpv4Header::GetInstanceTypeId() const [member function]
craigdo@3820
   252
    cls.add_method('GetInstanceTypeId', 
craigdo@3820
   253
                   'ns3::TypeId', 
craigdo@3820
   254
                   [], 
craigdo@3820
   255
                   is_const=True, is_virtual=True)
craigdo@3820
   256
    ## icmpv4.h: uint32_t ns3::Icmpv4Header::GetSerializedSize() const [member function]
craigdo@3820
   257
    cls.add_method('GetSerializedSize', 
craigdo@3820
   258
                   'uint32_t', 
craigdo@3820
   259
                   [], 
craigdo@3820
   260
                   is_const=True, is_virtual=True)
craigdo@3820
   261
    ## icmpv4.h: void ns3::Icmpv4Header::Serialize(ns3::Buffer::Iterator start) const [member function]
craigdo@3820
   262
    cls.add_method('Serialize', 
craigdo@3820
   263
                   'void', 
craigdo@3820
   264
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   265
                   is_const=True, is_virtual=True)
craigdo@3820
   266
    ## icmpv4.h: uint32_t ns3::Icmpv4Header::Deserialize(ns3::Buffer::Iterator start) [member function]
craigdo@3820
   267
    cls.add_method('Deserialize', 
craigdo@3820
   268
                   'uint32_t', 
craigdo@3820
   269
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   270
                   is_virtual=True)
craigdo@3820
   271
    ## icmpv4.h: void ns3::Icmpv4Header::Print(std::ostream & os) const [member function]
craigdo@3820
   272
    cls.add_method('Print', 
craigdo@3820
   273
                   'void', 
craigdo@3820
   274
                   [param('std::ostream &', 'os')], 
craigdo@3820
   275
                   is_const=True, is_virtual=True)
craigdo@3820
   276
    return
craigdo@3820
   277
craigdo@3820
   278
def register_Ns3Icmpv4TimeExceeded_methods(root_module, cls):
mathieu@4241
   279
    ## icmpv4.h: ns3::Icmpv4TimeExceeded::Icmpv4TimeExceeded(ns3::Icmpv4TimeExceeded const & arg0) [copy constructor]
mathieu@4241
   280
    cls.add_constructor([param('ns3::Icmpv4TimeExceeded const &', 'arg0')])
mathieu@4407
   281
    ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<ns3::Packet const> data) [member function]
craigdo@3820
   282
    cls.add_method('SetData', 
craigdo@3820
   283
                   'void', 
craigdo@3820
   284
                   [param('ns3::Ptr< ns3::Packet const >', 'data')])
craigdo@3820
   285
    ## icmpv4.h: void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function]
craigdo@3820
   286
    cls.add_method('SetHeader', 
craigdo@3820
   287
                   'void', 
craigdo@3820
   288
                   [param('ns3::Ipv4Header', 'header')])
craigdo@3820
   289
    ## icmpv4.h: void ns3::Icmpv4TimeExceeded::GetData(uint8_t * payload) const [member function]
craigdo@3820
   290
    cls.add_method('GetData', 
craigdo@3820
   291
                   'void', 
craigdo@3820
   292
                   [param('uint8_t *', 'payload')], 
craigdo@3820
   293
                   is_const=True)
craigdo@3820
   294
    ## icmpv4.h: ns3::Ipv4Header ns3::Icmpv4TimeExceeded::GetHeader() const [member function]
craigdo@3820
   295
    cls.add_method('GetHeader', 
craigdo@3820
   296
                   'ns3::Ipv4Header', 
craigdo@3820
   297
                   [], 
craigdo@3820
   298
                   is_const=True)
craigdo@3820
   299
    ## icmpv4.h: static ns3::TypeId ns3::Icmpv4TimeExceeded::GetTypeId() [member function]
craigdo@3820
   300
    cls.add_method('GetTypeId', 
craigdo@3820
   301
                   'ns3::TypeId', 
craigdo@3820
   302
                   [], 
craigdo@3820
   303
                   is_static=True)
craigdo@3820
   304
    ## icmpv4.h: ns3::Icmpv4TimeExceeded::Icmpv4TimeExceeded() [constructor]
craigdo@3820
   305
    cls.add_constructor([])
craigdo@3820
   306
    ## icmpv4.h: ns3::TypeId ns3::Icmpv4TimeExceeded::GetInstanceTypeId() const [member function]
craigdo@3820
   307
    cls.add_method('GetInstanceTypeId', 
craigdo@3820
   308
                   'ns3::TypeId', 
craigdo@3820
   309
                   [], 
craigdo@3820
   310
                   is_const=True, is_virtual=True)
craigdo@3820
   311
    ## icmpv4.h: uint32_t ns3::Icmpv4TimeExceeded::GetSerializedSize() const [member function]
craigdo@3820
   312
    cls.add_method('GetSerializedSize', 
craigdo@3820
   313
                   'uint32_t', 
craigdo@3820
   314
                   [], 
craigdo@3820
   315
                   is_const=True, is_virtual=True)
craigdo@3820
   316
    ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Serialize(ns3::Buffer::Iterator start) const [member function]
craigdo@3820
   317
    cls.add_method('Serialize', 
craigdo@3820
   318
                   'void', 
craigdo@3820
   319
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   320
                   is_const=True, is_virtual=True)
craigdo@3820
   321
    ## icmpv4.h: uint32_t ns3::Icmpv4TimeExceeded::Deserialize(ns3::Buffer::Iterator start) [member function]
craigdo@3820
   322
    cls.add_method('Deserialize', 
craigdo@3820
   323
                   'uint32_t', 
craigdo@3820
   324
                   [param('ns3::Buffer::Iterator', 'start')], 
craigdo@3820
   325
                   is_virtual=True)
craigdo@3820
   326
    ## icmpv4.h: void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function]
craigdo@3820
   327
    cls.add_method('Print', 
craigdo@3820
   328
                   'void', 
craigdo@3820
   329
                   [param('std::ostream &', 'os')], 
craigdo@3820
   330
                   is_const=True, is_virtual=True)
craigdo@3820
   331
    return
craigdo@3820
   332
gjc@3408
   333
def register_Ns3TcpHeader_methods(root_module, cls):
mathieu@4241
   334
    ## tcp-header.h: ns3::TcpHeader::TcpHeader(ns3::TcpHeader const & arg0) [copy constructor]
mathieu@4241
   335
    cls.add_constructor([param('ns3::TcpHeader const &', 'arg0')])
gjc@3408
   336
    ## tcp-header.h: ns3::TcpHeader::TcpHeader() [constructor]
gjc@3468
   337
    cls.add_constructor([])
gjc@3408
   338
    ## tcp-header.h: void ns3::TcpHeader::EnableChecksums() [member function]
gjc@3468
   339
    cls.add_method('EnableChecksums', 
gjc@3468
   340
                   'void', 
gjc@3468
   341
                   [])
gjc@3408
   342
    ## tcp-header.h: void ns3::TcpHeader::SetSourcePort(uint16_t port) [member function]
gjc@3468
   343
    cls.add_method('SetSourcePort', 
gjc@3468
   344
                   'void', 
gjc@3468
   345
                   [param('uint16_t', 'port')])
gjc@3408
   346
    ## tcp-header.h: void ns3::TcpHeader::SetDestinationPort(uint16_t port) [member function]
gjc@3468
   347
    cls.add_method('SetDestinationPort', 
gjc@3468
   348
                   'void', 
gjc@3468
   349
                   [param('uint16_t', 'port')])
gjc@3408
   350
    ## tcp-header.h: void ns3::TcpHeader::SetSequenceNumber(SequenceNumber sequenceNumber) [member function]
gjc@3468
   351
    cls.add_method('SetSequenceNumber', 
gjc@3468
   352
                   'void', 
gjc@3468
   353
                   [param('SequenceNumber', 'sequenceNumber')])
gjc@3408
   354
    ## tcp-header.h: void ns3::TcpHeader::SetAckNumber(SequenceNumber ackNumber) [member function]
gjc@3468
   355
    cls.add_method('SetAckNumber', 
gjc@3468
   356
                   'void', 
gjc@3468
   357
                   [param('SequenceNumber', 'ackNumber')])
gjc@3408
   358
    ## tcp-header.h: void ns3::TcpHeader::SetLength(uint8_t length) [member function]
gjc@3468
   359
    cls.add_method('SetLength', 
gjc@3468
   360
                   'void', 
gjc@3468
   361
                   [param('uint8_t', 'length')])
gjc@3408
   362
    ## tcp-header.h: void ns3::TcpHeader::SetFlags(uint8_t flags) [member function]
gjc@3468
   363
    cls.add_method('SetFlags', 
gjc@3468
   364
                   'void', 
gjc@3468
   365
                   [param('uint8_t', 'flags')])
gjc@3408
   366
    ## tcp-header.h: void ns3::TcpHeader::SetWindowSize(uint16_t windowSize) [member function]
gjc@3468
   367
    cls.add_method('SetWindowSize', 
gjc@3468
   368
                   'void', 
gjc@3468
   369
                   [param('uint16_t', 'windowSize')])
gjc@3408
   370
    ## tcp-header.h: void ns3::TcpHeader::SetUrgentPointer(uint16_t urgentPointer) [member function]
gjc@3468
   371
    cls.add_method('SetUrgentPointer', 
gjc@3468
   372
                   'void', 
gjc@3468
   373
                   [param('uint16_t', 'urgentPointer')])
gjc@3408
   374
    ## tcp-header.h: uint16_t ns3::TcpHeader::GetSourcePort() const [member function]
gjc@3468
   375
    cls.add_method('GetSourcePort', 
gjc@3468
   376
                   'uint16_t', 
gjc@3468
   377
                   [], 
gjc@3468
   378
                   is_const=True)
gjc@3408
   379
    ## tcp-header.h: uint16_t ns3::TcpHeader::GetDestinationPort() const [member function]
gjc@3468
   380
    cls.add_method('GetDestinationPort', 
gjc@3468
   381
                   'uint16_t', 
gjc@3468
   382
                   [], 
gjc@3468
   383
                   is_const=True)
gjc@3408
   384
    ## tcp-header.h: SequenceNumber ns3::TcpHeader::GetSequenceNumber() const [member function]
gjc@3468
   385
    cls.add_method('GetSequenceNumber', 
gjc@3468
   386
                   'SequenceNumber', 
gjc@3468
   387
                   [], 
gjc@3468
   388
                   is_const=True)
gjc@3408
   389
    ## tcp-header.h: SequenceNumber ns3::TcpHeader::GetAckNumber() const [member function]
gjc@3468
   390
    cls.add_method('GetAckNumber', 
gjc@3468
   391
                   'SequenceNumber', 
gjc@3468
   392
                   [], 
gjc@3468
   393
                   is_const=True)
gjc@3408
   394
    ## tcp-header.h: uint8_t ns3::TcpHeader::GetLength() const [member function]
gjc@3468
   395
    cls.add_method('GetLength', 
gjc@3468
   396
                   'uint8_t', 
gjc@3468
   397
                   [], 
gjc@3468
   398
                   is_const=True)
gjc@3408
   399
    ## tcp-header.h: uint8_t ns3::TcpHeader::GetFlags() const [member function]
gjc@3468
   400
    cls.add_method('GetFlags', 
gjc@3468
   401
                   'uint8_t', 
gjc@3468
   402
                   [], 
gjc@3468
   403
                   is_const=True)
gjc@3408
   404
    ## tcp-header.h: uint16_t ns3::TcpHeader::GetWindowSize() const [member function]
gjc@3468
   405
    cls.add_method('GetWindowSize', 
gjc@3468
   406
                   'uint16_t', 
gjc@3468
   407
                   [], 
gjc@3468
   408
                   is_const=True)
gjc@3408
   409
    ## tcp-header.h: uint16_t ns3::TcpHeader::GetUrgentPointer() const [member function]
gjc@3468
   410
    cls.add_method('GetUrgentPointer', 
gjc@3468
   411
                   'uint16_t', 
gjc@3468
   412
                   [], 
gjc@3468
   413
                   is_const=True)
gjc@3408
   414
    ## tcp-header.h: void ns3::TcpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
gjc@3468
   415
    cls.add_method('InitializeChecksum', 
gjc@3468
   416
                   'void', 
gjc@3468
   417
                   [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
gjc@3408
   418
    ## tcp-header.h: static ns3::TypeId ns3::TcpHeader::GetTypeId() [member function]
gjc@3468
   419
    cls.add_method('GetTypeId', 
gjc@3468
   420
                   'ns3::TypeId', 
gjc@3468
   421
                   [], 
gjc@3468
   422
                   is_static=True)
gjc@3408
   423
    ## tcp-header.h: ns3::TypeId ns3::TcpHeader::GetInstanceTypeId() const [member function]
gjc@3468
   424
    cls.add_method('GetInstanceTypeId', 
gjc@3468
   425
                   'ns3::TypeId', 
gjc@3468
   426
                   [], 
gjc@3468
   427
                   is_const=True, is_virtual=True)
gjc@3408
   428
    ## tcp-header.h: void ns3::TcpHeader::Print(std::ostream & os) const [member function]
gjc@3468
   429
    cls.add_method('Print', 
gjc@3468
   430
                   'void', 
gjc@3574
   431
                   [param('std::ostream &', 'os')], 
gjc@3468
   432
                   is_const=True, is_virtual=True)
gjc@3408
   433
    ## tcp-header.h: uint32_t ns3::TcpHeader::GetSerializedSize() const [member function]
gjc@3468
   434
    cls.add_method('GetSerializedSize', 
gjc@3468
   435
                   'uint32_t', 
gjc@3468
   436
                   [], 
gjc@3468
   437
                   is_const=True, is_virtual=True)
gjc@3408
   438
    ## tcp-header.h: void ns3::TcpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3468
   439
    cls.add_method('Serialize', 
gjc@3468
   440
                   'void', 
gjc@3468
   441
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3468
   442
                   is_const=True, is_virtual=True)
gjc@3408
   443
    ## tcp-header.h: uint32_t ns3::TcpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3468
   444
    cls.add_method('Deserialize', 
gjc@3468
   445
                   'uint32_t', 
gjc@3468
   446
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3468
   447
                   is_virtual=True)
gjc@3408
   448
    ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function]
gjc@3468
   449
    cls.add_method('IsChecksumOk', 
gjc@3468
   450
                   'bool', 
gjc@3468
   451
                   [], 
gjc@3468
   452
                   is_const=True)
gjc@3408
   453
    return
gjc@3408
   454
gjc@3731
   455
def register_Ns3UdpHeader_methods(root_module, cls):
mathieu@4241
   456
    ## udp-header.h: ns3::UdpHeader::UdpHeader(ns3::UdpHeader const & arg0) [copy constructor]
mathieu@4241
   457
    cls.add_constructor([param('ns3::UdpHeader const &', 'arg0')])
gjc@3731
   458
    ## udp-header.h: ns3::UdpHeader::UdpHeader() [constructor]
gjc@3731
   459
    cls.add_constructor([])
gjc@3731
   460
    ## udp-header.h: void ns3::UdpHeader::EnableChecksums() [member function]
gjc@3731
   461
    cls.add_method('EnableChecksums', 
gjc@3731
   462
                   'void', 
gjc@3731
   463
                   [])
gjc@3731
   464
    ## udp-header.h: void ns3::UdpHeader::SetDestinationPort(uint16_t port) [member function]
gjc@3731
   465
    cls.add_method('SetDestinationPort', 
gjc@3731
   466
                   'void', 
gjc@3731
   467
                   [param('uint16_t', 'port')])
gjc@3731
   468
    ## udp-header.h: void ns3::UdpHeader::SetSourcePort(uint16_t port) [member function]
gjc@3731
   469
    cls.add_method('SetSourcePort', 
gjc@3731
   470
                   'void', 
gjc@3731
   471
                   [param('uint16_t', 'port')])
gjc@3731
   472
    ## udp-header.h: uint16_t ns3::UdpHeader::GetSourcePort() const [member function]
gjc@3731
   473
    cls.add_method('GetSourcePort', 
gjc@3731
   474
                   'uint16_t', 
gjc@3731
   475
                   [], 
gjc@3731
   476
                   is_const=True)
gjc@3731
   477
    ## udp-header.h: uint16_t ns3::UdpHeader::GetDestinationPort() const [member function]
gjc@3731
   478
    cls.add_method('GetDestinationPort', 
gjc@3731
   479
                   'uint16_t', 
gjc@3731
   480
                   [], 
gjc@3731
   481
                   is_const=True)
gjc@3731
   482
    ## udp-header.h: void ns3::UdpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
gjc@3731
   483
    cls.add_method('InitializeChecksum', 
gjc@3731
   484
                   'void', 
gjc@3731
   485
                   [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
gjc@3731
   486
    ## udp-header.h: static ns3::TypeId ns3::UdpHeader::GetTypeId() [member function]
gjc@3731
   487
    cls.add_method('GetTypeId', 
gjc@3731
   488
                   'ns3::TypeId', 
gjc@3731
   489
                   [], 
gjc@3731
   490
                   is_static=True)
gjc@3731
   491
    ## udp-header.h: ns3::TypeId ns3::UdpHeader::GetInstanceTypeId() const [member function]
gjc@3731
   492
    cls.add_method('GetInstanceTypeId', 
gjc@3731
   493
                   'ns3::TypeId', 
gjc@3731
   494
                   [], 
gjc@3731
   495
                   is_const=True, is_virtual=True)
gjc@3731
   496
    ## udp-header.h: void ns3::UdpHeader::Print(std::ostream & os) const [member function]
gjc@3731
   497
    cls.add_method('Print', 
gjc@3731
   498
                   'void', 
gjc@3731
   499
                   [param('std::ostream &', 'os')], 
gjc@3731
   500
                   is_const=True, is_virtual=True)
gjc@3731
   501
    ## udp-header.h: uint32_t ns3::UdpHeader::GetSerializedSize() const [member function]
gjc@3731
   502
    cls.add_method('GetSerializedSize', 
gjc@3731
   503
                   'uint32_t', 
gjc@3731
   504
                   [], 
gjc@3731
   505
                   is_const=True, is_virtual=True)
gjc@3731
   506
    ## udp-header.h: void ns3::UdpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3731
   507
    cls.add_method('Serialize', 
gjc@3731
   508
                   'void', 
gjc@3731
   509
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
   510
                   is_const=True, is_virtual=True)
gjc@3731
   511
    ## udp-header.h: uint32_t ns3::UdpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3731
   512
    cls.add_method('Deserialize', 
gjc@3731
   513
                   'uint32_t', 
gjc@3731
   514
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
   515
                   is_virtual=True)
gjc@3731
   516
    ## udp-header.h: bool ns3::UdpHeader::IsChecksumOk() const [member function]
gjc@3731
   517
    cls.add_method('IsChecksumOk', 
gjc@3731
   518
                   'bool', 
gjc@3731
   519
                   [], 
gjc@3731
   520
                   is_const=True)
gjc@3731
   521
    return
gjc@3731
   522
gjc@3408
   523
def register_functions(root_module):
gjc@3408
   524
    module = root_module
gjc@3855
   525
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
gjc@3855
   526
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
tomh@4474
   527
    register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
gjc@3408
   528
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
gjc@3408
   529
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
gjc@3408
   530
    return
gjc@3408
   531
gjc@3855
   532
def register_functions_ns3_Config(module, root_module):
gjc@3855
   533
    return
gjc@3855
   534
gjc@3855
   535
def register_functions_ns3_TimeStepPrecision(module, root_module):
gjc@3855
   536
    return
gjc@3855
   537
tomh@4474
   538
def register_functions_ns3_addressUtils(module, root_module):
tomh@4474
   539
    return
tomh@4474
   540
gjc@3408
   541
def register_functions_ns3_internal(module, root_module):
gjc@3408
   542
    return
gjc@3408
   543
gjc@3408
   544
def register_functions_ns3_olsr(module, root_module):
gjc@3408
   545
    return
gjc@3408
   546