61 const BitVector& vector,
unsigned int firstIndex,
unsigned int lastIndex) {
62 if (lastIndex < firstIndex || lastIndex >= vector.size()) {
63 const string procName =
"BitVector::BitVector";
64 throw OutOfRange(__FILE__, __LINE__, procName);
67 BitVector::const_iterator firstIter = vector.begin();
68 firstIter += firstIndex;
69 BitVector::const_iterator lastIter = vector.begin();
70 lastIter += lastIndex + 1;
71 insert(begin(), firstIter, lastIter);
72 assert(size() == lastIndex - firstIndex + 1);
95 for (
int i = size - 1; i >= 0; i--) {
108 reserve(size() + bits.size());
109 for (std::vector<bool>::const_iterator iter = bits.begin();
110 iter != bits.end(); iter++) {
132 for (
unsigned int i = 0; i < this->size(); i++) {
133 bits.append(std::to_string(this->at(i)));