]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/plist.tcc
release: 0.1.8
[lilypond.git] / flower / include / plist.tcc
index d18e01f9025ac64d57d745e83a5633b6fb9358cd..f7733d508d0e77b8bba75eadd00554cc9c7c3170 100644 (file)
@@ -1,14 +1,15 @@
 #include "plist.hh"
 
-#define PL_instantiate(a)  template class PointerList<a*>; \
+#define PL_INSTANTIATE(a) class Link_list<a*>; \
        template class PCursor<a*>;
-#define IPL_instantiate(a) PL_instantiate(a); \
-       template class IPointerList<a*>
+#define IPL_INSTANTIATE(a) PL_INSTANTIATE(a); \
+       template class Pointer_list<a*>
        
 template<class T>
-IPointerList<T>::~IPointerList()
+void
+Pointer_list<T>::junk()
 {
-    PCursor<T> c( *this );
+    PCursor<T> c (*this);
     while (c.ok()) {
        delete c.remove_p();
     }
@@ -16,9 +17,9 @@ IPointerList<T>::~IPointerList()
 
 template<class T>
 PCursor<T> 
-PointerList<T>::find(T what ) const
+Link_list<T>::find (T what) const
 {
-    PCursor<T> i(*this);
+    PCursor<T> i (*this);
     for (; i.ok(); i++)
        if (i.ptr() == what)
           break;