ClustalW streams.
More...
#include <Sequence/Clustalw.hpp>
|
typedef std::vector< T >::size_type | size_type |
|
typedef std::vector< T >::reference | reference |
|
typedef std::vector< T >::const_reference | const_reference |
|
typedef std::vector< T >::iterator | iterator |
|
typedef std::vector< T >::const_iterator | const_iterator |
|
|
| ClustalW (const AlignStream< T > &a) |
|
| ClustalW (const ClustalW< T > &a) |
|
| ClustalW (const std::vector< T > &a) |
|
| ClustalW (AlignStream< T > &&a) |
|
| ClustalW (ClustalW< T > &&a) |
|
| ClustalW (std::vector< T > &&a) |
|
std::istream & | read (std::istream &s) |
|
std::ostream & | print (std::ostream &s) const |
|
ClustalW< T > & | operator= (const AlignStream< T > &rhs) |
|
bool | empty () const |
|
size_type | size (void) const |
|
reference | operator[] (const size_type &i) |
|
const_reference | operator[] (const size_type &i) const |
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
bool | IsAlignment (void) |
|
bool | Gapped (void) |
|
unsigned | UnGappedLength (void) |
|
void | RemoveGaps (void) |
|
void | RemoveTerminalGaps (void) |
|
std::vector< T > | Trim (std::vector< int >sites) |
|
std::vector< T > | TrimComplement (std::vector< int >sites) |
|
const std::vector< T > | Data (void) |
|
void | assign (const_iterator beg, const_iterator end) |
|
void | assign (std::vector< T > &&_data) |
|
template<typename T>
class Sequence::ClustalW< T >
ClustalW streams.
This class defines an input routine for alignments in ClustalW format. This class template can be instantiated with the following types:
#include<utility>
#include <string>
#include <iostream>
int main()
{
cin >> x;
for (int i = 0 ; i < x.size() ; ++i)
{
cout << '>'
<< x[i].name
<< '\n'
<< x[i].seq
<< '\n';
}
}
Definition at line 77 of file Clustalw.hpp.
◆ const_iterator
value type is std::vector<T>::const_iterator
Definition at line 124 of file AlignStream.hpp.
◆ iterator
◆ assign() [1/2]
Assign data to object. Since the value type for these iterators evaluates to std::vector<T>::const_iterator, any vector<T> can be the data source
- Exceptions
-
std::runtime_error | is thrown if all data elements in the range (beg,end] are not of the same length |
◆ assign() [2/2]
Assign via a move operation
- Exceptions
-
std::runtime_error | is thrown if all data elements are not of the same length |
◆ empty()
◆ operator[]() [1/2]
Returns the i-th object of type T in the vector data
Definition at line 101 of file AlignStream.hpp.
◆ operator[]() [2/2]
Returns the i-th object of type T in the vector data
Definition at line 109 of file AlignStream.hpp.
◆ print()
◆ read()
◆ size()
The documentation for this class was generated from the following file: