]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.10
authorfred <fred>
Sat, 30 Nov 1996 02:27:03 +0000 (02:27 +0000)
committerfred <fred>
Sat, 30 Nov 1996 02:27:03 +0000 (02:27 +0000)
flower/list.hh
flower/plist.hh

index 1516e16642561cd9b384d57c370232ee86f87fd3..117e1862e4416720cf5ff5d810d08cc29d718f2a 100644 (file)
@@ -1,5 +1,3 @@
-// list.hh
-
 #ifndef __LIST_HH
 #define __LIST_HH
 
@@ -7,7 +5,7 @@ class ostream;
 template<class T> class Cursor;
 template<class T> class Link;
 
-/// all purpose list
+/// all-purpose doubly linked list
 template<class T>
 class List
 {
@@ -15,11 +13,7 @@ class List
     List(List const&src);
 
     /// construct empty list                
-    List();
-    
-    /// construct list from first item.  
-    List( const T& thing );
-    
+    List();    
     virtual ~List();
        
     Cursor<T> bottom();
@@ -30,6 +24,10 @@ class List
  protected:
     friend class Cursor<T>;
     friend class Link<T>;
+
+    void concatenate(List<T> const &s);
+    
+
     /// make *this empty
     void set_empty();
     /**
@@ -37,10 +35,10 @@ class List
       */
     
     /// add after after_me
-    void add( const T& thing, Cursor<T> after_me );
+    void add( const T& thing, Cursor<T> &after_me );
 
     /// put thing before #before_me#
-    void insert( const T& thing, Cursor<T> before_me );
+    void insert( const T& thing, Cursor<T> &before_me );
     virtual void remove( Cursor<T> me );
     /**
       Remove link pointed to by me.
index 78df40cb17727ce0e0de7d948c532ef8e5cbe001..ea2c0ecdae3ea9137c5ebb4c7a77911094b10c1e 100644 (file)
@@ -16,8 +16,8 @@ class PointerList : public List<void *>
  public:
     PCursor<T> top() {  return PCursor<T> (List<void*>::top()); }
     PCursor<T> bottom() { return PCursor<T> (List<void*>::bottom()); }
-    
-    PointerList( const T& thing ) : List<void*>( thing ) { }
+    void concatenate(PointerList<T> const &s) { List<void*>::concatenate(s); }
+//    PointerList( const T& thing ) : List<void*>( thing ) { }
     PointerList() {}
 };