51 if (allele_index.size() != 1)
52 throw BadSizeException(
"MonoAlleleMonolocusGenotype::MonoAlleleMonolocusGenotype: allele_index must conain one value.", allele_index.size(), 1);
57 allele_index_(mmg.getAlleleIndex()[0]) {}
The MonoAlleleMonolocusGenotype class.
std::vector< size_t > getAlleleIndex() const
Get the alleles' index.
MonoAlleleMonolocusGenotype & operator=(const MonoAlleleMonolocusGenotype &mmg)
The affectation operator.
MonoAlleleMonolocusGenotype(size_t allele_index)
Build a monolocus genotype containing one allele.
virtual bool operator==(const MonoAlleleMonolocusGenotype &mmg) const
The == operator.
MonoAlleleMonolocusGenotype * clone() const
~MonoAlleleMonolocusGenotype()
Destroy the MonoAlleleMonolocusGenotype.