]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.63
authorfred <fred>
Sun, 24 Mar 2002 19:43:09 +0000 (19:43 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:43:09 +0000 (19:43 +0000)
25 files changed:
flower/include/fproto.hh
flower/include/list.hh
flower/include/pcursor.hh
flower/include/plist.hh
lib/include/source.hh
lily/include/beam.hh
lily/include/input-music.hh
lily/include/input-register.hh
lily/include/input-score.hh
lily/include/input-staff.hh
lily/include/molecule.hh
lily/include/p-col.hh
lily/include/p-score.hh
lily/include/p-staff.hh
lily/include/pulk-voices.hh
lily/include/register-group.hh
lily/include/score.hh
lily/include/scoreline.hh
lily/include/staff.hh
lily/include/voice-element.hh
lily/include/voice.hh
lily/pulk-voices.cc
lily/staff.cc
lily/template4.cc
mi2mu/include/midi-score.hh

index ef4c6422b2da874b00eee81af6301b01b327d6bd..d5bf68034b0a99580e3df522fd98f1a4c95d3b38 100644 (file)
@@ -21,8 +21,8 @@ template<class T> struct Array;
 template<class T> struct sstack;
 template<class T,class K> struct Assoc;
 template<class T> struct List;
+template<class T> struct Link_list;
 template<class T> struct Pointer_list;
-template<class T> struct IPointer_list;
 template<class T> struct Cursor;
 template<class T> struct PCursor;
 template<class T> struct Link;
index cdf57ced99ca6149d735cec18cee0c3194fd9c53..343ccffcbc9f822cce1200cca21c6fe3b2604ab5 100644 (file)
@@ -15,7 +15,7 @@ template<class T> class Link;
    items are always stored as copies in List, but:
    #List<String># :  copies of #String# stored 
    #List<String*># : copies of #String*# stored! 
-   (do not use, use \Ref{Pointer_list} #<String*># instead.)
+   (do not use, use \Ref{Link_list} #<String*># instead.)
  
    {\bf note:} 
    retrieving "invalid" cursors, i.e. 
index dffe02b9ef1b7149b9c48b76dbd2baf7586f3b49..6144152614324e12d6b68872b2a4d242fe875804 100644 (file)
 #include "plist.hh"
 #include "cursor.hh"
 
-/**  cursor to go with Pointer_list. 
-  don't create Pointer_list<void*>'s.
+/**  cursor to go with Link_list. 
+  don't create Link_list<void*>'s.
   This cursor is just an interface class for Cursor. It takes care of the
   appropriate type casts
  */
 template<class T>
 class PCursor : private Cursor<void *> {
-    friend class IPointer_list<T>;
+    friend class Pointer_list<T>;
 
     /// delete contents
     void junk();
@@ -36,14 +36,14 @@ public:
        return remove_p();
     }
     
-    Pointer_list<T> &list() { return (Pointer_list<T>&)Cursor<void*>::list(); }
+    Link_list<T> &list() { return (Link_list<T>&)Cursor<void*>::list(); }
     PCursor<T> operator++(int) { return Cursor<void*>::operator++(0);}
     PCursor<T> operator--(int) { return Cursor<void*>::operator--(0); }
     PCursor<T> operator+=(int i) { return Cursor<void*>::operator+=(i);}
     PCursor<T> operator-=(int i) { return Cursor<void*>::operator-=(i); }    
     PCursor<T> operator -(int no) const { return Cursor<void*>::operator-(no);}
     int operator -(PCursor<T> op) const { return Cursor<void*>::operator-(op);}
-    PCursor<T> operator +( int no) const {return Cursor<void*>::operator+(no);}    PCursor(const Pointer_list<T> & l) : Cursor<void*> (l) {}
+    PCursor<T> operator +( int no) const {return Cursor<void*>::operator+(no);}    PCursor(const Link_list<T> & l) : Cursor<void*> (l) {}
     PCursor() : Cursor<void*> () {}
     PCursor( const Cursor<void*>& cursor ) : Cursor<void*>(cursor) { }
     void* vptr() const { return *((Cursor<void*> &) *this); }
index afbf942c738e1ea1503179c5bbb9d2b5569aeac5..469a8d444a4d1b3e45a29dec429b8fea49390758 100644 (file)
 /**
   A list of pointers.
   
-  Use for list of pointers, e.g. Pointer_list<AbstractType*>. 
+  Use for list of pointers, e.g. Link_list<AbstractType*>. 
   This class does no deletion of the pointers, but it knows how to
   copy itself (shallow copy). We could have derived it from List<T>,
-  but this design saves a lot of code dup; for all Pointer_lists in the
+  but this design saves a lot of code dup; for all Link_lists in the
   program only one parent List<void*> is instantiated.
   */
 template<class T>
-class Pointer_list : public List<void *>
+class Link_list : public List<void *>
 {
  public:
     PCursor<T> top() const{
@@ -29,11 +29,11 @@ class Pointer_list : public List<void *>
        return PCursor<T> (List<void*>::bottom());
     }
     PCursor<T> find(T) const;
-    void concatenate(Pointer_list<T> const &s) { List<void*>::concatenate(s); }
-    Pointer_list() {}
+    void concatenate(Link_list<T> const &s) { List<void*>::concatenate(s); }
+    Link_list() {}
 };
 
-/**   Pointer_list which deletes pointers given to it. 
+/**   Link_list which deletes pointers given to it. 
   NOTE:
   
   The copy constructor doesn't do what you'd want:
@@ -41,25 +41,25 @@ class Pointer_list : public List<void *>
 
     new T(*cursor)
 
-  You have to copy this yourself, or use the macro Pointer_list__copy
+  You have to copy this yourself, or use the macro Link_list__copy
   
   */
 template<class T>
-class IPointer_list : public Pointer_list<T> {
+class Pointer_list : public Link_list<T> {
 public:
-    IPointer_list(IPointer_list const &) { set_empty(); }
-    IPointer_list() { }
-    ~IPointer_list();
+    Pointer_list(Pointer_list const &) { set_empty(); }
+    Pointer_list() { }
+    ~Pointer_list();
 };
 
-#define IPointer_list__copy(T, to, from, op)   \
+#define Pointer_list__copy(T, to, from, op)   \
   for (PCursor<T> _pc_(from); _pc_.ok(); _pc_++)\
       to.bottom().add(_pc_->op)\
   \
 
 
 template<class T>
-void PL_copy(IPointer_list<T*> &dst,IPointer_list<T*> const&src);
+void PL_copy(Pointer_list<T*> &dst,Pointer_list<T*> const&src);
 
 
 
index 58ac1e7ae44288fd5245ec26058cce825895aff0..99e15e56f5a873c69d59afb475d4035dd8f99a72 100644 (file)
@@ -19,7 +19,7 @@ public:
 private:
     const File_path * path_C_;
     void add( Source_file* sourcefile_p );
-    IPointer_list<Source_file*> sourcefile_p_iplist_;
+    Pointer_list<Source_file*> sourcefile_p_iplist_;
     bool binary_b_ ;
 };
 
index f1ac0c1eaaee84daf70cffd83393be12daf44e49..a898628d358663c0d0b2f43ba1bbbab0f273b7f1 100644 (file)
@@ -14,7 +14,7 @@
   make sure that they reach the beam and that point in the correct
   direction */
 struct Beam:  public Directional_spanner {
-    Pointer_list<Stem*> stems;
+    Link_list<Stem*> stems;
     /// the slope of the beam in posns / point (dimension)   
     Real slope;
 
index b34fedc18359bf946c11f64bccd596201d47c329..df490367b45d98c0bc22ccbec53b0ab4fbe1c887 100644 (file)
@@ -12,7 +12,7 @@
 #include "voice.hh"
 #include "moment.hh"
 
-struct Voice_list : public Pointer_list<Voice*> {
+struct Voice_list : public Link_list<Voice*> {
     void translate_time(Moment dt);
 };
 
@@ -67,7 +67,7 @@ struct Simple_music : Input_music {
 
 /// Complex_music consists of multiple voices
 struct Complex_music : Input_music {
-    IPointer_list<Input_music*> elts;
+    Pointer_list<Input_music*> elts;
     /* *************** */
     virtual void transpose(Melodic_req const&) const ;
     virtual void set_default_group(String g);
index bf945ab10063ba75da9a26a2623311c7da6ae6f2..2ba2c8c2e343c5a2d57cbd97a2aa0ef0b18d97ec 100644 (file)
@@ -16,7 +16,7 @@
 #include "input.hh"
 
 struct Input_register : Input { 
-    IPointer_list<Input_register*> ireg_list_;
+    Pointer_list<Input_register*> ireg_list_;
     String name_str_;
     
     void add(Input_register*);
index 6e6a3ceaaf98f9bba7c674afb2fc992d3d0f6116..da3db472080350c07905a20c6edd7439ba1ae55e 100644 (file)
@@ -24,7 +24,7 @@ public:
     /// paper_, staffs_ and commands_ form the problem definition.
     Paper_def *paper_p_;
     Midi_def* midi_p_;
-    IPointer_list<Input_staff*> staffs_;
+    Pointer_list<Input_staff*> staffs_;
 
     
     /* *************************************************************** */
index 0bbdc1326614117cf05f4ff0a6ddf2ccf48da5fd..edc29919246791102dd9facf64ab34baf59364f7 100644 (file)
@@ -16,7 +16,7 @@
 class Input_staff:public Input {
 public:
     
-    IPointer_list<Input_music*> music_;
+    Pointer_list<Input_music*> music_;
     Input_register * ireg_p_;
     
     /* *************** */
index 312111bff283e0a33556326ecd0dd92365d3a4d3..3904acb4bf121f50a6fa76a20fd4785e7be85b97 100644 (file)
@@ -30,7 +30,7 @@ struct Atom {
 /** a group of individually translated symbols. You can add molecules
     to the top, to the right, etc.  */
 struct Molecule {
-    IPointer_list<Atom*> ats;  // change to List<Atom>? 
+    Pointer_list<Atom*> ats;   // change to List<Atom>? 
 
     /* *************** */
     
index 4a4264a006b4c85ecc0fc2e585b5c1acfef804c4..71b5887c98e40d776951ceb6c7cb0b0b42ed9dfb 100644 (file)
@@ -22,8 +22,8 @@
 
 class PCol { 
 public:
-    Pointer_list<Item const *> its;
-    Pointer_list<Spanner const *> stoppers, starters;
+    Link_list<Item const *> its;
+    Link_list<Spanner const *> stoppers, starters;
     
     /** prebreak is put before end of line.
     if broken here, then (*this) column is discarded, and prebreak
index 15c123fdb6017fafbb4cf8ab677b95a3b0fcf3f8..33e066c3c707536e721e06c135ea3df543631de5 100644 (file)
@@ -25,25 +25,25 @@ struct PScore {
     Paper_def *paper_l_;
     
     /// the columns, ordered left to right
-    IPointer_list<PCol *> cols;
+    Pointer_list<PCol *> cols;
 
     /// the idealspacings, no particular order
-    IPointer_list<Idealspacing*> suz;
+    Pointer_list<Idealspacing*> suz;
 
     /// the staffs ordered top to bottom
-    IPointer_list<PStaff*> staffs;
+    Pointer_list<PStaff*> staffs;
 
     /// all symbols in score. No particular order.
-    IPointer_list<Item*> its;
+    Pointer_list<Item*> its;
 
     /// if broken, the different lines
-    IPointer_list<Line_of_score*> lines;
+    Pointer_list<Line_of_score*> lines;
 
     /// crescs etc; no particular order
-    IPointer_list<Spanner *> spanners;
+    Pointer_list<Spanner *> spanners;
 
     /// broken spanners
-    IPointer_list<Spanner*> broken_spans;
+    Pointer_list<Spanner*> broken_spans;
 
     /* *************** */
     /* CONSTRUCTION */
index a1c5fb4daa91ff8fda598e44473569495e8e8ca3..c4236c874e8bf01563d2a73929c5dce0b83a57a3 100644 (file)
@@ -11,8 +11,8 @@ struct PStaff {
     PScore * pscore_l_;
     
     
-    Pointer_list<Spanner const *> spans;
-    Pointer_list<Item*> its;
+    Link_list<Spanner const *> spans;
+    Link_list<Item*> its;
 
     /* *************** */
     void add(Item*i);
index e871517388447c89d565cfabfe2027647a99729b..e6f9be9c1180bbedf038cfc61f8257876e1fc64d 100644 (file)
@@ -34,15 +34,15 @@ int compare(Voice_l const &p1, Voice_l const &p2);
 class Pulk_voices
 {
 PQueue< Voice_l > voice_pq_;
-    IPointer_list< Pulk_voice * > pulk_p_list_;
-    Pointer_list<Staff *> staff_l_list_;
+    Pointer_list< Pulk_voice * > pulk_p_list_;
+    Link_list<Staff *> staff_l_list_;
     Moment next_mom_;
 
 public:
     Moment last_;
     bool ok() const;
     Moment next_mom() { return next_mom_; }
-    Pulk_voices(Pointer_list<Staff*> const&);
+    Pulk_voices(Link_list<Staff*> const&);
     void get_aligned_request(Request_column *col_l );
 };
 
index be21d7fd5e4060214988f75cabeb09380fde6123..2156dbec804f4ed2d9dae0f251f3ce76234caed4 100644 (file)
@@ -21,7 +21,7 @@
   */
 class Register_group_register : public Request_register {
 protected:
-    IPointer_list<Request_register*> reg_list_;
+    Pointer_list<Request_register*> reg_list_;
     virtual void do_print()const;
 public:
 
index 7376e9797655121d4ce584c75a7e1268fba14b34..da38be4b410a506e344a27b4a626a8ded8c40be9 100644 (file)
@@ -24,12 +24,12 @@ struct Score {
     /// paper_, staffs_ and commands_ form the problem definition.
     Paper_def *paper_p_;
     Midi_def *midi_p_;
-    IPointer_list<Staff*> staffs_;
+    Pointer_list<Staff*> staffs_;
     
     /// "runtime" fields for setting up spacing    
-    IPointer_list<Request_column*> rcols_;
+    Pointer_list<Request_column*> rcols_;
     
-    IPointer_list<Score_column*> cols_;
+    Pointer_list<Score_column*> cols_;
     PScore *pscore_p_;
 
     Input input_;
index 814cb7e8c267eb59772b5b5571ac0e7212bf3f93..15c10f31cf9278880b15c7b3015ae584137634e0 100644 (file)
 /// the columns of a score that form one line.
 struct
 Line_of_score {
-    Pointer_list<PCol *> cols;
+    Link_list<PCol *> cols;
 
     bool error_mark_b_;
     // need to store height of each staff.
-    IPointer_list<Line_of_staff*> staffs;
+    Pointer_list<Line_of_staff*> staffs;
     PScore * pscore_l_;        // needed to generate staffs
 
     /* *************** */
index 29f6839f7314672a88cd520eee20d86b36b554ef..7811f76c0ecfd79464df5cf7c26f3105fb69df25 100644 (file)
@@ -20,9 +20,9 @@ class Staff {
 public:
     Input_register * ireg_p_;
     
-    Pointer_list<Voice*> voice_list_;
+    Link_list<Voice*> voice_list_;
     /// runtime field
-    Pointer_list<Staff_column*> cols_;
+    Link_list<Staff_column*> cols_;
 
     Score *score_l_;
     PScore *pscore_l_;
@@ -30,7 +30,7 @@ public:
     
     /* *************************************************************** */
 
-    void add(const Pointer_list<Voice*> &s);
+    void add(const Link_list<Voice*> &s);
 
     void add_voice(Voice *v_p);
     Paper_def*paper()const;
index fc85b58e3b12bd09cf9b9130ce0069607ac6fdff..75210c21d04c2e913abe700d3e1e83f3143315b0 100644 (file)
@@ -24,7 +24,7 @@ public:
       Voice_element */
     Moment duration_;
     Voice const *voice_C_;
-    IPointer_list<Request*> req_p_list_;
+    Pointer_list<Request*> req_p_list_;
     Request * principal_req_l_;
 
     /* *************** */
index 475fc4466856a24a7e7e9b0cd64c91181fe08d71..a0aeddf796d3ef6fcc93f0c98ecc6372362b6dad 100644 (file)
@@ -18,7 +18,7 @@ struct Voice {
     /** the elements, earliest first.
       Please use the member #add()# to add a new element
       */
-    IPointer_list<Voice_element *> elts_;
+    Pointer_list<Voice_element *> elts_;
     Moment start_;
 
     /* *************** */
index dc3c26604ee57e4c8c4c33abe7e3903234be09bd..f2c26cbe2522869372ea49289f25fe2dec2323d5 100644 (file)
@@ -13,7 +13,7 @@
 #include "request-column.hh"
 #include "debug.hh"
 
-Pulk_voices::Pulk_voices(Pointer_list<Staff*> const& l)
+Pulk_voices::Pulk_voices(Link_list<Staff*> const& l)
     : staff_l_list_(l)
 {
     int staff_i = 0;
index a3f71b0be781e9799755cc783cdf4f1d2a1e2631..c601837147a81e86c0ebd71d8749479333b4dfd6 100644 (file)
@@ -19,7 +19,7 @@
 
 
 void
-Staff::add(Pointer_list<Voice*> const &l)
+Staff::add(Link_list<Voice*> const &l)
 {
     for (iter_top(l,i); i.ok(); i++)
        voice_list_.bottom().add(i);
index 399b9ed384a04f7e5541be2105889ed49a28a21a..8be96a30f44962498a6b61d17d0fab90ec82e5c9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  template4.cc -- instantiate Pointer_list baseclass.
+  template4.cc -- instantiate Link_list baseclass.
 
   source file of the LilyPond music typesetter
 
index 8c9d38bca770f5da7a01e7d35792d7df9b46e97c..990d4031ef10962f0e0e4c388d4b2b453a1294ad 100644 (file)
@@ -18,7 +18,7 @@ public:
        void process();
 
 private:
-       IPointer_list<Midi_track*> midi_track_p_list_;
+       Pointer_list<Midi_track*> midi_track_p_list_;
        int format_i_;
        int tracks_i_;
        int tempo_i_;