|
bpp-popgen
2.2.0
|
The BasicAlleleInfo class. More...
#include <Bpp/PopGen/BasicAlleleInfo.h>
Inheritance diagram for bpp::BasicAlleleInfo:
Collaboration diagram for bpp::BasicAlleleInfo: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 56 of file BasicAlleleInfo.h.
| BasicAlleleInfo::BasicAlleleInfo | ( | const std::string & | id | ) |
Build a new allele.
| id | The identity number of the allele. |
Definition at line 46 of file BasicAlleleInfo.cpp.
Referenced by clone().
| BasicAlleleInfo::BasicAlleleInfo | ( | const BasicAlleleInfo & | allele | ) |
The BasicAlleleInfo copy constructor.
Definition at line 48 of file BasicAlleleInfo.cpp.
|
virtual |
Definition at line 52 of file BasicAlleleInfo.cpp.
|
inlinevirtual |
Implements bpp::AlleleInfo.
Definition at line 104 of file BasicAlleleInfo.h.
References BasicAlleleInfo().
|
virtual |
Get the identitier of the allele.
Implements bpp::AlleleInfo.
Definition at line 77 of file BasicAlleleInfo.cpp.
References id_.
Referenced by operator!=(), operator=(), and operator==().
|
virtual |
|
virtual |
The assignation operator.
Definition at line 56 of file BasicAlleleInfo.cpp.
|
virtual |
|
virtual |
Set the identifier of the allele.
Implements bpp::AlleleInfo.
Definition at line 72 of file BasicAlleleInfo.cpp.
References id_.
|
private |
Definition at line 60 of file BasicAlleleInfo.h.
Referenced by getId(), operator!=(), operator=(), operator==(), and setId().