Function
setBit
Set the bit with the given index to 1.
Set a specified bit to true or false.
Include Headers
seqan/index.h, seqan/misc/misc_bit_twiddling.h
Parameters
The number. | |
The index of the bit in the word. Types: | |
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. |
Return Values
Examples
RankSupportBitString<> bitString;
resize(bitString, length(genome));
for (unsigned i = 0; i < length(genome); ++i)
if(genome[i] < Dna5('c'))
setBit(bitString, 1);
updateRanks_(bitString);
See Also
SeqAn - Sequence Analysis Library - www.seqan.de