Class Specialization
Dna5
Alphabet for DNA including 'N' character.
Dna5
Specialization of
Implements
Metafunctions
IsSimpleTests type to be simple. (SimpleType)
SpecThe spec of a class. (SimpleType)
ValueType of the items in the container. (SimpleType)
Functions
assignAssigns one object to another object. (SimpleType)
ordValueMaps an alphabet 1-to-1 to the interval [0..ValueSize). (SimpleType)
Remarks
The ValueSize of Dna5 is 5. The nucleotides are enumerated this way: 'A' = 0, 'C' = 1, 'G' = 2, 'T' = 3. The 'N' character ("unkown nucleotide") is encoded by 4.
Objects of type Dna5 can be converted to various other types and vice versa. An object that has a value not in {'A', 'C', 'G', 'T'} is converted to 'N'.
Dna5 is typedef for SimpleType<char,_Dna5>, while _Dna5 is a helper specialization tag class.
Example Programs
SeqAn - Sequence Analysis Library - www.seqan.de