* BitArray.h
* zxing
*
- * Created by Christian Brunschen on 09/05/2008.
- * Copyright 2008 Google UK. All rights reserved.
+ * Copyright 2010 ZXing authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <zxing/common/Counted.h>
#include <zxing/common/IllegalArgumentException.h>
-#include <valarray>
-#include <limits>
+#include <vector>
#include <iostream>
namespace zxing {
class BitArray : public Counted {
private:
size_t size_;
- std::valarray<unsigned int> bits_;
+ std::vector<unsigned int> bits_;
static const unsigned int bitsPerWord_;
static const unsigned int logBits_;
static const unsigned int bitsMask_;
void setBulk(size_t i, unsigned int newBits);
void clear();
bool isRange(size_t start, size_t end, bool value);
- std::valarray<unsigned int>& getBitArray();
+ std::vector<unsigned int>& getBitArray();
void reverse();
};