libsequence  1.9.5
Clustalw.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 #include <Sequence/AlignStream.hpp>
25 
26 #ifndef __CLUSTALW_HPP__
27 #define __CLUSTALW_HPP__
28 
74 namespace Sequence
75 {
76  template < typename T >
77  class ClustalW:public AlignStream < T >
78  {
79  private:
80  std::istream & ReadThroughLine (std::istream &);
81  public:
82  ClustalW (void):AlignStream<T>()
83  {}
84  ClustalW(const AlignStream<T> & a) : AlignStream<T>(a)
85  {
86  }
87  ClustalW(const ClustalW<T> & a) : AlignStream<T>(a)
88  {
89  }
90  ClustalW(const std::vector<T> & a) : AlignStream<T>(a)
91  {
92  }
93  ClustalW( AlignStream<T> && a) : AlignStream<T>(std::move(a))
94  {
95  }
96  ClustalW( ClustalW<T> && a) : AlignStream<T>(std::move(a))
97  {
98  }
99  ClustalW( std::vector<T> && a) : AlignStream<T>(std::move(a))
100  {
101  }
102  ~ClustalW(void)
103  {}
104  std::istream & read (std::istream & s);
105  std::ostream & print(std::ostream &s) const;
106  ClustalW<T> & operator=( const AlignStream<T> & rhs)
107  {
108  this->assign(rhs.begin(),rhs.end());
109  return *this;
110  }
111  };
112 }
113 #include <Sequence/bits/Clustalw.tcc>
114 #endif
std::ostream & print(std::ostream &s) const
Virtual interface to alignment streams.
Definition: AlignStream.hpp:61
The namespace in which this library resides.
std::istream & read(std::istream &s)
declaration of virtual base class for alignment streams (Sequence::AlignStream)
ClustalW streams.
Definition: Clustalw.hpp:77
void assign(const_iterator beg, const_iterator end)