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
12
namespace
quetzal::format::genetics
13
{
14
15
template
<
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
quetzal::format::genetics::Allele
Definition
Allele.hpp:16
quetzal::format::genetics
Data-structures for genetic datasets.
Definition
io.hpp:41
src
include
quetzal
io
genetics
Allele.hpp
Generated by
1.9.8