Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
Allele.hpp
1// Copyright 2021 Arnaud Becheler <abechele@umich.edu> Florence Jornod <florence@jornod.com>
2
3/*********************************************************************** * This program is free software; you can
4 *redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free
5 *Software Foundation; either version 2 of the License, or * (at your option) any later version. *
6 * *
7 ************************************************************************/
8
9#ifndef __ALLELE_H_INCLUDED__
10#define __ALLELE_H_INCLUDED__
11
13{
14
15template <typename Value> class Allele
16{
17 public:
18 using value_type = Value;
19
20 Allele(value_type allelic_state) : m_allelic_state(allelic_state)
21 {
22 }
23
24 Allele() = default;
25
26 value_type get_allelic_state() const
27 {
28 return m_allelic_state;
29 }
30
31 private:
32 value_type m_allelic_state;
33};
34
35} // namespace quetzal::format::genetics
36
37#endif
Definition Allele.hpp:16
Data-structures for genetic datasets.
Definition io.hpp:41