New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
1.1 --- a/bindings/python/ns3_module_bridge.py Tue Aug 19 17:45:41 2008 +0100
1.2 +++ b/bindings/python/ns3_module_bridge.py Tue Aug 19 17:48:09 2008 +0100
1.3 @@ -215,6 +215,7 @@
1.4 'ns3::Ptr< ns3::NetDevice >',
1.5 [param('ns3::Mac48Address', 'source')],
1.6 visibility='protected')
1.7 + cls.add_copy_constructor()
1.8 return
1.9
1.10 def register_Ns3BridgeChannel_methods(root_module, cls):
1.11 @@ -239,6 +240,7 @@
1.12 'ns3::Ptr< ns3::NetDevice >',
1.13 [param('uint32_t', 'i')],
1.14 is_const=True, is_virtual=True)
1.15 + cls.add_copy_constructor()
1.16 return
1.17
1.18 def register_functions(root_module):
2.1 --- a/bindings/python/ns3_module_common.py Tue Aug 19 17:45:41 2008 +0100
2.2 +++ b/bindings/python/ns3_module_common.py Tue Aug 19 17:48:09 2008 +0100
2.3 @@ -267,6 +267,7 @@
2.4 'void',
2.5 [param('ns3::Tag&', 'tag')],
2.6 is_const=True)
2.7 + cls.add_copy_constructor()
2.8 return
2.9
2.10 def register_Ns3TagList_methods(root_module, cls):
2.11 @@ -316,6 +317,7 @@
2.12 'uint32_t',
2.13 [],
2.14 is_const=True)
2.15 + cls.add_copy_constructor()
2.16 return
2.17
2.18 def register_Ns3TagListIteratorItem_methods(root_module, cls):
2.19 @@ -331,6 +333,7 @@
2.20 cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
2.21 ## tag-list.h: ns3::TagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
2.22 cls.add_constructor([param('ns3::TagBuffer', 'buf')])
2.23 + cls.add_copy_constructor()
2.24 return
2.25
2.26 def register_Ns3TagBuffer_methods(root_module, cls):
2.27 @@ -392,6 +395,7 @@
2.28 cls.add_method('Read',
2.29 'void',
2.30 [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
2.31 + cls.add_copy_constructor()
2.32 return
2.33
2.34 def register_Ns3Buffer_methods(root_module, cls):
2.35 @@ -606,6 +610,7 @@
2.36 'uint32_t',
2.37 [],
2.38 is_const=True)
2.39 + cls.add_copy_constructor()
2.40 return
2.41
2.42 def register_Ns3Chunk_methods(root_module, cls):
2.43 @@ -679,6 +684,7 @@
2.44 [param('std::ostream&', 'os')],
2.45 is_pure_virtual=True, is_const=True, is_virtual=True)
2.46 cls.add_constructor([])
2.47 + cls.add_copy_constructor()
2.48 return
2.49
2.50 def register_Ns3PcapWriter_methods(root_module, cls):
2.51 @@ -708,10 +714,12 @@
2.52 cls.add_method('WritePacket',
2.53 'void',
2.54 [param('ns3::Ptr< const ns3::Packet >', 'packet')])
2.55 + cls.add_copy_constructor()
2.56 return
2.57
2.58 def register_Ns3DataRateChecker_methods(root_module, cls):
2.59 cls.add_constructor([])
2.60 + cls.add_copy_constructor()
2.61 return
2.62
2.63 def register_Ns3ErrorModel_methods(root_module, cls):
2.64 @@ -753,6 +761,7 @@
2.65 'void',
2.66 [],
2.67 is_pure_virtual=True, visibility='private', is_virtual=True)
2.68 + cls.add_copy_constructor()
2.69 return
2.70
2.71 def register_Ns3Header_methods(root_module, cls):
2.72 @@ -848,6 +857,7 @@
2.73 'void',
2.74 [],
2.75 visibility='private', is_virtual=True)
2.76 + cls.add_copy_constructor()
2.77 return
2.78
2.79 def register_Ns3DataRateValue_methods(root_module, cls):
2.80 @@ -879,6 +889,7 @@
2.81 'bool',
2.82 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
2.83 is_virtual=True)
2.84 + cls.add_copy_constructor()
2.85 return
2.86
2.87 def register_Ns3RateErrorModel_methods(root_module, cls):
2.88 @@ -936,6 +947,7 @@
2.89 'void',
2.90 [],
2.91 visibility='private', is_virtual=True)
2.92 + cls.add_copy_constructor()
2.93 return
2.94
2.95 def register_functions(root_module):
3.1 --- a/bindings/python/ns3_module_contrib.py Tue Aug 19 17:45:41 2008 +0100
3.2 +++ b/bindings/python/ns3_module_contrib.py Tue Aug 19 17:48:09 2008 +0100
3.3 @@ -84,6 +84,7 @@
3.4 cls.add_method('GenerateOutput',
3.5 'void',
3.6 [param('std::ostream&', 'os')])
3.7 + cls.add_copy_constructor()
3.8 return
3.9
3.10 def register_Ns3EventGarbageCollector_methods(root_module, cls):
3.11 @@ -93,6 +94,7 @@
3.12 cls.add_method('Track',
3.13 'void',
3.14 [param('ns3::EventId', 'event')])
3.15 + cls.add_copy_constructor()
3.16 return
3.17
3.18 def register_Ns3GnuplotDataset_methods(root_module, cls):
3.19 @@ -116,6 +118,7 @@
3.20 cls.add_method('Add',
3.21 'void',
3.22 [param('double', 'x'), param('double', 'y'), param('double', 'errorDelta')])
3.23 + cls.add_copy_constructor()
3.24 return
3.25
3.26 def register_Ns3GtkConfigStore_methods(root_module, cls):
3.27 @@ -125,6 +128,7 @@
3.28 cls.add_method('Configure',
3.29 'void',
3.30 [])
3.31 + cls.add_copy_constructor()
3.32 return
3.33
3.34 def register_Ns3ConfigStore_methods(root_module, cls):
3.35 @@ -144,6 +148,7 @@
3.36 cls.add_method('Configure',
3.37 'void',
3.38 [])
3.39 + cls.add_copy_constructor()
3.40 return
3.41
3.42 def register_Ns3DelayJitterEstimation_methods(root_module, cls):
3.43 @@ -168,6 +173,7 @@
3.44 'ns3::Time',
3.45 [],
3.46 is_const=True)
3.47 + cls.add_copy_constructor()
3.48 return
3.49
3.50 def register_functions(root_module):
4.1 --- a/bindings/python/ns3_module_core.py Tue Aug 19 17:45:41 2008 +0100
4.2 +++ b/bindings/python/ns3_module_core.py Tue Aug 19 17:48:09 2008 +0100
4.3 @@ -316,6 +316,7 @@
4.4 'double',
4.5 [param('double', 's'), param('double', 'l'), param('double', 'mean')],
4.6 is_static=True)
4.7 + cls.add_copy_constructor()
4.8 return
4.9
4.10 def register_Ns3GlobalValue_methods(root_module, cls):
4.11 @@ -365,6 +366,7 @@
4.12 '__gnu_cxx::__normal_iterator< ns3::GlobalValue* const*, std::vector< ns3::GlobalValue*, std::allocator< ns3::GlobalValue* > > >',
4.13 [],
4.14 is_static=True)
4.15 + cls.add_copy_constructor()
4.16 return
4.17
4.18 def register_Ns3RefCountBase_methods(root_module, cls):
4.19 @@ -557,6 +559,7 @@
4.20 ## type-id.h: ns3::TypeId::AttributeInfo::checker [variable]
4.21 cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False)
4.22 cls.add_constructor([])
4.23 + cls.add_copy_constructor()
4.24 return
4.25
4.26 def register_Ns3SystemWallClockMs_methods(root_module, cls):
4.27 @@ -570,6 +573,7 @@
4.28 cls.add_method('End',
4.29 'long long unsigned int',
4.30 [])
4.31 + cls.add_copy_constructor()
4.32 return
4.33
4.34 def register_Ns3CallbackImplBase_methods(root_module, cls):
4.35 @@ -580,11 +584,13 @@
4.36 'bool',
4.37 [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')],
4.38 is_pure_virtual=True, is_const=True, is_virtual=True)
4.39 + cls.add_copy_constructor()
4.40 return
4.41
4.42 def register_Ns3CriticalSection_methods(root_module, cls):
4.43 ## system-mutex.h: ns3::CriticalSection::CriticalSection(ns3::SystemMutex & mutex) [constructor]
4.44 cls.add_constructor([param('ns3::SystemMutex&', 'mutex')])
4.45 + cls.add_copy_constructor()
4.46 return
4.47
4.48 def register_Ns3TraceSourceAccessor_methods(root_module, cls):
4.49 @@ -620,6 +626,7 @@
4.50 'bool',
4.51 [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase&', 'cb', is_const=True)],
4.52 is_pure_virtual=True, is_const=True, is_virtual=True)
4.53 + cls.add_copy_constructor()
4.54 return
4.55
4.56 def register_Ns3AttributeChecker_methods(root_module, cls):
4.57 @@ -655,10 +662,12 @@
4.58 'bool',
4.59 [param('ns3::AttributeValue&', 'source', is_const=True), param('ns3::AttributeValue&', 'destination')],
4.60 is_pure_virtual=True, is_const=True, is_virtual=True)
4.61 + cls.add_copy_constructor()
4.62 return
4.63
4.64 def register_Ns3RandomVariableChecker_methods(root_module, cls):
4.65 cls.add_constructor([])
4.66 + cls.add_copy_constructor()
4.67 return
4.68
4.69 def register_Ns3SystemMutex_methods(root_module, cls):
4.70 @@ -672,6 +681,7 @@
4.71 cls.add_method('Unlock',
4.72 'void',
4.73 [])
4.74 + cls.add_copy_constructor()
4.75 return
4.76
4.77 def register_Ns3NormalVariable_methods(root_module, cls):
4.78 @@ -691,6 +701,7 @@
4.79 'double',
4.80 [param('double', 'm'), param('double', 'v'), param('double', 'b')],
4.81 is_static=True)
4.82 + cls.add_copy_constructor()
4.83 return
4.84
4.85 def register_Ns3ObjectFactory_methods(root_module, cls):
4.86 @@ -750,6 +761,7 @@
4.87 'bool',
4.88 [],
4.89 is_pure_virtual=True, is_const=True, is_virtual=True)
4.90 + cls.add_copy_constructor()
4.91 return
4.92
4.93 def register_Ns3ParetoVariable_methods(root_module, cls):
4.94 @@ -766,6 +778,7 @@
4.95 'double',
4.96 [param('double', 'm'), param('double', 's'), param('double', 'b', default_value='0')],
4.97 is_static=True)
4.98 + cls.add_copy_constructor()
4.99 return
4.100
4.101 def register_Ns3ConstantVariable_methods(root_module, cls):
4.102 @@ -777,6 +790,7 @@
4.103 cls.add_method('SetConstant',
4.104 'void',
4.105 [param('double', 'c')])
4.106 + cls.add_copy_constructor()
4.107 return
4.108
4.109 def register_Ns3SystemThread_methods(root_module, cls):
4.110 @@ -800,6 +814,7 @@
4.111 cls.add_method('Join',
4.112 'void',
4.113 [])
4.114 + cls.add_copy_constructor()
4.115 return
4.116
4.117 def register_Ns3EmpiricalVariable_methods(root_module, cls):
4.118 @@ -809,6 +824,7 @@
4.119 cls.add_method('CDF',
4.120 'void',
4.121 [param('double', 'v'), param('double', 'c')])
4.122 + cls.add_copy_constructor()
4.123 return
4.124
4.125 def register_Ns3EnumChecker_methods(root_module, cls):
4.126 @@ -852,10 +868,12 @@
4.127 'bool',
4.128 [param('ns3::AttributeValue&', 'src', is_const=True), param('ns3::AttributeValue&', 'dst')],
4.129 is_const=True, is_virtual=True)
4.130 + cls.add_copy_constructor()
4.131 return
4.132
4.133 def register_Ns3Empty_methods(root_module, cls):
4.134 cls.add_constructor([])
4.135 + cls.add_copy_constructor()
4.136 return
4.137
4.138 def register_Ns3ObjectBase_methods(root_module, cls):
4.139 @@ -921,34 +939,42 @@
4.140
4.141 def register_Ns3CommandLine_methods(root_module, cls):
4.142 cls.add_constructor([])
4.143 + cls.add_copy_constructor()
4.144 return
4.145
4.146 def register_Ns3IntToType__6_methods(root_module, cls):
4.147 cls.add_constructor([])
4.148 + cls.add_copy_constructor()
4.149 return
4.150
4.151 def register_Ns3IntToType__5_methods(root_module, cls):
4.152 cls.add_constructor([])
4.153 + cls.add_copy_constructor()
4.154 return
4.155
4.156 def register_Ns3IntToType__4_methods(root_module, cls):
4.157 cls.add_constructor([])
4.158 + cls.add_copy_constructor()
4.159 return
4.160
4.161 def register_Ns3IntToType__3_methods(root_module, cls):
4.162 cls.add_constructor([])
4.163 + cls.add_copy_constructor()
4.164 return
4.165
4.166 def register_Ns3IntToType__2_methods(root_module, cls):
4.167 cls.add_constructor([])
4.168 + cls.add_copy_constructor()
4.169 return
4.170
4.171 def register_Ns3IntToType__1_methods(root_module, cls):
4.172 cls.add_constructor([])
4.173 + cls.add_copy_constructor()
4.174 return
4.175
4.176 def register_Ns3IntToType__0_methods(root_module, cls):
4.177 cls.add_constructor([])
4.178 + cls.add_copy_constructor()
4.179 return
4.180
4.181 def register_Ns3RngStream_methods(root_module, cls):
4.182 @@ -1025,11 +1051,13 @@
4.183 'double',
4.184 [param('double', 'mu'), param('double', 'sigma')],
4.185 is_static=True)
4.186 + cls.add_copy_constructor()
4.187 return
4.188
4.189 def register_Ns3IntEmpiricalVariable_methods(root_module, cls):
4.190 ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable() [constructor]
4.191 cls.add_constructor([])
4.192 + cls.add_copy_constructor()
4.193 return
4.194
4.195 def register_Ns3PointerChecker_methods(root_module, cls):
4.196 @@ -1039,6 +1067,7 @@
4.197 [],
4.198 is_pure_virtual=True, is_const=True, is_virtual=True)
4.199 cls.add_constructor([])
4.200 + cls.add_copy_constructor()
4.201 return
4.202
4.203 def register_Ns3WeibullVariable_methods(root_module, cls):
4.204 @@ -1055,6 +1084,7 @@
4.205 'double',
4.206 [param('double', 'm'), param('double', 's'), param('double', 'b', default_value='0')],
4.207 is_static=True)
4.208 + cls.add_copy_constructor()
4.209 return
4.210
4.211 def register_Ns3CallbackBase_methods(root_module, cls):
4.212 @@ -1068,6 +1098,7 @@
4.213 ## callback.h: ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
4.214 cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')],
4.215 visibility='protected')
4.216 + cls.add_copy_constructor()
4.217 return
4.218
4.219 def register_Ns3ExponentialVariable_methods(root_module, cls):
4.220 @@ -1082,11 +1113,13 @@
4.221 'double',
4.222 [param('double', 'm'), param('double', 'b', default_value='0')],
4.223 is_static=True)
4.224 + cls.add_copy_constructor()
4.225 return
4.226
4.227 def register_Ns3DeterministicVariable_methods(root_module, cls):
4.228 ## random-variable.h: ns3::DeterministicVariable::DeterministicVariable(double * d, uint32_t c) [constructor]
4.229 cls.add_constructor([param('double *', 'd'), param('uint32_t', 'c')])
4.230 + cls.add_copy_constructor()
4.231 return
4.232
4.233 def register_Ns3AttributeList_methods(root_module, cls):
4.234 @@ -1158,6 +1191,7 @@
4.235 'double',
4.236 [param('double', 's'), param('double', 'l')],
4.237 is_static=True)
4.238 + cls.add_copy_constructor()
4.239 return
4.240
4.241 def register_Ns3Object_methods(root_module, cls):
4.242 @@ -1213,6 +1247,7 @@
4.243 cls.add_method('Next',
4.244 'ns3::Ptr< ns3::Object const >',
4.245 [])
4.246 + cls.add_copy_constructor()
4.247 return
4.248
4.249 def register_Ns3SystemCondition_methods(root_module, cls):
4.250 @@ -1242,6 +1277,7 @@
4.251 cls.add_method('TimedWait',
4.252 'bool',
4.253 [param('uint64_t', 'ns')])
4.254 + cls.add_copy_constructor()
4.255 return
4.256
4.257 def register_Ns3SequentialVariable_methods(root_module, cls):
4.258 @@ -1249,6 +1285,7 @@
4.259 cls.add_constructor([param('double', 'f'), param('double', 'l'), param('double', 'i', default_value='1'), param('uint32_t', 'c', default_value='1')])
4.260 ## random-variable.h: ns3::SequentialVariable::SequentialVariable(double f, double l, ns3::RandomVariable const & i, uint32_t c=1) [constructor]
4.261 cls.add_constructor([param('double', 'f'), param('double', 'l'), param('ns3::RandomVariable&', 'i', is_const=True), param('uint32_t', 'c', default_value='1')])
4.262 + cls.add_copy_constructor()
4.263 return
4.264
4.265 def register_Ns3ObjectVectorChecker_methods(root_module, cls):
4.266 @@ -1258,10 +1295,12 @@
4.267 [],
4.268 is_pure_virtual=True, is_const=True, is_virtual=True)
4.269 cls.add_constructor([])
4.270 + cls.add_copy_constructor()
4.271 return
4.272
4.273 def register_Ns3StringChecker_methods(root_module, cls):
4.274 cls.add_constructor([])
4.275 + cls.add_copy_constructor()
4.276 return
4.277
4.278 def register_Ns3ObjectVectorValue_methods(root_module, cls):
4.279 @@ -1302,10 +1341,12 @@
4.280 'bool',
4.281 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.282 is_virtual=True)
4.283 + cls.add_copy_constructor()
4.284 return
4.285
4.286 def register_Ns3BooleanChecker_methods(root_module, cls):
4.287 cls.add_constructor([])
4.288 + cls.add_copy_constructor()
4.289 return
4.290
4.291 def register_Ns3UintegerValue_methods(root_module, cls):
4.292 @@ -1337,6 +1378,7 @@
4.293 'bool',
4.294 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.295 is_virtual=True)
4.296 + cls.add_copy_constructor()
4.297 return
4.298
4.299 def register_Ns3ObjectVectorAccessor_methods(root_module, cls):
4.300 @@ -1371,6 +1413,7 @@
4.301 [param('ns3::ObjectBase *', 'object', transfer_ownership=False, is_const=True), param('uint32_t', 'i')],
4.302 is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
4.303 cls.add_constructor([])
4.304 + cls.add_copy_constructor()
4.305 return
4.306
4.307 def register_Ns3PointerValue_methods(root_module, cls):
4.308 @@ -1408,10 +1451,12 @@
4.309
4.310 def register_Ns3ObjectFactoryChecker_methods(root_module, cls):
4.311 cls.add_constructor([])
4.312 + cls.add_copy_constructor()
4.313 return
4.314
4.315 def register_Ns3TypeIdChecker_methods(root_module, cls):
4.316 cls.add_constructor([])
4.317 + cls.add_copy_constructor()
4.318 return
4.319
4.320 def register_Ns3DoubleValue_methods(root_module, cls):
4.321 @@ -1443,6 +1488,7 @@
4.322 'bool',
4.323 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.324 is_virtual=True)
4.325 + cls.add_copy_constructor()
4.326 return
4.327
4.328 def register_Ns3TypeIdValue_methods(root_module, cls):
4.329 @@ -1474,6 +1520,7 @@
4.330 'bool',
4.331 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.332 is_virtual=True)
4.333 + cls.add_copy_constructor()
4.334 return
4.335
4.336 def register_Ns3EnumValue_methods(root_module, cls):
4.337 @@ -1505,6 +1552,7 @@
4.338 'bool',
4.339 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.340 is_virtual=True)
4.341 + cls.add_copy_constructor()
4.342 return
4.343
4.344 def register_Ns3RandomVariableValue_methods(root_module, cls):
4.345 @@ -1536,6 +1584,7 @@
4.346 'bool',
4.347 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.348 is_virtual=True)
4.349 + cls.add_copy_constructor()
4.350 return
4.351
4.352 def register_Ns3ObjectFactoryValue_methods(root_module, cls):
4.353 @@ -1567,6 +1616,7 @@
4.354 'bool',
4.355 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.356 is_virtual=True)
4.357 + cls.add_copy_constructor()
4.358 return
4.359
4.360 def register_Ns3IntegerValue_methods(root_module, cls):
4.361 @@ -1598,6 +1648,7 @@
4.362 'bool',
4.363 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.364 is_virtual=True)
4.365 + cls.add_copy_constructor()
4.366 return
4.367
4.368 def register_Ns3BooleanValue_methods(root_module, cls):
4.369 @@ -1663,6 +1714,7 @@
4.370 'bool',
4.371 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
4.372 is_virtual=True)
4.373 + cls.add_copy_constructor()
4.374 return
4.375
4.376 def register_Ns3EmptyAttributeValue_methods(root_module, cls):
5.1 --- a/bindings/python/ns3_module_csma.py Tue Aug 19 17:45:41 2008 +0100
5.2 +++ b/bindings/python/ns3_module_csma.py Tue Aug 19 17:48:09 2008 +0100
5.3 @@ -76,6 +76,7 @@
5.4 cls.add_method('IsActive',
5.5 'bool',
5.6 [])
5.7 + cls.add_copy_constructor()
5.8 return
5.9
5.10 def register_Ns3Backoff_methods(root_module, cls):
5.11 @@ -109,6 +110,7 @@
5.12 cls.add_method('IncrNumRetries',
5.13 'void',
5.14 [])
5.15 + cls.add_copy_constructor()
5.16 return
5.17
5.18 def register_Ns3CsmaChannel_methods(root_module, cls):
5.19 @@ -196,6 +198,7 @@
5.20 'ns3::Time',
5.21 [],
5.22 is_virtual=True)
5.23 + cls.add_copy_constructor()
5.24 return
5.25
5.26 def register_Ns3CsmaNetDevice_methods(root_module, cls):
6.1 --- a/bindings/python/ns3_module_global_routing.py Tue Aug 19 17:45:41 2008 +0100
6.2 +++ b/bindings/python/ns3_module_global_routing.py Tue Aug 19 17:48:09 2008 +0100
6.3 @@ -220,6 +220,7 @@
6.4 cls.add_method('SetMetric',
6.5 'void',
6.6 [param('uint16_t', 'metric')])
6.7 + cls.add_copy_constructor()
6.8 return
6.9
6.10 def register_Ns3GlobalRouter_methods(root_module, cls):
7.1 --- a/bindings/python/ns3_module_helper.py Tue Aug 19 17:45:41 2008 +0100
7.2 +++ b/bindings/python/ns3_module_helper.py Tue Aug 19 17:48:09 2008 +0100
7.3 @@ -155,6 +155,7 @@
7.4 'void',
7.5 [param('std::ostream&', 'os')],
7.6 is_static=True)
7.7 + cls.add_copy_constructor()
7.8 return
7.9
7.10 def register_Ns3InternetStackHelper_methods(root_module, cls):
7.11 @@ -168,6 +169,7 @@
7.12 [param('std::string', 'filename')],
7.13 is_static=True)
7.14 cls.add_constructor([])
7.15 + cls.add_copy_constructor()
7.16 return
7.17
7.18 def register_Ns3NodeContainer_methods(root_module, cls):
7.19 @@ -218,6 +220,7 @@
7.20 'ns3::NodeContainer',
7.21 [],
7.22 is_static=True)
7.23 + cls.add_copy_constructor()
7.24 return
7.25
7.26 def register_Ns3PointToPointHelper_methods(root_module, cls):
7.27 @@ -293,6 +296,7 @@
7.28 cls.add_method('Install',
7.29 'ns3::NetDeviceContainer',
7.30 [param('ns3::Ptr< ns3::Node >', 'a'), param('ns3::Ptr< ns3::Node >', 'b')])
7.31 + cls.add_copy_constructor()
7.32 return
7.33
7.34 def register_Ns3NetDeviceContainer_methods(root_module, cls):
7.35 @@ -325,6 +329,7 @@
7.36 'void',
7.37 [param('ns3::Ptr< ns3::NetDevice >', 'device')])
7.38 cls.add_constructor([])
7.39 + cls.add_copy_constructor()
7.40 return
7.41
7.42 def register_Ns3CsmaHelper_methods(root_module, cls):
7.43 @@ -400,6 +405,7 @@
7.44 cls.add_method('Install',
7.45 'ns3::NetDeviceContainer',
7.46 [param('ns3::NodeContainer&', 'c', is_const=True), param('ns3::Ptr< ns3::CsmaChannel >', 'channel')])
7.47 + cls.add_copy_constructor()
7.48 return
7.49
7.50 def register_Ns3UdpEchoServerHelper_methods(root_module, cls):
7.51 @@ -413,6 +419,7 @@
7.52 cls.add_method('Install',
7.53 'ns3::ApplicationContainer',
7.54 [param('ns3::NodeContainer', 'c')])
7.55 + cls.add_copy_constructor()
7.56 return
7.57
7.58 def register_Ns3OlsrHelper_methods(root_module, cls):
7.59 @@ -434,6 +441,7 @@
7.60 cls.add_method('InstallAll',
7.61 'void',
7.62 [])
7.63 + cls.add_copy_constructor()
7.64 return
7.65
7.66 def register_Ns3PacketSocketHelper_methods(root_module, cls):
7.67 @@ -442,6 +450,7 @@
7.68 'void',
7.69 [param('ns3::NodeContainer', 'c')])
7.70 cls.add_constructor([])
7.71 + cls.add_copy_constructor()
7.72 return
7.73
7.74 def register_Ns3OnOffHelper_methods(root_module, cls):
7.75 @@ -455,6 +464,7 @@
7.76 cls.add_method('Install',
7.77 'ns3::ApplicationContainer',
7.78 [param('ns3::NodeContainer', 'c')])
7.79 + cls.add_copy_constructor()
7.80 return
7.81
7.82 def register_Ns3UdpEchoClientHelper_methods(root_module, cls):
7.83 @@ -468,6 +478,7 @@
7.84 cls.add_method('Install',
7.85 'ns3::ApplicationContainer',
7.86 [param('ns3::NodeContainer', 'c')])
7.87 + cls.add_copy_constructor()
7.88 return
7.89
7.90 def register_Ns3StaticMulticastRouteHelper_methods(root_module, cls):
7.91 @@ -485,6 +496,7 @@
7.92 cls.add_method('JoinMulticastGroup',
7.93 'void',
7.94 [param('ns3::Ptr< ns3::Node >', 'n'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'group')])
7.95 + cls.add_copy_constructor()
7.96 return
7.97
7.98 def register_Ns3Ipv4InterfaceContainer_methods(root_module, cls):
7.99 @@ -508,6 +520,7 @@
7.100 cls.add_method('Add',
7.101 'void',
7.102 [param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface')])
7.103 + cls.add_copy_constructor()
7.104 return
7.105
7.106 def register_Ns3ApplicationContainer_methods(root_module, cls):
7.107 @@ -548,6 +561,7 @@
7.108 'void',
7.109 [param('ns3::Time', 'stop')])
7.110 cls.add_constructor([])
7.111 + cls.add_copy_constructor()
7.112 return
7.113
7.114 def register_Ns3WifiHelper_methods(root_module, cls):
7.115 @@ -615,6 +629,7 @@
7.116 'ns3::NetDeviceContainer',
7.117 [param('ns3::NodeContainer', 'c'), param('ns3::Ptr< ns3::WifiChannel >', 'channel')],
7.118 is_const=True)
7.119 + cls.add_copy_constructor()
7.120 return
7.121
7.122 def register_Ns3Ipv4AddressHelper_methods(root_module, cls):
7.123 @@ -636,6 +651,7 @@
7.124 cls.add_method('Assign',
7.125 'ns3::Ipv4InterfaceContainer',
7.126 [param('ns3::NetDeviceContainer&', 'c', is_const=True)])
7.127 + cls.add_copy_constructor()
7.128 return
7.129
7.130 def register_Ns3BridgeHelper_methods(root_module, cls):
7.131 @@ -649,6 +665,7 @@
7.132 cls.add_method('Install',
7.133 'ns3::NetDeviceContainer',
7.134 [param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::NetDeviceContainer', 'c')])
7.135 + cls.add_copy_constructor()
7.136 return
7.137
7.138 def register_Ns3PacketSinkHelper_methods(root_module, cls):
7.139 @@ -662,6 +679,7 @@
7.140 cls.add_method('Install',
7.141 'ns3::ApplicationContainer',
7.142 [param('ns3::NodeContainer', 'c')])
7.143 + cls.add_copy_constructor()
7.144 return
7.145
7.146 def register_Ns3Ns2MobilityHelper_methods(root_module, cls):
7.147 @@ -672,6 +690,7 @@
7.148 'void',
7.149 [],
7.150 is_const=True)
7.151 + cls.add_copy_constructor()
7.152 return
7.153
7.154 def register_functions(root_module):
8.1 --- a/bindings/python/ns3_module_internet_stack.py Tue Aug 19 17:45:41 2008 +0100
8.2 +++ b/bindings/python/ns3_module_internet_stack.py Tue Aug 19 17:48:09 2008 +0100
8.3 @@ -146,6 +146,7 @@
8.4 'void',
8.5 [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')],
8.6 is_pure_virtual=True, visibility='private', is_virtual=True)
8.7 + cls.add_copy_constructor()
8.8 return
8.9
8.10 def register_Ns3UdpHeader_methods(root_module, cls):
8.11 @@ -212,6 +213,7 @@
8.12 'bool',
8.13 [],
8.14 is_const=True)
8.15 + cls.add_copy_constructor()
8.16 return
8.17
8.18 def register_Ns3TcpHeader_methods(root_module, cls):
8.19 @@ -332,6 +334,7 @@
8.20 'bool',
8.21 [],
8.22 is_const=True)
8.23 + cls.add_copy_constructor()
8.24 return
8.25
8.26 def register_Ns3Ipv4StaticRouting_methods(root_module, cls):
8.27 @@ -419,6 +422,7 @@
8.28 'void',
8.29 [],
8.30 visibility='protected', is_virtual=True)
8.31 + cls.add_copy_constructor()
8.32 return
8.33
8.34 def register_Ns3Ipv4L3Protocol_methods(root_module, cls):
8.35 @@ -609,6 +613,7 @@
8.36 'void',
8.37 [],
8.38 visibility='protected', is_virtual=True)
8.39 + cls.add_copy_constructor()
8.40 return
8.41
8.42 def register_functions(root_module):
9.1 --- a/bindings/python/ns3_module_mobility.py Tue Aug 19 17:45:41 2008 +0100
9.2 +++ b/bindings/python/ns3_module_mobility.py Tue Aug 19 17:48:09 2008 +0100
9.3 @@ -152,6 +152,7 @@
9.4 cls.add_method('Unpause',
9.5 'void',
9.6 [])
9.7 + cls.add_copy_constructor()
9.8 return
9.9
9.10 def register_Ns3Vector_methods(root_module, cls):
9.11 @@ -172,10 +173,12 @@
9.12
9.13 def register_Ns3VectorChecker_methods(root_module, cls):
9.14 cls.add_constructor([])
9.15 + cls.add_copy_constructor()
9.16 return
9.17
9.18 def register_Ns3RectangleChecker_methods(root_module, cls):
9.19 cls.add_constructor([])
9.20 + cls.add_copy_constructor()
9.21 return
9.22
9.23 def register_Ns3Rectangle_methods(root_module, cls):
9.24 @@ -224,6 +227,7 @@
9.25 'ns3::Vector',
9.26 [],
9.27 is_pure_virtual=True, is_const=True, is_virtual=True)
9.28 + cls.add_copy_constructor()
9.29 return
9.30
9.31 def register_Ns3ListPositionAllocator_methods(root_module, cls):
9.32 @@ -243,6 +247,7 @@
9.33 'ns3::Vector',
9.34 [],
9.35 is_const=True, is_virtual=True)
9.36 + cls.add_copy_constructor()
9.37 return
9.38
9.39 def register_Ns3RectangleValue_methods(root_module, cls):
9.40 @@ -274,6 +279,7 @@
9.41 'bool',
9.42 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
9.43 is_virtual=True)
9.44 + cls.add_copy_constructor()
9.45 return
9.46
9.47 def register_Ns3RandomRectanglePositionAllocator_methods(root_module, cls):
9.48 @@ -297,6 +303,7 @@
9.49 'ns3::Vector',
9.50 [],
9.51 is_const=True, is_virtual=True)
9.52 + cls.add_copy_constructor()
9.53 return
9.54
9.55 def register_Ns3VectorValue_methods(root_module, cls):
9.56 @@ -328,6 +335,7 @@
9.57 'bool',
9.58 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
9.59 is_virtual=True)
9.60 + cls.add_copy_constructor()
9.61 return
9.62
9.63 def register_Ns3RandomDiscPositionAllocator_methods(root_module, cls):
9.64 @@ -359,6 +367,7 @@
9.65 'ns3::Vector',
9.66 [],
9.67 is_const=True, is_virtual=True)
9.68 + cls.add_copy_constructor()
9.69 return
9.70
9.71 def register_Ns3MobilityModel_methods(root_module, cls):
9.72 @@ -408,6 +417,7 @@
9.73 'ns3::Vector',
9.74 [],
9.75 is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
9.76 + cls.add_copy_constructor()
9.77 return
9.78
9.79 def register_Ns3RandomDirection2dMobilityModel_methods(root_module, cls):
9.80 @@ -438,6 +448,7 @@
9.81 'ns3::Vector',
9.82 [],
9.83 is_const=True, visibility='private', is_virtual=True)
9.84 + cls.add_copy_constructor()
9.85 return
9.86
9.87 def register_Ns3GridPositionAllocator_methods(root_module, cls):
9.88 @@ -507,6 +518,7 @@
9.89 'ns3::Vector',
9.90 [],
9.91 is_const=True, is_virtual=True)
9.92 + cls.add_copy_constructor()
9.93 return
9.94
9.95 def register_Ns3RandomWaypointMobilityModel_methods(root_module, cls):
9.96 @@ -532,6 +544,7 @@
9.97 'ns3::Vector',
9.98 [],
9.99 is_const=True, visibility='private', is_virtual=True)
9.100 + cls.add_copy_constructor()
9.101 return
9.102
9.103 def register_Ns3RandomWalk2dMobilityModel_methods(root_module, cls):
9.104 @@ -562,6 +575,7 @@
9.105 'ns3::Vector',
9.106 [],
9.107 is_const=True, visibility='private', is_virtual=True)
9.108 + cls.add_copy_constructor()
9.109 return
9.110
9.111 def register_Ns3StaticSpeedMobilityModel_methods(root_module, cls):
9.112 @@ -591,6 +605,7 @@
9.113 'ns3::Vector',
9.114 [],
9.115 is_const=True, visibility='private', is_virtual=True)
9.116 + cls.add_copy_constructor()
9.117 return
9.118
9.119 def register_Ns3HierarchicalMobilityModel_methods(root_module, cls):
9.120 @@ -626,6 +641,7 @@
9.121 'ns3::Vector',
9.122 [],
9.123 is_const=True, visibility='private', is_virtual=True)
9.124 + cls.add_copy_constructor()
9.125 return
9.126
9.127 def register_Ns3StaticMobilityModel_methods(root_module, cls):
9.128 @@ -651,6 +667,7 @@
9.129 'ns3::Vector',
9.130 [],
9.131 is_const=True, visibility='private', is_virtual=True)
9.132 + cls.add_copy_constructor()
9.133 return
9.134
9.135 def register_functions(root_module):
10.1 --- a/bindings/python/ns3_module_node.py Tue Aug 19 17:45:41 2008 +0100
10.2 +++ b/bindings/python/ns3_module_node.py Tue Aug 19 17:48:09 2008 +0100
10.3 @@ -218,6 +218,7 @@
10.4 [],
10.5 is_static=True)
10.6 cls.add_constructor([])
10.7 + cls.add_copy_constructor()
10.8 return
10.9
10.10 def register_Ns3Address_methods(root_module, cls):
10.11 @@ -289,6 +290,7 @@
10.12
10.13 def register_Ns3Ipv4AddressChecker_methods(root_module, cls):
10.14 cls.add_constructor([])
10.15 + cls.add_copy_constructor()
10.16 return
10.17
10.18 def register_Ns3Mac48Address_methods(root_module, cls):
10.19 @@ -421,14 +423,17 @@
10.20 [],
10.21 is_static=True)
10.22 cls.add_constructor([])
10.23 + cls.add_copy_constructor()
10.24 return
10.25
10.26 def register_Ns3Mac48AddressChecker_methods(root_module, cls):
10.27 cls.add_constructor([])
10.28 + cls.add_copy_constructor()
10.29 return
10.30
10.31 def register_Ns3Ipv4MaskChecker_methods(root_module, cls):
10.32 cls.add_constructor([])
10.33 + cls.add_copy_constructor()
10.34 return
10.35
10.36 def register_Ns3Ipv4Route_methods(root_module, cls):
10.37 @@ -558,6 +563,7 @@
10.38
10.39 def register_Ns3AddressChecker_methods(root_module, cls):
10.40 cls.add_constructor([])
10.41 + cls.add_copy_constructor()
10.42 return
10.43
10.44 def register_Ns3PacketSocketAddress_methods(root_module, cls):
10.45 @@ -609,6 +615,7 @@
10.46 'bool',
10.47 [param('ns3::Address&', 'address', is_const=True)],
10.48 is_static=True)
10.49 + cls.add_copy_constructor()
10.50 return
10.51
10.52 def register_Ns3Ipv4Mask_methods(root_module, cls):
10.53 @@ -691,6 +698,7 @@
10.54 'bool',
10.55 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
10.56 is_virtual=True)
10.57 + cls.add_copy_constructor()
10.58 return
10.59
10.60 def register_Ns3Ipv4RoutingProtocol_methods(root_module, cls):
10.61 @@ -707,6 +715,7 @@
10.62 [param('ns3::Ipv4Address', 'destination'), param('uint32_t&', 'ifIndex')],
10.63 is_pure_virtual=True, is_virtual=True)
10.64 cls.add_constructor([])
10.65 + cls.add_copy_constructor()
10.66 return
10.67
10.68 def register_Ns3Mac48AddressValue_methods(root_module, cls):
10.69 @@ -738,6 +747,7 @@
10.70 'bool',
10.71 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
10.72 is_virtual=True)
10.73 + cls.add_copy_constructor()
10.74 return
10.75
10.76 def register_Ns3Ipv4MaskValue_methods(root_module, cls):
10.77 @@ -769,6 +779,7 @@
10.78 'bool',
10.79 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
10.80 is_virtual=True)
10.81 + cls.add_copy_constructor()
10.82 return
10.83
10.84 def register_Ns3SocketAddressTag_methods(root_module, cls):
10.85 @@ -813,6 +824,7 @@
10.86 'void',
10.87 [param('std::ostream&', 'os')],
10.88 is_const=True, is_virtual=True)
10.89 + cls.add_copy_constructor()
10.90 return
10.91
10.92 def register_Ns3InetSocketAddress_methods(root_module, cls):
10.93 @@ -854,6 +866,7 @@
10.94 'ns3::InetSocketAddress',
10.95 [param('ns3::Address&', 'address', is_const=True)],
10.96 is_static=True)
10.97 + cls.add_copy_constructor()
10.98 return
10.99
10.100 def register_Ns3Ipv4Address_methods(root_module, cls):
10.101 @@ -1004,6 +1017,7 @@
10.102 'void',
10.103 [],
10.104 visibility='private', is_virtual=True)
10.105 + cls.add_copy_constructor()
10.106 return
10.107
10.108 def register_Ns3Queue_methods(root_module, cls):
10.109 @@ -1090,6 +1104,7 @@
10.110 'ns3::Ptr< const ns3::Packet >',
10.111 [],
10.112 is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
10.113 + cls.add_copy_constructor()
10.114 return
10.115
10.116 def register_Ns3Socket_methods(root_module, cls):
10.117 @@ -1258,6 +1273,7 @@
10.118 'void',
10.119 [],
10.120 visibility='protected')
10.121 + cls.add_copy_constructor()
10.122 return
10.123
10.124 def register_Ns3Ipv4Header_methods(root_module, cls):
10.125 @@ -1400,6 +1416,7 @@
10.126 'uint32_t',
10.127 [param('ns3::Buffer::Iterator', 'start')],
10.128 is_virtual=True)
10.129 + cls.add_copy_constructor()
10.130 return
10.131
10.132 def register_Ns3UdpSocket_methods(root_module, cls):
10.133 @@ -1440,6 +1457,7 @@
10.134 'uint32_t',
10.135 [],
10.136 is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
10.137 + cls.add_copy_constructor()
10.138 return
10.139
10.140 def register_Ns3NetDevice_methods(root_module, cls):
10.141 @@ -1569,6 +1587,7 @@
10.142 [],
10.143 is_pure_virtual=True, is_const=True, is_virtual=True)
10.144 cls.add_constructor([])
10.145 + cls.add_copy_constructor()
10.146 return
10.147
10.148 def register_Ns3DropTailQueue_methods(root_module, cls):
10.149 @@ -1594,6 +1613,7 @@
10.150 'ns3::Ptr< const ns3::Packet >',
10.151 [],
10.152 is_const=True, visibility='private', is_virtual=True)
10.153 + cls.add_copy_constructor()
10.154 return
10.155
10.156 def register_Ns3AddressValue_methods(root_module, cls):
10.157 @@ -1625,6 +1645,7 @@
10.158 'bool',
10.159 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
10.160 is_virtual=True)
10.161 + cls.add_copy_constructor()
10.162 return
10.163
10.164 def register_Ns3Node_methods(root_module, cls):
10.165 @@ -1693,6 +1714,7 @@
10.166 'void',
10.167 [param('ns3::Ptr< ns3::NetDevice >', 'device')],
10.168 visibility='private', is_virtual=True)
10.169 + cls.add_copy_constructor()
10.170 return
10.171
10.172 def register_Ns3Channel_methods(root_module, cls):
10.173 @@ -1723,6 +1745,7 @@
10.174 'ns3::Ptr< ns3::NetDevice >',
10.175 [param('uint32_t', 'i')],
10.176 is_pure_virtual=True, is_const=True, is_virtual=True)
10.177 + cls.add_copy_constructor()
10.178 return
10.179
10.180 def register_Ns3TcpSocket_methods(root_module, cls):
10.181 @@ -1833,6 +1856,7 @@
10.182 'uint32_t',
10.183 [],
10.184 is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
10.185 + cls.add_copy_constructor()
10.186 return
10.187
10.188 def register_Ns3EthernetHeader_methods(root_module, cls):
10.189 @@ -1916,6 +1940,7 @@
10.190 'uint32_t',
10.191 [param('ns3::Buffer::Iterator', 'start')],
10.192 is_virtual=True)
10.193 + cls.add_copy_constructor()
10.194 return
10.195
10.196 def register_Ns3SocketIpTtlTag_methods(root_module, cls):
10.197 @@ -1960,6 +1985,7 @@
10.198 'void',
10.199 [param('std::ostream&', 'os')],
10.200 is_const=True, is_virtual=True)
10.201 + cls.add_copy_constructor()
10.202 return
10.203
10.204 def register_Ns3Ipv4_methods(root_module, cls):
10.205 @@ -2150,6 +2176,7 @@
10.206 'uint32_t',
10.207 [param('ns3::Ipv4Address', 'addr'), param('ns3::Ipv4Mask', 'mask', default_value='ns3::Ipv4Mask(((const char*)"255.255.255.255"))')],
10.208 is_virtual=True)
10.209 + cls.add_copy_constructor()
10.210 return
10.211
10.212 def register_Ns3SocketFactory_methods(root_module, cls):
10.213 @@ -2165,6 +2192,7 @@
10.214 'ns3::Ptr< ns3::Socket >',
10.215 [],
10.216 is_pure_virtual=True, is_virtual=True)
10.217 + cls.add_copy_constructor()
10.218 return
10.219
10.220 def register_Ns3EthernetTrailer_methods(root_module, cls):
10.221 @@ -2227,6 +2255,7 @@
10.222 'uint32_t',
10.223 [param('ns3::Buffer::Iterator', 'end')],
10.224 is_virtual=True)
10.225 + cls.add_copy_constructor()
10.226 return
10.227
10.228 def register_Ns3SimpleChannel_methods(root_module, cls):
10.229 @@ -2255,6 +2284,7 @@
10.230 'ns3::Ptr< ns3::NetDevice >',
10.231 [param('uint32_t', 'i')],
10.232 is_const=True, is_virtual=True)
10.233 + cls.add_copy_constructor()
10.234 return
10.235
10.236 def register_Ns3LlcSnapHeader_methods(root_module, cls):
10.237 @@ -2298,6 +2328,7 @@
10.238 'uint32_t',
10.239 [param('ns3::Buffer::Iterator', 'start')],
10.240 is_virtual=True)
10.241 + cls.add_copy_constructor()
10.242 return
10.243
10.244 def register_Ns3UdpSocketFactory_methods(root_module, cls):
10.245 @@ -2307,6 +2338,7 @@
10.246 [],
10.247 is_static=True)
10.248 cls.add_constructor([])
10.249 + cls.add_copy_constructor()
10.250 return
10.251
10.252 def register_Ns3SimpleNetDevice_methods(root_module, cls):
10.253 @@ -2454,6 +2486,7 @@
10.254 'void',
10.255 [],
10.256 visibility='protected', is_virtual=True)
10.257 + cls.add_copy_constructor()
10.258 return
10.259
10.260 def register_Ns3TcpSocketFactory_methods(root_module, cls):
10.261 @@ -2463,6 +2496,7 @@
10.262 [],
10.263 is_static=True)
10.264 cls.add_constructor([])
10.265 + cls.add_copy_constructor()
10.266 return
10.267
10.268 def register_Ns3PacketSocketFactory_methods(root_module, cls):
10.269 @@ -2478,6 +2512,7 @@
10.270 'ns3::Ptr< ns3::Socket >',
10.271 [],
10.272 is_virtual=True)
10.273 + cls.add_copy_constructor()
10.274 return
10.275
10.276 def register_functions(root_module):
11.1 --- a/bindings/python/ns3_module_olsr.py Tue Aug 19 17:45:41 2008 +0100
11.2 +++ b/bindings/python/ns3_module_olsr.py Tue Aug 19 17:48:09 2008 +0100
11.3 @@ -275,6 +275,7 @@
11.4 ## olsr-header.h: ns3::olsr::MessageHeader::Hello::LinkMessage::neighborInterfaceAddresses [variable]
11.5 cls.add_instance_attribute('neighborInterfaceAddresses', 'std::vector< ns3::Ipv4Address, std::allocator< ns3::Ipv4Address > >', is_const=False)
11.6 cls.add_constructor([])
11.7 + cls.add_copy_constructor()
11.8 return
11.9
11.10 def register_Ns3OlsrMessageHeaderTc_methods(root_module, cls):
11.11 @@ -337,6 +338,7 @@
11.12 ## olsr-header.h: ns3::olsr::MessageHeader::Hna::Association::mask [variable]
11.13 cls.add_instance_attribute('mask', 'ns3::Ipv4Mask', is_const=False)
11.14 cls.add_constructor([])
11.15 + cls.add_copy_constructor()
11.16 return
11.17
11.18 def register_Ns3OlsrAgent_methods(root_module, cls):
11.19 @@ -361,6 +363,7 @@
11.20 [],
11.21 is_pure_virtual=True, is_virtual=True)
11.22 cls.add_constructor([])
11.23 + cls.add_copy_constructor()
11.24 return
11.25
11.26 def register_Ns3OlsrPacketHeader_methods(root_module, cls):
12.1 --- a/bindings/python/ns3_module_onoff.py Tue Aug 19 17:45:41 2008 +0100
12.2 +++ b/bindings/python/ns3_module_onoff.py Tue Aug 19 17:48:09 2008 +0100
12.3 @@ -77,6 +77,7 @@
12.4 'void',
12.5 [],
12.6 visibility='private', is_virtual=True)
12.7 + cls.add_copy_constructor()
12.8 return
12.9
12.10 def register_functions(root_module):
13.1 --- a/bindings/python/ns3_module_packet_sink.py Tue Aug 19 17:45:41 2008 +0100
13.2 +++ b/bindings/python/ns3_module_packet_sink.py Tue Aug 19 17:48:09 2008 +0100
13.3 @@ -73,6 +73,7 @@
13.4 'void',
13.5 [],
13.6 visibility='private', is_virtual=True)
13.7 + cls.add_copy_constructor()
13.8 return
13.9
13.10 def register_functions(root_module):
14.1 --- a/bindings/python/ns3_module_point_to_point.py Tue Aug 19 17:45:41 2008 +0100
14.2 +++ b/bindings/python/ns3_module_point_to_point.py Tue Aug 19 17:48:09 2008 +0100
14.3 @@ -84,6 +84,7 @@
14.4 'ns3::Ptr< ns3::NetDevice >',
14.5 [param('uint32_t', 'i')],
14.6 is_const=True, is_virtual=True)
14.7 + cls.add_copy_constructor()
14.8 return
14.9
14.10 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
14.11 @@ -247,6 +248,7 @@
14.12 'void',
14.13 [],
14.14 visibility='private', is_virtual=True)
14.15 + cls.add_copy_constructor()
14.16 return
14.17
14.18 def register_functions(root_module):
15.1 --- a/bindings/python/ns3_module_simulator.py Tue Aug 19 17:45:41 2008 +0100
15.2 +++ b/bindings/python/ns3_module_simulator.py Tue Aug 19 17:48:09 2008 +0100
15.3 @@ -170,6 +170,7 @@
15.4 cls.add_method('Resume',
15.5 'void',
15.6 [])
15.7 + cls.add_copy_constructor()
15.8 return
15.9
15.10 def register_Ns3TimerImpl_methods(root_module, cls):
15.11 @@ -184,6 +185,7 @@
15.12 [],
15.13 is_pure_virtual=True, is_virtual=True)
15.14 cls.add_constructor([])
15.15 + cls.add_copy_constructor()
15.16 return
15.17
15.18 def register_Ns3Time_methods(root_module, cls):
15.19 @@ -329,6 +331,7 @@
15.20 cls.add_method('Ping',
15.21 'void',
15.22 [param('ns3::Time', 'delay')])
15.23 + cls.add_copy_constructor()
15.24 return
15.25
15.26 def register_Ns3Simulator_methods(root_module, cls):
15.27 @@ -412,6 +415,7 @@
15.28 'ns3::Time',
15.29 [],
15.30 is_static=True)
15.31 + cls.add_copy_constructor()
15.32 return
15.33
15.34 def register_Ns3EventId_methods(root_module, cls):
15.35 @@ -482,6 +486,7 @@
15.36 'void',
15.37 [],
15.38 is_pure_virtual=True, visibility='protected', is_virtual=True)
15.39 + cls.add_copy_constructor()
15.40 return
15.41
15.42 def register_Ns3HighPrecision_methods(root_module, cls):
15.43 @@ -538,6 +543,7 @@
15.44
15.45 def register_Ns3TimeChecker_methods(root_module, cls):
15.46 cls.add_constructor([])
15.47 + cls.add_copy_constructor()
15.48 return
15.49
15.50 def register_Ns3Scheduler_methods(root_module, cls):
15.51 @@ -572,6 +578,7 @@
15.52 [param('ns3::EventId&', 'id', is_const=True)],
15.53 is_pure_virtual=True, is_virtual=True)
15.54 cls.add_constructor([])
15.55 + cls.add_copy_constructor()
15.56 return
15.57
15.58 def register_Ns3SchedulerEventKey_methods(root_module, cls):
15.59 @@ -580,6 +587,7 @@
15.60 ## scheduler.h: ns3::Scheduler::EventKey::m_uid [variable]
15.61 cls.add_instance_attribute('m_uid', 'uint32_t', is_const=False)
15.62 cls.add_constructor([])
15.63 + cls.add_copy_constructor()
15.64 return
15.65
15.66 def register_Ns3TimeValue_methods(root_module, cls):
15.67 @@ -611,6 +619,7 @@
15.68 'bool',
15.69 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
15.70 is_virtual=True)
15.71 + cls.add_copy_constructor()
15.72 return
15.73
15.74 def register_Ns3SimulatorImpl_methods(root_module, cls):
15.75 @@ -705,6 +714,7 @@
15.76 [],
15.77 is_pure_virtual=True, is_const=True, is_virtual=True)
15.78 cls.add_constructor([])
15.79 + cls.add_copy_constructor()
15.80 return
15.81
15.82 def register_Ns3DefaultSimulatorImpl_methods(root_module, cls):
15.83 @@ -805,6 +815,7 @@
15.84 'ns3::Ptr< ns3::Scheduler >',
15.85 [],
15.86 is_const=True, is_virtual=True)
15.87 + cls.add_copy_constructor()
15.88 return
15.89
15.90 def register_Ns3HeapScheduler_methods(root_module, cls):
15.91 @@ -835,6 +846,7 @@
15.92 'bool',
15.93 [param('ns3::EventId&', 'ev', is_const=True)],
15.94 is_virtual=True)
15.95 + cls.add_copy_constructor()
15.96 return
15.97
15.98 def register_Ns3ListScheduler_methods(root_module, cls):
15.99 @@ -865,6 +877,7 @@
15.100 'bool',
15.101 [param('ns3::EventId&', 'ev', is_const=True)],
15.102 is_virtual=True)
15.103 + cls.add_copy_constructor()
15.104 return
15.105
15.106 def register_Ns3MapScheduler_methods(root_module, cls):
15.107 @@ -895,6 +908,7 @@
15.108 'bool',
15.109 [param('ns3::EventId&', 'ev', is_const=True)],
15.110 is_virtual=True)
15.111 + cls.add_copy_constructor()
15.112 return
15.113
15.114 def register_functions(root_module):
16.1 --- a/bindings/python/ns3_module_udp_echo.py Tue Aug 19 17:45:41 2008 +0100
16.2 +++ b/bindings/python/ns3_module_udp_echo.py Tue Aug 19 17:48:09 2008 +0100
16.3 @@ -80,6 +80,7 @@
16.4 'void',
16.5 [],
16.6 visibility='private', is_virtual=True)
16.7 + cls.add_copy_constructor()
16.8 return
16.9
16.10 def register_Ns3UdpEchoServer_methods(root_module, cls):
16.11 @@ -105,6 +106,7 @@
16.12 'void',
16.13 [],
16.14 visibility='private', is_virtual=True)
16.15 + cls.add_copy_constructor()
16.16 return
16.17
16.18 def register_functions(root_module):
17.1 --- a/bindings/python/ns3_module_wifi.py Tue Aug 19 17:45:41 2008 +0100
17.2 +++ b/bindings/python/ns3_module_wifi.py Tue Aug 19 17:48:09 2008 +0100
17.3 @@ -371,6 +371,7 @@
17.4 'ns3::WifiMode',
17.5 [],
17.6 is_pure_virtual=True, visibility='private', is_virtual=True)
17.7 + cls.add_copy_constructor()
17.8 return
17.9
17.10 def register_Ns3WifiPhyListener_methods(root_module, cls):
17.11 @@ -400,6 +401,7 @@
17.12 [param('ns3::Time', 'duration')],
17.13 is_pure_virtual=True, is_virtual=True)
17.14 cls.add_constructor([])
17.15 + cls.add_copy_constructor()
17.16 return
17.17
17.18 def register_Ns3ThresholdsItem_methods(root_module, cls):
17.19 @@ -412,6 +414,7 @@
17.20 ## rraa-wifi-manager.h: ns3::ThresholdsItem::ewnd [variable]
17.21 cls.add_instance_attribute('ewnd', 'uint32_t', is_const=False)
17.22 cls.add_constructor([])
17.23 + cls.add_copy_constructor()
17.24 return
17.25
17.26 def register_Ns3SupportedRates_methods(root_module, cls):
17.27 @@ -517,10 +520,12 @@
17.28 'ns3::WifiMode',
17.29 [],
17.30 visibility='private', is_virtual=True)
17.31 + cls.add_copy_constructor()
17.32 return
17.33
17.34 def register_Ns3WifiModeChecker_methods(root_module, cls):
17.35 cls.add_constructor([])
17.36 + cls.add_copy_constructor()
17.37 return
17.38
17.39 def register_Ns3WifiModeFactory_methods(root_module, cls):
17.40 @@ -534,6 +539,7 @@
17.41 'ns3::WifiMode',
17.42 [param('std::string', 'uniqueName'), param('bool', 'isMandatory'), param('uint32_t', 'bandwidth'), param('uint32_t', 'dataRate'), param('uint32_t', 'phyRate'), param('uint8_t', 'constellationSize')],
17.43 is_static=True)
17.44 + cls.add_copy_constructor()
17.45 return
17.46
17.47 def register_Ns3OnoeWifiRemoteStation_methods(root_module, cls):
17.48 @@ -589,6 +595,7 @@
17.49 'ns3::WifiMode',
17.50 [],
17.51 visibility='private', is_virtual=True)
17.52 + cls.add_copy_constructor()
17.53 return
17.54
17.55 def register_Ns3RraaWifiRemoteStation_methods(root_module, cls):
17.56 @@ -649,6 +656,7 @@
17.57 'ns3::WifiMode',
17.58 [],
17.59 visibility='private', is_virtual=True)
17.60 + cls.add_copy_constructor()
17.61 return
17.62
17.63 def register_Ns3Ssid_methods(root_module, cls):
17.64 @@ -784,10 +792,12 @@
17.65 'bool',
17.66 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
17.67 is_virtual=True)
17.68 + cls.add_copy_constructor()
17.69 return
17.70
17.71 def register_Ns3SsidChecker_methods(root_module, cls):
17.72 cls.add_constructor([])
17.73 + cls.add_copy_constructor()
17.74 return
17.75
17.76 def register_Ns3ConstantRateWifiRemoteStation_methods(root_module, cls):
17.77 @@ -843,6 +853,7 @@
17.78 'ns3::WifiMode',
17.79 [],
17.80 visibility='private', is_virtual=True)
17.81 + cls.add_copy_constructor()
17.82 return
17.83
17.84 def register_Ns3PropagationLossModel_methods(root_module, cls):
17.85 @@ -857,6 +868,7 @@
17.86 [param('ns3::Ptr< ns3::MobilityModel >', 'a'), param('ns3::Ptr< ns3::MobilityModel >', 'b')],
17.87 is_pure_virtual=True, is_const=True, is_virtual=True)
17.88 cls.add_constructor([])
17.89 + cls.add_copy_constructor()
17.90 return
17.91
17.92 def register_Ns3ArfWifiRemoteStation_methods(root_module, cls):
17.93 @@ -952,6 +964,7 @@
17.94 'void',
17.95 [],
17.96 visibility='private', is_virtual=True)
17.97 + cls.add_copy_constructor()
17.98 return
17.99
17.100 def register_Ns3WifiMac_methods(root_module, cls):
17.101 @@ -1092,6 +1105,7 @@
17.102 [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'linkDown')],
17.103 is_pure_virtual=True, visibility='private', is_virtual=True)
17.104 cls.add_constructor([])
17.105 + cls.add_copy_constructor()
17.106 return
17.107
17.108 def register_Ns3NqapWifiMac_methods(root_module, cls):
17.109 @@ -1229,6 +1243,7 @@
17.110 'void',
17.111 [],
17.112 visibility='protected', is_virtual=True)
17.113 + cls.add_copy_constructor()
17.114 return
17.115
17.116 def register_Ns3AmrrWifiRemoteStation_methods(root_module, cls):
17.117 @@ -1284,6 +1299,7 @@
17.118 'ns3::WifiMode',
17.119 [],
17.120 visibility='private', is_virtual=True)
17.121 + cls.add_copy_constructor()
17.122 return
17.123
17.124 def register_Ns3FriisPropagationLossModel_methods(root_module, cls):
17.125 @@ -1330,6 +1346,7 @@
17.126 'double',
17.127 [param('ns3::Ptr< ns3::MobilityModel >', 'a'), param('ns3::Ptr< ns3::MobilityModel >', 'b')],
17.128 is_const=True, is_virtual=True)
17.129 + cls.add_copy_constructor()
17.130 return
17.131
17.132 def register_Ns3NqstaWifiMac_methods(root_module, cls):
17.133 @@ -1553,6 +1570,7 @@
17.134 'ns3::WifiRemoteStation *',
17.135 [],
17.136 is_pure_virtual=True, visibility='private', is_virtual=True)
17.137 + cls.add_copy_constructor()
17.138 return
17.139
17.140 def register_Ns3WifiModeValue_methods(root_module, cls):
17.141 @@ -1584,6 +1602,7 @@
17.142 'bool',
17.143 [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
17.144 is_virtual=True)
17.145 + cls.add_copy_constructor()
17.146 return
17.147
17.148 def register_Ns3OnoeWifiManager_methods(root_module, cls):
17.149 @@ -1599,6 +1618,7 @@
17.150 'ns3::WifiRemoteStation *',
17.151 [],
17.152 visibility='private', is_virtual=True)
17.153 + cls.add_copy_constructor()
17.154 return
17.155
17.156 def register_Ns3WifiPhy_methods(root_module, cls):
17.157 @@ -1800,6 +1820,7 @@
17.158 'void',
17.159 [param('ns3::Ptr< ns3::WifiPhy >', 'sender'), param('ns3::Ptr< const ns3::Packet >', 'packet'), param('double', 'txPowerDbm'), param('ns3::WifiMode', 'wifiMode'), param('ns3::WifiPreamble', 'preamble')],
17.160 is_const=True)
17.161 + cls.add_copy_constructor()
17.162 return
17.163
17.164 def register_Ns3LogDistancePropagationLossModel_methods(root_module, cls):
17.165 @@ -1832,6 +1853,7 @@
17.166 'double',
17.167 [param('ns3::Ptr< ns3::MobilityModel >', 'a'), param('ns3::Ptr< ns3::MobilityModel >', 'b')],
17.168 is_const=True, is_virtual=True)
17.169 + cls.add_copy_constructor()
17.170 return
17.171
17.172 def register_Ns3ConstantRateWifiManager_methods(root_module, cls):
17.173 @@ -1857,6 +1879,7 @@
17.174 'ns3::WifiRemoteStation *',
17.175 [],
17.176 visibility='private', is_virtual=True)
17.177 + cls.add_copy_constructor()
17.178 return
17.179
17.180 def register_Ns3AarfWifiRemoteStation_methods(root_module, cls):
17.181 @@ -1872,6 +1895,7 @@
17.182 'void',
17.183 [],
17.184 visibility='private', is_virtual=True)
17.185 + cls.add_copy_constructor()
17.186 return
17.187
17.188 def register_Ns3PropagationDelayModel_methods(root_module, cls):
17.189 @@ -1886,6 +1910,7 @@
17.190 [param('ns3::Ptr< ns3::MobilityModel >', 'a'), param('ns3::Ptr< ns3::MobilityModel >', 'b')],
17.191 is_pure_virtual=True, is_const=True, is_virtual=True)
17.192 cls.add_constructor([])
17.193 + cls.add_copy_constructor()
17.194 return
17.195
17.196 def register_Ns3AdhocWifiMac_methods(root_module, cls):
17.197 @@ -2009,6 +2034,7 @@
17.198 cls.add_method('SetNOscillators',
17.199 'void',
17.200 [param('uint8_t', 'nOscillators')])
17.201 + cls.add_copy_constructor()
17.202 return
17.203
17.204 def register_Ns3WifiNetDevice_methods(root_module, cls):
17.205 @@ -2175,6 +2201,7 @@
17.206 'void',
17.207 [],
17.208 visibility='private', is_virtual=True)
17.209 + cls.add_copy_constructor()
17.210 return
17.211
17.212 def register_Ns3ConstantSpeedPropagationDelayModel_methods(root_module, cls):
17.213 @@ -2199,6 +2226,7 @@
17.214 'double',
17.215 [],
17.216 is_const=True)
17.217 + cls.add_copy_constructor()
17.218 return
17.219
17.220 def register_Ns3RandomPropagationLossModel_methods(root_module, cls):
17.221 @@ -2214,6 +2242,7 @@
17.222 'double',
17.223 [param('ns3::Ptr< ns3::MobilityModel >', 'a'), param('ns3::Ptr< ns3::MobilityModel >', 'b')],
17.224 is_const=True, is_virtual=True)
17.225 + cls.add_copy_constructor()
17.226 return
17.227
17.228 def register_Ns3RandomPropagationDelayModel_methods(root_module, cls):
17.229 @@ -2229,6 +2258,7 @@
17.230 'ns3::Time',
17.231 [param('ns3::Ptr< ns3::MobilityModel >', 'a'), param('ns3::Ptr< ns3::MobilityModel >', 'b')],
17.232 is_const=True, is_virtual=True)
17.233 + cls.add_copy_constructor()
17.234 return
17.235
17.236 def register_Ns3AmrrWifiManager_methods(root_module, cls):
17.237 @@ -2244,6 +2274,7 @@
17.238 'ns3::WifiRemoteStation *',
17.239 [],
17.240 visibility='private', is_virtual=True)
17.241 + cls.add_copy_constructor()
17.242 return
17.243
17.244 def register_Ns3RraaWifiManager_methods(root_module, cls):
17.245 @@ -2273,6 +2304,7 @@
17.246 'ns3::WifiRemoteStation *',
17.247 [],
17.248 visibility='private', is_virtual=True)
17.249 + cls.add_copy_constructor()
17.250 return
17.251
17.252 def register_Ns3IdealWifiManager_methods(root_module, cls):
17.253 @@ -2302,6 +2334,7 @@
17.254 'ns3::WifiRemoteStation *',
17.255 [],
17.256 visibility='private', is_virtual=True)
17.257 + cls.add_copy_constructor()
17.258 return
17.259
17.260 def register_Ns3ArfWifiManager_methods(root_module, cls):
17.261 @@ -2317,6 +2350,7 @@
17.262 'ns3::WifiRemoteStation *',
17.263 [],
17.264 visibility='private', is_virtual=True)
17.265 + cls.add_copy_constructor()
17.266 return
17.267
17.268 def register_Ns3AarfWifiManager_methods(root_module, cls):
17.269 @@ -2332,6 +2366,7 @@
17.270 'ns3::WifiRemoteStation *',
17.271 [],
17.272 visibility='private', is_virtual=True)
17.273 + cls.add_copy_constructor()
17.274 return
17.275
17.276 def register_functions(root_module):
18.1 --- a/bindings/python/wscript Tue Aug 19 17:45:41 2008 +0100
18.2 +++ b/bindings/python/wscript Tue Aug 19 17:48:09 2008 +0100
18.3 @@ -21,7 +21,7 @@
18.4 os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
18.5
18.6 ## https://launchpad.net/pybindgen/
18.7 -REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 557)
18.8 +REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 560)
18.9 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
18.10
18.11