]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/assoc-iter.hh
release: 0.1.11
[lilypond.git] / flower / include / assoc-iter.hh
index 34b88df22d005f302072a3bb2d470daecb44cd0c..f1ba2f89b25de5bd47cf0456341b180f3eb9efe9 100644 (file)
@@ -15,12 +15,12 @@ struct Assoc_iter {
     int i;
     Assoc<K,V> &assoc_;
     /// we don't want to be bothered by const correctness
-    Assoc_iter(const Assoc<K,V> &a) :
+    Assoc_iter (const Assoc<K,V> &a) :
        assoc_((Assoc<K,V> &)a)
     {  
-       i= next(0);
+       i= next (0);
     }
-    int next(int j) {
+    int next (int j) {
        while (j < assoc_.arr.size() && assoc_.arr[j].free)
            j++;
        return j;
@@ -28,10 +28,10 @@ struct Assoc_iter {
     bool ok() const {
        return i < assoc_.arr.size();
     }
-    void OK()const {
-       assert(!ok() || !assoc_.arr[i].free);
+    void OK() const {
+       assert (!ok() || !assoc_.arr[i].free);
     }
-    void operator++(int) { i++; i = next(i); }
+    void operator++(int) { i++; i = next (i); }
     K key() { return assoc_.arr[i].key; }
     V &val() { return assoc_.arr[i].val; }    
 };