]> git.donarmstrong.com Git - mothur.git/blobdiff - globaldata.hpp
fixed memory issue with cluster command
[mothur.git] / globaldata.hpp
index 1bccc34f58fa6fcaf136bab32cd74f5093babda7..6070dd7b2cdd6122b78c5833359ce487497fd0e3 100644 (file)
@@ -10,6 +10,7 @@ using namespace std;
 class ListVector;
 class SharedListVector;
 class SparseMatrix;
+class FullMatrix;
 class Tree;
 class OrderVector;
 class InputData;
@@ -20,8 +21,8 @@ class SAbundVector;
 class GlobalData {
 public:
        static GlobalData* getInstance();
-       ListVector* getListVector();
-       SparseMatrix* getSparseMatrix();
+       ListVector* gListVector;
+       SparseMatrix* gSparseMatrix;
        InputData* ginput;
        OrderVector* gorder;
        ListVector* glist;
@@ -29,6 +30,7 @@ public:
        SharedListVector* gSharedList;
        SAbundVector* sabund;
        GroupMap* gGroupmap;
+       FullMatrix* gMatrix;
        TreeMap* gTreemap;
        string inputFileName, helpRequest, commandName;
        bool allLines;
@@ -57,6 +59,7 @@ public:
        string getFreq();
        string getAbund();
        string getRandomTree();
+       string getGroups();
 
        void setListFile(string);
        void setPhylipFile(string);
@@ -66,11 +69,9 @@ public:
        void setSabundFile(string);
        void setFormat(string);
        void setRandomTree(string);
+       void setGroups(string);
        void setCalc(string);
 
-       
-       void setListVector(ListVector*);
-       void setSparseMatrix(SparseMatrix*);
        void clear(); 
        void clearLabels();
        void clearAbund();
@@ -86,8 +87,6 @@ private:
        void operator=( const GlobalData& ); // Disable assignment operator
        GlobalData();
        ~GlobalData();
-       ListVector* gListVector;
-       SparseMatrix* gSparseMatrix;
        void reset();   //clears all non filename parameters