bpp-popgen3  3.0.0
MonolocusGenotypeTools.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 // Secured inclusion of header's file
6 #ifndef _MonolocusGenotypeTools_h_
7 #define _MonolocusGenotypeTools_h_
8 
9 // From STL
10 #include <vector>
11 #include <memory>
12 
13 #include <Bpp/Exceptions.h>
14 
15 // From Pop
16 #include "MonolocusGenotype.h"
17 
18 namespace bpp
19 {
28 {
29 public:
41  static std::unique_ptr<MonolocusGenotypeInterface> buildMonolocusGenotypeByAlleleKey(const std::vector<size_t> alleleKeys);
42 };
43 } // end of namespace bpp;
44 
45 #endif // _MonolocusGenotypeTools_h_
The MonolocusGenotypeTools static class.
static std::unique_ptr< MonolocusGenotypeInterface > buildMonolocusGenotypeByAlleleKey(const std::vector< size_t > alleleKeys)
Build a proper MonolocusGenotype accordig to the number of alleles.