Lines Matching refs:bitVector
3847 let bitVector: collections.BitVector = new collections.BitVector(0);
3886 let bitVector: collections.BitVector = new collections.BitVector(0);
3887 bitVector.push(0);
3888 bitVector.push(1);
3889 bitVector.push(0);
3890 bitVector.push(1);
3891 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
3922 let bitVector: collections.BitVector = new collections.BitVector(0);
3923 bitVector.push(0);
3924 bitVector.push(1);
3925 bitVector.push(0);
3926 bitVector.push(1);
3927 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
3928 let res = bitVector.pop(); // bitVector: [0, 1, 0, 1]
3929 console.info("bitVector pop:", res) // 0
3970 let bitVector: collections.BitVector = new collections.BitVector(0);
3971 bitVector.push(0);
3972 bitVector.push(1);
3973 bitVector.push(0);
3974 bitVector.push(1);
3975 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
3976 let res0: boolean = bitVector.has(0, 1, 4);
3977 console.info("bitVector has 0:", res0) // true
4012 let bitVector: collections.BitVector = new collections.BitVector(0);
4013 bitVector.push(0);
4014 bitVector.push(1);
4015 bitVector.push(0);
4016 bitVector.push(1);
4017 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4018 bitVector.setBitsByRange(1, 1, 3); // bitVector: [0, 1, 1, 1, 0]
4050 let bitVector: collections.BitVector = new collections.BitVector(0);
4051 bitVector.push(0);
4052 bitVector.push(1);
4053 bitVector.push(0);
4054 bitVector.push(1);
4055 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4056 bitVector.setAllBits(1); // bitVector: [1, 1, 1, 1, 1]
4096 let bitVector: collections.BitVector = new collections.BitVector(0);
4097 bitVector.push(0);
4098 bitVector.push(1);
4099 bitVector.push(0);
4100 bitVector.push(1);
4101 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4102 let bitVector2 = bitVector.getBitsByRange(1, 3); // bitVector2: [1, 0]
4139 let bitVector: collections.BitVector = new collections.BitVector(0);
4140 bitVector.push(0);
4141 bitVector.push(1);
4142 bitVector.push(0);
4143 bitVector.push(1);
4144 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4145 bitVector.resize(10); // bitVector: [0, 1, 0, 1, 0, 0, 0, 0, 0, 0]
4146 console.info("bitVector get bit vector's length:", bitVector.length) // 10
4147 bitVector.resize(3); // bitVector: [0, 1, 0]
4148 console.info("bitVector get bit vector's length:", bitVector.length) // 3
4189 let bitVector: collections.BitVector = new collections.BitVector(0);
4190 bitVector.push(0);
4191 bitVector.push(1);
4192 bitVector.push(0);
4193 bitVector.push(1);
4194 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4195 let res: number = bitVector.getBitCountByRange(1, 1, 4);
4196 console.info("bitVector getBitCountByRange:", res) // 2
4237 let bitVector: collections.BitVector = new collections.BitVector(0);
4238 bitVector.push(0);
4239 bitVector.push(1);
4240 bitVector.push(0);
4241 bitVector.push(1);
4242 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4243 let res: number = bitVector.getIndexOf(0, 1, 4);
4244 console.info("bitVector getIndexOf:", res) // 2
4285 let bitVector: collections.BitVector = new collections.BitVector(0);
4286 bitVector.push(0);
4287 bitVector.push(1);
4288 bitVector.push(0);
4289 bitVector.push(1);
4290 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4291 let res: number = bitVector.getLastIndexOf(0, 1, 4);
4292 console.info("bitVector getLastIndexOf:", res) // 2
4325 let bitVector: collections.BitVector = new collections.BitVector(0);
4326 bitVector.push(0);
4327 bitVector.push(1);
4328 bitVector.push(0);
4329 bitVector.push(1);
4330 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4331 bitVector.flipBitByIndex(3); // bitVector: [0, 1, 0, 0, 0]
4365 let bitVector: collections.BitVector = new collections.BitVector(0);
4366 bitVector.push(0);
4367 bitVector.push(1);
4368 bitVector.push(0);
4369 bitVector.push(1);
4370 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4371 bitVector.flipBitsByRange(1, 4); // bitVector: [0, 0, 1, 0, 0]
4402 let bitVector: collections.BitVector = new collections.BitVector(0);
4403 bitVector.push(0);
4404 bitVector.push(1);
4405 bitVector.push(0);
4406 bitVector.push(1);
4407 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4408 let iter: IterableIterator<number> = bitVector.values();
4447 let bitVector: collections.BitVector = new collections.BitVector(0);
4448 bitVector.push(0);
4449 bitVector.push(1);
4450 bitVector.push(0);
4451 bitVector.push(1);
4452 bitVector.push(0);
4454 for (let item of bitVector) {
4482 let bitVector: collections.BitVector = new collections.BitVector(0);
4483 bitVector.push(0);
4484 bitVector.push(1);
4485 bitVector.push(0);
4486 bitVector.push(1);
4487 bitVector.push(0); // bitVector: [0, 1, 0, 1, 0]
4488 console.info("BitVector Element Index at 1: " + bitVector[1]);