Changeset 8313 for trunk/CONSENSUS_TREE
- Timestamp:
- 20/12/11 15:11:49 (5 months ago)
- Location:
- trunk/CONSENSUS_TREE
- Files:
-
- 2 modified
-
CT_hash.cxx (modified) (1 diff)
-
CT_part.cxx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CONSENSUS_TREE/CT_hash.cxx
r8309 r8313 182 182 } 183 183 184 185 static void hash_print() {186 //! testfunction to print the hashtable187 int i;188 HNODE *hnp;189 190 printf("\n HASHtable \n");191 192 for (i=0; i< HASH_MAX; i++) {193 printf("Key: %d \n", i);194 hnp = Hashlist[i];195 while (hnp) {196 printf("node: count %d node ", hnp->part->percent);197 part_print(hnp->part); printf(" (%d)\n", hnp->part->p[0]);198 hnp = hnp->next;199 }200 }201 }202 203 204 static void sorted_print() {205 //! testfunction to print the sorted linear list206 HNODE *hnp;207 208 printf("\n sorted HASHlist \n");209 210 hnp = Sortedlist;211 while (hnp) {212 printf("node: count %d node ", hnp->part->percent);213 part_print(hnp->part); printf("\n");214 hnp = hnp->next;215 }216 } -
trunk/CONSENSUS_TREE/CT_part.cxx
r8309 r8313 187 187 188 188 189 static void part_setperc(PART *p, int perc) {190 //! set the percentaged appearance of this part in "entrytrees"191 p->percent = perc;192 }193 194 195 static void part_addperc(PART *p, int perc) {196 //! add 'perc' on percent of p197 p->percent += perc;198 }199 200 189 void part_copy(PART *source, PART *destination) { 201 190 //! copy source into destination
