]> git.donarmstrong.com Git - mothur.git/blobdiff - shared.cpp
version working on mac with .tellg changed to unget for windows
[mothur.git] / shared.cpp
index 3208156547aa4fcc83d6c5e6d293fb34f378b3e0..b15ef93f32b58f7b294704cbe44aaa90472cf349 100644 (file)
@@ -3,7 +3,7 @@
  *  Dotur
  *
  *  Created by Sarah Westcott on 12/5/08.
- *  Copyright 2008 Schloss Lab Umass Amherst. All rights reserved.
+ *  Copyright 2008 Schloss Lab UMASS Amherst. All rights reserved.
  *
  */
 
@@ -16,11 +16,12 @@ Shared::Shared(){
 }
 
 /**************************************************************************************************/
-void Shared::getSharedVectors(int index, ListVector* list) {
+void Shared::getSharedVectors(SharedListVector* list) {
                string label, group;
                int i,j;
                label = list->getLabel();
                
+               for (it = sharedGroups.begin(); it != sharedGroups.end(); it++) {  delete it->second;  }
                sharedGroups.clear();  //removes old info.
                
                //initalize sharedGroups 
@@ -39,13 +40,13 @@ void Shared::getSharedVectors(int index, ListVector* list) {
                }
                
                //updates sharedVector
-               sharedRAbund.push_back(sharedGroups);
+               //sharedRAbund.push_back(sharedGroups);
 }
 
 
 
 /***********************************************************************/
-void Shared::parse(int index, ListVector* list) {
+void Shared::parse(int index, SharedListVector* list) {
 
                string prefix, suffix, groupsName;
                suffix = list->get(index);