13 alleleIndex_(allele_index) {}
17 if (allele_index.size() != 1)
18 throw BadSizeException(
"MonoAlleleMonolocusGenotype::MonoAlleleMonolocusGenotype: allele_index must contain one value.", allele_index.size(), 1);
23 alleleIndex_(mmg.getAlleleIndex()[0]) {}
The MonoAlleleMonolocusGenotype class.
MonoAlleleMonolocusGenotype & operator=(const MonoAlleleMonolocusGenotype &mmg)
The affectation operator.
virtual bool operator==(const MonoAlleleMonolocusGenotype &mmg) const
The == operator.
std::vector< size_t > getAlleleIndex() const override
Get the alleles' index.
MonoAlleleMonolocusGenotype(size_t alleleIndex)
Build a monolocus genotype containing one allele.