bindings/python/ns3_module_common.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 03 Jun 2009 08:49:40 +0200
changeset 4502 07d34c0d8d18
parent 4474 19e2b7ff3482
child 4505 e865dbc1d157
permissions -rw-r--r--
new tags
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
    
gjc@3408
     6
    ## error-model.h: ns3::ErrorUnit [enumeration]
gjc@3408
     7
    module.add_enum('ErrorUnit', ['EU_BIT', 'EU_BYTE', 'EU_PKT'])
gjc@3731
     8
    ## buffer.h: ns3::Buffer [class]
gjc@3731
     9
    module.add_class('Buffer')
gjc@3731
    10
    ## buffer.h: ns3::Buffer::Iterator [class]
gjc@3731
    11
    module.add_class('Iterator', outer_class=root_module['ns3::Buffer'])
mathieu@4502
    12
    ## packet.h: ns3::ByteTagIterator [class]
mathieu@4502
    13
    module.add_class('ByteTagIterator')
mathieu@4502
    14
    ## packet.h: ns3::ByteTagIterator::Item [class]
mathieu@4502
    15
    module.add_class('Item', outer_class=root_module['ns3::ByteTagIterator'])
mathieu@4502
    16
    ## byte-tag-list.h: ns3::ByteTagList [class]
mathieu@4502
    17
    module.add_class('ByteTagList')
mathieu@4502
    18
    ## byte-tag-list.h: ns3::ByteTagList::Iterator [class]
mathieu@4502
    19
    module.add_class('Iterator', outer_class=root_module['ns3::ByteTagList'])
mathieu@4502
    20
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item [struct]
mathieu@4502
    21
    module.add_class('Item', outer_class=root_module['ns3::ByteTagList::Iterator'])
gjc@3731
    22
    ## data-rate.h: ns3::DataRate [class]
gjc@3731
    23
    module.add_class('DataRate')
gjc@3408
    24
    ## packet.h: ns3::Packet [class]
gjc@3468
    25
    module.add_class('Packet', memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
gjc@3755
    26
    ## packet-metadata.h: ns3::PacketMetadata [class]
gjc@3755
    27
    module.add_class('PacketMetadata')
gjc@3755
    28
    ## packet-metadata.h: ns3::PacketMetadata::Item [struct]
gjc@3755
    29
    module.add_class('Item', outer_class=root_module['ns3::PacketMetadata'])
gjc@3755
    30
    ## packet-metadata.h: ns3::PacketMetadata::Item [enumeration]
gjc@3755
    31
    module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'])
gjc@3755
    32
    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator [class]
gjc@3755
    33
    module.add_class('ItemIterator', outer_class=root_module['ns3::PacketMetadata'])
mathieu@4502
    34
    ## packet.h: ns3::PacketTagIterator [class]
mathieu@4502
    35
    module.add_class('PacketTagIterator')
mathieu@4502
    36
    ## packet.h: ns3::PacketTagIterator::Item [class]
mathieu@4502
    37
    module.add_class('Item', outer_class=root_module['ns3::PacketTagIterator'])
mathieu@4502
    38
    ## packet-tag-list.h: ns3::PacketTagList [class]
mathieu@4502
    39
    module.add_class('PacketTagList')
mathieu@4502
    40
    ## packet-tag-list.h: ns3::PacketTagList::TagData [struct]
mathieu@4502
    41
    module.add_class('TagData', outer_class=root_module['ns3::PacketTagList'])
gjc@3731
    42
    ## tag.h: ns3::Tag [class]
gjc@3731
    43
    module.add_class('Tag', parent=root_module['ns3::ObjectBase'])
gjc@3731
    44
    ## tag-buffer.h: ns3::TagBuffer [class]
gjc@3731
    45
    module.add_class('TagBuffer')
gjc@3408
    46
    ## chunk.h: ns3::Chunk [class]
gjc@3457
    47
    module.add_class('Chunk', parent=root_module['ns3::ObjectBase'])
gjc@3731
    48
    ## data-rate.h: ns3::DataRateChecker [class]
gjc@3731
    49
    module.add_class('DataRateChecker', parent=root_module['ns3::AttributeChecker'])
gjc@3731
    50
    ## data-rate.h: ns3::DataRateValue [class]
gjc@3731
    51
    module.add_class('DataRateValue', parent=root_module['ns3::AttributeValue'])
gjc@3731
    52
    ## header.h: ns3::Header [class]
gjc@3731
    53
    module.add_class('Header', parent=root_module['ns3::Chunk'])
gjc@3408
    54
    ## pcap-writer.h: ns3::PcapWriter [class]
gjc@3408
    55
    module.add_class('PcapWriter', parent=root_module['ns3::RefCountBase'])
gjc@3731
    56
    ## trailer.h: ns3::Trailer [class]
gjc@3731
    57
    module.add_class('Trailer', parent=root_module['ns3::Chunk'])
gjc@3408
    58
    ## error-model.h: ns3::ErrorModel [class]
gjc@3457
    59
    module.add_class('ErrorModel', parent=root_module['ns3::Object'])
gjc@3408
    60
    ## error-model.h: ns3::ListErrorModel [class]
gjc@3457
    61
    module.add_class('ListErrorModel', parent=root_module['ns3::ErrorModel'])
gjc@3408
    62
    ## error-model.h: ns3::RateErrorModel [class]
gjc@3457
    63
    module.add_class('RateErrorModel', parent=root_module['ns3::ErrorModel'])
gjc@3408
    64
    
gjc@3855
    65
    ## Register a nested module for the namespace Config
gjc@3408
    66
    
gjc@3855
    67
    nested_module = module.add_cpp_namespace('Config')
gjc@3855
    68
    register_types_ns3_Config(nested_module)
gjc@3408
    69
    
gjc@3408
    70
    
gjc@3408
    71
    ## Register a nested module for the namespace TimeStepPrecision
gjc@3408
    72
    
gjc@3408
    73
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
gjc@3408
    74
    register_types_ns3_TimeStepPrecision(nested_module)
gjc@3408
    75
    
gjc@3408
    76
    
tomh@4474
    77
    ## Register a nested module for the namespace addressUtils
tomh@4474
    78
    
tomh@4474
    79
    nested_module = module.add_cpp_namespace('addressUtils')
tomh@4474
    80
    register_types_ns3_addressUtils(nested_module)
tomh@4474
    81
    
tomh@4474
    82
    
gjc@3855
    83
    ## Register a nested module for the namespace internal
gjc@3408
    84
    
gjc@3855
    85
    nested_module = module.add_cpp_namespace('internal')
gjc@3855
    86
    register_types_ns3_internal(nested_module)
gjc@3408
    87
    
gjc@3408
    88
    
gjc@3408
    89
    ## Register a nested module for the namespace olsr
gjc@3408
    90
    
gjc@3408
    91
    nested_module = module.add_cpp_namespace('olsr')
gjc@3408
    92
    register_types_ns3_olsr(nested_module)
gjc@3408
    93
    
gjc@3408
    94
gjc@3855
    95
def register_types_ns3_Config(module):
gjc@3408
    96
    root_module = module.get_root()
gjc@3408
    97
    
gjc@3408
    98
gjc@3408
    99
def register_types_ns3_TimeStepPrecision(module):
gjc@3408
   100
    root_module = module.get_root()
gjc@3408
   101
    
gjc@3408
   102
tomh@4474
   103
def register_types_ns3_addressUtils(module):
tomh@4474
   104
    root_module = module.get_root()
tomh@4474
   105
    
tomh@4474
   106
gjc@3855
   107
def register_types_ns3_internal(module):
gjc@3408
   108
    root_module = module.get_root()
gjc@3408
   109
    
gjc@3408
   110
gjc@3408
   111
def register_types_ns3_olsr(module):
gjc@3408
   112
    root_module = module.get_root()
gjc@3408
   113
    
gjc@3408
   114
gjc@3408
   115
def register_methods(root_module):
gjc@3731
   116
    register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer'])
gjc@3731
   117
    register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator'])
mathieu@4502
   118
    register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator'])
mathieu@4502
   119
    register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item'])
mathieu@4502
   120
    register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList'])
mathieu@4502
   121
    register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator'])
mathieu@4502
   122
    register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item'])
gjc@3731
   123
    register_Ns3DataRate_methods(root_module, root_module['ns3::DataRate'])
gjc@3408
   124
    register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
gjc@3755
   125
    register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata'])
gjc@3755
   126
    register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item'])
gjc@3755
   127
    register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator'])
mathieu@4502
   128
    register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
mathieu@4502
   129
    register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
mathieu@4502
   130
    register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
mathieu@4502
   131
    register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
gjc@3731
   132
    register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
gjc@3731
   133
    register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
gjc@3408
   134
    register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
gjc@3731
   135
    register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker'])
gjc@3731
   136
    register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue'])
gjc@3731
   137
    register_Ns3Header_methods(root_module, root_module['ns3::Header'])
gjc@3408
   138
    register_Ns3PcapWriter_methods(root_module, root_module['ns3::PcapWriter'])
gjc@3731
   139
    register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
gjc@3408
   140
    register_Ns3ErrorModel_methods(root_module, root_module['ns3::ErrorModel'])
gjc@3408
   141
    register_Ns3ListErrorModel_methods(root_module, root_module['ns3::ListErrorModel'])
gjc@3408
   142
    register_Ns3RateErrorModel_methods(root_module, root_module['ns3::RateErrorModel'])
gjc@3408
   143
    return
gjc@3408
   144
gjc@3408
   145
def register_Ns3Buffer_methods(root_module, cls):
gjc@3408
   146
    ## buffer.h: uint32_t ns3::Buffer::GetSize() const [member function]
gjc@3468
   147
    cls.add_method('GetSize', 
gjc@3468
   148
                   'uint32_t', 
gjc@3468
   149
                   [], 
gjc@3468
   150
                   is_const=True)
gjc@3408
   151
    ## buffer.h: uint8_t const * ns3::Buffer::PeekData() const [member function]
gjc@3468
   152
    cls.add_method('PeekData', 
gjc@3574
   153
                   'uint8_t const *', 
gjc@3468
   154
                   [], 
gjc@3468
   155
                   is_const=True)
gjc@3408
   156
    ## buffer.h: bool ns3::Buffer::AddAtStart(uint32_t start) [member function]
gjc@3468
   157
    cls.add_method('AddAtStart', 
gjc@3468
   158
                   'bool', 
gjc@3468
   159
                   [param('uint32_t', 'start')])
gjc@3408
   160
    ## buffer.h: bool ns3::Buffer::AddAtEnd(uint32_t end) [member function]
gjc@3468
   161
    cls.add_method('AddAtEnd', 
gjc@3468
   162
                   'bool', 
gjc@3468
   163
                   [param('uint32_t', 'end')])
gjc@3408
   164
    ## buffer.h: void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function]
gjc@3468
   165
    cls.add_method('AddAtEnd', 
gjc@3468
   166
                   'void', 
gjc@3574
   167
                   [param('ns3::Buffer const &', 'o')])
gjc@3408
   168
    ## buffer.h: void ns3::Buffer::RemoveAtStart(uint32_t start) [member function]
gjc@3468
   169
    cls.add_method('RemoveAtStart', 
gjc@3468
   170
                   'void', 
gjc@3468
   171
                   [param('uint32_t', 'start')])
gjc@3408
   172
    ## buffer.h: void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function]
gjc@3468
   173
    cls.add_method('RemoveAtEnd', 
gjc@3468
   174
                   'void', 
gjc@3468
   175
                   [param('uint32_t', 'end')])
gjc@3408
   176
    ## buffer.h: ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function]
gjc@3468
   177
    cls.add_method('CreateFragment', 
gjc@3468
   178
                   'ns3::Buffer', 
gjc@3468
   179
                   [param('uint32_t', 'start'), param('uint32_t', 'length')], 
gjc@3468
   180
                   is_const=True)
gjc@3408
   181
    ## buffer.h: ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function]
gjc@3468
   182
    cls.add_method('Begin', 
gjc@3468
   183
                   'ns3::Buffer::Iterator', 
gjc@3468
   184
                   [], 
gjc@3468
   185
                   is_const=True)
gjc@3408
   186
    ## buffer.h: ns3::Buffer::Iterator ns3::Buffer::End() const [member function]
gjc@3468
   187
    cls.add_method('End', 
gjc@3468
   188
                   'ns3::Buffer::Iterator', 
gjc@3468
   189
                   [], 
gjc@3468
   190
                   is_const=True)
gjc@3408
   191
    ## buffer.h: ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function]
gjc@3468
   192
    cls.add_method('CreateFullCopy', 
gjc@3468
   193
                   'ns3::Buffer', 
gjc@3468
   194
                   [], 
gjc@3468
   195
                   is_const=True)
gjc@3408
   196
    ## buffer.h: int32_t ns3::Buffer::GetCurrentStartOffset() const [member function]
gjc@3468
   197
    cls.add_method('GetCurrentStartOffset', 
gjc@3468
   198
                   'int32_t', 
gjc@3468
   199
                   [], 
gjc@3468
   200
                   is_const=True)
gjc@3408
   201
    ## buffer.h: int32_t ns3::Buffer::GetCurrentEndOffset() const [member function]
gjc@3468
   202
    cls.add_method('GetCurrentEndOffset', 
gjc@3468
   203
                   'int32_t', 
gjc@3468
   204
                   [], 
gjc@3468
   205
                   is_const=True)
gjc@3408
   206
    ## buffer.h: ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor]
gjc@3574
   207
    cls.add_constructor([param('ns3::Buffer const &', 'o')])
gjc@3408
   208
    ## buffer.h: ns3::Buffer::Buffer() [constructor]
gjc@3468
   209
    cls.add_constructor([])
gjc@3408
   210
    ## buffer.h: ns3::Buffer::Buffer(uint32_t dataSize) [constructor]
gjc@3468
   211
    cls.add_constructor([param('uint32_t', 'dataSize')])
gjc@3408
   212
    return
gjc@3408
   213
gjc@3408
   214
def register_Ns3BufferIterator_methods(root_module, cls):
mathieu@4241
   215
    ## buffer.h: ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor]
mathieu@4241
   216
    cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')])
gjc@3408
   217
    ## buffer.h: ns3::Buffer::Iterator::Iterator() [constructor]
gjc@3468
   218
    cls.add_constructor([])
gjc@3408
   219
    ## buffer.h: void ns3::Buffer::Iterator::Next() [member function]
gjc@3468
   220
    cls.add_method('Next', 
gjc@3468
   221
                   'void', 
gjc@3468
   222
                   [])
gjc@3408
   223
    ## buffer.h: void ns3::Buffer::Iterator::Prev() [member function]
gjc@3468
   224
    cls.add_method('Prev', 
gjc@3468
   225
                   'void', 
gjc@3468
   226
                   [])
gjc@3408
   227
    ## buffer.h: void ns3::Buffer::Iterator::Next(uint32_t delta) [member function]
gjc@3468
   228
    cls.add_method('Next', 
gjc@3468
   229
                   'void', 
gjc@3468
   230
                   [param('uint32_t', 'delta')])
gjc@3408
   231
    ## buffer.h: void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function]
gjc@3468
   232
    cls.add_method('Prev', 
gjc@3468
   233
                   'void', 
gjc@3468
   234
                   [param('uint32_t', 'delta')])
gjc@3408
   235
    ## buffer.h: uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function]
gjc@3468
   236
    cls.add_method('GetDistanceFrom', 
gjc@3468
   237
                   'uint32_t', 
gjc@3574
   238
                   [param('ns3::Buffer::Iterator const &', 'o')], 
gjc@3468
   239
                   is_const=True)
gjc@3408
   240
    ## buffer.h: bool ns3::Buffer::Iterator::IsEnd() const [member function]
gjc@3468
   241
    cls.add_method('IsEnd', 
gjc@3468
   242
                   'bool', 
gjc@3468
   243
                   [], 
gjc@3468
   244
                   is_const=True)
gjc@3408
   245
    ## buffer.h: bool ns3::Buffer::Iterator::IsStart() const [member function]
gjc@3468
   246
    cls.add_method('IsStart', 
gjc@3468
   247
                   'bool', 
gjc@3468
   248
                   [], 
gjc@3468
   249
                   is_const=True)
gjc@3408
   250
    ## buffer.h: void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function]
gjc@3468
   251
    cls.add_method('WriteU8', 
gjc@3468
   252
                   'void', 
gjc@3468
   253
                   [param('uint8_t', 'data')])
gjc@3408
   254
    ## buffer.h: void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function]
gjc@3468
   255
    cls.add_method('WriteU8', 
gjc@3468
   256
                   'void', 
gjc@3468
   257
                   [param('uint8_t', 'data'), param('uint32_t', 'len')])
gjc@3408
   258
    ## buffer.h: void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function]
gjc@3468
   259
    cls.add_method('WriteU16', 
gjc@3468
   260
                   'void', 
gjc@3468
   261
                   [param('uint16_t', 'data')])
gjc@3408
   262
    ## buffer.h: void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function]
gjc@3468
   263
    cls.add_method('WriteU32', 
gjc@3468
   264
                   'void', 
gjc@3468
   265
                   [param('uint32_t', 'data')])
gjc@3408
   266
    ## buffer.h: void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function]
gjc@3468
   267
    cls.add_method('WriteU64', 
gjc@3468
   268
                   'void', 
gjc@3468
   269
                   [param('uint64_t', 'data')])
gjc@3408
   270
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function]
gjc@3468
   271
    cls.add_method('WriteHtolsbU16', 
gjc@3468
   272
                   'void', 
gjc@3468
   273
                   [param('uint16_t', 'data')])
gjc@3408
   274
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function]
gjc@3468
   275
    cls.add_method('WriteHtolsbU32', 
gjc@3468
   276
                   'void', 
gjc@3468
   277
                   [param('uint32_t', 'data')])
gjc@3408
   278
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function]
gjc@3468
   279
    cls.add_method('WriteHtolsbU64', 
gjc@3468
   280
                   'void', 
gjc@3468
   281
                   [param('uint64_t', 'data')])
gjc@3408
   282
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function]
gjc@3468
   283
    cls.add_method('WriteHtonU16', 
gjc@3468
   284
                   'void', 
gjc@3468
   285
                   [param('uint16_t', 'data')])
gjc@3408
   286
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function]
gjc@3468
   287
    cls.add_method('WriteHtonU32', 
gjc@3468
   288
                   'void', 
gjc@3468
   289
                   [param('uint32_t', 'data')])
gjc@3408
   290
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function]
gjc@3468
   291
    cls.add_method('WriteHtonU64', 
gjc@3468
   292
                   'void', 
gjc@3468
   293
                   [param('uint64_t', 'data')])
gjc@3408
   294
    ## buffer.h: void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function]
gjc@3468
   295
    cls.add_method('Write', 
gjc@3468
   296
                   'void', 
gjc@3574
   297
                   [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
gjc@3408
   298
    ## buffer.h: void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function]
gjc@3468
   299
    cls.add_method('Write', 
gjc@3468
   300
                   'void', 
gjc@3468
   301
                   [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')])
gjc@3408
   302
    ## buffer.h: uint8_t ns3::Buffer::Iterator::ReadU8() [member function]
gjc@3468
   303
    cls.add_method('ReadU8', 
gjc@3468
   304
                   'uint8_t', 
gjc@3468
   305
                   [])
gjc@3408
   306
    ## buffer.h: uint16_t ns3::Buffer::Iterator::ReadU16() [member function]
gjc@3468
   307
    cls.add_method('ReadU16', 
gjc@3468
   308
                   'uint16_t', 
gjc@3468
   309
                   [])
gjc@3408
   310
    ## buffer.h: uint32_t ns3::Buffer::Iterator::ReadU32() [member function]
gjc@3468
   311
    cls.add_method('ReadU32', 
gjc@3468
   312
                   'uint32_t', 
gjc@3468
   313
                   [])
gjc@3408
   314
    ## buffer.h: uint64_t ns3::Buffer::Iterator::ReadU64() [member function]
gjc@3468
   315
    cls.add_method('ReadU64', 
gjc@3468
   316
                   'uint64_t', 
gjc@3468
   317
                   [])
gjc@3408
   318
    ## buffer.h: uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function]
gjc@3468
   319
    cls.add_method('ReadNtohU16', 
gjc@3468
   320
                   'uint16_t', 
gjc@3468
   321
                   [])
gjc@3408
   322
    ## buffer.h: uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function]
gjc@3468
   323
    cls.add_method('ReadNtohU32', 
gjc@3468
   324
                   'uint32_t', 
gjc@3468
   325
                   [])
gjc@3408
   326
    ## buffer.h: uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function]
gjc@3468
   327
    cls.add_method('ReadNtohU64', 
gjc@3468
   328
                   'uint64_t', 
gjc@3468
   329
                   [])
gjc@3408
   330
    ## buffer.h: uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
gjc@3468
   331
    cls.add_method('ReadLsbtohU16', 
gjc@3468
   332
                   'uint16_t', 
gjc@3468
   333
                   [])
gjc@3408
   334
    ## buffer.h: uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function]
gjc@3468
   335
    cls.add_method('ReadLsbtohU32', 
gjc@3468
   336
                   'uint32_t', 
gjc@3468
   337
                   [])
gjc@3408
   338
    ## buffer.h: uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function]
gjc@3468
   339
    cls.add_method('ReadLsbtohU64', 
gjc@3468
   340
                   'uint64_t', 
gjc@3468
   341
                   [])
gjc@3408
   342
    ## buffer.h: void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function]
gjc@3468
   343
    cls.add_method('Read', 
gjc@3468
   344
                   'void', 
gjc@3468
   345
                   [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
gjc@3408
   346
    ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
gjc@3468
   347
    cls.add_method('CalculateIpChecksum', 
gjc@3468
   348
                   'uint16_t', 
gjc@3468
   349
                   [param('uint16_t', 'size')])
gjc@3408
   350
    ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
gjc@3468
   351
    cls.add_method('CalculateIpChecksum', 
gjc@3468
   352
                   'uint16_t', 
gjc@3468
   353
                   [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
gjc@3416
   354
    ## buffer.h: uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
gjc@3468
   355
    cls.add_method('GetSize', 
gjc@3468
   356
                   'uint32_t', 
gjc@3468
   357
                   [], 
gjc@3468
   358
                   is_const=True)
gjc@3408
   359
    return
gjc@3408
   360
mathieu@4502
   361
def register_Ns3ByteTagIterator_methods(root_module, cls):
mathieu@4502
   362
    ## packet.h: ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor]
mathieu@4502
   363
    cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')])
mathieu@4502
   364
    ## packet.h: bool ns3::ByteTagIterator::HasNext() const [member function]
mathieu@4502
   365
    cls.add_method('HasNext', 
mathieu@4502
   366
                   'bool', 
mathieu@4502
   367
                   [], 
mathieu@4502
   368
                   is_const=True)
mathieu@4502
   369
    ## packet.h: ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function]
mathieu@4502
   370
    cls.add_method('Next', 
mathieu@4502
   371
                   'ns3::ByteTagIterator::Item', 
mathieu@4502
   372
                   [])
mathieu@4502
   373
    return
mathieu@4502
   374
mathieu@4502
   375
def register_Ns3ByteTagIteratorItem_methods(root_module, cls):
mathieu@4502
   376
    ## packet.h: ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor]
mathieu@4502
   377
    cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')])
mathieu@4502
   378
    ## packet.h: ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function]
mathieu@4502
   379
    cls.add_method('GetTypeId', 
mathieu@4502
   380
                   'ns3::TypeId', 
mathieu@4502
   381
                   [], 
mathieu@4502
   382
                   is_const=True)
mathieu@4502
   383
    ## packet.h: uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function]
mathieu@4502
   384
    cls.add_method('GetStart', 
mathieu@4502
   385
                   'uint32_t', 
mathieu@4502
   386
                   [], 
mathieu@4502
   387
                   is_const=True)
mathieu@4502
   388
    ## packet.h: uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function]
mathieu@4502
   389
    cls.add_method('GetEnd', 
mathieu@4502
   390
                   'uint32_t', 
mathieu@4502
   391
                   [], 
mathieu@4502
   392
                   is_const=True)
mathieu@4502
   393
    ## packet.h: void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
mathieu@4502
   394
    cls.add_method('GetTag', 
mathieu@4502
   395
                   'void', 
mathieu@4502
   396
                   [param('ns3::Tag &', 'tag')], 
mathieu@4502
   397
                   is_const=True)
mathieu@4502
   398
    return
mathieu@4502
   399
mathieu@4502
   400
def register_Ns3ByteTagList_methods(root_module, cls):
mathieu@4502
   401
    ## byte-tag-list.h: ns3::ByteTagList::ByteTagList() [constructor]
mathieu@4502
   402
    cls.add_constructor([])
mathieu@4502
   403
    ## byte-tag-list.h: ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor]
mathieu@4502
   404
    cls.add_constructor([param('ns3::ByteTagList const &', 'o')])
mathieu@4502
   405
    ## byte-tag-list.h: ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
mathieu@4502
   406
    cls.add_method('Add', 
mathieu@4502
   407
                   'ns3::TagBuffer', 
mathieu@4502
   408
                   [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
mathieu@4502
   409
    ## byte-tag-list.h: void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function]
mathieu@4502
   410
    cls.add_method('Add', 
mathieu@4502
   411
                   'void', 
mathieu@4502
   412
                   [param('ns3::ByteTagList const &', 'o')])
mathieu@4502
   413
    ## byte-tag-list.h: void ns3::ByteTagList::RemoveAll() [member function]
mathieu@4502
   414
    cls.add_method('RemoveAll', 
mathieu@4502
   415
                   'void', 
mathieu@4502
   416
                   [])
mathieu@4502
   417
    ## byte-tag-list.h: ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
mathieu@4502
   418
    cls.add_method('Begin', 
mathieu@4502
   419
                   'ns3::ByteTagList::Iterator', 
mathieu@4502
   420
                   [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')], 
mathieu@4502
   421
                   is_const=True)
mathieu@4502
   422
    ## byte-tag-list.h: void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
mathieu@4502
   423
    cls.add_method('AddAtEnd', 
mathieu@4502
   424
                   'void', 
mathieu@4502
   425
                   [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
mathieu@4502
   426
    ## byte-tag-list.h: void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
mathieu@4502
   427
    cls.add_method('AddAtStart', 
mathieu@4502
   428
                   'void', 
mathieu@4502
   429
                   [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
mathieu@4502
   430
    return
mathieu@4502
   431
mathieu@4502
   432
def register_Ns3ByteTagListIterator_methods(root_module, cls):
mathieu@4502
   433
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor]
mathieu@4502
   434
    cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')])
mathieu@4502
   435
    ## byte-tag-list.h: bool ns3::ByteTagList::Iterator::HasNext() const [member function]
mathieu@4502
   436
    cls.add_method('HasNext', 
mathieu@4502
   437
                   'bool', 
mathieu@4502
   438
                   [], 
mathieu@4502
   439
                   is_const=True)
mathieu@4502
   440
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function]
mathieu@4502
   441
    cls.add_method('Next', 
mathieu@4502
   442
                   'ns3::ByteTagList::Iterator::Item', 
mathieu@4502
   443
                   [])
mathieu@4502
   444
    ## byte-tag-list.h: uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function]
mathieu@4502
   445
    cls.add_method('GetOffsetStart', 
mathieu@4502
   446
                   'uint32_t', 
mathieu@4502
   447
                   [], 
mathieu@4502
   448
                   is_const=True)
mathieu@4502
   449
    return
mathieu@4502
   450
mathieu@4502
   451
def register_Ns3ByteTagListIteratorItem_methods(root_module, cls):
mathieu@4502
   452
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item::tid [variable]
mathieu@4502
   453
    cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
mathieu@4502
   454
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item::size [variable]
mathieu@4502
   455
    cls.add_instance_attribute('size', 'uint32_t', is_const=False)
mathieu@4502
   456
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item::start [variable]
mathieu@4502
   457
    cls.add_instance_attribute('start', 'int32_t', is_const=False)
mathieu@4502
   458
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item::end [variable]
mathieu@4502
   459
    cls.add_instance_attribute('end', 'int32_t', is_const=False)
mathieu@4502
   460
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item::buf [variable]
mathieu@4502
   461
    cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
mathieu@4502
   462
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor]
mathieu@4502
   463
    cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')])
mathieu@4502
   464
    ## byte-tag-list.h: ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
mathieu@4502
   465
    cls.add_constructor([param('ns3::TagBuffer', 'buf')])
mathieu@4502
   466
    return
mathieu@4502
   467
gjc@3408
   468
def register_Ns3DataRate_methods(root_module, cls):
gjc@3731
   469
    cls.add_output_stream_operator()
gjc@3731
   470
    cls.add_binary_comparison_operator('!=')
gjc@3731
   471
    cls.add_binary_comparison_operator('<')
gjc@3731
   472
    cls.add_binary_comparison_operator('<=')
gjc@3731
   473
    cls.add_binary_comparison_operator('==')
gjc@3731
   474
    cls.add_binary_comparison_operator('>')
gjc@3731
   475
    cls.add_binary_comparison_operator('>=')
gjc@3408
   476
    ## data-rate.h: ns3::DataRate::DataRate(ns3::DataRate const & arg0) [copy constructor]
gjc@3574
   477
    cls.add_constructor([param('ns3::DataRate const &', 'arg0')])
gjc@3408
   478
    ## data-rate.h: ns3::DataRate::DataRate() [constructor]
gjc@3468
   479
    cls.add_constructor([])
gjc@3408
   480
    ## data-rate.h: ns3::DataRate::DataRate(uint64_t bps) [constructor]
gjc@3468
   481
    cls.add_constructor([param('uint64_t', 'bps')])
gjc@3408
   482
    ## data-rate.h: ns3::DataRate::DataRate(std::string rate) [constructor]
gjc@3468
   483
    cls.add_constructor([param('std::string', 'rate')])
gjc@3408
   484
    ## data-rate.h: double ns3::DataRate::CalculateTxTime(uint32_t bytes) const [member function]
gjc@3468
   485
    cls.add_method('CalculateTxTime', 
gjc@3468
   486
                   'double', 
gjc@3468
   487
                   [param('uint32_t', 'bytes')], 
gjc@3468
   488
                   is_const=True)
gjc@3408
   489
    ## data-rate.h: uint64_t ns3::DataRate::GetBitRate() const [member function]
gjc@3468
   490
    cls.add_method('GetBitRate', 
gjc@3468
   491
                   'uint64_t', 
gjc@3468
   492
                   [], 
gjc@3468
   493
                   is_const=True)
gjc@3731
   494
    return
gjc@3731
   495
gjc@3731
   496
def register_Ns3Packet_methods(root_module, cls):
gjc@3408
   497
    cls.add_output_stream_operator()
gjc@3731
   498
    ## packet.h: ns3::Packet::Packet() [constructor]
gjc@3731
   499
    cls.add_constructor([])
gjc@3731
   500
    ## packet.h: ns3::Packet::Packet(ns3::Packet const & o) [copy constructor]
gjc@3731
   501
    cls.add_constructor([param('ns3::Packet const &', 'o')])
gjc@3731
   502
    ## packet.h: ns3::Packet::Packet(uint32_t size) [constructor]
gjc@3731
   503
    cls.add_constructor([param('uint32_t', 'size')])
gjc@3731
   504
    ## packet.h: ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor]
gjc@3731
   505
    cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
mathieu@4407
   506
    ## packet.h: void ns3::Packet::AddAtEnd(ns3::Ptr<ns3::Packet const> packet) [member function]
gjc@3731
   507
    cls.add_method('AddAtEnd', 
gjc@3731
   508
                   'void', 
gjc@3731
   509
                   [param('ns3::Ptr< ns3::Packet const >', 'packet')])
mathieu@4502
   510
    ## packet.h: void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function]
mathieu@4502
   511
    cls.add_method('AddByteTag', 
mathieu@4502
   512
                   'void', 
mathieu@4502
   513
                   [param('ns3::Tag const &', 'tag')], 
mathieu@4502
   514
                   is_const=True)
gjc@3731
   515
    ## packet.h: void ns3::Packet::AddHeader(ns3::Header const & header) [member function]
gjc@3731
   516
    cls.add_method('AddHeader', 
gjc@3731
   517
                   'void', 
gjc@3731
   518
                   [param('ns3::Header const &', 'header')])
mathieu@4502
   519
    ## packet.h: void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
mathieu@4502
   520
    cls.add_method('AddPacketTag', 
mathieu@4502
   521
                   'void', 
mathieu@4502
   522
                   [param('ns3::Tag const &', 'tag')], 
mathieu@4502
   523
                   is_const=True)
gjc@3731
   524
    ## packet.h: void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
gjc@3731
   525
    cls.add_method('AddPaddingAtEnd', 
gjc@3731
   526
                   'void', 
gjc@3731
   527
                   [param('uint32_t', 'size')])
gjc@3731
   528
    ## packet.h: void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function]
gjc@3731
   529
    cls.add_method('AddTrailer', 
gjc@3731
   530
                   'void', 
gjc@3731
   531
                   [param('ns3::Trailer const &', 'trailer')])
gjc@3731
   532
    ## packet.h: ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function]
gjc@3731
   533
    cls.add_method('BeginItem', 
gjc@3731
   534
                   'ns3::PacketMetadata::ItemIterator', 
gjc@3731
   535
                   [], 
gjc@3731
   536
                   is_const=True)
gjc@3731
   537
    ## packet.h: ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function]
gjc@3731
   538
    cls.add_method('Copy', 
gjc@3731
   539
                   'ns3::Ptr< ns3::Packet >', 
gjc@3731
   540
                   [], 
gjc@3731
   541
                   is_const=True)
craigdo@3773
   542
    ## packet.h: uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function]
craigdo@3773
   543
    cls.add_method('CopyData', 
craigdo@3773
   544
                   'uint32_t', 
craigdo@3773
   545
                   [param('uint8_t *', 'buffer'), param('uint32_t', 'size')], 
craigdo@3773
   546
                   is_const=True)
gjc@3731
   547
    ## packet.h: ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
gjc@3731
   548
    cls.add_method('CreateFragment', 
gjc@3731
   549
                   'ns3::Ptr< ns3::Packet >', 
gjc@3731
   550
                   [param('uint32_t', 'start'), param('uint32_t', 'length')], 
gjc@3731
   551
                   is_const=True)
gjc@3731
   552
    ## packet.h: void ns3::Packet::Deserialize(ns3::Buffer buffer) [member function]
gjc@3731
   553
    cls.add_method('Deserialize', 
gjc@3731
   554
                   'void', 
gjc@3731
   555
                   [param('ns3::Buffer', 'buffer')])
gjc@3731
   556
    ## packet.h: static void ns3::Packet::EnableChecking() [member function]
gjc@3731
   557
    cls.add_method('EnableChecking', 
gjc@3731
   558
                   'void', 
gjc@3731
   559
                   [], 
gjc@3731
   560
                   is_static=True)
gjc@3731
   561
    ## packet.h: static void ns3::Packet::EnablePrinting() [member function]
gjc@3731
   562
    cls.add_method('EnablePrinting', 
gjc@3731
   563
                   'void', 
gjc@3731
   564
                   [], 
gjc@3731
   565
                   is_static=True)
mathieu@4502
   566
    ## packet.h: bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function]
mathieu@4502
   567
    cls.add_method('FindFirstMatchingByteTag', 
gjc@3731
   568
                   'bool', 
gjc@3731
   569
                   [param('ns3::Tag &', 'tag')], 
gjc@3731
   570
                   is_const=True)
mathieu@4502
   571
    ## packet.h: ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function]
mathieu@4502
   572
    cls.add_method('GetByteTagIterator', 
mathieu@4502
   573
                   'ns3::ByteTagIterator', 
mathieu@4502
   574
                   [], 
mathieu@4502
   575
                   is_const=True)
mathieu@4502
   576
    ## packet.h: ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
mathieu@4502
   577
    cls.add_method('GetPacketTagIterator', 
mathieu@4502
   578
                   'ns3::PacketTagIterator', 
mathieu@4502
   579
                   [], 
mathieu@4502
   580
                   is_const=True)
gjc@3731
   581
    ## packet.h: uint32_t ns3::Packet::GetSize() const [member function]
gjc@3731
   582
    cls.add_method('GetSize', 
gjc@3731
   583
                   'uint32_t', 
gjc@3731
   584
                   [], 
gjc@3731
   585
                   is_const=True)
gjc@3731
   586
    ## packet.h: uint32_t ns3::Packet::GetUid() const [member function]
gjc@3731
   587
    cls.add_method('GetUid', 
gjc@3731
   588
                   'uint32_t', 
gjc@3731
   589
                   [], 
gjc@3731
   590
                   is_const=True)
gjc@3731
   591
    ## packet.h: uint8_t const * ns3::Packet::PeekData() const [member function]
gjc@3731
   592
    cls.add_method('PeekData', 
gjc@3731
   593
                   'uint8_t const *', 
gjc@3731
   594
                   [], 
gjc@3731
   595
                   is_const=True)
gjc@3743
   596
    ## packet.h: uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function]
gjc@3731
   597
    cls.add_method('PeekHeader', 
gjc@3731
   598
                   'uint32_t', 
gjc@3743
   599
                   [param('ns3::Header &', 'header')], 
gjc@3743
   600
                   is_const=True)
mathieu@4502
   601
    ## packet.h: bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
mathieu@4502
   602
    cls.add_method('PeekPacketTag', 
mathieu@4502
   603
                   'bool', 
mathieu@4502
   604
                   [param('ns3::Tag &', 'tag')], 
mathieu@4502
   605
                   is_const=True)
gjc@3731
   606
    ## packet.h: uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
gjc@3731
   607
    cls.add_method('PeekTrailer', 
gjc@3731
   608
                   'uint32_t', 
gjc@3731
   609
                   [param('ns3::Trailer &', 'trailer')])
gjc@3731
   610
    ## packet.h: void ns3::Packet::Print(std::ostream & os) const [member function]
gjc@3731
   611
    cls.add_method('Print', 
gjc@3731
   612
                   'void', 
gjc@3731
   613
                   [param('std::ostream &', 'os')], 
gjc@3731
   614
                   is_const=True)
mathieu@4502
   615
    ## packet.h: void ns3::Packet::PrintByteTags(std::ostream & os) const [member function]
mathieu@4502
   616
    cls.add_method('PrintByteTags', 
gjc@3731
   617
                   'void', 
gjc@3731
   618
                   [param('std::ostream &', 'os')], 
gjc@3731
   619
                   is_const=True)
mathieu@4502
   620
    ## packet.h: void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function]
mathieu@4502
   621
    cls.add_method('PrintPacketTags', 
mathieu@4502
   622
                   'void', 
mathieu@4502
   623
                   [param('std::ostream &', 'os')], 
mathieu@4502
   624
                   is_const=True)
mathieu@4502
   625
    ## packet.h: void ns3::Packet::RemoveAllByteTags() [member function]
mathieu@4502
   626
    cls.add_method('RemoveAllByteTags', 
mathieu@4502
   627
                   'void', 
mathieu@4502
   628
                   [])
mathieu@4502
   629
    ## packet.h: void ns3::Packet::RemoveAllPacketTags() [member function]
mathieu@4502
   630
    cls.add_method('RemoveAllPacketTags', 
gjc@3731
   631
                   'void', 
gjc@3731
   632
                   [])
gjc@3731
   633
    ## packet.h: void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
gjc@3731
   634
    cls.add_method('RemoveAtEnd', 
gjc@3731
   635
                   'void', 
gjc@3731
   636
                   [param('uint32_t', 'size')])
gjc@3731
   637
    ## packet.h: void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
gjc@3731
   638
    cls.add_method('RemoveAtStart', 
gjc@3731
   639
                   'void', 
gjc@3731
   640
                   [param('uint32_t', 'size')])
gjc@3731
   641
    ## packet.h: uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
gjc@3731
   642
    cls.add_method('RemoveHeader', 
gjc@3731
   643
                   'uint32_t', 
gjc@3731
   644
                   [param('ns3::Header &', 'header')])
mathieu@4502
   645
    ## packet.h: bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
mathieu@4502
   646
    cls.add_method('RemovePacketTag', 
mathieu@4502
   647
                   'bool', 
mathieu@4502
   648
                   [param('ns3::Tag &', 'tag')])
gjc@3731
   649
    ## packet.h: uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
gjc@3731
   650
    cls.add_method('RemoveTrailer', 
gjc@3731
   651
                   'uint32_t', 
gjc@3731
   652
                   [param('ns3::Trailer &', 'trailer')])
gjc@3731
   653
    ## packet.h: ns3::Buffer ns3::Packet::Serialize() const [member function]
gjc@3731
   654
    cls.add_method('Serialize', 
gjc@3731
   655
                   'ns3::Buffer', 
gjc@3731
   656
                   [], 
gjc@3731
   657
                   is_const=True)
gjc@3408
   658
    return
gjc@3408
   659
gjc@3755
   660
def register_Ns3PacketMetadata_methods(root_module, cls):
gjc@3755
   661
    ## packet-metadata.h: static void ns3::PacketMetadata::Enable() [member function]
gjc@3755
   662
    cls.add_method('Enable', 
gjc@3755
   663
                   'void', 
gjc@3755
   664
                   [], 
gjc@3755
   665
                   is_static=True)
gjc@3755
   666
    ## packet-metadata.h: static void ns3::PacketMetadata::EnableChecking() [member function]
gjc@3755
   667
    cls.add_method('EnableChecking', 
gjc@3755
   668
                   'void', 
gjc@3755
   669
                   [], 
gjc@3755
   670
                   is_static=True)
gjc@3755
   671
    ## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(uint32_t uid, uint32_t size) [constructor]
gjc@3755
   672
    cls.add_constructor([param('uint32_t', 'uid'), param('uint32_t', 'size')])
gjc@3755
   673
    ## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
gjc@3755
   674
    cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
gjc@3755
   675
    ## packet-metadata.h: void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
gjc@3755
   676
    cls.add_method('AddHeader', 
gjc@3755
   677
                   'void', 
gjc@3755
   678
                   [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
gjc@3755
   679
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
gjc@3755
   680
    cls.add_method('RemoveHeader', 
gjc@3755
   681
                   'void', 
gjc@3755
   682
                   [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
gjc@3755
   683
    ## packet-metadata.h: void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
gjc@3755
   684
    cls.add_method('AddTrailer', 
gjc@3755
   685
                   'void', 
gjc@3755
   686
                   [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
gjc@3755
   687
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
gjc@3755
   688
    cls.add_method('RemoveTrailer', 
gjc@3755
   689
                   'void', 
gjc@3755
   690
                   [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
gjc@3755
   691
    ## packet-metadata.h: ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
gjc@3755
   692
    cls.add_method('CreateFragment', 
gjc@3755
   693
                   'ns3::PacketMetadata', 
gjc@3755
   694
                   [param('uint32_t', 'start'), param('uint32_t', 'end')], 
gjc@3755
   695
                   is_const=True)
gjc@3755
   696
    ## packet-metadata.h: void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
gjc@3755
   697
    cls.add_method('AddAtEnd', 
gjc@3755
   698
                   'void', 
gjc@3755
   699
                   [param('ns3::PacketMetadata const &', 'o')])
gjc@3755
   700
    ## packet-metadata.h: void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
gjc@3755
   701
    cls.add_method('AddPaddingAtEnd', 
gjc@3755
   702
                   'void', 
gjc@3755
   703
                   [param('uint32_t', 'end')])
gjc@3755
   704
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
gjc@3755
   705
    cls.add_method('RemoveAtStart', 
gjc@3755
   706
                   'void', 
gjc@3755
   707
                   [param('uint32_t', 'start')])
gjc@3755
   708
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
gjc@3755
   709
    cls.add_method('RemoveAtEnd', 
gjc@3755
   710
                   'void', 
gjc@3755
   711
                   [param('uint32_t', 'end')])
gjc@3755
   712
    ## packet-metadata.h: uint32_t ns3::PacketMetadata::GetUid() const [member function]
gjc@3755
   713
    cls.add_method('GetUid', 
gjc@3755
   714
                   'uint32_t', 
gjc@3755
   715
                   [], 
gjc@3755
   716
                   is_const=True)
gjc@3755
   717
    ## packet-metadata.h: uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
gjc@3755
   718
    cls.add_method('GetSerializedSize', 
gjc@3755
   719
                   'uint32_t', 
gjc@3755
   720
                   [], 
gjc@3755
   721
                   is_const=True)
gjc@3755
   722
    ## packet-metadata.h: void ns3::PacketMetadata::Serialize(ns3::Buffer::Iterator i, uint32_t size) const [member function]
gjc@3755
   723
    cls.add_method('Serialize', 
gjc@3755
   724
                   'void', 
gjc@3755
   725
                   [param('ns3::Buffer::Iterator', 'i'), param('uint32_t', 'size')], 
gjc@3755
   726
                   is_const=True)
gjc@3755
   727
    ## packet-metadata.h: uint32_t ns3::PacketMetadata::Deserialize(ns3::Buffer::Iterator i) [member function]
gjc@3755
   728
    cls.add_method('Deserialize', 
gjc@3755
   729
                   'uint32_t', 
gjc@3755
   730
                   [param('ns3::Buffer::Iterator', 'i')])
gjc@3755
   731
    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
gjc@3755
   732
    cls.add_method('BeginItem', 
gjc@3755
   733
                   'ns3::PacketMetadata::ItemIterator', 
gjc@3755
   734
                   [param('ns3::Buffer', 'buffer')], 
gjc@3755
   735
                   is_const=True)
gjc@3755
   736
    return
gjc@3755
   737
gjc@3755
   738
def register_Ns3PacketMetadataItem_methods(root_module, cls):
gjc@3755
   739
    ## packet-metadata.h: ns3::PacketMetadata::Item::isFragment [variable]
gjc@3755
   740
    cls.add_instance_attribute('isFragment', 'bool', is_const=False)
gjc@3755
   741
    ## packet-metadata.h: ns3::PacketMetadata::Item::tid [variable]
gjc@3755
   742
    cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
gjc@3755
   743
    ## packet-metadata.h: ns3::PacketMetadata::Item::currentSize [variable]
gjc@3755
   744
    cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
gjc@3755
   745
    ## packet-metadata.h: ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
gjc@3755
   746
    cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
gjc@3755
   747
    ## packet-metadata.h: ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
gjc@3755
   748
    cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
gjc@3755
   749
    ## packet-metadata.h: ns3::PacketMetadata::Item::current [variable]
gjc@3755
   750
    cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
mathieu@4241
   751
    ## packet-metadata.h: ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
mathieu@4241
   752
    cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
mathieu@4241
   753
    ## packet-metadata.h: ns3::PacketMetadata::Item::Item() [constructor]
gjc@3755
   754
    cls.add_constructor([])
gjc@3755
   755
    return
gjc@3755
   756
gjc@3755
   757
def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
mathieu@4241
   758
    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
mathieu@4241
   759
    cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
gjc@3755
   760
    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
gjc@3755
   761
    cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
gjc@3755
   762
    ## packet-metadata.h: bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
gjc@3755
   763
    cls.add_method('HasNext', 
gjc@3755
   764
                   'bool', 
gjc@3755
   765
                   [], 
gjc@3755
   766
                   is_const=True)
gjc@3755
   767
    ## packet-metadata.h: ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
gjc@3755
   768
    cls.add_method('Next', 
gjc@3755
   769
                   'ns3::PacketMetadata::Item', 
gjc@3755
   770
                   [])
gjc@3755
   771
    return
gjc@3755
   772
mathieu@4502
   773
def register_Ns3PacketTagIterator_methods(root_module, cls):
mathieu@4502
   774
    ## packet.h: ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
mathieu@4502
   775
    cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
mathieu@4502
   776
    ## packet.h: bool ns3::PacketTagIterator::HasNext() const [member function]
mathieu@4502
   777
    cls.add_method('HasNext', 
mathieu@4502
   778
                   'bool', 
mathieu@4502
   779
                   [], 
mathieu@4502
   780
                   is_const=True)
mathieu@4502
   781
    ## packet.h: ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
mathieu@4502
   782
    cls.add_method('Next', 
mathieu@4502
   783
                   'ns3::PacketTagIterator::Item', 
mathieu@4502
   784
                   [])
mathieu@4502
   785
    return
mathieu@4502
   786
mathieu@4502
   787
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
mathieu@4502
   788
    ## packet.h: ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
mathieu@4502
   789
    cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
mathieu@4502
   790
    ## packet.h: ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
mathieu@4502
   791
    cls.add_method('GetTypeId', 
mathieu@4502
   792
                   'ns3::TypeId', 
mathieu@4502
   793
                   [], 
mathieu@4502
   794
                   is_const=True)
mathieu@4502
   795
    ## packet.h: void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
mathieu@4502
   796
    cls.add_method('GetTag', 
mathieu@4502
   797
                   'void', 
mathieu@4502
   798
                   [param('ns3::Tag &', 'tag')], 
mathieu@4502
   799
                   is_const=True)
mathieu@4502
   800
    return
mathieu@4502
   801
mathieu@4502
   802
def register_Ns3PacketTagList_methods(root_module, cls):
mathieu@4502
   803
    ## packet-tag-list.h: ns3::PacketTagList::PacketTagList() [constructor]
mathieu@4502
   804
    cls.add_constructor([])
mathieu@4502
   805
    ## packet-tag-list.h: ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
mathieu@4502
   806
    cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
mathieu@4502
   807
    ## packet-tag-list.h: void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
mathieu@4502
   808
    cls.add_method('Add', 
mathieu@4502
   809
                   'void', 
mathieu@4502
   810
                   [param('ns3::Tag const &', 'tag')], 
mathieu@4502
   811
                   is_const=True)
mathieu@4502
   812
    ## packet-tag-list.h: bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
mathieu@4502
   813
    cls.add_method('Remove', 
mathieu@4502
   814
                   'bool', 
mathieu@4502
   815
                   [param('ns3::Tag &', 'tag')])
mathieu@4502
   816
    ## packet-tag-list.h: bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
mathieu@4502
   817
    cls.add_method('Peek', 
mathieu@4502
   818
                   'bool', 
mathieu@4502
   819
                   [param('ns3::Tag &', 'tag')], 
mathieu@4502
   820
                   is_const=True)
mathieu@4502
   821
    ## packet-tag-list.h: void ns3::PacketTagList::RemoveAll() [member function]
mathieu@4502
   822
    cls.add_method('RemoveAll', 
mathieu@4502
   823
                   'void', 
mathieu@4502
   824
                   [])
mathieu@4502
   825
    ## packet-tag-list.h: ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
mathieu@4502
   826
    cls.add_method('Head', 
mathieu@4502
   827
                   'ns3::PacketTagList::TagData const *', 
mathieu@4502
   828
                   [], 
mathieu@4502
   829
                   is_const=True)
mathieu@4502
   830
    return
mathieu@4502
   831
mathieu@4502
   832
def register_Ns3PacketTagListTagData_methods(root_module, cls):
mathieu@4502
   833
    ## packet-tag-list.h: ns3::PacketTagList::TagData::data [variable]
mathieu@4502
   834
    cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
mathieu@4502
   835
    ## packet-tag-list.h: ns3::PacketTagList::TagData::next [variable]
mathieu@4502
   836
    cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
mathieu@4502
   837
    ## packet-tag-list.h: ns3::PacketTagList::TagData::tid [variable]
mathieu@4502
   838
    cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
mathieu@4502
   839
    ## packet-tag-list.h: ns3::PacketTagList::TagData::count [variable]
mathieu@4502
   840
    cls.add_instance_attribute('count', 'uint32_t', is_const=False)
mathieu@4502
   841
    ## packet-tag-list.h: ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
mathieu@4502
   842
    cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
mathieu@4502
   843
    ## packet-tag-list.h: ns3::PacketTagList::TagData::TagData() [constructor]
mathieu@4502
   844
    cls.add_constructor([])
mathieu@4502
   845
    return
mathieu@4502
   846
gjc@3408
   847
def register_Ns3Tag_methods(root_module, cls):
mathieu@4241
   848
    ## tag.h: ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
mathieu@4241
   849
    cls.add_constructor([param('ns3::Tag const &', 'arg0')])
mathieu@4241
   850
    ## tag.h: ns3::Tag::Tag() [constructor]
mathieu@4241
   851
    cls.add_constructor([])
gjc@3408
   852
    ## tag.h: static ns3::TypeId ns3::Tag::GetTypeId() [member function]
gjc@3468
   853
    cls.add_method('GetTypeId', 
gjc@3468
   854
                   'ns3::TypeId', 
gjc@3468
   855
                   [], 
gjc@3468
   856
                   is_static=True)
gjc@3408
   857
    ## tag.h: uint32_t ns3::Tag::GetSerializedSize() const [member function]
gjc@3468
   858
    cls.add_method('GetSerializedSize', 
gjc@3468
   859
                   'uint32_t', 
gjc@3468
   860
                   [], 
gjc@3468
   861
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   862
    ## tag.h: void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
gjc@3468
   863
    cls.add_method('Serialize', 
gjc@3468
   864
                   'void', 
gjc@3468
   865
                   [param('ns3::TagBuffer', 'i')], 
gjc@3468
   866
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   867
    ## tag.h: void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
gjc@3468
   868
    cls.add_method('Deserialize', 
gjc@3468
   869
                   'void', 
gjc@3468
   870
                   [param('ns3::TagBuffer', 'i')], 
gjc@3468
   871
                   is_pure_virtual=True, is_virtual=True)
gjc@3408
   872
    ## tag.h: void ns3::Tag::Print(std::ostream & os) const [member function]
gjc@3468
   873
    cls.add_method('Print', 
gjc@3468
   874
                   'void', 
gjc@3574
   875
                   [param('std::ostream &', 'os')], 
gjc@3468
   876
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   877
    return
gjc@3408
   878
gjc@3731
   879
def register_Ns3TagBuffer_methods(root_module, cls):
mathieu@4241
   880
    ## tag-buffer.h: ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
mathieu@4241
   881
    cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
gjc@3731
   882
    ## tag-buffer.h: ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
gjc@3731
   883
    cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
gjc@3731
   884
    ## tag-buffer.h: void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
gjc@3731
   885
    cls.add_method('TrimAtEnd', 
gjc@3731
   886
                   'void', 
gjc@3731
   887
                   [param('uint32_t', 'trim')])
gjc@3731
   888
    ## tag-buffer.h: void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
gjc@3731
   889
    cls.add_method('CopyFrom', 
gjc@3731
   890
                   'void', 
gjc@3731
   891
                   [param('ns3::TagBuffer', 'o')])
gjc@3731
   892
    ## tag-buffer.h: void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
gjc@3731
   893
    cls.add_method('WriteU8', 
gjc@3731
   894
                   'void', 
gjc@3731
   895
                   [param('uint8_t', 'v')])
gjc@3731
   896
    ## tag-buffer.h: void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
gjc@3731
   897
    cls.add_method('WriteU16', 
gjc@3731
   898
                   'void', 
gjc@3731
   899
                   [param('uint16_t', 'data')])
gjc@3731
   900
    ## tag-buffer.h: void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
gjc@3731
   901
    cls.add_method('WriteU32', 
gjc@3731
   902
                   'void', 
gjc@3731
   903
                   [param('uint32_t', 'data')])
gjc@3731
   904
    ## tag-buffer.h: void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
gjc@3731
   905
    cls.add_method('WriteU64', 
gjc@3731
   906
                   'void', 
gjc@3731
   907
                   [param('uint64_t', 'v')])
gjc@3731
   908
    ## tag-buffer.h: void ns3::TagBuffer::WriteDouble(double v) [member function]
gjc@3731
   909
    cls.add_method('WriteDouble', 
gjc@3731
   910
                   'void', 
gjc@3731
   911
                   [param('double', 'v')])
gjc@3731
   912
    ## tag-buffer.h: void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
gjc@3731
   913
    cls.add_method('Write', 
gjc@3731
   914
                   'void', 
gjc@3731
   915
                   [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
gjc@3731
   916
    ## tag-buffer.h: uint8_t ns3::TagBuffer::ReadU8() [member function]
gjc@3731
   917
    cls.add_method('ReadU8', 
gjc@3731
   918
                   'uint8_t', 
gjc@3731
   919
                   [])
gjc@3731
   920
    ## tag-buffer.h: uint16_t ns3::TagBuffer::ReadU16() [member function]
gjc@3731
   921
    cls.add_method('ReadU16', 
gjc@3731
   922
                   'uint16_t', 
gjc@3731
   923
                   [])
gjc@3731
   924
    ## tag-buffer.h: uint32_t ns3::TagBuffer::ReadU32() [member function]
gjc@3731
   925
    cls.add_method('ReadU32', 
gjc@3731
   926
                   'uint32_t', 
gjc@3731
   927
                   [])
gjc@3731
   928
    ## tag-buffer.h: uint64_t ns3::TagBuffer::ReadU64() [member function]
gjc@3731
   929
    cls.add_method('ReadU64', 
gjc@3731
   930
                   'uint64_t', 
gjc@3731
   931
                   [])
gjc@3731
   932
    ## tag-buffer.h: double ns3::TagBuffer::ReadDouble() [member function]
gjc@3731
   933
    cls.add_method('ReadDouble', 
gjc@3731
   934
                   'double', 
gjc@3731
   935
                   [])
gjc@3731
   936
    ## tag-buffer.h: void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
gjc@3731
   937
    cls.add_method('Read', 
gjc@3731
   938
                   'void', 
gjc@3731
   939
                   [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
gjc@3731
   940
    return
gjc@3731
   941
gjc@3731
   942
def register_Ns3Chunk_methods(root_module, cls):
mathieu@4241
   943
    ## chunk.h: ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
mathieu@4241
   944
    cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
raj@4218
   945
    ## chunk.h: ns3::Chunk::Chunk() [constructor]
raj@4218
   946
    cls.add_constructor([])
gjc@3731
   947
    ## chunk.h: static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
gjc@3731
   948
    cls.add_method('GetTypeId', 
gjc@3731
   949
                   'ns3::TypeId', 
gjc@3731
   950
                   [], 
gjc@3731
   951
                   is_static=True)
gjc@3731
   952
    ## chunk.h: uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3731
   953
    cls.add_method('Deserialize', 
gjc@3731
   954
                   'uint32_t', 
gjc@3731
   955
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
   956
                   is_pure_virtual=True, is_virtual=True)
gjc@3731
   957
    ## chunk.h: void ns3::Chunk::Print(std::ostream & os) const [member function]
gjc@3731
   958
    cls.add_method('Print', 
gjc@3731
   959
                   'void', 
gjc@3731
   960
                   [param('std::ostream &', 'os')], 
gjc@3731
   961
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
   962
    return
gjc@3731
   963
gjc@3731
   964
def register_Ns3DataRateChecker_methods(root_module, cls):
mathieu@4241
   965
    ## data-rate.h: ns3::DataRateChecker::DataRateChecker(ns3::DataRateChecker const & arg0) [copy constructor]
mathieu@4241
   966
    cls.add_constructor([param('ns3::DataRateChecker const &', 'arg0')])
mathieu@4241
   967
    ## data-rate.h: ns3::DataRateChecker::DataRateChecker() [constructor]
gjc@3731
   968
    cls.add_constructor([])
gjc@3731
   969
    return
gjc@3731
   970
gjc@3731
   971
def register_Ns3DataRateValue_methods(root_module, cls):
mathieu@4241
   972
    ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor]
mathieu@4241
   973
    cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')])
gjc@3731
   974
    ## data-rate.h: ns3::DataRateValue::DataRateValue() [constructor]
gjc@3731
   975
    cls.add_constructor([])
gjc@3731
   976
    ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor]
gjc@3731
   977
    cls.add_constructor([param('ns3::DataRate const &', 'value')])
gjc@3731
   978
    ## data-rate.h: void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function]
gjc@3731
   979
    cls.add_method('Set', 
gjc@3731
   980
                   'void', 
gjc@3731
   981
                   [param('ns3::DataRate const &', 'value')])
gjc@3731
   982
    ## data-rate.h: ns3::DataRate ns3::DataRateValue::Get() const [member function]
gjc@3731
   983
    cls.add_method('Get', 
gjc@3731
   984
                   'ns3::DataRate', 
gjc@3731
   985
                   [], 
gjc@3731
   986
                   is_const=True)
gjc@3731
   987
    ## data-rate.h: ns3::Ptr<ns3::AttributeValue> ns3::DataRateValue::Copy() const [member function]
gjc@3731
   988
    cls.add_method('Copy', 
gjc@3731
   989
                   'ns3::Ptr< ns3::AttributeValue >', 
gjc@3731
   990
                   [], 
gjc@3731
   991
                   is_const=True, is_virtual=True)
gjc@3731
   992
    ## data-rate.h: std::string ns3::DataRateValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
gjc@3731
   993
    cls.add_method('SerializeToString', 
gjc@3731
   994
                   'std::string', 
gjc@3731
   995
                   [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], 
gjc@3731
   996
                   is_const=True, is_virtual=True)
gjc@3731
   997
    ## data-rate.h: bool ns3::DataRateValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
gjc@3731
   998
    cls.add_method('DeserializeFromString', 
gjc@3731
   999
                   'bool', 
gjc@3731
  1000
                   [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], 
gjc@3731
  1001
                   is_virtual=True)
gjc@3731
  1002
    return
gjc@3731
  1003
gjc@3731
  1004
def register_Ns3Header_methods(root_module, cls):
gjc@3731
  1005
    cls.add_output_stream_operator()
gjc@3731
  1006
    ## header.h: ns3::Header::Header() [constructor]
gjc@3731
  1007
    cls.add_constructor([])
gjc@3731
  1008
    ## header.h: ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
gjc@3731
  1009
    cls.add_constructor([param('ns3::Header const &', 'arg0')])
gjc@3731
  1010
    ## header.h: uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3731
  1011
    cls.add_method('Deserialize', 
gjc@3731
  1012
                   'uint32_t', 
gjc@3731
  1013
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
  1014
                   is_pure_virtual=True, is_virtual=True)
gjc@3731
  1015
    ## header.h: uint32_t ns3::Header::GetSerializedSize() const [member function]
gjc@3731
  1016
    cls.add_method('GetSerializedSize', 
gjc@3731
  1017
                   'uint32_t', 
gjc@3731
  1018
                   [], 
gjc@3731
  1019
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
  1020
    ## header.h: static ns3::TypeId ns3::Header::GetTypeId() [member function]
gjc@3731
  1021
    cls.add_method('GetTypeId', 
gjc@3731
  1022
                   'ns3::TypeId', 
gjc@3731
  1023
                   [], 
gjc@3731
  1024
                   is_static=True)
gjc@3731
  1025
    ## header.h: void ns3::Header::Print(std::ostream & os) const [member function]
gjc@3731
  1026
    cls.add_method('Print', 
gjc@3731
  1027
                   'void', 
gjc@3731
  1028
                   [param('std::ostream &', 'os')], 
gjc@3731
  1029
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
  1030
    ## header.h: void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3731
  1031
    cls.add_method('Serialize', 
gjc@3731
  1032
                   'void', 
gjc@3731
  1033
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
  1034
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
  1035
    return
gjc@3731
  1036
gjc@3408
  1037
def register_Ns3PcapWriter_methods(root_module, cls):
mathieu@4241
  1038
    ## pcap-writer.h: ns3::PcapWriter::PcapWriter(ns3::PcapWriter const & arg0) [copy constructor]
mathieu@4241
  1039
    cls.add_constructor([param('ns3::PcapWriter const &', 'arg0')])
gjc@3408
  1040
    ## pcap-writer.h: ns3::PcapWriter::PcapWriter() [constructor]
gjc@3468
  1041
    cls.add_constructor([])
gjc@3408
  1042
    ## pcap-writer.h: void ns3::PcapWriter::Open(std::string const & name) [member function]
gjc@3468
  1043
    cls.add_method('Open', 
gjc@3468
  1044
                   'void', 
gjc@3574
  1045
                   [param('std::string const &', 'name')])
gjc@3408
  1046
    ## pcap-writer.h: void ns3::PcapWriter::WriteEthernetHeader() [member function]
gjc@3468
  1047
    cls.add_method('WriteEthernetHeader', 
gjc@3468
  1048
                   'void', 
gjc@3468
  1049
                   [])
gjc@3408
  1050
    ## pcap-writer.h: void ns3::PcapWriter::WriteIpHeader() [member function]
gjc@3468
  1051
    cls.add_method('WriteIpHeader', 
gjc@3468
  1052
                   'void', 
gjc@3468
  1053
                   [])
gjc@3408
  1054
    ## pcap-writer.h: void ns3::PcapWriter::WriteWifiHeader() [member function]
gjc@3468
  1055
    cls.add_method('WriteWifiHeader', 
gjc@3468
  1056
                   'void', 
gjc@3468
  1057
                   [])
gjc@3408
  1058
    ## pcap-writer.h: void ns3::PcapWriter::WritePppHeader() [member function]
gjc@3468
  1059
    cls.add_method('WritePppHeader', 
gjc@3468
  1060
                   'void', 
gjc@3468
  1061
                   [])
mathieu@4407
  1062
    ## pcap-writer.h: void ns3::PcapWriter::WritePacket(ns3::Ptr<ns3::Packet const> packet) [member function]
gjc@3468
  1063
    cls.add_method('WritePacket', 
gjc@3468
  1064
                   'void', 
gjc@3731
  1065
                   [param('ns3::Ptr< ns3::Packet const >', 'packet')])
gjc@3408
  1066
    return
gjc@3408
  1067
gjc@3731
  1068
def register_Ns3Trailer_methods(root_module, cls):
gjc@3731
  1069
    cls.add_output_stream_operator()
gjc@3731
  1070
    ## trailer.h: ns3::Trailer::Trailer() [constructor]
gjc@3408
  1071
    cls.add_constructor([])
gjc@3731
  1072
    ## trailer.h: ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
gjc@3731
  1073
    cls.add_constructor([param('ns3::Trailer const &', 'arg0')])
gjc@3731
  1074
    ## trailer.h: uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
gjc@3731
  1075
    cls.add_method('Deserialize', 
gjc@3731
  1076
                   'uint32_t', 
gjc@3731
  1077
                   [param('ns3::Buffer::Iterator', 'end')], 
gjc@3731
  1078
                   is_pure_virtual=True, is_virtual=True)
gjc@3731
  1079
    ## trailer.h: uint32_t ns3::Trailer::GetSerializedSize() const [member function]
gjc@3731
  1080
    cls.add_method('GetSerializedSize', 
gjc@3731
  1081
                   'uint32_t', 
gjc@3731
  1082
                   [], 
gjc@3731
  1083
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
  1084
    ## trailer.h: static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
gjc@3731
  1085
    cls.add_method('GetTypeId', 
gjc@3731
  1086
                   'ns3::TypeId', 
gjc@3731
  1087
                   [], 
gjc@3731
  1088
                   is_static=True)
gjc@3731
  1089
    ## trailer.h: void ns3::Trailer::Print(std::ostream & os) const [member function]
gjc@3731
  1090
    cls.add_method('Print', 
gjc@3731
  1091
                   'void', 
gjc@3731
  1092
                   [param('std::ostream &', 'os')], 
gjc@3731
  1093
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
  1094
    ## trailer.h: void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3731
  1095
    cls.add_method('Serialize', 
gjc@3731
  1096
                   'void', 
gjc@3731
  1097
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
  1098
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
  1099
    return
gjc@3408
  1100
gjc@3408
  1101
def register_Ns3ErrorModel_methods(root_module, cls):
mathieu@4241
  1102
    ## error-model.h: ns3::ErrorModel::ErrorModel(ns3::ErrorModel const & arg0) [copy constructor]
mathieu@4241
  1103
    cls.add_constructor([param('ns3::ErrorModel const &', 'arg0')])
gjc@3408
  1104
    ## error-model.h: static ns3::TypeId ns3::ErrorModel::GetTypeId() [member function]
gjc@3468
  1105
    cls.add_method('GetTypeId', 
gjc@3468
  1106
                   'ns3::TypeId', 
gjc@3468
  1107
                   [], 
gjc@3468
  1108
                   is_static=True)
gjc@3408
  1109
    ## error-model.h: ns3::ErrorModel::ErrorModel() [constructor]
gjc@3468
  1110
    cls.add_constructor([])
gjc@3408
  1111
    ## error-model.h: bool ns3::ErrorModel::IsCorrupt(ns3::Ptr<ns3::Packet> pkt) [member function]
gjc@3468
  1112
    cls.add_method('IsCorrupt', 
gjc@3468
  1113
                   'bool', 
gjc@3468
  1114
                   [param('ns3::Ptr< ns3::Packet >', 'pkt')])
gjc@3408
  1115
    ## error-model.h: void ns3::ErrorModel::Reset() [member function]
gjc@3468
  1116
    cls.add_method('Reset', 
gjc@3468
  1117
                   'void', 
gjc@3468
  1118
                   [])
gjc@3408
  1119
    ## error-model.h: void ns3::ErrorModel::Enable() [member function]
gjc@3468
  1120
    cls.add_method('Enable', 
gjc@3468
  1121
                   'void', 
gjc@3468
  1122
                   [])
gjc@3408
  1123
    ## error-model.h: void ns3::ErrorModel::Disable() [member function]
gjc@3468
  1124
    cls.add_method('Disable', 
gjc@3468
  1125
                   'void', 
gjc@3468
  1126
                   [])
gjc@3408
  1127
    ## error-model.h: bool ns3::ErrorModel::IsEnabled() const [member function]
gjc@3468
  1128
    cls.add_method('IsEnabled', 
gjc@3468
  1129
                   'bool', 
gjc@3468
  1130
                   [], 
gjc@3468
  1131
                   is_const=True)
gjc@3408
  1132
    ## error-model.h: bool ns3::ErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> arg0) [member function]
gjc@3468
  1133
    cls.add_method('DoCorrupt', 
gjc@3468
  1134
                   'bool', 
gjc@3468
  1135
                   [param('ns3::Ptr< ns3::Packet >', 'arg0')], 
gjc@3468
  1136
                   is_pure_virtual=True, visibility='private', is_virtual=True)
gjc@3408
  1137
    ## error-model.h: void ns3::ErrorModel::DoReset() [member function]
gjc@3468
  1138
    cls.add_method('DoReset', 
gjc@3468
  1139
                   'void', 
gjc@3468
  1140
                   [], 
gjc@3468
  1141
                   is_pure_virtual=True, visibility='private', is_virtual=True)
gjc@3408
  1142
    return
gjc@3408
  1143
gjc@3408
  1144
def register_Ns3ListErrorModel_methods(root_module, cls):
mathieu@4241
  1145
    ## error-model.h: ns3::ListErrorModel::ListErrorModel(ns3::ListErrorModel const & arg0) [copy constructor]
mathieu@4241
  1146
    cls.add_constructor([param('ns3::ListErrorModel const &', 'arg0')])
gjc@3408
  1147
    ## error-model.h: static ns3::TypeId ns3::ListErrorModel::GetTypeId() [member function]
gjc@3468
  1148
    cls.add_method('GetTypeId', 
gjc@3468
  1149
                   'ns3::TypeId', 
gjc@3468
  1150
                   [], 
gjc@3468
  1151
                   is_static=True)
gjc@3408
  1152
    ## error-model.h: ns3::ListErrorModel::ListErrorModel() [constructor]
gjc@3468
  1153
    cls.add_constructor([])
gjc@3408
  1154
    ## error-model.h: std::list<unsigned int, std::allocator<unsigned int> > ns3::ListErrorModel::GetList() const [member function]
gjc@3468
  1155
    cls.add_method('GetList', 
gjc@3567
  1156
                   'std::list< unsigned int >', 
gjc@3468
  1157
                   [], 
gjc@3468
  1158
                   is_const=True)
gjc@3408
  1159
    ## error-model.h: void ns3::ListErrorModel::SetList(std::list<unsigned int, std::allocator<unsigned int> > const & packetlist) [member function]
gjc@3468
  1160
    cls.add_method('SetList', 
gjc@3468
  1161
                   'void', 
gjc@3731
  1162
                   [param('std::list< unsigned int > const &', 'packetlist')])
gjc@3408
  1163
    ## error-model.h: bool ns3::ListErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1164
    cls.add_method('DoCorrupt', 
gjc@3468
  1165
                   'bool', 
gjc@3468
  1166
                   [param('ns3::Ptr< ns3::Packet >', 'p')], 
gjc@3468
  1167
                   visibility='private', is_virtual=True)
gjc@3408
  1168
    ## error-model.h: void ns3::ListErrorModel::DoReset() [member function]
gjc@3468
  1169
    cls.add_method('DoReset', 
gjc@3468
  1170
                   'void', 
gjc@3468
  1171
                   [], 
gjc@3468
  1172
                   visibility='private', is_virtual=True)
gjc@3408
  1173
    return
gjc@3408
  1174
gjc@3408
  1175
def register_Ns3RateErrorModel_methods(root_module, cls):
mathieu@4241
  1176
    ## error-model.h: ns3::RateErrorModel::RateErrorModel(ns3::RateErrorModel const & arg0) [copy constructor]
mathieu@4241
  1177
    cls.add_constructor([param('ns3::RateErrorModel const &', 'arg0')])
gjc@3408
  1178
    ## error-model.h: static ns3::TypeId ns3::RateErrorModel::GetTypeId() [member function]
gjc@3468
  1179
    cls.add_method('GetTypeId', 
gjc@3468
  1180
                   'ns3::TypeId', 
gjc@3468
  1181
                   [], 
gjc@3468
  1182
                   is_static=True)
gjc@3408
  1183
    ## error-model.h: ns3::RateErrorModel::RateErrorModel() [constructor]
gjc@3468
  1184
    cls.add_constructor([])
gjc@3408
  1185
    ## error-model.h: ns3::ErrorUnit ns3::RateErrorModel::GetUnit() const [member function]
gjc@3468
  1186
    cls.add_method('GetUnit', 
gjc@3468
  1187
                   'ns3::ErrorUnit', 
gjc@3468
  1188
                   [], 
gjc@3468
  1189
                   is_const=True)
gjc@3408
  1190
    ## error-model.h: void ns3::RateErrorModel::SetUnit(ns3::ErrorUnit error_unit) [member function]
gjc@3468
  1191
    cls.add_method('SetUnit', 
gjc@3468
  1192
                   'void', 
gjc@3468
  1193
                   [param('ns3::ErrorUnit', 'error_unit')])
gjc@3408
  1194
    ## error-model.h: double ns3::RateErrorModel::GetRate() const [member function]
gjc@3468
  1195
    cls.add_method('GetRate', 
gjc@3468
  1196
                   'double', 
gjc@3468
  1197
                   [], 
gjc@3468
  1198
                   is_const=True)
gjc@3408
  1199
    ## error-model.h: void ns3::RateErrorModel::SetRate(double rate) [member function]
gjc@3468
  1200
    cls.add_method('SetRate', 
gjc@3468
  1201
                   'void', 
gjc@3468
  1202
                   [param('double', 'rate')])
gjc@3408
  1203
    ## error-model.h: void ns3::RateErrorModel::SetRandomVariable(ns3::RandomVariable const & ranvar) [member function]
gjc@3468
  1204
    cls.add_method('SetRandomVariable', 
gjc@3468
  1205
                   'void', 
gjc@3574
  1206
                   [param('ns3::RandomVariable const &', 'ranvar')])
gjc@3408
  1207
    ## error-model.h: bool ns3::RateErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1208
    cls.add_method('DoCorrupt', 
gjc@3468
  1209
                   'bool', 
gjc@3468
  1210
                   [param('ns3::Ptr< ns3::Packet >', 'p')], 
gjc@3468
  1211
                   visibility='private', is_virtual=True)
gjc@3408
  1212
    ## error-model.h: bool ns3::RateErrorModel::DoCorruptPkt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1213
    cls.add_method('DoCorruptPkt', 
gjc@3468
  1214
                   'bool', 
gjc@3468
  1215
                   [param('ns3::Ptr< ns3::Packet >', 'p')], 
gjc@3468
  1216
                   visibility='private', is_virtual=True)
gjc@3408
  1217
    ## error-model.h: bool ns3::RateErrorModel::DoCorruptByte(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1218
    cls.add_method('DoCorruptByte', 
gjc@3468
  1219
                   'bool', 
gjc@3468
  1220
                   [param('ns3::Ptr< ns3::Packet >', 'p')], 
gjc@3468
  1221
                   visibility='private', is_virtual=True)
gjc@3408
  1222
    ## error-model.h: bool ns3::RateErrorModel::DoCorruptBit(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1223
    cls.add_method('DoCorruptBit', 
gjc@3468
  1224
                   'bool', 
gjc@3468
  1225
                   [param('ns3::Ptr< ns3::Packet >', 'p')], 
gjc@3468
  1226
                   visibility='private', is_virtual=True)
gjc@3408
  1227
    ## error-model.h: void ns3::RateErrorModel::DoReset() [member function]
gjc@3468
  1228
    cls.add_method('DoReset', 
gjc@3468
  1229
                   'void', 
gjc@3468
  1230
                   [], 
gjc@3468
  1231
                   visibility='private', is_virtual=True)
gjc@3408
  1232
    return
gjc@3408
  1233
gjc@3408
  1234
def register_functions(root_module):
gjc@3408
  1235
    module = root_module
gjc@3408
  1236
    ## data-rate.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeDataRateChecker() [free function]
gjc@3468
  1237
    module.add_function('MakeDataRateChecker', 
gjc@3468
  1238
                        'ns3::Ptr< ns3::AttributeChecker const >', 
gjc@3468
  1239
                        [])
gjc@3855
  1240
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
gjc@3855
  1241
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
tomh@4474
  1242
    register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
gjc@3408
  1243
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
gjc@3408
  1244
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
gjc@3408
  1245
    return
gjc@3408
  1246
gjc@3855
  1247
def register_functions_ns3_Config(module, root_module):
gjc@3855
  1248
    return
gjc@3855
  1249
gjc@3855
  1250
def register_functions_ns3_TimeStepPrecision(module, root_module):
gjc@3855
  1251
    return
gjc@3855
  1252
tomh@4474
  1253
def register_functions_ns3_addressUtils(module, root_module):
tomh@4474
  1254
    return
tomh@4474
  1255
gjc@3408
  1256
def register_functions_ns3_internal(module, root_module):
gjc@3408
  1257
    return
gjc@3408
  1258
gjc@3408
  1259
def register_functions_ns3_olsr(module, root_module):
gjc@3408
  1260
    return
gjc@3408
  1261