2 killing-cons.tcc -- declare Killing_cons
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef KILLING_CONS_TCC
11 #define KILLING_CONS_TCC
16 Killing_cons<T>::~Killing_cons ()
23 copy_killing_cons_list (Cons_list<T> &dest, Cons<T> *src)
25 for (; src; src = src->next_cons_p_)
27 T *t = new T(*src->car_p_);
28 dest.append ( new Killing_cons<T> (t, 0));
34 clone_killing_cons_list (Cons_list<T> & dest, Cons<T> *src)
36 for (; src; src = src->next_cons_p_)
38 T *t = src->car_p_->clone ();
39 dest.append (new Killing_cons<T> (t, 0));
43 #endif /* KILLING_CONS_TCC */