]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/parray.hh
Merge branch 'master' of ssh://jneem@git.sv.gnu.org/srv/git/lilypond into tmp
[lilypond.git] / flower / include / parray.hh
index e003d462231a1808b6b2327c76aa63ad317449d3..619532bbed690abc16190bf9a05987f7c2c08f8a 100644 (file)
@@ -3,39 +3,21 @@
 
   source file of the Flower Library
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
-
 #ifndef PARRAY_HH
 #define PARRAY_HH
 
-#include "varray.hh"
+#include "std-vector.hh"
 
-/**
-  an array of pointers.
+using namespace std;
 
-  TODO
-  should init to 0.
- */
 template<class T>
-class Link_array : public Array<T>
+class Link_array : public vector<T *>
 {
-public:
-    int find_i (T t) const{
-       for (int i=0; i < size(); i++)
-           if (elem(i) == t)
-               return i;
-       return -1;
-    }
-    T find_l(T t)const
-    {
-       int i = find_i(t);
-       if (i >= 0)
-           return elem(i);
-       else
-           return 0;
-    }
+  
 };
 
 #endif // PARRAY_HH
+