biu::AllowedBasePairs Class Reference
#include <AllowedBasePairs.hh>
Detailed Description
This class handels possible base pairs of an RNA structure
Definition at line 14 of file AllowedBasePairs.hh.
Public Member Functions | |
bool | allowedBasePair (const Alphabet::AlphElem &first, const Alphabet::AlphElem &second) const |
AllowedBasePairs (const Alphabet *_alph, const std::string &bps) | |
const Alphabet * | getAlphabet () const |
bool | operator!= (const AllowedBasePairs &abp2) const |
bool | operator== (const AllowedBasePairs &abp2) const |
~AllowedBasePairs () | |
Private Types | |
typedef std::pair< Alphabet::AlphElem, Alphabet::AlphElem > | BPair |
Private Attributes | |
std::set< BPair > | allowedBasePairSet |
const Alphabet * | alph |
Member Typedef Documentation
typedef std::pair<Alphabet::AlphElem, Alphabet::AlphElem> biu::AllowedBasePairs::BPair [private] |
Constructor & Destructor Documentation
biu::AllowedBasePairs::AllowedBasePairs | ( | const Alphabet * | _alph, | |
const std::string & | bps | |||
) |
Construction
- Parameters:
-
_alph has to be an Alphabet for a RNA bps the allowed combinations of alphabet elements as comma separated list of alphabet element, e.g. "AU,GU".
biu::AllowedBasePairs::~AllowedBasePairs | ( | ) |
Member Function Documentation
bool biu::AllowedBasePairs::allowedBasePair | ( | const Alphabet::AlphElem & | first, | |
const Alphabet::AlphElem & | second | |||
) | const |
Returns if two characters form a valid base pair, e.g. a Watson-Crick (AU, CG) or a non-standard (GU) pair.
const Alphabet* biu::AllowedBasePairs::getAlphabet | ( | ) | const |
Returns the alphabet the base pairs are basing on.
bool biu::AllowedBasePairs::operator!= | ( | const AllowedBasePairs & | abp2 | ) | const |
bool biu::AllowedBasePairs::operator== | ( | const AllowedBasePairs & | abp2 | ) | const |
Field Documentation
std::set< BPair > biu::AllowedBasePairs::allowedBasePairSet [private] |
const Alphabet* biu::AllowedBasePairs::alph [private] |
the Alphabet the allowed base pairs are basing on
Definition at line 23 of file AllowedBasePairs.hh.
The documentation for this class was generated from the following file:
- src/biu/AllowedBasePairs.hh