lilypond-1.3.18
[lilypond.git] / flower / include / link.hh
blob5fce0ac91514f47b9acb0be789e3993065d8a5a4
1 // link.hh
3 #ifndef __LINK_HH
4 #define __LINK_HH
5 template<class T>
6 class List;
9 /// class for List
10 template<class T>
11 class Link
13 // friend class Cursor<T>;
14 public:
15 Link (T const & thing);
17 Link<T>* previous();
18 Link<T>* next();
20 /// put new Link item after me in list
21 void add (T const & thing);
22 /// put new Link item before me in list
23 void insert (T const & thing);
24 void remove (List<T> &l);
26 T& thing();
27 void OK() const;
28 private:
29 Link (Link<T>* previous, Link<T>* next, T const & thing);
31 T thing_;
32 Link<T>* previous_;
33 Link<T>* next_;
36 #include "link.icc"
38 #endif // __LINK_HH //