19 #ifndef OST_CONOP_AMINO_ACIDS_HH
20 #define OST_CONOP_AMINO_ACIDS_HH
31 namespace ost {
namespace conop {
62 using iterator_category = std::forward_iterator_tag;
64 using difference_type = std::ptrdiff_t;
70 bits_(bits), curr_(start)
86 return curr_==rhs.curr_;
96 while (curr_<=
XXX && !(bits_ & (1 << curr_))) { ++curr_; }
115 static std::vector<AminoAcidSet> CreateCompleteSet();
117 static std::vector<AminoAcidSet> CreateThreeStateSet();
119 static std::vector<AminoAcidSet> CreatePseudoSet();
130 bool Contains(
AminoAcid amino_acid)
const;
151 template <
typename DS>
161 const AminoAcidSet& aa_set);
AminoAcidSetIterator & operator++()
AminoAcidSetIterator Iterator
char DLLEXPORT_OST_CONOP ResidueNameToOneLetterCode(String rn)
bool operator==(const AminoAcidSetIterator &rhs) const
#define DLLEXPORT_OST_CONOP
DLLEXPORT_OST_CONOP std::ostream & operator<<(std::ostream &os, const AminoAcidSet &aa_set)
bool DLLEXPORT_OST_GEOM operator==(const Line2 &l1, const Line2 &l2)
DLLEXPORT_OST_IMG_BASE bool operator!=(const ImageHandle &lhs, const ConstImageHandle &rhs)
AminoAcidSetIterator(unsigned int bits, int start)
DLLEXPORT_OST_CONOP String AminoAcidToResidueName(AminoAcid aa)
DLLEXPORT_OST_CONOP AminoAcid ResidueToAminoAcid(const mol::ResidueHandle &r)
from residue name to amino acid.
std::vector< AminoAcidSet > AminoAcidAlphabet
DLLEXPORT_OST_CONOP String OneLetterCodeToResidueName(char olc)
bool operator!=(const AminoAcidSetIterator &rhs) const
AminoAcid operator*() const
AminoAcid DLLEXPORT_OST_CONOP ResidueNameToAminoAcid(String rn)
DLLEXPORT_OST_CONOP AminoAcid OneLetterCodeToAminoAcid(char olc)