bindings/python/ns3_module_common.py
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 08 Jul 2008 10:43:58 -0700
changeset 3408 2cc40b3e4fa5
child 3416 926ccb845111
permissions -rw-r--r--
python bindings
gjc@3408
     1
from pybindgen import Module, FileCodeSink, write_preamble, param, retval
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@3408
     9
    module.add_class('Packet', 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@3408
    27
    module.add_class('Chunk', allow_subclassing=True, 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@3408
    31
    module.add_class('Tag', allow_subclassing=True, 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@3408
    37
    module.add_class('ErrorModel', allow_subclassing=True, parent=root_module['ns3::Object'])
gjc@3408
    38
    ## header.h: ns3::Header [class]
gjc@3408
    39
    module.add_class('Header', allow_subclassing=True, parent=root_module['ns3::Chunk'])
gjc@3408
    40
    ## trailer.h: ns3::Trailer [class]
gjc@3408
    41
    module.add_class('Trailer', allow_subclassing=True, parent=root_module['ns3::Chunk'])
gjc@3408
    42
    ## error-model.h: ns3::ListErrorModel [class]
gjc@3408
    43
    module.add_class('ListErrorModel', allow_subclassing=True, parent=root_module['ns3::ErrorModel'])
gjc@3408
    44
    ## data-rate.h: ns3::DataRateValue [class]
gjc@3408
    45
    module.add_class('DataRateValue', allow_subclassing=True, parent=root_module['ns3::AttributeValue'])
gjc@3408
    46
    ## error-model.h: ns3::RateErrorModel [class]
gjc@3408
    47
    module.add_class('RateErrorModel', allow_subclassing=True, 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@3408
   114
    cls.add_constructor([], visibility='public')
gjc@3408
   115
    ## packet.h: ns3::Packet::Packet(ns3::Packet const & o) [copy constructor]
gjc@3408
   116
    cls.add_constructor([param('ns3::Packet&', 'o', is_const=True)], visibility='public')
gjc@3408
   117
    ## packet.h: ns3::Packet::Packet(uint32_t size) [constructor]
gjc@3408
   118
    cls.add_constructor([param('uint32_t', 'size')], visibility='public')
gjc@3408
   119
    ## packet.h: ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor]
gjc@3408
   120
    cls.add_constructor([param('uint8_t *', 'buffer', transfer_ownership=False, is_const=True), param('uint32_t', 'size')], visibility='public')
gjc@3408
   121
    ## packet.h: void ns3::Packet::AddAtEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
gjc@3408
   122
    cls.add_method('AddAtEnd', 'void', [param('ns3::Ptr< const ns3::Packet >', 'packet')])
gjc@3408
   123
    ## packet.h: void ns3::Packet::AddHeader(ns3::Header const & header) [member function]
gjc@3408
   124
    cls.add_method('AddHeader', 'void', [param('ns3::Header&', 'header', is_const=True)])
gjc@3408
   125
    ## packet.h: void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
gjc@3408
   126
    cls.add_method('AddPaddingAtEnd', 'void', [param('uint32_t', 'size')])
gjc@3408
   127
    ## packet.h: void ns3::Packet::AddTag(ns3::Tag const & tag) const [member function]
gjc@3408
   128
    cls.add_method('AddTag', 'void', [param('ns3::Tag&', 'tag', is_const=True)], is_const=True)
gjc@3408
   129
    ## packet.h: void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function]
gjc@3408
   130
    cls.add_method('AddTrailer', 'void', [param('ns3::Trailer&', 'trailer', is_const=True)])
gjc@3408
   131
    ## packet.h: ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function]
gjc@3408
   132
    cls.add_method('BeginItem', 'ns3::PacketMetadata::ItemIterator', [], is_const=True)
gjc@3408
   133
    ## packet.h: ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function]
gjc@3408
   134
    cls.add_method('Copy', 'ns3::Ptr< ns3::Packet >', [], is_const=True)
gjc@3408
   135
    ## packet.h: ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
gjc@3408
   136
    cls.add_method('CreateFragment', 'ns3::Ptr< ns3::Packet >', [param('uint32_t', 'start'), param('uint32_t', 'length')], is_const=True)
gjc@3408
   137
    ## packet.h: void ns3::Packet::Deserialize(ns3::Buffer buffer) [member function]
gjc@3408
   138
    cls.add_method('Deserialize', 'void', [param('ns3::Buffer', 'buffer')])
gjc@3408
   139
    ## packet.h: static void ns3::Packet::EnableMetadata() [member function]
gjc@3408
   140
    cls.add_method('EnableMetadata', 'void', [], is_static=True)
gjc@3408
   141
    ## packet.h: bool ns3::Packet::FindFirstMatchingTag(ns3::Tag & tag) const [member function]
gjc@3408
   142
    cls.add_method('FindFirstMatchingTag', 'bool', [param('ns3::Tag&', 'tag')], is_const=True)
gjc@3408
   143
    ## packet.h: uint32_t ns3::Packet::GetSize() const [member function]
gjc@3408
   144
    cls.add_method('GetSize', 'uint32_t', [], is_const=True)
gjc@3408
   145
    ## packet.h: ns3::TagIterator ns3::Packet::GetTagIterator() const [member function]
gjc@3408
   146
    cls.add_method('GetTagIterator', 'ns3::TagIterator', [], is_const=True)
gjc@3408
   147
    ## packet.h: uint32_t ns3::Packet::GetUid() const [member function]
gjc@3408
   148
    cls.add_method('GetUid', 'uint32_t', [], is_const=True)
gjc@3408
   149
    ## packet.h: uint8_t const * ns3::Packet::PeekData() const [member function]
gjc@3408
   150
    cls.add_method('PeekData', retval('uint8_t *', is_const=True, caller_owns_return=False), [], is_const=True)
gjc@3408
   151
    ## packet.h: uint32_t ns3::Packet::PeekHeader(ns3::Header & header) [member function]
gjc@3408
   152
    cls.add_method('PeekHeader', 'uint32_t', [param('ns3::Header&', 'header')])
gjc@3408
   153
    ## packet.h: uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
gjc@3408
   154
    cls.add_method('PeekTrailer', 'uint32_t', [param('ns3::Trailer&', 'trailer')])
gjc@3408
   155
    ## packet.h: void ns3::Packet::Print(std::ostream & os) const [member function]
gjc@3408
   156
    cls.add_method('Print', 'void', [param('std::ostream&', 'os')], is_const=True)
gjc@3408
   157
    ## packet.h: void ns3::Packet::PrintTags(std::ostream & os) const [member function]
gjc@3408
   158
    cls.add_method('PrintTags', 'void', [param('std::ostream&', 'os')], is_const=True)
gjc@3408
   159
    ## packet.h: void ns3::Packet::RemoveAllTags() [member function]
gjc@3408
   160
    cls.add_method('RemoveAllTags', 'void', [])
gjc@3408
   161
    ## packet.h: void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
gjc@3408
   162
    cls.add_method('RemoveAtEnd', 'void', [param('uint32_t', 'size')])
gjc@3408
   163
    ## packet.h: void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
gjc@3408
   164
    cls.add_method('RemoveAtStart', 'void', [param('uint32_t', 'size')])
gjc@3408
   165
    ## packet.h: uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
gjc@3408
   166
    cls.add_method('RemoveHeader', 'uint32_t', [param('ns3::Header&', 'header')])
gjc@3408
   167
    ## packet.h: uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
gjc@3408
   168
    cls.add_method('RemoveTrailer', 'uint32_t', [param('ns3::Trailer&', 'trailer')])
gjc@3408
   169
    ## packet.h: ns3::Buffer ns3::Packet::Serialize() const [member function]
gjc@3408
   170
    cls.add_method('Serialize', 'ns3::Buffer', [], is_const=True)
gjc@3408
   171
    cls.add_output_stream_operator()
gjc@3408
   172
    return
gjc@3408
   173
gjc@3408
   174
def register_Ns3TagIterator_methods(root_module, cls):
gjc@3408
   175
    ## packet.h: bool ns3::TagIterator::HasNext() const [member function]
gjc@3408
   176
    cls.add_method('HasNext', 'bool', [], is_const=True)
gjc@3408
   177
    ## packet.h: ns3::TagIterator::Item ns3::TagIterator::Next() [member function]
gjc@3408
   178
    cls.add_method('Next', 'ns3::TagIterator::Item', [])
gjc@3408
   179
    return
gjc@3408
   180
gjc@3408
   181
def register_Ns3TagIteratorItem_methods(root_module, cls):
gjc@3408
   182
    ## packet.h: ns3::TypeId ns3::TagIterator::Item::GetTypeId() const [member function]
gjc@3408
   183
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_const=True)
gjc@3408
   184
    ## packet.h: uint32_t ns3::TagIterator::Item::GetStart() const [member function]
gjc@3408
   185
    cls.add_method('GetStart', 'uint32_t', [], is_const=True)
gjc@3408
   186
    ## packet.h: uint32_t ns3::TagIterator::Item::GetEnd() const [member function]
gjc@3408
   187
    cls.add_method('GetEnd', 'uint32_t', [], is_const=True)
gjc@3408
   188
    ## packet.h: void ns3::TagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
gjc@3408
   189
    cls.add_method('GetTag', 'void', [param('ns3::Tag&', 'tag')], is_const=True)
gjc@3408
   190
    return
gjc@3408
   191
gjc@3408
   192
def register_Ns3TagList_methods(root_module, cls):
gjc@3408
   193
    ## tag-list.h: ns3::TagList::TagList() [constructor]
gjc@3408
   194
    cls.add_constructor([], visibility='public')
gjc@3408
   195
    ## tag-list.h: ns3::TagList::TagList(ns3::TagList const & o) [copy constructor]
gjc@3408
   196
    cls.add_constructor([param('ns3::TagList&', 'o', is_const=True)], visibility='public')
gjc@3408
   197
    ## tag-list.h: ns3::TagBuffer ns3::TagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
gjc@3408
   198
    cls.add_method('Add', 'ns3::TagBuffer', [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
gjc@3408
   199
    ## tag-list.h: void ns3::TagList::Add(ns3::TagList const & o) [member function]
gjc@3408
   200
    cls.add_method('Add', 'void', [param('ns3::TagList&', 'o', is_const=True)])
gjc@3408
   201
    ## tag-list.h: void ns3::TagList::RemoveAll() [member function]
gjc@3408
   202
    cls.add_method('RemoveAll', 'void', [])
gjc@3408
   203
    ## tag-list.h: ns3::TagList::Iterator ns3::TagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
gjc@3408
   204
    cls.add_method('Begin', 'ns3::TagList::Iterator', [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')], is_const=True)
gjc@3408
   205
    ## tag-list.h: void ns3::TagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
gjc@3408
   206
    cls.add_method('AddAtEnd', 'void', [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
gjc@3408
   207
    ## tag-list.h: void ns3::TagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
gjc@3408
   208
    cls.add_method('AddAtStart', 'void', [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
gjc@3408
   209
    return
gjc@3408
   210
gjc@3408
   211
def register_Ns3TagListIterator_methods(root_module, cls):
gjc@3408
   212
    ## tag-list.h: bool ns3::TagList::Iterator::HasNext() const [member function]
gjc@3408
   213
    cls.add_method('HasNext', 'bool', [], is_const=True)
gjc@3408
   214
    ## tag-list.h: ns3::TagList::Iterator::Item ns3::TagList::Iterator::Next() [member function]
gjc@3408
   215
    cls.add_method('Next', 'ns3::TagList::Iterator::Item', [])
gjc@3408
   216
    ## tag-list.h: uint32_t ns3::TagList::Iterator::GetOffsetStart() const [member function]
gjc@3408
   217
    cls.add_method('GetOffsetStart', 'uint32_t', [], is_const=True)
gjc@3408
   218
    return
gjc@3408
   219
gjc@3408
   220
def register_Ns3TagListIteratorItem_methods(root_module, cls):
gjc@3408
   221
    ## tag-list.h: ns3::TagList::Iterator::Item::tid [variable]
gjc@3408
   222
    cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
gjc@3408
   223
    ## tag-list.h: ns3::TagList::Iterator::Item::size [variable]
gjc@3408
   224
    cls.add_instance_attribute('size', 'uint32_t', is_const=False)
gjc@3408
   225
    ## tag-list.h: ns3::TagList::Iterator::Item::start [variable]
gjc@3408
   226
    cls.add_instance_attribute('start', 'int32_t', is_const=False)
gjc@3408
   227
    ## tag-list.h: ns3::TagList::Iterator::Item::end [variable]
gjc@3408
   228
    cls.add_instance_attribute('end', 'int32_t', is_const=False)
gjc@3408
   229
    ## tag-list.h: ns3::TagList::Iterator::Item::buf [variable]
gjc@3408
   230
    cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
gjc@3408
   231
    ## tag-list.h: ns3::TagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
gjc@3408
   232
    cls.add_constructor([param('ns3::TagBuffer', 'buf')], visibility='public')
gjc@3408
   233
    return
gjc@3408
   234
gjc@3408
   235
def register_Ns3TagBuffer_methods(root_module, cls):
gjc@3408
   236
    ## tag-buffer.h: ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
gjc@3408
   237
    cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')], visibility='public')
gjc@3408
   238
    ## tag-buffer.h: void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
gjc@3408
   239
    cls.add_method('TrimAtEnd', 'void', [param('uint32_t', 'trim')])
gjc@3408
   240
    ## tag-buffer.h: void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
gjc@3408
   241
    cls.add_method('CopyFrom', 'void', [param('ns3::TagBuffer', 'o')])
gjc@3408
   242
    ## tag-buffer.h: void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
gjc@3408
   243
    cls.add_method('WriteU8', 'void', [param('uint8_t', 'v')])
gjc@3408
   244
    ## tag-buffer.h: void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
gjc@3408
   245
    cls.add_method('WriteU16', 'void', [param('uint16_t', 'data')])
gjc@3408
   246
    ## tag-buffer.h: void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
gjc@3408
   247
    cls.add_method('WriteU32', 'void', [param('uint32_t', 'data')])
gjc@3408
   248
    ## tag-buffer.h: void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
gjc@3408
   249
    cls.add_method('WriteU64', 'void', [param('uint64_t', 'v')])
gjc@3408
   250
    ## tag-buffer.h: void ns3::TagBuffer::WriteDouble(double v) [member function]
gjc@3408
   251
    cls.add_method('WriteDouble', 'void', [param('double', 'v')])
gjc@3408
   252
    ## tag-buffer.h: void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
gjc@3408
   253
    cls.add_method('Write', 'void', [param('uint8_t *', 'buffer', transfer_ownership=False, is_const=True), param('uint32_t', 'size')])
gjc@3408
   254
    ## tag-buffer.h: uint8_t ns3::TagBuffer::ReadU8() [member function]
gjc@3408
   255
    cls.add_method('ReadU8', 'uint8_t', [])
gjc@3408
   256
    ## tag-buffer.h: uint16_t ns3::TagBuffer::ReadU16() [member function]
gjc@3408
   257
    cls.add_method('ReadU16', 'uint16_t', [])
gjc@3408
   258
    ## tag-buffer.h: uint32_t ns3::TagBuffer::ReadU32() [member function]
gjc@3408
   259
    cls.add_method('ReadU32', 'uint32_t', [])
gjc@3408
   260
    ## tag-buffer.h: uint64_t ns3::TagBuffer::ReadU64() [member function]
gjc@3408
   261
    cls.add_method('ReadU64', 'uint64_t', [])
gjc@3408
   262
    ## tag-buffer.h: double ns3::TagBuffer::ReadDouble() [member function]
gjc@3408
   263
    cls.add_method('ReadDouble', 'double', [])
gjc@3408
   264
    ## tag-buffer.h: void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
gjc@3408
   265
    cls.add_method('Read', 'void', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
gjc@3408
   266
    return
gjc@3408
   267
gjc@3408
   268
def register_Ns3Buffer_methods(root_module, cls):
gjc@3408
   269
    ## buffer.h: uint32_t ns3::Buffer::GetSize() const [member function]
gjc@3408
   270
    cls.add_method('GetSize', 'uint32_t', [], is_const=True)
gjc@3408
   271
    ## buffer.h: uint8_t const * ns3::Buffer::PeekData() const [member function]
gjc@3408
   272
    cls.add_method('PeekData', retval('uint8_t *', is_const=True, caller_owns_return=False), [], is_const=True)
gjc@3408
   273
    ## buffer.h: bool ns3::Buffer::AddAtStart(uint32_t start) [member function]
gjc@3408
   274
    cls.add_method('AddAtStart', 'bool', [param('uint32_t', 'start')])
gjc@3408
   275
    ## buffer.h: bool ns3::Buffer::AddAtEnd(uint32_t end) [member function]
gjc@3408
   276
    cls.add_method('AddAtEnd', 'bool', [param('uint32_t', 'end')])
gjc@3408
   277
    ## buffer.h: void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function]
gjc@3408
   278
    cls.add_method('AddAtEnd', 'void', [param('ns3::Buffer&', 'o', is_const=True)])
gjc@3408
   279
    ## buffer.h: void ns3::Buffer::RemoveAtStart(uint32_t start) [member function]
gjc@3408
   280
    cls.add_method('RemoveAtStart', 'void', [param('uint32_t', 'start')])
gjc@3408
   281
    ## buffer.h: void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function]
gjc@3408
   282
    cls.add_method('RemoveAtEnd', 'void', [param('uint32_t', 'end')])
gjc@3408
   283
    ## buffer.h: ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function]
gjc@3408
   284
    cls.add_method('CreateFragment', 'ns3::Buffer', [param('uint32_t', 'start'), param('uint32_t', 'length')], is_const=True)
gjc@3408
   285
    ## buffer.h: ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function]
gjc@3408
   286
    cls.add_method('Begin', 'ns3::Buffer::Iterator', [], is_const=True)
gjc@3408
   287
    ## buffer.h: ns3::Buffer::Iterator ns3::Buffer::End() const [member function]
gjc@3408
   288
    cls.add_method('End', 'ns3::Buffer::Iterator', [], is_const=True)
gjc@3408
   289
    ## buffer.h: ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function]
gjc@3408
   290
    cls.add_method('CreateFullCopy', 'ns3::Buffer', [], is_const=True)
gjc@3408
   291
    ## buffer.h: int32_t ns3::Buffer::GetCurrentStartOffset() const [member function]
gjc@3408
   292
    cls.add_method('GetCurrentStartOffset', 'int32_t', [], is_const=True)
gjc@3408
   293
    ## buffer.h: int32_t ns3::Buffer::GetCurrentEndOffset() const [member function]
gjc@3408
   294
    cls.add_method('GetCurrentEndOffset', 'int32_t', [], is_const=True)
gjc@3408
   295
    ## buffer.h: ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor]
gjc@3408
   296
    cls.add_constructor([param('ns3::Buffer&', 'o', is_const=True)], visibility='public')
gjc@3408
   297
    ## buffer.h: ns3::Buffer::Buffer() [constructor]
gjc@3408
   298
    cls.add_constructor([], visibility='public')
gjc@3408
   299
    ## buffer.h: ns3::Buffer::Buffer(uint32_t dataSize) [constructor]
gjc@3408
   300
    cls.add_constructor([param('uint32_t', 'dataSize')], visibility='public')
gjc@3408
   301
    return
gjc@3408
   302
gjc@3408
   303
def register_Ns3BufferIterator_methods(root_module, cls):
gjc@3408
   304
    ## buffer.h: ns3::Buffer::Iterator::Iterator() [constructor]
gjc@3408
   305
    cls.add_constructor([], visibility='public')
gjc@3408
   306
    ## buffer.h: void ns3::Buffer::Iterator::Next() [member function]
gjc@3408
   307
    cls.add_method('Next', 'void', [])
gjc@3408
   308
    ## buffer.h: void ns3::Buffer::Iterator::Prev() [member function]
gjc@3408
   309
    cls.add_method('Prev', 'void', [])
gjc@3408
   310
    ## buffer.h: void ns3::Buffer::Iterator::Next(uint32_t delta) [member function]
gjc@3408
   311
    cls.add_method('Next', 'void', [param('uint32_t', 'delta')])
gjc@3408
   312
    ## buffer.h: void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function]
gjc@3408
   313
    cls.add_method('Prev', 'void', [param('uint32_t', 'delta')])
gjc@3408
   314
    ## buffer.h: uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function]
gjc@3408
   315
    cls.add_method('GetDistanceFrom', 'uint32_t', [param('ns3::Buffer::Iterator&', 'o', is_const=True)], is_const=True)
gjc@3408
   316
    ## buffer.h: bool ns3::Buffer::Iterator::IsEnd() const [member function]
gjc@3408
   317
    cls.add_method('IsEnd', 'bool', [], is_const=True)
gjc@3408
   318
    ## buffer.h: bool ns3::Buffer::Iterator::IsStart() const [member function]
gjc@3408
   319
    cls.add_method('IsStart', 'bool', [], is_const=True)
gjc@3408
   320
    ## buffer.h: void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function]
gjc@3408
   321
    cls.add_method('WriteU8', 'void', [param('uint8_t', 'data')])
gjc@3408
   322
    ## buffer.h: void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function]
gjc@3408
   323
    cls.add_method('WriteU8', 'void', [param('uint8_t', 'data'), param('uint32_t', 'len')])
gjc@3408
   324
    ## buffer.h: void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function]
gjc@3408
   325
    cls.add_method('WriteU16', 'void', [param('uint16_t', 'data')])
gjc@3408
   326
    ## buffer.h: void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function]
gjc@3408
   327
    cls.add_method('WriteU32', 'void', [param('uint32_t', 'data')])
gjc@3408
   328
    ## buffer.h: void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function]
gjc@3408
   329
    cls.add_method('WriteU64', 'void', [param('uint64_t', 'data')])
gjc@3408
   330
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function]
gjc@3408
   331
    cls.add_method('WriteHtolsbU16', 'void', [param('uint16_t', 'data')])
gjc@3408
   332
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function]
gjc@3408
   333
    cls.add_method('WriteHtolsbU32', 'void', [param('uint32_t', 'data')])
gjc@3408
   334
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function]
gjc@3408
   335
    cls.add_method('WriteHtolsbU64', 'void', [param('uint64_t', 'data')])
gjc@3408
   336
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function]
gjc@3408
   337
    cls.add_method('WriteHtonU16', 'void', [param('uint16_t', 'data')])
gjc@3408
   338
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function]
gjc@3408
   339
    cls.add_method('WriteHtonU32', 'void', [param('uint32_t', 'data')])
gjc@3408
   340
    ## buffer.h: void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function]
gjc@3408
   341
    cls.add_method('WriteHtonU64', 'void', [param('uint64_t', 'data')])
gjc@3408
   342
    ## buffer.h: void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function]
gjc@3408
   343
    cls.add_method('Write', 'void', [param('uint8_t *', 'buffer', transfer_ownership=False, is_const=True), param('uint32_t', 'size')])
gjc@3408
   344
    ## buffer.h: void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function]
gjc@3408
   345
    cls.add_method('Write', 'void', [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')])
gjc@3408
   346
    ## buffer.h: uint8_t ns3::Buffer::Iterator::ReadU8() [member function]
gjc@3408
   347
    cls.add_method('ReadU8', 'uint8_t', [])
gjc@3408
   348
    ## buffer.h: uint16_t ns3::Buffer::Iterator::ReadU16() [member function]
gjc@3408
   349
    cls.add_method('ReadU16', 'uint16_t', [])
gjc@3408
   350
    ## buffer.h: uint32_t ns3::Buffer::Iterator::ReadU32() [member function]
gjc@3408
   351
    cls.add_method('ReadU32', 'uint32_t', [])
gjc@3408
   352
    ## buffer.h: uint64_t ns3::Buffer::Iterator::ReadU64() [member function]
gjc@3408
   353
    cls.add_method('ReadU64', 'uint64_t', [])
gjc@3408
   354
    ## buffer.h: uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function]
gjc@3408
   355
    cls.add_method('ReadNtohU16', 'uint16_t', [])
gjc@3408
   356
    ## buffer.h: uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function]
gjc@3408
   357
    cls.add_method('ReadNtohU32', 'uint32_t', [])
gjc@3408
   358
    ## buffer.h: uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function]
gjc@3408
   359
    cls.add_method('ReadNtohU64', 'uint64_t', [])
gjc@3408
   360
    ## buffer.h: uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
gjc@3408
   361
    cls.add_method('ReadLsbtohU16', 'uint16_t', [])
gjc@3408
   362
    ## buffer.h: uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function]
gjc@3408
   363
    cls.add_method('ReadLsbtohU32', 'uint32_t', [])
gjc@3408
   364
    ## buffer.h: uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function]
gjc@3408
   365
    cls.add_method('ReadLsbtohU64', 'uint64_t', [])
gjc@3408
   366
    ## buffer.h: void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function]
gjc@3408
   367
    cls.add_method('Read', 'void', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
gjc@3408
   368
    ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
gjc@3408
   369
    cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size')])
gjc@3408
   370
    ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
gjc@3408
   371
    cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
gjc@3408
   372
    return
gjc@3408
   373
gjc@3408
   374
def register_Ns3Chunk_methods(root_module, cls):
gjc@3408
   375
    ## chunk.h: ns3::Chunk::Chunk() [constructor]
gjc@3408
   376
    cls.add_constructor([], visibility='public')
gjc@3408
   377
    ## chunk.h: ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
gjc@3408
   378
    cls.add_constructor([param('ns3::Chunk&', 'arg0', is_const=True)], visibility='public')
gjc@3408
   379
    ## chunk.h: static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
gjc@3408
   380
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
gjc@3408
   381
    ## chunk.h: uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3408
   382
    cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_virtual=True)
gjc@3408
   383
    ## chunk.h: void ns3::Chunk::Print(std::ostream & os) const [member function]
gjc@3408
   384
    cls.add_method('Print', 'void', [param('std::ostream&', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   385
    return
gjc@3408
   386
gjc@3408
   387
def register_Ns3DataRate_methods(root_module, cls):
gjc@3408
   388
    ## data-rate.h: ns3::DataRate::DataRate(ns3::DataRate const & arg0) [copy constructor]
gjc@3408
   389
    cls.add_constructor([param('ns3::DataRate&', 'arg0', is_const=True)], visibility='public')
gjc@3408
   390
    ## data-rate.h: ns3::DataRate::DataRate() [constructor]
gjc@3408
   391
    cls.add_constructor([], visibility='public')
gjc@3408
   392
    ## data-rate.h: ns3::DataRate::DataRate(uint64_t bps) [constructor]
gjc@3408
   393
    cls.add_constructor([param('uint64_t', 'bps')], visibility='public')
gjc@3408
   394
    ## data-rate.h: ns3::DataRate::DataRate(std::string rate) [constructor]
gjc@3408
   395
    cls.add_constructor([param('std::string', 'rate')], visibility='public')
gjc@3408
   396
    ## data-rate.h: double ns3::DataRate::CalculateTxTime(uint32_t bytes) const [member function]
gjc@3408
   397
    cls.add_method('CalculateTxTime', 'double', [param('uint32_t', 'bytes')], is_const=True)
gjc@3408
   398
    ## data-rate.h: uint64_t ns3::DataRate::GetBitRate() const [member function]
gjc@3408
   399
    cls.add_method('GetBitRate', 'uint64_t', [], is_const=True)
gjc@3408
   400
    cls.add_output_stream_operator()
gjc@3408
   401
    return
gjc@3408
   402
gjc@3408
   403
def register_Ns3Tag_methods(root_module, cls):
gjc@3408
   404
    ## tag.h: static ns3::TypeId ns3::Tag::GetTypeId() [member function]
gjc@3408
   405
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
gjc@3408
   406
    ## tag.h: uint32_t ns3::Tag::GetSerializedSize() const [member function]
gjc@3408
   407
    cls.add_method('GetSerializedSize', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   408
    ## tag.h: void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
gjc@3408
   409
    cls.add_method('Serialize', 'void', [param('ns3::TagBuffer', 'i')], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   410
    ## tag.h: void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
gjc@3408
   411
    cls.add_method('Deserialize', 'void', [param('ns3::TagBuffer', 'i')], is_pure_virtual=True, is_virtual=True)
gjc@3408
   412
    ## tag.h: void ns3::Tag::Print(std::ostream & os) const [member function]
gjc@3408
   413
    cls.add_method('Print', 'void', [param('std::ostream&', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   414
    cls.add_constructor([])
gjc@3408
   415
    return
gjc@3408
   416
gjc@3408
   417
def register_Ns3PcapWriter_methods(root_module, cls):
gjc@3408
   418
    ## pcap-writer.h: ns3::PcapWriter::PcapWriter() [constructor]
gjc@3408
   419
    cls.add_constructor([], visibility='public')
gjc@3408
   420
    ## pcap-writer.h: void ns3::PcapWriter::Open(std::string const & name) [member function]
gjc@3408
   421
    cls.add_method('Open', 'void', [param('std::string&', 'name', is_const=True)])
gjc@3408
   422
    ## pcap-writer.h: void ns3::PcapWriter::WriteEthernetHeader() [member function]
gjc@3408
   423
    cls.add_method('WriteEthernetHeader', 'void', [])
gjc@3408
   424
    ## pcap-writer.h: void ns3::PcapWriter::WriteIpHeader() [member function]
gjc@3408
   425
    cls.add_method('WriteIpHeader', 'void', [])
gjc@3408
   426
    ## pcap-writer.h: void ns3::PcapWriter::WriteWifiHeader() [member function]
gjc@3408
   427
    cls.add_method('WriteWifiHeader', 'void', [])
gjc@3408
   428
    ## pcap-writer.h: void ns3::PcapWriter::WritePppHeader() [member function]
gjc@3408
   429
    cls.add_method('WritePppHeader', 'void', [])
gjc@3408
   430
    ## pcap-writer.h: void ns3::PcapWriter::WritePacket(ns3::Ptr<const ns3::Packet> packet) [member function]
gjc@3408
   431
    cls.add_method('WritePacket', 'void', [param('ns3::Ptr< const ns3::Packet >', 'packet')])
gjc@3408
   432
    return
gjc@3408
   433
gjc@3408
   434
def register_Ns3DataRateChecker_methods(root_module, cls):
gjc@3408
   435
    cls.add_constructor([])
gjc@3408
   436
    return
gjc@3408
   437
gjc@3408
   438
def register_Ns3ErrorModel_methods(root_module, cls):
gjc@3408
   439
    ## error-model.h: static ns3::TypeId ns3::ErrorModel::GetTypeId() [member function]
gjc@3408
   440
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
gjc@3408
   441
    ## error-model.h: ns3::ErrorModel::ErrorModel() [constructor]
gjc@3408
   442
    cls.add_constructor([], visibility='public')
gjc@3408
   443
    ## error-model.h: bool ns3::ErrorModel::IsCorrupt(ns3::Ptr<ns3::Packet> pkt) [member function]
gjc@3408
   444
    cls.add_method('IsCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'pkt')])
gjc@3408
   445
    ## error-model.h: void ns3::ErrorModel::Reset() [member function]
gjc@3408
   446
    cls.add_method('Reset', 'void', [])
gjc@3408
   447
    ## error-model.h: void ns3::ErrorModel::Enable() [member function]
gjc@3408
   448
    cls.add_method('Enable', 'void', [])
gjc@3408
   449
    ## error-model.h: void ns3::ErrorModel::Disable() [member function]
gjc@3408
   450
    cls.add_method('Disable', 'void', [])
gjc@3408
   451
    ## error-model.h: bool ns3::ErrorModel::IsEnabled() const [member function]
gjc@3408
   452
    cls.add_method('IsEnabled', 'bool', [], is_const=True)
gjc@3408
   453
    ## error-model.h: bool ns3::ErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> arg0) [member function]
gjc@3408
   454
    cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'arg0')], is_pure_virtual=True, visibility='private', is_virtual=True)
gjc@3408
   455
    ## error-model.h: void ns3::ErrorModel::DoReset() [member function]
gjc@3408
   456
    cls.add_method('DoReset', 'void', [], is_pure_virtual=True, visibility='private', is_virtual=True)
gjc@3408
   457
    return
gjc@3408
   458
gjc@3408
   459
def register_Ns3Header_methods(root_module, cls):
gjc@3408
   460
    ## header.h: ns3::Header::Header() [constructor]
gjc@3408
   461
    cls.add_constructor([], visibility='public')
gjc@3408
   462
    ## header.h: ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
gjc@3408
   463
    cls.add_constructor([param('ns3::Header&', 'arg0', is_const=True)], visibility='public')
gjc@3408
   464
    ## header.h: uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
gjc@3408
   465
    cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_virtual=True)
gjc@3408
   466
    ## header.h: uint32_t ns3::Header::GetSerializedSize() const [member function]
gjc@3408
   467
    cls.add_method('GetSerializedSize', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   468
    ## header.h: static ns3::TypeId ns3::Header::GetTypeId() [member function]
gjc@3408
   469
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
gjc@3408
   470
    ## header.h: void ns3::Header::Print(std::ostream & os) const [member function]
gjc@3408
   471
    cls.add_method('Print', 'void', [param('std::ostream&', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   472
    ## header.h: void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3408
   473
    cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   474
    cls.add_output_stream_operator()
gjc@3408
   475
    return
gjc@3408
   476
gjc@3408
   477
def register_Ns3Trailer_methods(root_module, cls):
gjc@3408
   478
    ## trailer.h: ns3::Trailer::Trailer() [constructor]
gjc@3408
   479
    cls.add_constructor([], visibility='public')
gjc@3408
   480
    ## trailer.h: ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
gjc@3408
   481
    cls.add_constructor([param('ns3::Trailer&', 'arg0', is_const=True)], visibility='public')
gjc@3408
   482
    ## trailer.h: uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
gjc@3408
   483
    cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'end')], is_pure_virtual=True, is_virtual=True)
gjc@3408
   484
    ## trailer.h: uint32_t ns3::Trailer::GetSerializedSize() const [member function]
gjc@3408
   485
    cls.add_method('GetSerializedSize', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   486
    ## trailer.h: static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
gjc@3408
   487
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
gjc@3408
   488
    ## trailer.h: void ns3::Trailer::Print(std::ostream & os) const [member function]
gjc@3408
   489
    cls.add_method('Print', 'void', [param('std::ostream&', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   490
    ## trailer.h: void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
gjc@3408
   491
    cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_const=True, is_virtual=True)
gjc@3408
   492
    cls.add_output_stream_operator()
gjc@3408
   493
    return
gjc@3408
   494
gjc@3408
   495
def register_Ns3ListErrorModel_methods(root_module, cls):
gjc@3408
   496
    ## error-model.h: static ns3::TypeId ns3::ListErrorModel::GetTypeId() [member function]
gjc@3408
   497
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
gjc@3408
   498
    ## error-model.h: ns3::ListErrorModel::ListErrorModel() [constructor]
gjc@3408
   499
    cls.add_constructor([], visibility='public')
gjc@3408
   500
    ## error-model.h: std::list<unsigned int, std::allocator<unsigned int> > ns3::ListErrorModel::GetList() const [member function]
gjc@3408
   501
    cls.add_method('GetList', 'std::list< unsigned int, std::allocator< unsigned int > >', [], is_const=True)
gjc@3408
   502
    ## error-model.h: void ns3::ListErrorModel::SetList(std::list<unsigned int, std::allocator<unsigned int> > const & packetlist) [member function]
gjc@3408
   503
    cls.add_method('SetList', 'void', [param('std::list< unsigned int, std::allocator< unsigned int > >&', 'packetlist', is_const=True)])
gjc@3408
   504
    ## error-model.h: bool ns3::ListErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3408
   505
    cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True)
gjc@3408
   506
    ## error-model.h: void ns3::ListErrorModel::DoReset() [member function]
gjc@3408
   507
    cls.add_method('DoReset', 'void', [], visibility='private', is_virtual=True)
gjc@3408
   508
    return
gjc@3408
   509
gjc@3408
   510
def register_Ns3DataRateValue_methods(root_module, cls):
gjc@3408
   511
    ## data-rate.h: ns3::DataRateValue::DataRateValue() [constructor]
gjc@3408
   512
    cls.add_constructor([], visibility='public')
gjc@3408
   513
    ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor]
gjc@3408
   514
    cls.add_constructor([param('ns3::DataRate&', 'value', is_const=True)], visibility='public')
gjc@3408
   515
    ## data-rate.h: void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function]
gjc@3408
   516
    cls.add_method('Set', 'void', [param('ns3::DataRate&', 'value', is_const=True)])
gjc@3408
   517
    ## data-rate.h: ns3::DataRate ns3::DataRateValue::Get() const [member function]
gjc@3408
   518
    cls.add_method('Get', 'ns3::DataRate', [], is_const=True)
gjc@3408
   519
    ## data-rate.h: ns3::Ptr<ns3::AttributeValue> ns3::DataRateValue::Copy() const [member function]
gjc@3408
   520
    cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True)
gjc@3408
   521
    ## data-rate.h: std::string ns3::DataRateValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
gjc@3408
   522
    cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True)
gjc@3408
   523
    ## data-rate.h: bool ns3::DataRateValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
gjc@3408
   524
    cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True)
gjc@3408
   525
    return
gjc@3408
   526
gjc@3408
   527
def register_Ns3RateErrorModel_methods(root_module, cls):
gjc@3408
   528
    ## error-model.h: static ns3::TypeId ns3::RateErrorModel::GetTypeId() [member function]
gjc@3408
   529
    cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
gjc@3408
   530
    ## error-model.h: ns3::RateErrorModel::RateErrorModel() [constructor]
gjc@3408
   531
    cls.add_constructor([], visibility='public')
gjc@3408
   532
    ## error-model.h: ns3::ErrorUnit ns3::RateErrorModel::GetUnit() const [member function]
gjc@3408
   533
    cls.add_method('GetUnit', 'ns3::ErrorUnit', [], is_const=True)
gjc@3408
   534
    ## error-model.h: void ns3::RateErrorModel::SetUnit(ns3::ErrorUnit error_unit) [member function]
gjc@3408
   535
    cls.add_method('SetUnit', 'void', [param('ns3::ErrorUnit', 'error_unit')])
gjc@3408
   536
    ## error-model.h: double ns3::RateErrorModel::GetRate() const [member function]
gjc@3408
   537
    cls.add_method('GetRate', 'double', [], is_const=True)
gjc@3408
   538
    ## error-model.h: void ns3::RateErrorModel::SetRate(double rate) [member function]
gjc@3408
   539
    cls.add_method('SetRate', 'void', [param('double', 'rate')])
gjc@3408
   540
    ## error-model.h: void ns3::RateErrorModel::SetRandomVariable(ns3::RandomVariable const & ranvar) [member function]
gjc@3408
   541
    cls.add_method('SetRandomVariable', 'void', [param('ns3::RandomVariable&', 'ranvar', is_const=True)])
gjc@3408
   542
    ## error-model.h: bool ns3::RateErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3408
   543
    cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True)
gjc@3408
   544
    ## error-model.h: bool ns3::RateErrorModel::DoCorruptPkt(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3408
   545
    cls.add_method('DoCorruptPkt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True)
gjc@3408
   546
    ## error-model.h: bool ns3::RateErrorModel::DoCorruptByte(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3408
   547
    cls.add_method('DoCorruptByte', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True)
gjc@3408
   548
    ## error-model.h: bool ns3::RateErrorModel::DoCorruptBit(ns3::Ptr<ns3::Packet> p) [member function]
gjc@3408
   549
    cls.add_method('DoCorruptBit', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True)
gjc@3408
   550
    ## error-model.h: void ns3::RateErrorModel::DoReset() [member function]
gjc@3408
   551
    cls.add_method('DoReset', 'void', [], visibility='private', is_virtual=True)
gjc@3408
   552
    return
gjc@3408
   553
gjc@3408
   554
def register_functions(root_module):
gjc@3408
   555
    module = root_module
gjc@3408
   556
    ## data-rate.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeDataRateChecker() [free function]
gjc@3408
   557
    module.add_function('MakeDataRateChecker', 'ns3::Ptr< ns3::AttributeChecker const >', [])
gjc@3408
   558
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
gjc@3408
   559
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
gjc@3408
   560
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
gjc@3408
   561
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
gjc@3408
   562
    return
gjc@3408
   563
gjc@3408
   564
def register_functions_ns3_internal(module, root_module):
gjc@3408
   565
    return
gjc@3408
   566
gjc@3408
   567
def register_functions_ns3_TimeStepPrecision(module, root_module):
gjc@3408
   568
    return
gjc@3408
   569
gjc@3408
   570
def register_functions_ns3_Config(module, root_module):
gjc@3408
   571
    return
gjc@3408
   572
gjc@3408
   573
def register_functions_ns3_olsr(module, root_module):
gjc@3408
   574
    return
gjc@3408
   575