X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=shared.cpp;h=36dbbb1117067253b04150cbf5a4c6f592906861;hb=753dc84cf289b1d5dc0ca5b0c043640927aa951a;hp=3208156547aa4fcc83d6c5e6d293fb34f378b3e0;hpb=20a2d0350a737a434c89f303662d64a8eeea7b05;p=mothur.git diff --git a/shared.cpp b/shared.cpp index 3208156..36dbbb1 100644 --- a/shared.cpp +++ b/shared.cpp @@ -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 @@ -45,7 +46,7 @@ void Shared::getSharedVectors(int index, ListVector* list) { /***********************************************************************/ -void Shared::parse(int index, ListVector* list) { +void Shared::parse(int index, SharedListVector* list) { string prefix, suffix, groupsName; suffix = list->get(index);