libsequence  1.9.5
phylipData.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 
27 #ifndef __PHYLIPDATA_HPP__
28 #define __PHYLIPDATA_HPP__
29 
30 #include <Sequence/AlignStream.hpp>
31 #include <utility>
32 #include <string>
33 namespace Sequence
34 {
35  template < typename T >
36  class phylipData: public AlignStream < T >
40  {
41  public:
43  phylipData(const std::vector<T> & _data): AlignStream<T>(_data)
44  {
45  }
47  {
48  }
50  {
51  }
52  phylipData( AlignStream<T> && a) : AlignStream<T>(std::move(a))
53  {
54  }
55  phylipData( phylipData<T> && a) : AlignStream<T>(std::move(a))
56  {
57  }
58  phylipData( std::vector<T> && a) : AlignStream<T>(std::move(a))
59  {
60  }
61  ~phylipData(void)
62  {}
63  std::istream & read (std::istream & s);
64  std::ostream & print (std::ostream & s) const;
65  phylipData<T> & operator=( const AlignStream<T> & rhs);
66  };
67 }
68 #include <Sequence/bits/phylipData.tcc>
69 #endif
std::ostream & print(std::ostream &s) const
Virtual interface to alignment streams.
Definition: AlignStream.hpp:61
The namespace in which this library resides.
declaration of virtual base class for alignment streams (Sequence::AlignStream)
std::istream & read(std::istream &s)