summaryrefslogtreecommitdiff
blob: 38664aeee989ee7543e8edfc9e758d98eaa7fb5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Description: Renamed seqan::fill function calls to use seqan::resize.
 SeqAn 1.3 renamed seqan::fill() to seqan::resize().
 SeqAn ticket: http://trac.seqan.de/ticket/77
Forwarded: no
Author: Ognyan Kulev <ogi@debian.org>
Last-Update: 2014-08-13

--- a/blockwise_sa.h
+++ b/blockwise_sa.h
@@ -456,8 +456,8 @@ void KarkkainenBlockwiseSA<TStr>::buildS
 		try {
 			// Allocate and initialize containers for holding bucket
 			// sizes and representatives.
-			fill(bucketSzs, numBuckets, 0, Exact());
-			fill(bucketReps, numBuckets, OFF_MASK, Exact());
+			resize(bucketSzs, numBuckets, 0, Exact());
+			resize(bucketReps, numBuckets, OFF_MASK, Exact());
 		} catch(bad_alloc &e) {
 			if(this->_passMemExc) {
 				throw e; // rethrow immediately
@@ -816,7 +816,7 @@ void KarkkainenBlockwiseSA<TStr>::nextBl
 				// Not the last bucket
 				assert_lt(_cur, length(_sampleSuffs));
 				hi = _sampleSuffs[_cur];
-				fill(zHi, _dcV, 0, Exact());
+				resize(zHi, _dcV, 0, Exact());
 				assert_eq(zHi[0], 0);
 				calcZ(t, hi, zHi, this->verbose(), this->sanityCheck());
 			}
@@ -825,7 +825,7 @@ void KarkkainenBlockwiseSA<TStr>::nextBl
 				assert_gt(_cur, 0);
 				assert_leq(_cur, length(_sampleSuffs));
 				lo = _sampleSuffs[_cur-1];
-				fill(zLo, _dcV, 0, Exact());
+				resize(zLo, _dcV, 0, Exact());
 				assert_gt(_dcV, 3);
 				assert_eq(zLo[0], 0);
 				calcZ(t, lo, zLo, this->verbose(), this->sanityCheck());
--- a/diff_sample.h
+++ b/diff_sample.h
@@ -452,7 +452,7 @@ static String<T> getDeltaMap(T v, const
 	// Declare anchor-map-related items
 	String<T> amap;
 	size_t amapEnts = 1;
-	fill(amap, v, 0xffffffff, Exact());
+	resize(amap, v, 0xffffffff, Exact());
 	amap[0] = 0;
 	// Print out difference cover (and optionally calculate
 	// anchor map)
@@ -532,7 +532,7 @@ public:
 		assert_gt(_d, 0);
 		assert_eq(1, popCount(_v)); // must be power of 2
 		// Build map from d's to idx's
-		fill(_dInv, _v, 0xffffffff, Exact());
+		resize(_dInv, _v, 0xffffffff, Exact());
 		uint32_t lim = (uint32_t)length(_ds);
 		for(uint32_t i = 0; i < lim; i++) {
 			_dInv[_ds[i]] = i;
@@ -656,7 +656,7 @@ void DifferenceCoverSample<TStr>::doBuil
 	VMSG_NL("  Doing sanity check");
 	TIndexOffU added = 0;
 	String<TIndexOffU> sorted;
-	fill(sorted, length(_isaPrime), OFF_MASK, Exact());
+	resize(sorted, length(_isaPrime), OFF_MASK, Exact());
 	for(size_t di = 0; di < this->d(); di++) {
 		uint32_t d = _ds[di];
 		size_t i = 0;
@@ -717,7 +717,7 @@ void DifferenceCoverSample<TStr>::buildS
 	assert_eq(length(_doffs), d+1);
 	// Size sPrime appropriately
 	reserve(sPrime, sPrimeSz+1, Exact()); // reserve extra slot for LS
-	fill(sPrime, sPrimeSz, OFF_MASK, Exact());
+	resize(sPrime, sPrimeSz, OFF_MASK, Exact());
 	// Slot suffixes from text into sPrime according to the mu
 	// mapping; where the mapping would leave a blank, insert a 0
 	TIndexOffU added = 0;
@@ -823,7 +823,7 @@ void DifferenceCoverSample<TStr>::build(
 		// arrays back into sPrime.
 		VMSG_NL("  Allocating rank array");
 		reserve(_isaPrime, length(sPrime)+1, Exact());
-		fill(_isaPrime, length(sPrime), OFF_MASK, Exact());
+		resize(_isaPrime, length(sPrime), OFF_MASK, Exact());
 		assert_gt(length(_isaPrime), 0);
 		{
 			Timer timer(cout, "  Ranking v-sort output time: ", this->verbose());