From: fred Date: Sun, 24 Mar 2002 19:43:09 +0000 (+0000) Subject: lilypond-0.0.63 X-Git-Tag: release/1.5.59~4739 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=56010793892cc9f2608c6bbc8e42902ab961988d;p=lilypond.git lilypond-0.0.63 --- diff --git a/flower/include/fproto.hh b/flower/include/fproto.hh index ef4c6422b2..d5bf68034b 100644 --- a/flower/include/fproto.hh +++ b/flower/include/fproto.hh @@ -21,8 +21,8 @@ template struct Array; template struct sstack; template struct Assoc; template struct List; +template struct Link_list; template struct Pointer_list; -template struct IPointer_list; template struct Cursor; template struct PCursor; template struct Link; diff --git a/flower/include/list.hh b/flower/include/list.hh index cdf57ced99..343ccffcbc 100644 --- a/flower/include/list.hh +++ b/flower/include/list.hh @@ -15,7 +15,7 @@ template class Link; items are always stored as copies in List, but: #List# : copies of #String# stored #List# : copies of #String*# stored! - (do not use, use \Ref{Pointer_list} ## instead.) + (do not use, use \Ref{Link_list} ## instead.) {\bf note:} retrieving "invalid" cursors, i.e. diff --git a/flower/include/pcursor.hh b/flower/include/pcursor.hh index dffe02b9ef..6144152614 100644 --- a/flower/include/pcursor.hh +++ b/flower/include/pcursor.hh @@ -10,14 +10,14 @@ #include "plist.hh" #include "cursor.hh" -/** cursor to go with Pointer_list. - don't create Pointer_list's. +/** cursor to go with Link_list. + don't create Link_list's. This cursor is just an interface class for Cursor. It takes care of the appropriate type casts */ template class PCursor : private Cursor { - friend class IPointer_list; + friend class Pointer_list; /// delete contents void junk(); @@ -36,14 +36,14 @@ public: return remove_p(); } - Pointer_list &list() { return (Pointer_list&)Cursor::list(); } + Link_list &list() { return (Link_list&)Cursor::list(); } PCursor operator++(int) { return Cursor::operator++(0);} PCursor operator--(int) { return Cursor::operator--(0); } PCursor operator+=(int i) { return Cursor::operator+=(i);} PCursor operator-=(int i) { return Cursor::operator-=(i); } PCursor operator -(int no) const { return Cursor::operator-(no);} int operator -(PCursor op) const { return Cursor::operator-(op);} - PCursor operator +( int no) const {return Cursor::operator+(no);} PCursor(const Pointer_list & l) : Cursor (l) {} + PCursor operator +( int no) const {return Cursor::operator+(no);} PCursor(const Link_list & l) : Cursor (l) {} PCursor() : Cursor () {} PCursor( const Cursor& cursor ) : Cursor(cursor) { } void* vptr() const { return *((Cursor &) *this); } diff --git a/flower/include/plist.hh b/flower/include/plist.hh index afbf942c73..469a8d444a 100644 --- a/flower/include/plist.hh +++ b/flower/include/plist.hh @@ -12,14 +12,14 @@ /** A list of pointers. - Use for list of pointers, e.g. Pointer_list. + Use for list of pointers, e.g. Link_list. This class does no deletion of the pointers, but it knows how to copy itself (shallow copy). We could have derived it from List, - 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 is instantiated. */ template -class Pointer_list : public List +class Link_list : public List { public: PCursor top() const{ @@ -29,11 +29,11 @@ class Pointer_list : public List return PCursor (List::bottom()); } PCursor find(T) const; - void concatenate(Pointer_list const &s) { List::concatenate(s); } - Pointer_list() {} + void concatenate(Link_list const &s) { List::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 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 IPointer_list : public Pointer_list { +class Pointer_list : public Link_list { 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 _pc_(from); _pc_.ok(); _pc_++)\ to.bottom().add(_pc_->op)\ \ template -void PL_copy(IPointer_list &dst,IPointer_list const&src); +void PL_copy(Pointer_list &dst,Pointer_list const&src); diff --git a/lib/include/source.hh b/lib/include/source.hh index 58ac1e7ae4..99e15e56f5 100644 --- a/lib/include/source.hh +++ b/lib/include/source.hh @@ -19,7 +19,7 @@ public: private: const File_path * path_C_; void add( Source_file* sourcefile_p ); - IPointer_list sourcefile_p_iplist_; + Pointer_list sourcefile_p_iplist_; bool binary_b_ ; }; diff --git a/lily/include/beam.hh b/lily/include/beam.hh index f1ac0c1eaa..a898628d35 100644 --- a/lily/include/beam.hh +++ b/lily/include/beam.hh @@ -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 stems; + Link_list stems; /// the slope of the beam in posns / point (dimension) Real slope; diff --git a/lily/include/input-music.hh b/lily/include/input-music.hh index b34fedc183..df490367b4 100644 --- a/lily/include/input-music.hh +++ b/lily/include/input-music.hh @@ -12,7 +12,7 @@ #include "voice.hh" #include "moment.hh" -struct Voice_list : public Pointer_list { +struct Voice_list : public Link_list { 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 elts; + Pointer_list elts; /* *************** */ virtual void transpose(Melodic_req const&) const ; virtual void set_default_group(String g); diff --git a/lily/include/input-register.hh b/lily/include/input-register.hh index bf945ab100..2ba2c8c2e3 100644 --- a/lily/include/input-register.hh +++ b/lily/include/input-register.hh @@ -16,7 +16,7 @@ #include "input.hh" struct Input_register : Input { - IPointer_list ireg_list_; + Pointer_list ireg_list_; String name_str_; void add(Input_register*); diff --git a/lily/include/input-score.hh b/lily/include/input-score.hh index 6e6a3ceaaf..da3db47208 100644 --- a/lily/include/input-score.hh +++ b/lily/include/input-score.hh @@ -24,7 +24,7 @@ public: /// paper_, staffs_ and commands_ form the problem definition. Paper_def *paper_p_; Midi_def* midi_p_; - IPointer_list staffs_; + Pointer_list staffs_; /* *************************************************************** */ diff --git a/lily/include/input-staff.hh b/lily/include/input-staff.hh index 0bbdc13266..edc2991924 100644 --- a/lily/include/input-staff.hh +++ b/lily/include/input-staff.hh @@ -16,7 +16,7 @@ class Input_staff:public Input { public: - IPointer_list music_; + Pointer_list music_; Input_register * ireg_p_; /* *************** */ diff --git a/lily/include/molecule.hh b/lily/include/molecule.hh index 312111bff2..3904acb4bf 100644 --- a/lily/include/molecule.hh +++ b/lily/include/molecule.hh @@ -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 ats; // change to List? + Pointer_list ats; // change to List? /* *************** */ diff --git a/lily/include/p-col.hh b/lily/include/p-col.hh index 4a4264a006..71b5887c98 100644 --- a/lily/include/p-col.hh +++ b/lily/include/p-col.hh @@ -22,8 +22,8 @@ class PCol { public: - Pointer_list its; - Pointer_list stoppers, starters; + Link_list its; + Link_list stoppers, starters; /** prebreak is put before end of line. if broken here, then (*this) column is discarded, and prebreak diff --git a/lily/include/p-score.hh b/lily/include/p-score.hh index 15c123fdb6..33e066c3c7 100644 --- a/lily/include/p-score.hh +++ b/lily/include/p-score.hh @@ -25,25 +25,25 @@ struct PScore { Paper_def *paper_l_; /// the columns, ordered left to right - IPointer_list cols; + Pointer_list cols; /// the idealspacings, no particular order - IPointer_list suz; + Pointer_list suz; /// the staffs ordered top to bottom - IPointer_list staffs; + Pointer_list staffs; /// all symbols in score. No particular order. - IPointer_list its; + Pointer_list its; /// if broken, the different lines - IPointer_list lines; + Pointer_list lines; /// crescs etc; no particular order - IPointer_list spanners; + Pointer_list spanners; /// broken spanners - IPointer_list broken_spans; + Pointer_list broken_spans; /* *************** */ /* CONSTRUCTION */ diff --git a/lily/include/p-staff.hh b/lily/include/p-staff.hh index a1c5fb4daa..c4236c874e 100644 --- a/lily/include/p-staff.hh +++ b/lily/include/p-staff.hh @@ -11,8 +11,8 @@ struct PStaff { PScore * pscore_l_; - Pointer_list spans; - Pointer_list its; + Link_list spans; + Link_list its; /* *************** */ void add(Item*i); diff --git a/lily/include/pulk-voices.hh b/lily/include/pulk-voices.hh index e871517388..e6f9be9c11 100644 --- a/lily/include/pulk-voices.hh +++ b/lily/include/pulk-voices.hh @@ -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_l_list_; + Pointer_list< Pulk_voice * > pulk_p_list_; + Link_list staff_l_list_; Moment next_mom_; public: Moment last_; bool ok() const; Moment next_mom() { return next_mom_; } - Pulk_voices(Pointer_list const&); + Pulk_voices(Link_list const&); void get_aligned_request(Request_column *col_l ); }; diff --git a/lily/include/register-group.hh b/lily/include/register-group.hh index be21d7fd5e..2156dbec80 100644 --- a/lily/include/register-group.hh +++ b/lily/include/register-group.hh @@ -21,7 +21,7 @@ */ class Register_group_register : public Request_register { protected: - IPointer_list reg_list_; + Pointer_list reg_list_; virtual void do_print()const; public: diff --git a/lily/include/score.hh b/lily/include/score.hh index 7376e97976..da38be4b41 100644 --- a/lily/include/score.hh +++ b/lily/include/score.hh @@ -24,12 +24,12 @@ struct Score { /// paper_, staffs_ and commands_ form the problem definition. Paper_def *paper_p_; Midi_def *midi_p_; - IPointer_list staffs_; + Pointer_list staffs_; /// "runtime" fields for setting up spacing - IPointer_list rcols_; + Pointer_list rcols_; - IPointer_list cols_; + Pointer_list cols_; PScore *pscore_p_; Input input_; diff --git a/lily/include/scoreline.hh b/lily/include/scoreline.hh index 814cb7e8c2..15c10f31cf 100644 --- a/lily/include/scoreline.hh +++ b/lily/include/scoreline.hh @@ -13,11 +13,11 @@ /// the columns of a score that form one line. struct Line_of_score { - Pointer_list cols; + Link_list cols; bool error_mark_b_; // need to store height of each staff. - IPointer_list staffs; + Pointer_list staffs; PScore * pscore_l_; // needed to generate staffs /* *************** */ diff --git a/lily/include/staff.hh b/lily/include/staff.hh index 29f6839f73..7811f76c0e 100644 --- a/lily/include/staff.hh +++ b/lily/include/staff.hh @@ -20,9 +20,9 @@ class Staff { public: Input_register * ireg_p_; - Pointer_list voice_list_; + Link_list voice_list_; /// runtime field - Pointer_list cols_; + Link_list cols_; Score *score_l_; PScore *pscore_l_; @@ -30,7 +30,7 @@ public: /* *************************************************************** */ - void add(const Pointer_list &s); + void add(const Link_list &s); void add_voice(Voice *v_p); Paper_def*paper()const; diff --git a/lily/include/voice-element.hh b/lily/include/voice-element.hh index fc85b58e3b..75210c21d0 100644 --- a/lily/include/voice-element.hh +++ b/lily/include/voice-element.hh @@ -24,7 +24,7 @@ public: Voice_element */ Moment duration_; Voice const *voice_C_; - IPointer_list req_p_list_; + Pointer_list req_p_list_; Request * principal_req_l_; /* *************** */ diff --git a/lily/include/voice.hh b/lily/include/voice.hh index 475fc44668..a0aeddf796 100644 --- a/lily/include/voice.hh +++ b/lily/include/voice.hh @@ -18,7 +18,7 @@ struct Voice { /** the elements, earliest first. Please use the member #add()# to add a new element */ - IPointer_list elts_; + Pointer_list elts_; Moment start_; /* *************** */ diff --git a/lily/pulk-voices.cc b/lily/pulk-voices.cc index dc3c26604e..f2c26cbe25 100644 --- a/lily/pulk-voices.cc +++ b/lily/pulk-voices.cc @@ -13,7 +13,7 @@ #include "request-column.hh" #include "debug.hh" -Pulk_voices::Pulk_voices(Pointer_list const& l) +Pulk_voices::Pulk_voices(Link_list const& l) : staff_l_list_(l) { int staff_i = 0; diff --git a/lily/staff.cc b/lily/staff.cc index a3f71b0be7..c601837147 100644 --- a/lily/staff.cc +++ b/lily/staff.cc @@ -19,7 +19,7 @@ void -Staff::add(Pointer_list const &l) +Staff::add(Link_list const &l) { for (iter_top(l,i); i.ok(); i++) voice_list_.bottom().add(i); diff --git a/lily/template4.cc b/lily/template4.cc index 399b9ed384..8be96a30f4 100644 --- a/lily/template4.cc +++ b/lily/template4.cc @@ -1,5 +1,5 @@ /* - template4.cc -- instantiate Pointer_list baseclass. + template4.cc -- instantiate Link_list baseclass. source file of the LilyPond music typesetter diff --git a/mi2mu/include/midi-score.hh b/mi2mu/include/midi-score.hh index 8c9d38bca7..990d4031ef 100644 --- a/mi2mu/include/midi-score.hh +++ b/mi2mu/include/midi-score.hh @@ -18,7 +18,7 @@ public: void process(); private: - IPointer_list midi_track_p_list_; + Pointer_list midi_track_p_list_; int format_i_; int tracks_i_; int tempo_i_;