From: fred Date: Mon, 10 Feb 1997 18:16:52 +0000 (+0000) Subject: flower-1.0.26 X-Git-Tag: release/1.5.59~6353 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cf51611ed6970e6ead31e50f0054010e9f5d7c09;p=lilypond.git flower-1.0.26 --- diff --git a/flower/path.hh b/flower/path.hh index 781e86f970..4a36730dcd 100644 --- a/flower/path.hh +++ b/flower/path.hh @@ -5,6 +5,15 @@ /// searching directory for file. +/** + + Abstraction of PATH variable. An interface for searching input files. + Search a number of dirs for a file. + + Should use kpathsea? + +*/ + class File_path : private Array { public: @@ -18,15 +27,6 @@ public: Array::push; void add(String str) { push(str); } }; -/** - - Abstraction of PATH variable. An interface for searching input files. - Search a number of dirs for a file. - - Should use kpathsea? - -*/ - /// split path into its components void split_path(String path, String &drive, String &dirs, String &filebase, String &extension); diff --git a/flower/pcursor.hh b/flower/pcursor.hh index a6b99c9097..8498aa9e0d 100644 --- a/flower/pcursor.hh +++ b/flower/pcursor.hh @@ -10,6 +10,11 @@ /// cursor to go with PointerList +/** + don't create PointerList's. + This cursor is just an interface class for Cursor. It takes care of the + appropriate type casts + */ template struct PCursor : private Cursor { friend class IPointerList; @@ -53,11 +58,6 @@ public: return Cursor::compare(a,b); } }; -/** - don't create PointerList's. - This cursor is just an interface class for Cursor. It takes care of the - appropriate type casts - */ diff --git a/flower/plist.hh b/flower/plist.hh index f5913c1299..61b51d97e3 100644 --- a/flower/plist.hh +++ b/flower/plist.hh @@ -10,6 +10,11 @@ #include "list.hh" /// Use for list of pointers, e.g. PointerList. +/** + 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 PointerLists in the + program only one parent List is instantiated. */ template class PointerList : public List { @@ -24,19 +29,8 @@ class PointerList : public List void concatenate(PointerList const &s) { List::concatenate(s); } PointerList() {} }; -/** - 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 PointerLists in the - program only one parent List is instantiated. */ /// pl. which deletes pointers given to it. -template -struct IPointerList : public PointerList { - IPointerList(const IPointerList&) { set_empty(); } - IPointerList() { } - ~IPointerList(); -}; /** NOTE: @@ -48,6 +42,12 @@ struct IPointerList : public PointerList { You have to copy this yourself, or use the macro PointerList__copy */ +template +struct IPointerList : public PointerList { + IPointerList(const IPointerList&) { set_empty(); } + IPointerList() { } + ~IPointerList(); +}; #define IPointerList__copy(T, to, from, op) \ for (PCursor _pc_(from); _pc_.ok(); _pc_++)\