6 #ifndef _MULTIALLELEMONOLOCUSGENOTYPE_H_
7 #define _MULTIALLELEMONOLOCUSGENOTYPE_H_
The MonolocusGenotype virtual class.
The MultiAlleleMonolocusGenotype class.
std::vector< size_t > alleleIndex_
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 > alleleIndex)
Build a monolocus genotype containing many alleles.
virtual ~MultiAlleleMonolocusGenotype()
Destroy the MultiAlleleMonolocusGenotype.
std::vector< size_t > getAlleleIndex() const override
Get the alleles' index.
MultiAlleleMonolocusGenotype * clone() const override
bool operator==(const MultiAlleleMonolocusGenotype &mmg) const
The == operator.