BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
bio::alphabet::quality Concept Reference

A concept that indicates whether an alphabet represents quality scores. More...

#include <bio/alphabet/quality/concept.hpp>

Concept definition

template<typename t>
concept bio::alphabet::quality = alphabet<t> && requires(t qual) {
{
};
}
The generic alphabet concept that covers most data types used in ranges.
Definition: concept.hpp:643
A concept that indicates whether an alphabet represents quality scores.
Definition: concept.hpp:171
constexpr auto to_phred
The public getter function for the phred representation of a quality score.
Definition: concept.hpp:65

Detailed Description

A concept that indicates whether an alphabet represents quality scores.

In addition to the requirements for bio::alphabet::alphabet, the quality concept introduces a requirement for conversion functions from and to a Phred score.

Requirements

  1. t shall model bio::alphabet::alphabet
  2. bio::alphabet::to_phred needs to be defined for objects of type t

See the documentation pages for the respective requirements.

Related types

If an object type t models this concept, the following types typically do so, as well:

  • t &
  • t const
  • t const &