Linear Collider Forum



Home » Software Tools » LCIO » copy constructor for LCFixedObject
Re: copy constructor for LCFixedObject [message #1307 is a reply to message #1306] Tue, 20 November 2007 05:33 Go to previous messageGo to previous message
killenberg
Messages: 125
Registered: July 2005
Location: CERN
Hello Frank,

yes, you are right. Creating an LCGenericObject from the heap, like our copy constructor does, creates a huge overhead.

How about throwing a "dontUseCopyConstructorsException" in the copy constructor of the LCObject? So the user knows that he/she should not do it. I think we might not be the only ones who tried it.

Greetings

Martin


Martin Killenberg

CERN
martin.killenberg@cern.ch
 
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: Fri Sep 21 10:15:49 Pacific Daylight Time 2018
.:: Contact :: Home ::.

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