bpp-popgen3  3.0.0
AlleleInfo.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef _ALLELEINFO_H_
6 #define _ALLELEINFO_H_
7 
8 // From STL
9 #include <string>
10 
11 #include <Bpp/Clonable.h>
12 
13 namespace bpp
14 {
23 class AlleleInfo :
24  public virtual Clonable
25 {
26 public:
27  // Destructor
28  virtual ~AlleleInfo() {}
29 
30 public:
31  // Methodes
35  virtual void setId(const std::string& allele_id) = 0;
36 
40  virtual const std::string& getId() const = 0;
41 
47 #ifdef NO_VIRTUAL_COV
48  Clonable*
49 #else
50  AlleleInfo*
51 #endif
52  clone() const = 0;
54 };
55 } // end of namespace bpp;
56 
57 #endif // _ALLELEINFO_H_
The AlleleInfo interface.
Definition: AlleleInfo.h:25
virtual void setId(const std::string &allele_id)=0
Set the identifier of the allele.
virtual const std::string & getId() const =0
Get the identitier of the allele.
AlleleInfo * clone() const =0
virtual ~AlleleInfo()
Definition: AlleleInfo.h:28