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_; }
151 template <
typename DS>
static std::vector< AminoAcidSet > CreatePseudoSet()
void Remove(AminoAcid amino_acid)
void Add(AminoAcid amino_acid)
add another amino acid
static AminoAcidSet CreateSet(AminoAcid aa)
static AminoAcidSet CreatePolarSet()
static AminoAcidSet CreateApolarSet()
bool operator!=(const AminoAcidSet &rhs) const
static std::vector< AminoAcidSet > CreateCompleteSet()
AminoAcidSetIterator Iterator
Iterator End() const
iterator pointing to the end of the amino acids.
static std::vector< AminoAcidSet > CreateThreeStateSet()
bool Empty() const
whether the set is empty
Iterator Begin() const
iterator pointing to the beginning of the amino acid set
bool operator==(const AminoAcidSet &rhs) const
bool Contains(AminoAcid amino_acid) const
whether the set contains a given amino acid
static AminoAcidSet CreateAromaticSet()
bool operator!=(const AminoAcidSetIterator &rhs) const
bool operator==(const AminoAcidSetIterator &rhs) const
AminoAcidSetIterator(unsigned int bits, int start)
AminoAcid operator*() const
AminoAcidSetIterator & operator++()
#define DLLEXPORT_OST_CONOP
DLLEXPORT_OST_CONOP AminoAcid OneLetterCodeToAminoAcid(char olc)
DLLEXPORT_OST_CONOP AminoAcid ResidueToAminoAcid(const mol::ResidueHandle &r)
from residue name to amino acid.
char DLLEXPORT_OST_CONOP ResidueNameToOneLetterCode(String rn)
DLLEXPORT_OST_CONOP String AminoAcidToResidueName(AminoAcid aa)
std::vector< AminoAcidSet > AminoAcidAlphabet
AminoAcid DLLEXPORT_OST_CONOP ResidueNameToAminoAcid(String rn)
DLLEXPORT_OST_CONOP std::ostream & operator<<(std::ostream &os, const AminoAcidSet &aa_set)
DLLEXPORT_OST_CONOP String OneLetterCodeToResidueName(char olc)