bpp-popgen3
3.0.0
|
The BasicAlleleInfo class. More...
#include <Bpp/PopGen/BasicAlleleInfo.h>
Public Member Functions | |
BasicAlleleInfo (const std::string &id) | |
Build a new allele. More... | |
BasicAlleleInfo (const BasicAlleleInfo &allele) | |
The BasicAlleleInfo copy constructor. More... | |
virtual | ~BasicAlleleInfo () |
virtual BasicAlleleInfo & | operator= (const BasicAlleleInfo &allele) |
The assignation operator. More... | |
virtual bool | operator== (const BasicAlleleInfo &allele) const |
The == operator. More... | |
virtual bool | operator!= (const BasicAlleleInfo &allele) const |
The != operator. More... | |
The Clonable interface | |
BasicAlleleInfo * | clone () const |
The AlleleInfo interface | |
void | setId (const std::string &allele_id) |
Set the identifier of the allele. More... | |
const std::string & | getId () const |
Get the identitier of the allele. More... | |
Private Attributes | |
std::string | id_ |
The BasicAlleleInfo class.
This is the simplest allele class implementation which contains just an identitier.
Definition at line 21 of file BasicAlleleInfo.h.
BasicAlleleInfo::BasicAlleleInfo | ( | const std::string & | id | ) |
Build a new allele.
id | The identity number of the allele. |
Definition at line 11 of file BasicAlleleInfo.cpp.
Referenced by clone().
BasicAlleleInfo::BasicAlleleInfo | ( | const BasicAlleleInfo & | allele | ) |
The BasicAlleleInfo copy constructor.
Definition at line 13 of file BasicAlleleInfo.cpp.
|
virtual |
Definition at line 17 of file BasicAlleleInfo.cpp.
|
inlinevirtual |
Implements bpp::AlleleInfo.
Definition at line 69 of file BasicAlleleInfo.h.
References BasicAlleleInfo().
|
virtual |
Get the identitier of the allele.
Implements bpp::AlleleInfo.
Definition at line 42 of file BasicAlleleInfo.cpp.
References id_.
Referenced by operator!=(), operator=(), and operator==().
|
virtual |
|
virtual |
The assignation operator.
Definition at line 21 of file BasicAlleleInfo.cpp.
|
virtual |
|
virtual |
Set the identifier of the allele.
Implements bpp::AlleleInfo.
Definition at line 37 of file BasicAlleleInfo.cpp.
References id_.
|
private |
Definition at line 25 of file BasicAlleleInfo.h.
Referenced by getId(), operator!=(), operator=(), operator==(), and setId().