14 for (
size_t i = 0; i < allele_index.size(); ++i)
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.
bool operator==(const MultiAlleleMonolocusGenotype &mmg) const
The == operator.