]> git.donarmstrong.com Git - lilypond.git/blob - flower/plist.tcc
release: 0.0.18
[lilypond.git] / flower / plist.tcc
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 }