faif
Classes | Public Member Functions | List of all members
faif::dna::Chain Class Reference

The DNA strand (single). More...

#include <Chain.h>

Collaboration diagram for faif::dna::Chain:
Collaboration graph

Classes

class  const_iterator
 
class  iterator
 

Public Member Functions

 Chain (const Chain &ch)
 
 Chain (const std::string &seq)
 
 Chain (const const_iterator &begin, const const_iterator &end)
 
Chainoperator= (const Chain &ch)
 
Chainoperator+= (const Nucleotide &val)
 
Chainoperator+= (const Chain &ch)
 
bool operator== (const Chain &ch) const
 
bool operator!= (const Chain &ch) const
 
const Nucleotideoperator[] (int index) const
 
Nucleotideoperator[] (int index)
 
int getLength () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
std::string getString () const
 
Chain complementary () const
 

Detailed Description

The DNA strand (single).

Sequence of nucleotides, the begin of sequence = 5' end of molecule, the end of sequence = 3' end of molecule

Constructor & Destructor Documentation

faif::dna::Chain::Chain ( const const_iterator begin,
const const_iterator end 
)
inline

copy constructor from range

Member Function Documentation

Chain& faif::dna::Chain::operator+= ( const Nucleotide val)
inline

insert a new nucleotide at the and

bool faif::dna::Chain::operator== ( const Chain ch) const
inline

comparison of chains

bool faif::dna::Chain::operator!= ( const Chain ch) const
inline

comparison of chains

const Nucleotide& faif::dna::Chain::operator[] ( int  index) const
inline

accessor for index, throws out_of_range

Nucleotide& faif::dna::Chain::operator[] ( int  index)
inline

accessor for index, throws out_of_range

int faif::dna::Chain::getLength ( ) const
inline

accessor - length

Referenced by faif::dna::createSubChain().

iterator faif::dna::Chain::begin ( )
inline

mutator - iterator

Referenced by faif::dna::createSubChain().

const_iterator faif::dna::Chain::begin ( ) const
inline

mutator - const iterator

iterator faif::dna::Chain::end ( )
inline

mutator - iterator

Referenced by faif::dna::createSubChain().

const_iterator faif::dna::Chain::end ( ) const
inline

mutator - const iterator

std::string faif::dna::Chain::getString ( ) const
inline

the string for chain

Referenced by faif::dna::operator<<().

Chain faif::dna::Chain::complementary ( ) const
inline

creates new complementary chain (always the 5' end on index 0)

References complementary().

Referenced by complementary().


The documentation for this class was generated from the following file: