46 #ifndef AFF_DEEPCOPY_H_VERSION 48 #define AFF_DEEPCOPY_H_VERSION \ 64 template<
class S,
class T>
68 typedef typename S::Tcontainer::Tcoc Tscoc;
69 typedef typename Tscoc::Trepresentation Tsrep;
70 typedef typename Tscoc::Tstepper Tsstp;
72 typedef typename T::Tcontainer Ttcon;
73 typedef typename Ttcon::Trepresentation Ttrep;
74 typedef typename Ttcon::Tstepper Ttstp;
76 const Tscoc& csource(source);
77 Ttcon ctarget(target);
79 Tsrep srep(csource.representation());
80 Ttrep trep(ctarget.representation());
82 Tsstp sstp(csource.shape());
83 Ttstp tstp(ctarget.shape());
86 while (sstp.valid() && tstp.valid())
88 trep[tstp.current()]=srep[sstp.current()];
96 #endif // TF_DEEPCOPY_H_VERSION (includeguard) Root namespace of library.
void deepcopy(const S &source, T &target)
deep copy