]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.18
authorfred <fred>
Tue, 3 Dec 1996 23:05:24 +0000 (23:05 +0000)
committerfred <fred>
Tue, 3 Dec 1996 23:05:24 +0000 (23:05 +0000)
flower/plist.tcc [new file with mode: 0644]

diff --git a/flower/plist.tcc b/flower/plist.tcc
new file mode 100644 (file)
index 0000000..2581d24
--- /dev/null
@@ -0,0 +1,22 @@
+#include "plist.hh"
+
+// not inlined since it assumes knowledge of destructor.
+template<class T>
+void
+IPointerList<T>::remove(PCursor<T> me )
+{
+    if ( me.ok() ) {
+       delete me.ptr();
+        List<void*>::remove(me); 
+    }
+}
+template<class T>
+PCursor<T> 
+PointerList<T>::find(T what ) const
+{
+    PCursor<T> i(*this);
+    for (; i.ok(); i++)
+       if (i.ptr() == what)
+          break;
+    return i;    
+}