libsequence  1.9.5
SimData.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 SIMDATA_H
25 #define SIMDATA_H
26 
65 #include <Sequence/PolyTable.hpp>
66 #include <cstdio>
67 namespace Sequence
68 {
69  class __attribute__((deprecated)) SimData : public PolyTable
70  {
71  public:
72  SimData(void);
73  SimData(SimData &&);
74  SimData(const SimData &);
75  //SimData( SimData & );// = default;
76  //explicit SimData (const size_t & nsam=0, const size_t & nsnps = 0);
77  //SimData(double *pos, const char **sample, const unsigned & nsam, const unsigned & S);
78  //SimData(const std::vector<double> & pos, const std::vector<std::string> & data);
79  SimData(std::vector<double> pos, std::vector<std::string> data);
80  SimData(const SimData::const_site_iterator &beg,
81  const SimData::const_site_iterator &end);
82 
83  ~SimData(void) {}
84 
85  SimData &operator=(SimData &&);
86  SimData &operator=(const SimData &);
87 
88  virtual std::istream &read(std::istream &s);
89  virtual std::ostream &print(std::ostream &o) const;
90  virtual int fromfile(FILE *openedfile);
91  };
92 }
93 #endif
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