1 #ifndef theplu_yat_omic_dna
2 #define theplu_yat_omic_dna
25 #include <boost/operators.hpp>
61 class DNA : boost::operators<DNA>
139 unsigned short code_;
141 unsigned short char2code(
char)
const;
142 char code2char(
unsigned short)
const;
143 friend bool operator==(
const DNA&,
const DNA&);
153 std::string expand(
const DNA&);
166 bool operator==(
const DNA& lhs,
const DNA& rhs);
175 std::ostream& operator<<(std::ostream& os,
const DNA& dna);
DNA & operator=(char c)
assign from a char
DNA complement(void) const
DNA & operator|=(const DNA &rhs)
DNA & operator&=(const DNA &rhs)
DNA(void)
Default Constructor.
DNA & operator^=(const DNA &rhs)