Linear Collider Forum

Home » Software Tools » LCIO » copy constructor for LCFixedObject
copy constructor for LCFixedObject [message #1301] Mon, 19 November 2007 06:50 Go to previous message
Messages: 2
Registered: June 2007
Location: Uni Bonn

for MarlinTPC we use TPCVoxel a class derived from LCFixedObject. Errors occurred when instanciating this object with the copy constructor because no copy constructor is defined for LCFIxedObject. We fixed the problem by adding a copy constructor for TPCVoxel:

[TPCVoxel2(const TPCVoxel2 &original)
  : UTIL::LCFixedObject<TPCVoxel2NINTVals,
 if( _createdObject )  _obj = new LCGenericObjectImpl(*(original._obj));

Now my question: Is this by intention, or should a copy constructor be added to LCFixedObject in a similar way?

Cheers, Thorsten

[Updated on: Mon, 19 November 2007 06:51]

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:new LCIO release v01-09
Next Topic:getEventMap(), memory consumption
Goto Forum:

Current Time: Thu Dec 5 23:56:01 Pacific Standard Time 2019
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software