bindings/python/ns3_module_common.py
changeset 4218 debf1a8a96d3
parent 3972 a84f2ab246e6
child 4241 c35796bc0b4b
     1.1 --- a/bindings/python/ns3_module_common.py	Tue Dec 02 12:15:18 2008 -0800
     1.2 +++ b/bindings/python/ns3_module_common.py	Tue Jan 13 17:15:44 2009 -0500
     1.3 @@ -190,8 +190,6 @@
     1.4      return
     1.5  
     1.6  def register_Ns3BufferIterator_methods(root_module, cls):
     1.7 -    ## buffer.h: ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor]
     1.8 -    cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')])
     1.9      ## buffer.h: ns3::Buffer::Iterator::Iterator() [constructor]
    1.10      cls.add_constructor([])
    1.11      ## buffer.h: void ns3::Buffer::Iterator::Next() [member function]
    1.12 @@ -334,6 +332,7 @@
    1.13                     'uint32_t', 
    1.14                     [], 
    1.15                     is_const=True)
    1.16 +    cls.add_copy_constructor()
    1.17      return
    1.18  
    1.19  def register_Ns3DataRate_methods(root_module, cls):
    1.20 @@ -596,15 +595,11 @@
    1.21      cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
    1.22      ## packet-metadata.h: ns3::PacketMetadata::Item::current [variable]
    1.23      cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
    1.24 -    ## packet-metadata.h: ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
    1.25 -    cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
    1.26 -    ## packet-metadata.h: ns3::PacketMetadata::Item::Item() [constructor]
    1.27      cls.add_constructor([])
    1.28 +    cls.add_copy_constructor()
    1.29      return
    1.30  
    1.31  def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
    1.32 -    ## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
    1.33 -    cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
    1.34      ## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
    1.35      cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
    1.36      ## packet-metadata.h: bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
    1.37 @@ -616,13 +611,10 @@
    1.38      cls.add_method('Next', 
    1.39                     'ns3::PacketMetadata::Item', 
    1.40                     [])
    1.41 +    cls.add_copy_constructor()
    1.42      return
    1.43  
    1.44  def register_Ns3Tag_methods(root_module, cls):
    1.45 -    ## tag.h: ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
    1.46 -    cls.add_constructor([param('ns3::Tag const &', 'arg0')])
    1.47 -    ## tag.h: ns3::Tag::Tag() [constructor]
    1.48 -    cls.add_constructor([])
    1.49      ## tag.h: static ns3::TypeId ns3::Tag::GetTypeId() [member function]
    1.50      cls.add_method('GetTypeId', 
    1.51                     'ns3::TypeId', 
    1.52 @@ -648,11 +640,11 @@
    1.53                     'void', 
    1.54                     [param('std::ostream &', 'os')], 
    1.55                     is_pure_virtual=True, is_const=True, is_virtual=True)
    1.56 +    cls.add_constructor([])
    1.57 +    cls.add_copy_constructor()
    1.58      return
    1.59  
    1.60  def register_Ns3TagBuffer_methods(root_module, cls):
    1.61 -    ## tag-buffer.h: ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
    1.62 -    cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
    1.63      ## tag-buffer.h: ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
    1.64      cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
    1.65      ## tag-buffer.h: void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
    1.66 @@ -711,11 +703,10 @@
    1.67      cls.add_method('Read', 
    1.68                     'void', 
    1.69                     [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
    1.70 +    cls.add_copy_constructor()
    1.71      return
    1.72  
    1.73  def register_Ns3TagIterator_methods(root_module, cls):
    1.74 -    ## packet.h: ns3::TagIterator::TagIterator(ns3::TagIterator const & arg0) [copy constructor]
    1.75 -    cls.add_constructor([param('ns3::TagIterator const &', 'arg0')])
    1.76      ## packet.h: bool ns3::TagIterator::HasNext() const [member function]
    1.77      cls.add_method('HasNext', 
    1.78                     'bool', 
    1.79 @@ -728,8 +719,6 @@
    1.80      return
    1.81  
    1.82  def register_Ns3TagIteratorItem_methods(root_module, cls):
    1.83 -    ## packet.h: ns3::TagIterator::Item::Item(ns3::TagIterator::Item const & arg0) [copy constructor]
    1.84 -    cls.add_constructor([param('ns3::TagIterator::Item const &', 'arg0')])
    1.85      ## packet.h: ns3::TypeId ns3::TagIterator::Item::GetTypeId() const [member function]
    1.86      cls.add_method('GetTypeId', 
    1.87                     'ns3::TypeId', 
    1.88 @@ -750,6 +739,7 @@
    1.89                     'void', 
    1.90                     [param('ns3::Tag &', 'tag')], 
    1.91                     is_const=True)
    1.92 +    cls.add_copy_constructor()
    1.93      return
    1.94  
    1.95  def register_Ns3TagList_methods(root_module, cls):
    1.96 @@ -785,8 +775,6 @@
    1.97      return
    1.98  
    1.99  def register_Ns3TagListIterator_methods(root_module, cls):
   1.100 -    ## tag-list.h: ns3::TagList::Iterator::Iterator(ns3::TagList::Iterator const & arg0) [copy constructor]
   1.101 -    cls.add_constructor([param('ns3::TagList::Iterator const &', 'arg0')])
   1.102      ## tag-list.h: bool ns3::TagList::Iterator::HasNext() const [member function]
   1.103      cls.add_method('HasNext', 
   1.104                     'bool', 
   1.105 @@ -801,6 +789,7 @@
   1.106                     'uint32_t', 
   1.107                     [], 
   1.108                     is_const=True)
   1.109 +    cls.add_copy_constructor()
   1.110      return
   1.111  
   1.112  def register_Ns3TagListIteratorItem_methods(root_module, cls):
   1.113 @@ -814,17 +803,16 @@
   1.114      cls.add_instance_attribute('end', 'int32_t', is_const=False)
   1.115      ## tag-list.h: ns3::TagList::Iterator::Item::buf [variable]
   1.116      cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
   1.117 -    ## tag-list.h: ns3::TagList::Iterator::Item::Item(ns3::TagList::Iterator::Item const & arg0) [copy constructor]
   1.118 -    cls.add_constructor([param('ns3::TagList::Iterator::Item const &', 'arg0')])
   1.119      ## tag-list.h: ns3::TagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
   1.120      cls.add_constructor([param('ns3::TagBuffer', 'buf')])
   1.121 +    cls.add_copy_constructor()
   1.122      return
   1.123  
   1.124  def register_Ns3Chunk_methods(root_module, cls):
   1.125 +    ## chunk.h: ns3::Chunk::Chunk() [constructor]
   1.126 +    cls.add_constructor([])
   1.127      ## chunk.h: ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
   1.128      cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
   1.129 -    ## chunk.h: ns3::Chunk::Chunk() [constructor]
   1.130 -    cls.add_constructor([])
   1.131      ## chunk.h: static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
   1.132      cls.add_method('GetTypeId', 
   1.133                     'ns3::TypeId', 
   1.134 @@ -843,15 +831,11 @@
   1.135      return
   1.136  
   1.137  def register_Ns3DataRateChecker_methods(root_module, cls):
   1.138 -    ## data-rate.h: ns3::DataRateChecker::DataRateChecker(ns3::DataRateChecker const & arg0) [copy constructor]
   1.139 -    cls.add_constructor([param('ns3::DataRateChecker const &', 'arg0')])
   1.140 -    ## data-rate.h: ns3::DataRateChecker::DataRateChecker() [constructor]
   1.141      cls.add_constructor([])
   1.142 +    cls.add_copy_constructor()
   1.143      return
   1.144  
   1.145  def register_Ns3DataRateValue_methods(root_module, cls):
   1.146 -    ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor]
   1.147 -    cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')])
   1.148      ## data-rate.h: ns3::DataRateValue::DataRateValue() [constructor]
   1.149      cls.add_constructor([])
   1.150      ## data-rate.h: ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor]
   1.151 @@ -880,6 +864,7 @@
   1.152                     'bool', 
   1.153                     [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], 
   1.154                     is_virtual=True)
   1.155 +    cls.add_copy_constructor()
   1.156      return
   1.157  
   1.158  def register_Ns3Header_methods(root_module, cls):
   1.159 @@ -916,8 +901,6 @@
   1.160      return
   1.161  
   1.162  def register_Ns3PcapWriter_methods(root_module, cls):
   1.163 -    ## pcap-writer.h: ns3::PcapWriter::PcapWriter(ns3::PcapWriter const & arg0) [copy constructor]
   1.164 -    cls.add_constructor([param('ns3::PcapWriter const &', 'arg0')])
   1.165      ## pcap-writer.h: ns3::PcapWriter::PcapWriter() [constructor]
   1.166      cls.add_constructor([])
   1.167      ## pcap-writer.h: void ns3::PcapWriter::Open(std::string const & name) [member function]
   1.168 @@ -944,6 +927,7 @@
   1.169      cls.add_method('WritePacket', 
   1.170                     'void', 
   1.171                     [param('ns3::Ptr< ns3::Packet const >', 'packet')])
   1.172 +    cls.add_copy_constructor()
   1.173      return
   1.174  
   1.175  def register_Ns3Trailer_methods(root_module, cls):
   1.176 @@ -980,8 +964,6 @@
   1.177      return
   1.178  
   1.179  def register_Ns3ErrorModel_methods(root_module, cls):
   1.180 -    ## error-model.h: ns3::ErrorModel::ErrorModel(ns3::ErrorModel const & arg0) [copy constructor]
   1.181 -    cls.add_constructor([param('ns3::ErrorModel const &', 'arg0')])
   1.182      ## error-model.h: static ns3::TypeId ns3::ErrorModel::GetTypeId() [member function]
   1.183      cls.add_method('GetTypeId', 
   1.184                     'ns3::TypeId', 
   1.185 @@ -1020,11 +1002,10 @@
   1.186                     'void', 
   1.187                     [], 
   1.188                     is_pure_virtual=True, visibility='private', is_virtual=True)
   1.189 +    cls.add_copy_constructor()
   1.190      return
   1.191  
   1.192  def register_Ns3ListErrorModel_methods(root_module, cls):
   1.193 -    ## error-model.h: ns3::ListErrorModel::ListErrorModel(ns3::ListErrorModel const & arg0) [copy constructor]
   1.194 -    cls.add_constructor([param('ns3::ListErrorModel const &', 'arg0')])
   1.195      ## error-model.h: static ns3::TypeId ns3::ListErrorModel::GetTypeId() [member function]
   1.196      cls.add_method('GetTypeId', 
   1.197                     'ns3::TypeId', 
   1.198 @@ -1051,11 +1032,10 @@
   1.199                     'void', 
   1.200                     [], 
   1.201                     visibility='private', is_virtual=True)
   1.202 +    cls.add_copy_constructor()
   1.203      return
   1.204  
   1.205  def register_Ns3RateErrorModel_methods(root_module, cls):
   1.206 -    ## error-model.h: ns3::RateErrorModel::RateErrorModel(ns3::RateErrorModel const & arg0) [copy constructor]
   1.207 -    cls.add_constructor([param('ns3::RateErrorModel const &', 'arg0')])
   1.208      ## error-model.h: static ns3::TypeId ns3::RateErrorModel::GetTypeId() [member function]
   1.209      cls.add_method('GetTypeId', 
   1.210                     'ns3::TypeId', 
   1.211 @@ -1110,6 +1090,7 @@
   1.212                     'void', 
   1.213                     [], 
   1.214                     visibility='private', is_virtual=True)
   1.215 +    cls.add_copy_constructor()
   1.216      return
   1.217  
   1.218  def register_functions(root_module):