예제 #1
0
파일: KVRList.cpp 프로젝트: pwigg/kaliveda
void KVRList::Copy(TObject & obj) const
#else
void KVRList::Copy(TObject & obj)
#endif
{
   //
   //Copy this list to obj
   //As a KVRList is a list of references to objects, here we are simply
   //copying the references, i.e. no new objects are created
   //
   obj.Clear();
   if (this->GetSize())         //make sure list contains some objects
   {
      for (Int_t i = 0; i < this->GetSize(); i++) {
         ((KVRList &) obj).Add(this->At(i));
      }
   }
}