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

A refinement of bio::alphabet::semialphabet that adds assignability. More...

#include <bio/alphabet/concept.hpp>

Concept definition

template<typename t>
concept bio::alphabet::writable_semialphabet = semialphabet<t> && requires(t v, rank_t<t> r) {
{
};
}
The basis for bio::alphabet::alphabet, but requires only rank interface (not char).
Definition: concept.hpp:562
A refinement of bio::alphabet::semialphabet that adds assignability.
Definition: concept.hpp:608
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition: concept.hpp:138

Detailed Description

A refinement of bio::alphabet::semialphabet that adds assignability.

This concept refines bio::alphabet::semialphabet and adds the requirement to be able to change the value by assigning a value of the rank representation.

For a detailed overview of how the different alphabet concepts are related, see Alphabet module.

Requirements

  1. t shall model bio::alphabet::semialphabet
  2. bio::alphabet::assign_rank_to 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 &

const-qualified types on the other hand are not assignable.

Serialisation

Types that model the concept (and all refinements) can be serialised via BioC++ serialisation support. The rank value is (de-)serialised, types need not provide any overloads themselves.