bindings/python/ns3_module_common.py
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sat, 08 Nov 2008 15:00:28 +0000
changeset 3855 7fdcbeea6c4f
parent 3773 dab0c18b39a0
child 3951 561a37800333
permissions -rw-r--r--
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.

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