libsequence  1.9.5
SimpleSNP.hpp
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2003-2009 Kevin Thornton, krthornt[]@[]uci.edu
4 
5 Remove the brackets to email me.
6 
7 This file is part of libsequence.
8 
9 libsequence is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 libsequence is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 long with libsequence. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #ifndef __SIMPLE_SNP_HPP__
25 #define __SIMPLE_SNP_HPP__
26 
63 #include <Sequence/PolyTable.hpp>
64 
65 namespace Sequence
66 {
67  class __attribute__((deprecated)) SimpleSNP : public PolyTable
68  {
69  private:
70  std::vector<std::string> _names;
71  bool Diploid, isoFemale;
72  bool haveOutgroup;
73 
74  public:
75  SimpleSNP(SimpleSNP &&);
76  SimpleSNP(const bool diploid = 0, const bool isofemale = 0)
77  : PolyTable(), Diploid(diploid), isoFemale(isofemale),
78  haveOutgroup(false)
97  {
98  }
99  ~SimpleSNP(void) {}
100 
101  SimpleSNP &operator=(SimpleSNP &&);
102 
103  bool outgroup(void) const;
104  void set_outgroup(const bool &b);
105  std::string label(unsigned i) const;
106  std::istream &read(std::istream &s);
107  std::ostream &print(std::ostream &o) const;
108  };
109  typedef SimpleSNP Hudson2001;
110 }
111 #endif
The base class for polymorphism tables.
Sequence::PolyTable, a virtual base class for polymorphism tables.
The namespace in which this library resides.
class __attribute__((deprecated)) FST
Functor to count the number of states, excluding gaps and missing data, in a range of characters...
Definition: FST.hpp:41
SNP table data format.
class __attribute__((deprecated)) SimpleSNP typedef SimpleSNP Hudson2001
Definition: SimpleSNP.hpp:67