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