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

Page built @2012/10/02 11:10:33