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