]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.11
authorfred <fred>
Sun, 24 Mar 2002 19:56:10 +0000 (19:56 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:56:10 +0000 (19:56 +0000)
flower/include/plist.tcc

index 07c1a0118f77ae6d0b67afbe3f36d2b05bac88d0..5ce6c2446c29b6921036d14e442eaa4b5dccc3db 100644 (file)
@@ -1,9 +1,19 @@
+/*
+  plist.tcc -- implement Pointer_list
+
+  source file of the Flower Library
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
+#ifndef PLIST_TCC
+#define PLIST_TCC
+
 #include "plist.hh"
 
-#define PL_INSTANTIATE(a) class Link_list<a*>; \
+#define POINTERLIST_INSTANTIATE(a) class Pointer_list<a*>;\
        template class PCursor<a*>;
-#define IPL_INSTANTIATE(a) PL_INSTANTIATE(a); \
-       template class Pointer_list<a*>
        
 template<class T>
 void
@@ -16,13 +26,4 @@ Pointer_list<T>::junk()
     }
 }
 
-template<class T>
-PCursor<T> 
-Link_list<T>::find (T what) const
-{
-  PCursor<T> i (*this);
-  for (; i.ok(); i++)
-       if (i.ptr() == what)
-          break;
-  return i;    
-}
+#endif // PLIST_TCC