Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBclone.icc

Go to the documentation of this file.
00001 
00006 /*----------------------------------------------------------------------------*/
00007 /* C Tool Box: Designed and implemented by:                                   */
00008 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00009 /*                          Planckstrasse 1, D-64291 Darmstadt, Germany       */
00010 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00011 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00012 /*------------------------------------------+---------------------------------*/
00013 
00064 //------------------------------------------+-----------------------------------
00066 
00067 template <class T>
00068 inline T* CTBclone<T>::operator()(const T& src) const
00069 {
00070   return new T(src);
00071 }
00072 
00073 //##############################################################################
00074 
00083 //------------------------------------------+-----------------------------------
00085 
00086 template <class T>
00087 inline T* CTBcloneable<T>::operator()(const T& src) const
00088 {
00089   return src.Clone();
00090 }

Generated at Fri Oct 24 18:11:27 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001