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