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