Sequence::ComplementBase Struct Reference
[Function objects defined in the library]

#include <Sequence/ComplementBase.hpp>

List of all members.

Public Member Functions

void operator() (char &ch) const

Detailed Description

a functor to complement a sequence
example use:

  //reverse and complement a std::string
  #include <string>
  #include <algorithm>
  #include <Sequence/SeqFunctors.hpp>
  
  int main ()
  {
  std::string seq;
  //fill seq with DNA characters
  std::reverse(seq.begin(),seq.end());
  std::for_each(seq.begin(),seq.end(),Sequence::ComplementBase());
  }

Definition at line 53 of file ComplementBase.hpp.


Member Function Documentation

void Sequence::ComplementBase::operator() ( char &  ch  )  const

Converts ch to the complement of ch. Use with std::for_each to complement a range

Definition at line 30 of file ComplementBase.cc.


The documentation for this struct was generated from the following files:
Generated on Thu Aug 11 13:22:01 2011 for libsequence by  doxygen 1.6.3