51 #include <Bpp/Exceptions.h> 132 throw (IndexOutOfBoundsException);
154 #endif // _LOCUSINFO_H_ static unsigned int DIPLOID
std::vector< AlleleInfo * > alleles_
unsigned int getPloidy() const
Get the ploidy of the locus.
The BadIdentifierException class.
const AlleleInfo & getAlleleInfoByKey(size_t key) const
Retrieve an AlleleInfo object of the LocusInfo.
unsigned int getAlleleInfoKey(const std::string &id) const
Get the position of an AlleleInfo.
static unsigned int HAPLOID
The AlleleNotFoundException class.
const std::string & getName() const
Get the name of the locus.
void clear()
Delete all alleles from the locus.
static unsigned int UNKNOWN
const AlleleInfo & getAlleleInfoById(const std::string &id) const
Retrieve an AlleleInfo object of the LocusInfo.
LocusInfo(const std::string &name, const unsigned int ploidy=DIPLOID)
Build a new LocusInfo object.
static unsigned int HAPLODIPLOID
size_t getNumberOfAlleles() const
Get the number of alleles at this locus.
virtual ~LocusInfo()
Destroy the LocusInfo.
void addAlleleInfo(const AlleleInfo &allele)
Add an AlleleInfo to the LocusInfo.
The AlleleInfo interface.