Function
setBitTo
Set the bit with the given index to the given value.
Include Headers
seqan/index.h, seqan/misc/misc_bit_twiddling.h
Parameters
The bit string. Types: RankSupportBitString | |
Position of the bit. | |
The value of the bit. Remarks: Note that values different from 0 are interpreted as 1. | |
The number. | |
The index of the bit in the word. Types: | |
The value to set the bit to. Types: bool |
Return Values
Examples
RankSupportBitString<> bitString;
resize(bitString, length(genome));
for (unsigned i = 0; i < length(genome); ++i)
if(genome[i] < Dna5('c'))
setBitTo(bitString, 1);
updateRanks_(bitString);
See Also
SeqAn - Sequence Analysis Library - www.seqan.de