]> git.donarmstrong.com Git - mothur.git/blobdiff - sparsematrix.hpp
added list parameter to get.seqs and remove.seqs and added readline library for inter...
[mothur.git] / sparsematrix.hpp
index 58aca0d9f2f46900df040c758d1d40747fbcb8bf..8eeda7ff2f9899748bde34f92fac5a25dcfd3964 100644 (file)
@@ -1,8 +1,7 @@
 #ifndef SPARSEMATRIX_H
 #define SPARSEMATRIX_H
 
-#include "utilities.hpp"
-#include <list>
+#include "mothur.h"
 
 
 class ListVector;
@@ -21,21 +20,23 @@ class ListVector;
 
 /***********************************************************************/
 
+typedef list<PCell>::iterator MatData;
+
 class SparseMatrix {
        
 public:
        SparseMatrix();
        int getNNodes();
        void print();                                   //Print the contents of the matrix
-       void print(ListVector*);                                        //Print the contents of the matrix
+       void print(ListVector*);                //Print the contents of the matrix
        PCell* getSmallestCell();               //Return the cell with the smallest distance
        float getSmallDist();
        
-       void rmCell(list<PCell>::iterator);
+       MatData rmCell(MatData);
        void addCell(PCell);
        void clear();
-       list<PCell>::iterator begin();
-       list<PCell>::iterator end();
+       MatData begin();
+       MatData end();
 
 private:
        PCell* smallCell;                               //The cell with the smallest distance