]> git.donarmstrong.com Git - lilypond.git/blob - flower/plist.cc
2581d24279d75b90447255bb10e7976787fb9b3f
[lilypond.git] / flower / plist.cc
1 #include "plist.hh"
2
3 // not inlined since it assumes knowledge of destructor.
4 template<class T>
5 void
6 IPointerList<T>::remove(PCursor<T> me )
7 {
8     if ( me.ok() ) {
9         delete me.ptr();
10         List<void*>::remove(me); 
11     }
12 }
13 template<class T>
14 PCursor<T> 
15 PointerList<T>::find(T what ) const
16 {
17     PCursor<T> i(*this);
18     for (; i.ok(); i++)
19         if (i.ptr() == what)
20            break;
21     return i;    
22 }