]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.27
authorfred <fred>
Fri, 14 Feb 1997 22:29:38 +0000 (22:29 +0000)
committerfred <fred>
Fri, 14 Feb 1997 22:29:38 +0000 (22:29 +0000)
14 files changed:
flower/Makefile
flower/assoc.hh
flower/compare.hh
flower/cursor.hh
flower/dataf.cc
flower/list.hh
flower/list.tcc
flower/path.hh
flower/plist.hh
flower/string.cc
flower/string.hh
flower/textstr.hh
flower/varray.hh
flower/vector.hh

index 9c692641150bde2f5e9c4bec672a6021d00d8db6..611691fae6eb11de9c30aa2085bf0586622781a2 100644 (file)
@@ -19,7 +19,6 @@ fversion.hh: Variables.make make_version
 
 .PHONY: docxx
 docxx: $(hh) $(cc) $(templatecc) $(inl)
-       -mkdir docxx
        doc++ -p -d docxx $(hh) $(cc) $(templatecc) $(inl)
 
 dist:
index 154a0242a22749c3ec7494d432168cfad114b332..07afb8a27ce45499aa8d7c6d191cbdad7573fdf3 100644 (file)
@@ -11,8 +11,8 @@ struct Assoc_ent_ {
     V val;
 };
 
-/// hungarian: map
-/** mindblowingly stupid Associative array implementation
+
+/** mindblowingly stupid Associative array implementation.Hungarian: map
  */
 template<class K, class V>
 struct Assoc {
index 30a1998ad34671935bacd51d834abeb8e617c207..203ba014e7cb89fbed70b41355d498354c2624a6 100644 (file)
@@ -28,8 +28,7 @@ operator op(type t1, type t2)\
 #define gpp_minmax(type, prefix)
 #endif
 
-/// handy notations for a signed comparison
-/**
+/**  handy notations for a signed comparison. 
     make the operators{<,<=,==,>=,>} and the MAX and MIN of two.
     Please fill a & in the type argument if necessary.    
     */
index d8274d2493c422cfbb70f82fef6863a77794e6d8..0ea99037f9d4d8b48c2277c2fe81cdc492e570ea 100644 (file)
@@ -6,8 +6,7 @@
 #include "link.hh"
 template<class T> class List;
 
-/// iterator to List
-/** 
+/**  iterator to List.  
   add and insert extend the list
   items are always stored as copies in List, but:
   List<String> :  copies of String stored 
@@ -19,8 +18,8 @@ template<class T>
 class Cursor 
 {
  public:
-    /** this isn't true, actually, #list# surely isn't const, but I get
-      tired of the warning messages.  */
+    /** create cursor, set at top. The const part isn't true, actually, #list#
+      surely isn't const, but I get tired of the warning messages.  */
     Cursor( const List<T>& list, Link<T>* pointer = 0 );
     
     Cursor( const Cursor<T>& cursor );
@@ -56,8 +55,7 @@ class Cursor
     /// -- items left?
     bool backward();
 
-    /// put (copy) after me in List
-    /**
+    /**  put (copy) after me in List. 
       analogously to editor. ok() interpreted as at end
       of line.
 
@@ -70,8 +68,7 @@ class Cursor
       */
     void add( const T& thing );
 
-    /// put (copy) before me in List
-    /**
+    /**  put (copy) before me in List. 
       analogously to editor. ok() interpreted as at begin of
       line.
       
index e3c42ad45f24abd4133b8619c711c7ef2b7df7e5..29b366c8603f030c4115af6394d274231184df36 100644 (file)
@@ -78,8 +78,7 @@ Data_file::get_word()
     return s;        
 }
 
-/// get a char.
-/**
+/**  get a char 
    Only class member who uses text_file::get
    */
 char
index 4f3c1aa825e4b8c8976a8540ca9b855b9a633488..ec59fbff07447b4710ccb8e529748a227951a43d 100644 (file)
@@ -5,9 +5,8 @@ class ostream;
 template<class T> class Cursor;
 template<class T> class Link;
 
-/// all-purpose doubly linked list
-/**
-  a doubly linked list; 
+/**  all-purpose doubly linked list. 
+
   List can be seen as all items written down on paper,
   from top to bottom
 
@@ -39,7 +38,7 @@ class List
        
     int size() const;
 
-    Cursor<T> bottom() const;  // const sucks..
+    Cursor<T> bottom() const;  // const sucks.
     Cursor<T> top() const;
 
     void OK() const;           // check list
@@ -50,8 +49,7 @@ class List
 
     void concatenate(List<T> const &s);
     
-    /// make *this empty
-     /**
+    /**  make *this empty. 
 
       POST:
       size == 0
@@ -61,12 +59,12 @@ class List
       */
      void set_empty();
   
-    /// add after 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 );
-     /** Remove link pointed to by me. Destructor of contents called
+
+    /** Remove link pointed to by me. Destructor of contents called
       (nop for pointers)
 
       POST
index 37ded81bbe83ae82ccc762823613dca7726ed3be..16e12a31f1f8645c0a7f9af7ece4af2f26cc0f72 100644 (file)
@@ -43,6 +43,18 @@ List<T>::~List()
        c.del();
 }
 
+/** 
+
+  add after after_me.
+
+  Procedure:
+  \begin{itemize}
+  \item if #after_me# is #ok()#, add after #after_me#, else
+  \item if list !empty simply add to bottom, else
+  \item list is empty: create first \Ref{Link} and initialize 
+  #bottom_# and #top_#.
+  \end{itemize}
+*/
 template<class T>
 void
 List<T>::add( const T& thing, Cursor<T> &after_me )
@@ -62,16 +74,6 @@ List<T>::add( const T& thing, Cursor<T> &after_me )
 
     size_++;
 }
-/** 
-
-  Procedure:
-  \begin{itemize}
-  \item if #after_me# is #ok()#, add after #after_me#, else
-  \item if list !empty simply add to bottom, else
-  \item list is empty: create first \Ref{Link} and initialize 
-  #bottom_# and #top_#.
-  \end{itemize}
-*/
 
 template<class T>
 void
index 4a36730dcd34b840aa1aeffb2879db1af9a280d5..bc4d9f3776c58abde644f69a0ebea7ab9cbe342c 100644 (file)
@@ -4,8 +4,7 @@
 #include "varray.hh"
 
 
-///   searching directory for file.
-/**
+/**    searching directory for file.
 
    Abstraction of PATH variable. An interface for searching input files.
    Search a number of dirs for a file.
index 61b51d97e3cfc81986bb8bd3ff5b1a062e46747d..426b861c024f079364f3c5d5d68ee7a9f0eb79dc 100644 (file)
@@ -9,12 +9,15 @@
 
 #include "list.hh"
 
-/// Use for list of pointers, e.g. PointerList<AbstractType*>.
 /**
+  A list of pointers.
+  
+  Use for list of pointers, e.g. PointerList<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 PointerLists in the
-  program only one parent List<void*> is instantiated.  */
+  program only one parent List<void*> is instantiated.
+  */
 template<class T>
 class PointerList : public List<void *>
 {
@@ -30,8 +33,7 @@ class PointerList : public List<void *>
     PointerList() {}
 };
 
-///  pl. which deletes pointers given to it.
-/**
+/**   PointerList which deletes pointers given to it. 
   NOTE:
   
   The copy constructor doesn't do what you'd want:
@@ -43,7 +45,8 @@ class PointerList : public List<void *>
   
   */
 template<class T>
-struct IPointerList : public PointerList<T> {
+class IPointerList : public PointerList<T> {
+public:
     IPointerList(const IPointerList&) { set_empty(); }
     IPointerList() { }
     ~IPointerList();
index eb5822cf32685e8bbce079668c472ff68cde7d47..9c7f2d0801e0ce350ed776eae5385bb5e0ec223e 100644 (file)
@@ -1,11 +1,12 @@
-/****************************************************************************
+/*
   PROJECT: FlowerSoft C++ library
   FILE   : string.cc
 
   Rehacked by HWN 3/nov/95
   removed String &
   introduced Class String_handle
---*/
+
+*/
 
 #include <string.h>
 #include <stdlib.h>
index e58f6146997405e7471a6e24316909e100c089c3..420d5f959d85491096ad798696d3e034cd4bd5e8 100644 (file)
@@ -19,8 +19,7 @@
 
 #include "stringutil.hh"
 
-/// the smart string class.
-/** 
+/**  the smart string class.  
 
   Intuitive string class. provides 
 
@@ -50,8 +49,7 @@ protected:
     String_handle data; // should derive String from String_handle?
 
 public:
-    /// init to ""
-    /** needed because other constructors are provided.*/
+    /**  init to "".  needed because other constructors are provided.*/
     String() {  }                  
     String(Rational);
     /// String s = "abc";
@@ -118,8 +116,7 @@ public:
     /// index of rightmost element of string 
     int lastPos( const char* string ) const;
 
-    /// index of leftmost c
-    /**
+    /**  index of leftmost c. 
     RETURN:
     0 if not found, else index + 1
     */
index 489682effdee2969795d929d479ce56f74b32c06..2d648d4c19accf760b921d6e634466cd59621890 100644 (file)
@@ -7,8 +7,7 @@
 #include "string.hh"
 #include "varray.hh"
 
-/// line counting input stream.
-/**
+/**  line counting input stream. 
  a stream for textfiles. linecounting. Thin interface getchar and
  ungetchar.  (ungetc is unlimited) 
 
index 0daafb84f817721c4d7cd198ba0f31741afaceb0..d2c2f5532191e48dcaf41f340fb6145457a207ef 100644 (file)
@@ -15,9 +15,9 @@ inline void arrcpy(T*dest, T*src, int count) {
        *dest++ = *src++;
 }
 
-///scaleable array/stack template, for T with def ctor.
-/**
 
+/**
+  scaleable array/stack template, for T with def ctor.
   This template implements a scaleable vector. With (or without) range
   checking. It may be flaky for objects with complicated con- and
   destructors. The type T should have a default constructor. It is
@@ -52,8 +52,9 @@ public:
        assert(max >= size_ && size_ >=0);
        if (max) assert(thearray);
     }
-    /// report the size_. See {setsize_}
-
+    /** report the size_.
+      @see {setsize_}
+      */
     int size() const  { return size_; }
     
     /// POST: size() == 0
@@ -61,13 +62,14 @@ public:
 
     Array() { thearray = 0; max =0; size_ =0; }
 
-    /// set the size_ to #s#
+
+    /** set the size_ to #s#.
+      POST: size() == s.
+    Warning: contents are unspecified */
     void set_size(int s) {
        if (s >= max) remax(s);
        size_ = s;    
     }
-    /** POST: size() == s.
-    Warning: contents are unspecified */
     
     ~Array() { delete[] thearray; }
 
index 266254dbb82834be54cf56da1d6ebd73b0a196eb..4d91397cc6c710d0a34118710a86c4d514aba725 100644 (file)
@@ -9,8 +9,7 @@ class Dstream;
 class String;
 void set_matrix_debug(Dstream&ds);
 
-/// a row of numbers
-/**
+/**  a row of numbers. 
     a vector. Storage is handled in Array, Vector only does the mathematics.
  */
 class Vector  {