Generated on Mon Jun 23 16:25:36 2008 for BIU-1.7.0 by doxygen 1.5.1

biu::AllowedBasePairs Class Reference

#include <AllowedBasePairs.hh>


Detailed Description

This class handels possible base pairs of an RNA structure

Author:
Martin Mann, Sebastian Will, Andreas Richter

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 AlphabetgetAlphabet () 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< BPairallowedBasePairSet
const Alphabetalph


Member Typedef Documentation

Allowed base pairs of an RNA structure.

Definition at line 17 of file AllowedBasePairs.hh.


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

Set of allowed base pairs of an RNA structure.

Definition at line 20 of file AllowedBasePairs.hh.

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: