bindings/python/ns3_module_common.py
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 15 Oct 2008 18:32:07 +0100
changeset 3755 c73866625b44
parent 3743 d0cf214d050c
child 3773 dab0c18b39a0
permissions -rw-r--r--
Python: enable wrapping of the packet metadata APIs.
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@3408
    57
    ## Register a nested module for the namespace internal
gjc@3408
    58
    
gjc@3408
    59
    nested_module = module.add_cpp_namespace('internal')
gjc@3408
    60
    register_types_ns3_internal(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@3408
    69
    ## Register a nested module for the namespace Config
gjc@3408
    70
    
gjc@3408
    71
    nested_module = module.add_cpp_namespace('Config')
gjc@3408
    72
    register_types_ns3_Config(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@3408
    81
def register_types_ns3_internal(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@3408
    89
def register_types_ns3_Config(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)
gjc@3731
   408
    ## packet.h: ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
gjc@3731
   409
    cls.add_method('CreateFragment', 
gjc@3731
   410
                   'ns3::Ptr< ns3::Packet >', 
gjc@3731
   411
                   [param('uint32_t', 'start'), param('uint32_t', 'length')], 
gjc@3731
   412
                   is_const=True)
gjc@3731
   413
    ## packet.h: void ns3::Packet::Deserialize(ns3::Buffer buffer) [member function]
gjc@3731
   414
    cls.add_method('Deserialize', 
gjc@3731
   415
                   'void', 
gjc@3731
   416
                   [param('ns3::Buffer', 'buffer')])
gjc@3731
   417
    ## packet.h: static void ns3::Packet::EnableChecking() [member function]
gjc@3731
   418
    cls.add_method('EnableChecking', 
gjc@3731
   419
                   'void', 
gjc@3731
   420
                   [], 
gjc@3731
   421
                   is_static=True)
gjc@3731
   422
    ## packet.h: static void ns3::Packet::EnableMetadata() [member function]
gjc@3731
   423
    cls.add_method('EnableMetadata', 
gjc@3731
   424
                   'void', 
gjc@3731
   425
                   [], 
gjc@3731
   426
                   is_static=True, deprecated=True)
gjc@3731
   427
    ## packet.h: static void ns3::Packet::EnablePrinting() [member function]
gjc@3731
   428
    cls.add_method('EnablePrinting', 
gjc@3731
   429
                   'void', 
gjc@3731
   430
                   [], 
gjc@3731
   431
                   is_static=True)
gjc@3731
   432
    ## packet.h: bool ns3::Packet::FindFirstMatchingTag(ns3::Tag & tag) const [member function]
gjc@3731
   433
    cls.add_method('FindFirstMatchingTag', 
gjc@3731
   434
                   'bool', 
gjc@3731
   435
                   [param('ns3::Tag &', 'tag')], 
gjc@3731
   436
                   is_const=True)
gjc@3731
   437
    ## packet.h: uint32_t ns3::Packet::GetSize() const [member function]
gjc@3731
   438
    cls.add_method('GetSize', 
gjc@3731
   439
                   'uint32_t', 
gjc@3731
   440
                   [], 
gjc@3731
   441
                   is_const=True)
gjc@3731
   442
    ## packet.h: ns3::TagIterator ns3::Packet::GetTagIterator() const [member function]
gjc@3731
   443
    cls.add_method('GetTagIterator', 
gjc@3731
   444
                   'ns3::TagIterator', 
gjc@3731
   445
                   [], 
gjc@3731
   446
                   is_const=True)
gjc@3731
   447
    ## packet.h: uint32_t ns3::Packet::GetUid() const [member function]
gjc@3731
   448
    cls.add_method('GetUid', 
gjc@3731
   449
                   'uint32_t', 
gjc@3731
   450
                   [], 
gjc@3731
   451
                   is_const=True)
gjc@3731
   452
    ## packet.h: uint8_t const * ns3::Packet::PeekData() const [member function]
gjc@3731
   453
    cls.add_method('PeekData', 
gjc@3731
   454
                   'uint8_t const *', 
gjc@3731
   455
                   [], 
gjc@3731
   456
                   is_const=True)
gjc@3743
   457
    ## packet.h: uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function]
gjc@3731
   458
    cls.add_method('PeekHeader', 
gjc@3731
   459
                   'uint32_t', 
gjc@3743
   460
                   [param('ns3::Header &', 'header')], 
gjc@3743
   461
                   is_const=True)
gjc@3731
   462
    ## packet.h: uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
gjc@3731
   463
    cls.add_method('PeekTrailer', 
gjc@3731
   464
                   'uint32_t', 
gjc@3731
   465
                   [param('ns3::Trailer &', 'trailer')])
gjc@3731
   466
    ## packet.h: void ns3::Packet::Print(std::ostream & os) const [member function]
gjc@3731
   467
    cls.add_method('Print', 
gjc@3731
   468
                   'void', 
gjc@3731
   469
                   [param('std::ostream &', 'os')], 
gjc@3731
   470
                   is_const=True)
gjc@3731
   471
    ## packet.h: void ns3::Packet::PrintTags(std::ostream & os) const [member function]
gjc@3731
   472
    cls.add_method('PrintTags', 
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::RemoveAllTags() [member function]
gjc@3731
   477
    cls.add_method('RemoveAllTags', 
gjc@3731
   478
                   'void', 
gjc@3731
   479
                   [])
gjc@3731
   480
    ## packet.h: void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
gjc@3731
   481
    cls.add_method('RemoveAtEnd', 
gjc@3731
   482
                   'void', 
gjc@3731
   483
                   [param('uint32_t', 'size')])
gjc@3731
   484
    ## packet.h: void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
gjc@3731
   485
    cls.add_method('RemoveAtStart', 
gjc@3731
   486
                   'void', 
gjc@3731
   487
                   [param('uint32_t', 'size')])
gjc@3731
   488
    ## packet.h: uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
gjc@3731
   489
    cls.add_method('RemoveHeader', 
gjc@3731
   490
                   'uint32_t', 
gjc@3731
   491
                   [param('ns3::Header &', 'header')])
gjc@3731
   492
    ## packet.h: uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
gjc@3731
   493
    cls.add_method('RemoveTrailer', 
gjc@3731
   494
                   'uint32_t', 
gjc@3731
   495
                   [param('ns3::Trailer &', 'trailer')])
gjc@3731
   496
    ## packet.h: ns3::Buffer ns3::Packet::Serialize() const [member function]
gjc@3731
   497
    cls.add_method('Serialize', 
gjc@3731
   498
                   'ns3::Buffer', 
gjc@3731
   499
                   [], 
gjc@3731
   500
                   is_const=True)
gjc@3408
   501
    return
gjc@3408
   502
gjc@3755
   503
def register_Ns3PacketMetadata_methods(root_module, cls):
gjc@3755
   504
    ## packet-metadata.h: static void ns3::PacketMetadata::Enable() [member function]
gjc@3755
   505
    cls.add_method('Enable', 
gjc@3755
   506
                   'void', 
gjc@3755
   507
                   [], 
gjc@3755
   508
                   is_static=True)
gjc@3755
   509
    ## packet-metadata.h: static void ns3::PacketMetadata::EnableChecking() [member function]
gjc@3755
   510
    cls.add_method('EnableChecking', 
gjc@3755
   511
                   'void', 
gjc@3755
   512
                   [], 
gjc@3755
   513
                   is_static=True)
gjc@3755
   514
    ## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(uint32_t uid, uint32_t size) [constructor]
gjc@3755
   515
    cls.add_constructor([param('uint32_t', 'uid'), param('uint32_t', 'size')])
gjc@3755
   516
    ## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
gjc@3755
   517
    cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
gjc@3755
   518
    ## packet-metadata.h: void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
gjc@3755
   519
    cls.add_method('AddHeader', 
gjc@3755
   520
                   'void', 
gjc@3755
   521
                   [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
gjc@3755
   522
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
gjc@3755
   523
    cls.add_method('RemoveHeader', 
gjc@3755
   524
                   'void', 
gjc@3755
   525
                   [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
gjc@3755
   526
    ## packet-metadata.h: void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
gjc@3755
   527
    cls.add_method('AddTrailer', 
gjc@3755
   528
                   'void', 
gjc@3755
   529
                   [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
gjc@3755
   530
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
gjc@3755
   531
    cls.add_method('RemoveTrailer', 
gjc@3755
   532
                   'void', 
gjc@3755
   533
                   [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
gjc@3755
   534
    ## packet-metadata.h: ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
gjc@3755
   535
    cls.add_method('CreateFragment', 
gjc@3755
   536
                   'ns3::PacketMetadata', 
gjc@3755
   537
                   [param('uint32_t', 'start'), param('uint32_t', 'end')], 
gjc@3755
   538
                   is_const=True)
gjc@3755
   539
    ## packet-metadata.h: void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
gjc@3755
   540
    cls.add_method('AddAtEnd', 
gjc@3755
   541
                   'void', 
gjc@3755
   542
                   [param('ns3::PacketMetadata const &', 'o')])
gjc@3755
   543
    ## packet-metadata.h: void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
gjc@3755
   544
    cls.add_method('AddPaddingAtEnd', 
gjc@3755
   545
                   'void', 
gjc@3755
   546
                   [param('uint32_t', 'end')])
gjc@3755
   547
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
gjc@3755
   548
    cls.add_method('RemoveAtStart', 
gjc@3755
   549
                   'void', 
gjc@3755
   550
                   [param('uint32_t', 'start')])
gjc@3755
   551
    ## packet-metadata.h: void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
gjc@3755
   552
    cls.add_method('RemoveAtEnd', 
gjc@3755
   553
                   'void', 
gjc@3755
   554
                   [param('uint32_t', 'end')])
gjc@3755
   555
    ## packet-metadata.h: uint32_t ns3::PacketMetadata::GetUid() const [member function]
gjc@3755
   556
    cls.add_method('GetUid', 
gjc@3755
   557
                   'uint32_t', 
gjc@3755
   558
                   [], 
gjc@3755
   559
                   is_const=True)
gjc@3755
   560
    ## packet-metadata.h: uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
gjc@3755
   561
    cls.add_method('GetSerializedSize', 
gjc@3755
   562
                   'uint32_t', 
gjc@3755
   563
                   [], 
gjc@3755
   564
                   is_const=True)
gjc@3755
   565
    ## packet-metadata.h: void ns3::PacketMetadata::Serialize(ns3::Buffer::Iterator i, uint32_t size) const [member function]
gjc@3755
   566
    cls.add_method('Serialize', 
gjc@3755
   567
                   'void', 
gjc@3755
   568
                   [param('ns3::Buffer::Iterator', 'i'), param('uint32_t', 'size')], 
gjc@3755
   569
                   is_const=True)
gjc@3755
   570
    ## packet-metadata.h: uint32_t ns3::PacketMetadata::Deserialize(ns3::Buffer::Iterator i) [member function]
gjc@3755
   571
    cls.add_method('Deserialize', 
gjc@3755
   572
                   'uint32_t', 
gjc@3755
   573
                   [param('ns3::Buffer::Iterator', 'i')])
gjc@3755
   574
    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
gjc@3755
   575
    cls.add_method('BeginItem', 
gjc@3755
   576
                   'ns3::PacketMetadata::ItemIterator', 
gjc@3755
   577
                   [param('ns3::Buffer', 'buffer')], 
gjc@3755
   578
                   is_const=True)
gjc@3755
   579
    return
gjc@3755
   580
gjc@3755
   581
def register_Ns3PacketMetadataItem_methods(root_module, cls):
gjc@3755
   582
    ## packet-metadata.h: ns3::PacketMetadata::Item::isFragment [variable]
gjc@3755
   583
    cls.add_instance_attribute('isFragment', 'bool', is_const=False)
gjc@3755
   584
    ## packet-metadata.h: ns3::PacketMetadata::Item::tid [variable]
gjc@3755
   585
    cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
gjc@3755
   586
    ## packet-metadata.h: ns3::PacketMetadata::Item::currentSize [variable]
gjc@3755
   587
    cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
gjc@3755
   588
    ## packet-metadata.h: ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
gjc@3755
   589
    cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
gjc@3755
   590
    ## packet-metadata.h: ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
gjc@3755
   591
    cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
gjc@3755
   592
    ## packet-metadata.h: ns3::PacketMetadata::Item::current [variable]
gjc@3755
   593
    cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
gjc@3755
   594
    ## packet-metadata.h: ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
gjc@3755
   595
    cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
gjc@3755
   596
    ## packet-metadata.h: ns3::PacketMetadata::Item::Item() [constructor]
gjc@3755
   597
    cls.add_constructor([])
gjc@3755
   598
    return
gjc@3755
   599
gjc@3755
   600
def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
gjc@3755
   601
    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
gjc@3755
   602
    cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
gjc@3755
   603
    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
gjc@3755
   604
    cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
gjc@3755
   605
    ## packet-metadata.h: bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
gjc@3755
   606
    cls.add_method('HasNext', 
gjc@3755
   607
                   'bool', 
gjc@3755
   608
                   [], 
gjc@3755
   609
                   is_const=True)
gjc@3755
   610
    ## packet-metadata.h: ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
gjc@3755
   611
    cls.add_method('Next', 
gjc@3755
   612
                   'ns3::PacketMetadata::Item', 
gjc@3755
   613
                   [])
gjc@3755
   614
    return
gjc@3755
   615
gjc@3408
   616
def register_Ns3Tag_methods(root_module, cls):
gjc@3567
   617
    ## tag.h: ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
gjc@3574
   618
    cls.add_constructor([param('ns3::Tag const &', 'arg0')])
gjc@3567
   619
    ## tag.h: ns3::Tag::Tag() [constructor]
gjc@3567
   620
    cls.add_constructor([])
gjc@3408
   621
    ## tag.h: static ns3::TypeId ns3::Tag::GetTypeId() [member function]
gjc@3468
   622
    cls.add_method('GetTypeId', 
gjc@3468
   623
                   'ns3::TypeId', 
gjc@3468
   624
                   [], 
gjc@3468
   625
                   is_static=True)
gjc@3408
   626
    ## tag.h: uint32_t ns3::Tag::GetSerializedSize() const [member function]
gjc@3468
   627
    cls.add_method('GetSerializedSize', 
gjc@3468
   628
                   'uint32_t', 
gjc@3468
   629
                   [], 
gjc@3468
   630
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   631
    ## tag.h: void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
gjc@3468
   632
    cls.add_method('Serialize', 
gjc@3468
   633
                   'void', 
gjc@3468
   634
                   [param('ns3::TagBuffer', 'i')], 
gjc@3468
   635
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   636
    ## tag.h: void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
gjc@3468
   637
    cls.add_method('Deserialize', 
gjc@3468
   638
                   'void', 
gjc@3468
   639
                   [param('ns3::TagBuffer', 'i')], 
gjc@3468
   640
                   is_pure_virtual=True, is_virtual=True)
gjc@3408
   641
    ## tag.h: void ns3::Tag::Print(std::ostream & os) const [member function]
gjc@3468
   642
    cls.add_method('Print', 
gjc@3468
   643
                   'void', 
gjc@3574
   644
                   [param('std::ostream &', 'os')], 
gjc@3468
   645
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   646
    return
gjc@3408
   647
gjc@3731
   648
def register_Ns3TagBuffer_methods(root_module, cls):
gjc@3731
   649
    ## tag-buffer.h: ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
gjc@3731
   650
    cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
gjc@3731
   651
    ## tag-buffer.h: ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
gjc@3731
   652
    cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
gjc@3731
   653
    ## tag-buffer.h: void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
gjc@3731
   654
    cls.add_method('TrimAtEnd', 
gjc@3731
   655
                   'void', 
gjc@3731
   656
                   [param('uint32_t', 'trim')])
gjc@3731
   657
    ## tag-buffer.h: void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
gjc@3731
   658
    cls.add_method('CopyFrom', 
gjc@3731
   659
                   'void', 
gjc@3731
   660
                   [param('ns3::TagBuffer', 'o')])
gjc@3731
   661
    ## tag-buffer.h: void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
gjc@3731
   662
    cls.add_method('WriteU8', 
gjc@3731
   663
                   'void', 
gjc@3731
   664
                   [param('uint8_t', 'v')])
gjc@3731
   665
    ## tag-buffer.h: void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
gjc@3731
   666
    cls.add_method('WriteU16', 
gjc@3731
   667
                   'void', 
gjc@3731
   668
                   [param('uint16_t', 'data')])
gjc@3731
   669
    ## tag-buffer.h: void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
gjc@3731
   670
    cls.add_method('WriteU32', 
gjc@3731
   671
                   'void', 
gjc@3731
   672
                   [param('uint32_t', 'data')])
gjc@3731
   673
    ## tag-buffer.h: void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
gjc@3731
   674
    cls.add_method('WriteU64', 
gjc@3731
   675
                   'void', 
gjc@3731
   676
                   [param('uint64_t', 'v')])
gjc@3731
   677
    ## tag-buffer.h: void ns3::TagBuffer::WriteDouble(double v) [member function]
gjc@3731
   678
    cls.add_method('WriteDouble', 
gjc@3731
   679
                   'void', 
gjc@3731
   680
                   [param('double', 'v')])
gjc@3731
   681
    ## tag-buffer.h: void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
gjc@3731
   682
    cls.add_method('Write', 
gjc@3731
   683
                   'void', 
gjc@3731
   684
                   [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
gjc@3731
   685
    ## tag-buffer.h: uint8_t ns3::TagBuffer::ReadU8() [member function]
gjc@3731
   686
    cls.add_method('ReadU8', 
gjc@3731
   687
                   'uint8_t', 
gjc@3731
   688
                   [])
gjc@3731
   689
    ## tag-buffer.h: uint16_t ns3::TagBuffer::ReadU16() [member function]
gjc@3731
   690
    cls.add_method('ReadU16', 
gjc@3731
   691
                   'uint16_t', 
gjc@3731
   692
                   [])
gjc@3731
   693
    ## tag-buffer.h: uint32_t ns3::TagBuffer::ReadU32() [member function]
gjc@3731
   694
    cls.add_method('ReadU32', 
gjc@3731
   695
                   'uint32_t', 
gjc@3731
   696
                   [])
gjc@3731
   697
    ## tag-buffer.h: uint64_t ns3::TagBuffer::ReadU64() [member function]
gjc@3731
   698
    cls.add_method('ReadU64', 
gjc@3731
   699
                   'uint64_t', 
gjc@3731
   700
                   [])
gjc@3731
   701
    ## tag-buffer.h: double ns3::TagBuffer::ReadDouble() [member function]
gjc@3731
   702
    cls.add_method('ReadDouble', 
gjc@3731
   703
                   'double', 
gjc@3731
   704
                   [])
gjc@3731
   705
    ## tag-buffer.h: void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
gjc@3731
   706
    cls.add_method('Read', 
gjc@3731
   707
                   'void', 
gjc@3731
   708
                   [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
gjc@3731
   709
    return
gjc@3731
   710
gjc@3731
   711
def register_Ns3TagIterator_methods(root_module, cls):
gjc@3731
   712
    ## packet.h: ns3::TagIterator::TagIterator(ns3::TagIterator const & arg0) [copy constructor]
gjc@3731
   713
    cls.add_constructor([param('ns3::TagIterator const &', 'arg0')])
gjc@3731
   714
    ## packet.h: bool ns3::TagIterator::HasNext() const [member function]
gjc@3731
   715
    cls.add_method('HasNext', 
gjc@3731
   716
                   'bool', 
gjc@3731
   717
                   [], 
gjc@3731
   718
                   is_const=True)
gjc@3731
   719
    ## packet.h: ns3::TagIterator::Item ns3::TagIterator::Next() [member function]
gjc@3731
   720
    cls.add_method('Next', 
gjc@3731
   721
                   'ns3::TagIterator::Item', 
gjc@3731
   722
                   [])
gjc@3731
   723
    return
gjc@3731
   724
gjc@3731
   725
def register_Ns3TagIteratorItem_methods(root_module, cls):
gjc@3731
   726
    ## packet.h: ns3::TagIterator::Item::Item(ns3::TagIterator::Item const & arg0) [copy constructor]
gjc@3731
   727
    cls.add_constructor([param('ns3::TagIterator::Item const &', 'arg0')])
gjc@3731
   728
    ## packet.h: ns3::TypeId ns3::TagIterator::Item::GetTypeId() const [member function]
gjc@3731
   729
    cls.add_method('GetTypeId', 
gjc@3731
   730
                   'ns3::TypeId', 
gjc@3731
   731
                   [], 
gjc@3731
   732
                   is_const=True)
gjc@3731
   733
    ## packet.h: uint32_t ns3::TagIterator::Item::GetStart() const [member function]
gjc@3731
   734
    cls.add_method('GetStart', 
gjc@3731
   735
                   'uint32_t', 
gjc@3731
   736
                   [], 
gjc@3731
   737
                   is_const=True)
gjc@3731
   738
    ## packet.h: uint32_t ns3::TagIterator::Item::GetEnd() const [member function]
gjc@3731
   739
    cls.add_method('GetEnd', 
gjc@3731
   740
                   'uint32_t', 
gjc@3731
   741
                   [], 
gjc@3731
   742
                   is_const=True)
gjc@3731
   743
    ## packet.h: void ns3::TagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
gjc@3731
   744
    cls.add_method('GetTag', 
gjc@3731
   745
                   'void', 
gjc@3731
   746
                   [param('ns3::Tag &', 'tag')], 
gjc@3731
   747
                   is_const=True)
gjc@3731
   748
    return
gjc@3731
   749
gjc@3731
   750
def register_Ns3TagList_methods(root_module, cls):
gjc@3731
   751
    ## tag-list.h: ns3::TagList::TagList() [constructor]
gjc@3731
   752
    cls.add_constructor([])
gjc@3731
   753
    ## tag-list.h: ns3::TagList::TagList(ns3::TagList const & o) [copy constructor]
gjc@3731
   754
    cls.add_constructor([param('ns3::TagList const &', 'o')])
gjc@3731
   755
    ## tag-list.h: ns3::TagBuffer ns3::TagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
gjc@3731
   756
    cls.add_method('Add', 
gjc@3731
   757
                   'ns3::TagBuffer', 
gjc@3731
   758
                   [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
gjc@3731
   759
    ## tag-list.h: void ns3::TagList::Add(ns3::TagList const & o) [member function]
gjc@3731
   760
    cls.add_method('Add', 
gjc@3731
   761
                   'void', 
gjc@3731
   762
                   [param('ns3::TagList const &', 'o')])
gjc@3731
   763
    ## tag-list.h: void ns3::TagList::RemoveAll() [member function]
gjc@3731
   764
    cls.add_method('RemoveAll', 
gjc@3731
   765
                   'void', 
gjc@3731
   766
                   [])
gjc@3731
   767
    ## tag-list.h: ns3::TagList::Iterator ns3::TagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
gjc@3731
   768
    cls.add_method('Begin', 
gjc@3731
   769
                   'ns3::TagList::Iterator', 
gjc@3731
   770
                   [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')], 
gjc@3731
   771
                   is_const=True)
gjc@3731
   772
    ## tag-list.h: void ns3::TagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
gjc@3731
   773
    cls.add_method('AddAtEnd', 
gjc@3731
   774
                   'void', 
gjc@3731
   775
                   [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
gjc@3731
   776
    ## tag-list.h: void ns3::TagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
gjc@3731
   777
    cls.add_method('AddAtStart', 
gjc@3731
   778
                   'void', 
gjc@3731
   779
                   [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
gjc@3731
   780
    return
gjc@3731
   781
gjc@3731
   782
def register_Ns3TagListIterator_methods(root_module, cls):
gjc@3731
   783
    ## tag-list.h: ns3::TagList::Iterator::Iterator(ns3::TagList::Iterator const & arg0) [copy constructor]
gjc@3731
   784
    cls.add_constructor([param('ns3::TagList::Iterator const &', 'arg0')])
gjc@3731
   785
    ## tag-list.h: bool ns3::TagList::Iterator::HasNext() const [member function]
gjc@3731
   786
    cls.add_method('HasNext', 
gjc@3731
   787
                   'bool', 
gjc@3731
   788
                   [], 
gjc@3731
   789
                   is_const=True)
gjc@3731
   790
    ## tag-list.h: ns3::TagList::Iterator::Item ns3::TagList::Iterator::Next() [member function]
gjc@3731
   791
    cls.add_method('Next', 
gjc@3731
   792
                   'ns3::TagList::Iterator::Item', 
gjc@3731
   793
                   [])
gjc@3731
   794
    ## tag-list.h: uint32_t ns3::TagList::Iterator::GetOffsetStart() const [member function]
gjc@3731
   795
    cls.add_method('GetOffsetStart', 
gjc@3731
   796
                   'uint32_t', 
gjc@3731
   797
                   [], 
gjc@3731
   798
                   is_const=True)
gjc@3731
   799
    return
gjc@3731
   800
gjc@3731
   801
def register_Ns3TagListIteratorItem_methods(root_module, cls):
gjc@3731
   802
    ## tag-list.h: ns3::TagList::Iterator::Item::tid [variable]
gjc@3731
   803
    cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
gjc@3731
   804
    ## tag-list.h: ns3::TagList::Iterator::Item::size [variable]
gjc@3731
   805
    cls.add_instance_attribute('size', 'uint32_t', is_const=False)
gjc@3731
   806
    ## tag-list.h: ns3::TagList::Iterator::Item::start [variable]
gjc@3731
   807
    cls.add_instance_attribute('start', 'int32_t', is_const=False)
gjc@3731
   808
    ## tag-list.h: ns3::TagList::Iterator::Item::end [variable]
gjc@3731
   809
    cls.add_instance_attribute('end', 'int32_t', is_const=False)
gjc@3731
   810
    ## tag-list.h: ns3::TagList::Iterator::Item::buf [variable]
gjc@3731
   811
    cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
gjc@3731
   812
    ## tag-list.h: ns3::TagList::Iterator::Item::Item(ns3::TagList::Iterator::Item const & arg0) [copy constructor]
gjc@3731
   813
    cls.add_constructor([param('ns3::TagList::Iterator::Item const &', 'arg0')])
gjc@3731
   814
    ## tag-list.h: ns3::TagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
gjc@3731
   815
    cls.add_constructor([param('ns3::TagBuffer', 'buf')])
gjc@3731
   816
    return
gjc@3731
   817
gjc@3731
   818
def register_Ns3Chunk_methods(root_module, cls):
gjc@3731
   819
    ## chunk.h: ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
gjc@3731
   820
    cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
gjc@3731
   821
    ## chunk.h: ns3::Chunk::Chunk() [constructor]
gjc@3731
   822
    cls.add_constructor([])
gjc@3731
   823
    ## chunk.h: static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
gjc@3731
   824
    cls.add_method('GetTypeId', 
gjc@3731
   825
                   'ns3::TypeId', 
gjc@3731
   826
                   [], 
gjc@3731
   827
                   is_static=True)
gjc@3731
   828
    ## chunk.h: uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3731
   829
    cls.add_method('Deserialize', 
gjc@3731
   830
                   'uint32_t', 
gjc@3731
   831
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
   832
                   is_pure_virtual=True, is_virtual=True)
gjc@3731
   833
    ## chunk.h: void ns3::Chunk::Print(std::ostream & os) const [member function]
gjc@3731
   834
    cls.add_method('Print', 
gjc@3731
   835
                   'void', 
gjc@3731
   836
                   [param('std::ostream &', 'os')], 
gjc@3731
   837
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
   838
    return
gjc@3731
   839
gjc@3731
   840
def register_Ns3DataRateChecker_methods(root_module, cls):
gjc@3731
   841
    ## data-rate.h: ns3::DataRateChecker::DataRateChecker(ns3::DataRateChecker const & arg0) [copy constructor]
gjc@3731
   842
    cls.add_constructor([param('ns3::DataRateChecker const &', 'arg0')])
gjc@3731
   843
    ## data-rate.h: ns3::DataRateChecker::DataRateChecker() [constructor]
gjc@3731
   844
    cls.add_constructor([])
gjc@3731
   845
    return
gjc@3731
   846
gjc@3731
   847
def register_Ns3DataRateValue_methods(root_module, cls):
gjc@3731
   848
    ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor]
gjc@3731
   849
    cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')])
gjc@3731
   850
    ## data-rate.h: ns3::DataRateValue::DataRateValue() [constructor]
gjc@3731
   851
    cls.add_constructor([])
gjc@3731
   852
    ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor]
gjc@3731
   853
    cls.add_constructor([param('ns3::DataRate const &', 'value')])
gjc@3731
   854
    ## data-rate.h: void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function]
gjc@3731
   855
    cls.add_method('Set', 
gjc@3731
   856
                   'void', 
gjc@3731
   857
                   [param('ns3::DataRate const &', 'value')])
gjc@3731
   858
    ## data-rate.h: ns3::DataRate ns3::DataRateValue::Get() const [member function]
gjc@3731
   859
    cls.add_method('Get', 
gjc@3731
   860
                   'ns3::DataRate', 
gjc@3731
   861
                   [], 
gjc@3731
   862
                   is_const=True)
gjc@3731
   863
    ## data-rate.h: ns3::Ptr<ns3::AttributeValue> ns3::DataRateValue::Copy() const [member function]
gjc@3731
   864
    cls.add_method('Copy', 
gjc@3731
   865
                   'ns3::Ptr< ns3::AttributeValue >', 
gjc@3731
   866
                   [], 
gjc@3731
   867
                   is_const=True, is_virtual=True)
gjc@3731
   868
    ## data-rate.h: std::string ns3::DataRateValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
gjc@3731
   869
    cls.add_method('SerializeToString', 
gjc@3731
   870
                   'std::string', 
gjc@3731
   871
                   [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], 
gjc@3731
   872
                   is_const=True, is_virtual=True)
gjc@3731
   873
    ## data-rate.h: bool ns3::DataRateValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
gjc@3731
   874
    cls.add_method('DeserializeFromString', 
gjc@3731
   875
                   'bool', 
gjc@3731
   876
                   [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], 
gjc@3731
   877
                   is_virtual=True)
gjc@3731
   878
    return
gjc@3731
   879
gjc@3731
   880
def register_Ns3Header_methods(root_module, cls):
gjc@3731
   881
    cls.add_output_stream_operator()
gjc@3731
   882
    ## header.h: ns3::Header::Header() [constructor]
gjc@3731
   883
    cls.add_constructor([])
gjc@3731
   884
    ## header.h: ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
gjc@3731
   885
    cls.add_constructor([param('ns3::Header const &', 'arg0')])
gjc@3731
   886
    ## header.h: uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3731
   887
    cls.add_method('Deserialize', 
gjc@3731
   888
                   'uint32_t', 
gjc@3731
   889
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
   890
                   is_pure_virtual=True, is_virtual=True)
gjc@3731
   891
    ## header.h: uint32_t ns3::Header::GetSerializedSize() const [member function]
gjc@3731
   892
    cls.add_method('GetSerializedSize', 
gjc@3731
   893
                   'uint32_t', 
gjc@3731
   894
                   [], 
gjc@3731
   895
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
   896
    ## header.h: static ns3::TypeId ns3::Header::GetTypeId() [member function]
gjc@3731
   897
    cls.add_method('GetTypeId', 
gjc@3731
   898
                   'ns3::TypeId', 
gjc@3731
   899
                   [], 
gjc@3731
   900
                   is_static=True)
gjc@3731
   901
    ## header.h: void ns3::Header::Print(std::ostream & os) const [member function]
gjc@3731
   902
    cls.add_method('Print', 
gjc@3731
   903
                   'void', 
gjc@3731
   904
                   [param('std::ostream &', 'os')], 
gjc@3731
   905
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
   906
    ## header.h: void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3731
   907
    cls.add_method('Serialize', 
gjc@3731
   908
                   'void', 
gjc@3731
   909
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
   910
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
   911
    return
gjc@3731
   912
gjc@3408
   913
def register_Ns3PcapWriter_methods(root_module, cls):
gjc@3567
   914
    ## pcap-writer.h: ns3::PcapWriter::PcapWriter(ns3::PcapWriter const & arg0) [copy constructor]
gjc@3574
   915
    cls.add_constructor([param('ns3::PcapWriter const &', 'arg0')])
gjc@3408
   916
    ## pcap-writer.h: ns3::PcapWriter::PcapWriter() [constructor]
gjc@3468
   917
    cls.add_constructor([])
gjc@3408
   918
    ## pcap-writer.h: void ns3::PcapWriter::Open(std::string const & name) [member function]
gjc@3468
   919
    cls.add_method('Open', 
gjc@3468
   920
                   'void', 
gjc@3574
   921
                   [param('std::string const &', 'name')])
gjc@3408
   922
    ## pcap-writer.h: void ns3::PcapWriter::WriteEthernetHeader() [member function]
gjc@3468
   923
    cls.add_method('WriteEthernetHeader', 
gjc@3468
   924
                   'void', 
gjc@3468
   925
                   [])
gjc@3408
   926
    ## pcap-writer.h: void ns3::PcapWriter::WriteIpHeader() [member function]
gjc@3468
   927
    cls.add_method('WriteIpHeader', 
gjc@3468
   928
                   'void', 
gjc@3468
   929
                   [])
gjc@3408
   930
    ## pcap-writer.h: void ns3::PcapWriter::WriteWifiHeader() [member function]
gjc@3468
   931
    cls.add_method('WriteWifiHeader', 
gjc@3468
   932
                   'void', 
gjc@3468
   933
                   [])
gjc@3408
   934
    ## pcap-writer.h: void ns3::PcapWriter::WritePppHeader() [member function]
gjc@3468
   935
    cls.add_method('WritePppHeader', 
gjc@3468
   936
                   'void', 
gjc@3468
   937
                   [])
gjc@3408
   938
    ## pcap-writer.h: void ns3::PcapWriter::WritePacket(ns3::Ptr<const ns3::Packet> packet) [member function]
gjc@3468
   939
    cls.add_method('WritePacket', 
gjc@3468
   940
                   'void', 
gjc@3731
   941
                   [param('ns3::Ptr< ns3::Packet const >', 'packet')])
gjc@3408
   942
    return
gjc@3408
   943
gjc@3731
   944
def register_Ns3Trailer_methods(root_module, cls):
gjc@3731
   945
    cls.add_output_stream_operator()
gjc@3731
   946
    ## trailer.h: ns3::Trailer::Trailer() [constructor]
gjc@3408
   947
    cls.add_constructor([])
gjc@3731
   948
    ## trailer.h: ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
gjc@3731
   949
    cls.add_constructor([param('ns3::Trailer const &', 'arg0')])
gjc@3731
   950
    ## trailer.h: uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
gjc@3731
   951
    cls.add_method('Deserialize', 
gjc@3731
   952
                   'uint32_t', 
gjc@3731
   953
                   [param('ns3::Buffer::Iterator', 'end')], 
gjc@3731
   954
                   is_pure_virtual=True, is_virtual=True)
gjc@3731
   955
    ## trailer.h: uint32_t ns3::Trailer::GetSerializedSize() const [member function]
gjc@3731
   956
    cls.add_method('GetSerializedSize', 
gjc@3731
   957
                   'uint32_t', 
gjc@3731
   958
                   [], 
gjc@3731
   959
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
   960
    ## trailer.h: static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
gjc@3731
   961
    cls.add_method('GetTypeId', 
gjc@3731
   962
                   'ns3::TypeId', 
gjc@3731
   963
                   [], 
gjc@3731
   964
                   is_static=True)
gjc@3731
   965
    ## trailer.h: void ns3::Trailer::Print(std::ostream & os) const [member function]
gjc@3731
   966
    cls.add_method('Print', 
gjc@3731
   967
                   'void', 
gjc@3731
   968
                   [param('std::ostream &', 'os')], 
gjc@3731
   969
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3731
   970
    ## trailer.h: void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3731
   971
    cls.add_method('Serialize', 
gjc@3731
   972
                   'void', 
gjc@3731
   973
                   [param('ns3::Buffer::Iterator', 'start')], 
gjc@3731
   974
                   is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   975
    return
gjc@3408
   976
gjc@3408
   977
def register_Ns3ErrorModel_methods(root_module, cls):
gjc@3567
   978
    ## error-model.h: ns3::ErrorModel::ErrorModel(ns3::ErrorModel const & arg0) [copy constructor]
gjc@3574
   979
    cls.add_constructor([param('ns3::ErrorModel const &', 'arg0')])
gjc@3408
   980
    ## error-model.h: static ns3::TypeId ns3::ErrorModel::GetTypeId() [member function]
gjc@3468
   981
    cls.add_method('GetTypeId', 
gjc@3468
   982
                   'ns3::TypeId', 
gjc@3468
   983
                   [], 
gjc@3468
   984
                   is_static=True)
gjc@3408
   985
    ## error-model.h: ns3::ErrorModel::ErrorModel() [constructor]
gjc@3468
   986
    cls.add_constructor([])
gjc@3408
   987
    ## error-model.h: bool ns3::ErrorModel::IsCorrupt(ns3::Ptr<ns3::Packet> pkt) [member function]
gjc@3468
   988
    cls.add_method('IsCorrupt', 
gjc@3468
   989
                   'bool', 
gjc@3468
   990
                   [param('ns3::Ptr< ns3::Packet >', 'pkt')])
gjc@3408
   991
    ## error-model.h: void ns3::ErrorModel::Reset() [member function]
gjc@3468
   992
    cls.add_method('Reset', 
gjc@3468
   993
                   'void', 
gjc@3468
   994
                   [])
gjc@3408
   995
    ## error-model.h: void ns3::ErrorModel::Enable() [member function]
gjc@3468
   996
    cls.add_method('Enable', 
gjc@3468
   997
                   'void', 
gjc@3468
   998
                   [])
gjc@3408
   999
    ## error-model.h: void ns3::ErrorModel::Disable() [member function]
gjc@3468
  1000
    cls.add_method('Disable', 
gjc@3468
  1001
                   'void', 
gjc@3468
  1002
                   [])
gjc@3408
  1003
    ## error-model.h: bool ns3::ErrorModel::IsEnabled() const [member function]
gjc@3468
  1004
    cls.add_method('IsEnabled', 
gjc@3468
  1005
                   'bool', 
gjc@3468
  1006
                   [], 
gjc@3468
  1007
                   is_const=True)
gjc@3408
  1008
    ## error-model.h: bool ns3::ErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> arg0) [member function]
gjc@3468
  1009
    cls.add_method('DoCorrupt', 
gjc@3468
  1010
                   'bool', 
gjc@3468
  1011
                   [param('ns3::Ptr< ns3::Packet >', 'arg0')], 
gjc@3468
  1012
                   is_pure_virtual=True, visibility='private', is_virtual=True)
gjc@3408
  1013
    ## error-model.h: void ns3::ErrorModel::DoReset() [member function]
gjc@3468
  1014
    cls.add_method('DoReset', 
gjc@3468
  1015
                   'void', 
gjc@3468
  1016
                   [], 
gjc@3468
  1017
                   is_pure_virtual=True, visibility='private', is_virtual=True)
gjc@3408
  1018
    return
gjc@3408
  1019
gjc@3408
  1020
def register_Ns3ListErrorModel_methods(root_module, cls):
gjc@3567
  1021
    ## error-model.h: ns3::ListErrorModel::ListErrorModel(ns3::ListErrorModel const & arg0) [copy constructor]
gjc@3574
  1022
    cls.add_constructor([param('ns3::ListErrorModel const &', 'arg0')])
gjc@3408
  1023
    ## error-model.h: static ns3::TypeId ns3::ListErrorModel::GetTypeId() [member function]
gjc@3468
  1024
    cls.add_method('GetTypeId', 
gjc@3468
  1025
                   'ns3::TypeId', 
gjc@3468
  1026
                   [], 
gjc@3468
  1027
                   is_static=True)
gjc@3408
  1028
    ## error-model.h: ns3::ListErrorModel::ListErrorModel() [constructor]
gjc@3468
  1029
    cls.add_constructor([])
gjc@3408
  1030
    ## error-model.h: std::list<unsigned int, std::allocator<unsigned int> > ns3::ListErrorModel::GetList() const [member function]
gjc@3468
  1031
    cls.add_method('GetList', 
gjc@3567
  1032
                   'std::list< unsigned int >', 
gjc@3468
  1033
                   [], 
gjc@3468
  1034
                   is_const=True)
gjc@3408
  1035
    ## error-model.h: void ns3::ListErrorModel::SetList(std::list<unsigned int, std::allocator<unsigned int> > const & packetlist) [member function]
gjc@3468
  1036
    cls.add_method('SetList', 
gjc@3468
  1037
                   'void', 
gjc@3731
  1038
                   [param('std::list< unsigned int > const &', 'packetlist')])
gjc@3408
  1039
    ## error-model.h: bool ns3::ListErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1040
    cls.add_method('DoCorrupt', 
gjc@3468
  1041
                   'bool', 
gjc@3468
  1042
                   [param('ns3::Ptr< ns3::Packet >', 'p')], 
gjc@3468
  1043
                   visibility='private', is_virtual=True)
gjc@3408
  1044
    ## error-model.h: void ns3::ListErrorModel::DoReset() [member function]
gjc@3468
  1045
    cls.add_method('DoReset', 
gjc@3468
  1046
                   'void', 
gjc@3468
  1047
                   [], 
gjc@3468
  1048
                   visibility='private', is_virtual=True)
gjc@3408
  1049
    return
gjc@3408
  1050
gjc@3408
  1051
def register_Ns3RateErrorModel_methods(root_module, cls):
gjc@3567
  1052
    ## error-model.h: ns3::RateErrorModel::RateErrorModel(ns3::RateErrorModel const & arg0) [copy constructor]
gjc@3574
  1053
    cls.add_constructor([param('ns3::RateErrorModel const &', 'arg0')])
gjc@3408
  1054
    ## error-model.h: static ns3::TypeId ns3::RateErrorModel::GetTypeId() [member function]
gjc@3468
  1055
    cls.add_method('GetTypeId', 
gjc@3468
  1056
                   'ns3::TypeId', 
gjc@3468
  1057
                   [], 
gjc@3468
  1058
                   is_static=True)
gjc@3408
  1059
    ## error-model.h: ns3::RateErrorModel::RateErrorModel() [constructor]
gjc@3468
  1060
    cls.add_constructor([])
gjc@3408
  1061
    ## error-model.h: ns3::ErrorUnit ns3::RateErrorModel::GetUnit() const [member function]
gjc@3468
  1062
    cls.add_method('GetUnit', 
gjc@3468
  1063
                   'ns3::ErrorUnit', 
gjc@3468
  1064
                   [], 
gjc@3468
  1065
                   is_const=True)
gjc@3408
  1066
    ## error-model.h: void ns3::RateErrorModel::SetUnit(ns3::ErrorUnit error_unit) [member function]
gjc@3468
  1067
    cls.add_method('SetUnit', 
gjc@3468
  1068
                   'void', 
gjc@3468
  1069
                   [param('ns3::ErrorUnit', 'error_unit')])
gjc@3408
  1070
    ## error-model.h: double ns3::RateErrorModel::GetRate() const [member function]
gjc@3468
  1071
    cls.add_method('GetRate', 
gjc@3468
  1072
                   'double', 
gjc@3468
  1073
                   [], 
gjc@3468
  1074
                   is_const=True)
gjc@3408
  1075
    ## error-model.h: void ns3::RateErrorModel::SetRate(double rate) [member function]
gjc@3468
  1076
    cls.add_method('SetRate', 
gjc@3468
  1077
                   'void', 
gjc@3468
  1078
                   [param('double', 'rate')])
gjc@3408
  1079
    ## error-model.h: void ns3::RateErrorModel::SetRandomVariable(ns3::RandomVariable const & ranvar) [member function]
gjc@3468
  1080
    cls.add_method('SetRandomVariable', 
gjc@3468
  1081
                   'void', 
gjc@3574
  1082
                   [param('ns3::RandomVariable const &', 'ranvar')])
gjc@3408
  1083
    ## error-model.h: bool ns3::RateErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1084
    cls.add_method('DoCorrupt', 
gjc@3468
  1085
                   'bool', 
gjc@3468
  1086
                   [param('ns3::Ptr< ns3::Packet >', 'p')], 
gjc@3468
  1087
                   visibility='private', is_virtual=True)
gjc@3408
  1088
    ## error-model.h: bool ns3::RateErrorModel::DoCorruptPkt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1089
    cls.add_method('DoCorruptPkt', 
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::DoCorruptByte(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1094
    cls.add_method('DoCorruptByte', 
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::DoCorruptBit(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3468
  1099
    cls.add_method('DoCorruptBit', 
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: void ns3::RateErrorModel::DoReset() [member function]
gjc@3468
  1104
    cls.add_method('DoReset', 
gjc@3468
  1105
                   'void', 
gjc@3468
  1106
                   [], 
gjc@3468
  1107
                   visibility='private', is_virtual=True)
gjc@3408
  1108
    return
gjc@3408
  1109
gjc@3408
  1110
def register_functions(root_module):
gjc@3408
  1111
    module = root_module
gjc@3408
  1112
    ## data-rate.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeDataRateChecker() [free function]
gjc@3468
  1113
    module.add_function('MakeDataRateChecker', 
gjc@3468
  1114
                        'ns3::Ptr< ns3::AttributeChecker const >', 
gjc@3468
  1115
                        [])
gjc@3408
  1116
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
gjc@3408
  1117
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
gjc@3408
  1118
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
gjc@3408
  1119
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
gjc@3408
  1120
    return
gjc@3408
  1121
gjc@3408
  1122
def register_functions_ns3_internal(module, root_module):
gjc@3408
  1123
    return
gjc@3408
  1124
gjc@3408
  1125
def register_functions_ns3_TimeStepPrecision(module, root_module):
gjc@3408
  1126
    return
gjc@3408
  1127
gjc@3408
  1128
def register_functions_ns3_Config(module, root_module):
gjc@3408
  1129
    return
gjc@3408
  1130
gjc@3408
  1131
def register_functions_ns3_olsr(module, root_module):
gjc@3408
  1132
    return
gjc@3408
  1133