49 for (
size_t i = 0; i < allele_index.size(); ++i)
The MultiAlleleMonolocusGenotype class.
bool isHomozygous() const
Test the homozygozity of the locus (i.e. all allele are identical).
MultiAlleleMonolocusGenotype & operator=(const MultiAlleleMonolocusGenotype &mmg)
The affectation operator.
MultiAlleleMonolocusGenotype(std::vector< size_t > allele_index)
Build a monolocus genotype containing many alleles.
~MultiAlleleMonolocusGenotype()
Destroy the MultiAlleleMonolocusGenotype.
std::vector< size_t > allele_index_
std::vector< size_t > getAlleleIndex() const
Get the alleles' index.
MultiAlleleMonolocusGenotype * clone() const
bool operator==(const MultiAlleleMonolocusGenotype &mmg) const
The == operator.