[ROOT] Clone()

From: Anton Fokin (anton.fokin@smartquant.com)
Date: Mon Feb 12 2001 - 20:04:45 MET


Hi rooters,

I think it might be wise to add/improve

TObject::Clone(const char* Name="")

function, which sets Name in case of  TNamed derived classes. This is useful
if you clone named objects like TH1, especially if you algorithm deletes
overwritten object with the same name.

TPortfolio *ClonePortfolio = Portfolio->Clone("ClonePortfolio");

can help a lot.

/Anton

http://www.smartquant.com



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:36 MET