13 size_t firstAlleleIndex,
14 size_t secondAlleleIndex) : alleleIndex_(vector<size_t>(2))
23 if (alleleIndex.size() != 2)
24 throw BadSizeException(
"BiAlleleMonolocusGenotype::BiAlleleMonolocusGenotype: allele_index must contain two values.", alleleIndex.size(), 2);
32 for (
size_t i = 0; i < 2; ++i)
49 for (
size_t i = 0; i < 2; ++i)
The BiAlleleMonolocusGenotype class.
bool operator==(const BiAlleleMonolocusGenotype &bmg) const
The == operator.
std::vector< size_t > getAlleleIndex() const override
Get the alleles' index.
BiAlleleMonolocusGenotype & operator=(const BiAlleleMonolocusGenotype &bmg)
The affectation operator.
BiAlleleMonolocusGenotype(size_t firstAlleleIndex, size_t secondAlleleIndex)
Build a monolocus genotype containing two alleles.
std::vector< size_t > alleleIndex_
virtual ~BiAlleleMonolocusGenotype()
Destroy the BiAlleleMonolocusGenotype.