#include <phylipData.hpp>
Public Types | |
| 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 |
Public Member Functions | |
| phylipData (const unsigned namelen=0) | |
| phylipData (const std::vector< T > &_data, const unsigned namelen=0) | |
| phylipData (const AlignStream< T > &a) | |
| std::istream & | read (std::istream &s) |
| std::ostream & | print (std::ostream &s) const |
| phylipData< T > & | operator= (const AlignStream< T > &rhs) |
| 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) throw (Sequence::SeqException) |
| std::vector< T > | TrimComplement (std::vector< int >sites) throw (Sequence::SeqException) |
| const std::vector< T > | Data (void) |
| void | assign (const_iterator beg, const_iterator end) throw (Sequence::SeqException) |
Input of phylip-format alignments
Definition at line 36 of file phylipData.hpp.
typedef std::vector<T>::const_iterator Sequence::AlignStream< T >::const_iterator [inherited] |
value type is std::vector<T>::const_iterator
Definition at line 111 of file AlignStream.hpp.
typedef std::vector<T>::iterator Sequence::AlignStream< T >::iterator [inherited] |
value type is std::vector<T>::iterator
Definition at line 107 of file AlignStream.hpp.
| void Sequence::AlignStream< T >::assign | ( | const_iterator | beg, | |
| const_iterator | end | |||
| ) | throw (Sequence::SeqException) [inline, inherited] |
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
| Sequence::SeqException | is thrown if all data elements in the range (beg,end] are not of the same length |
store the data
Definition at line 45 of file AlignStream.tcc.
| const std::vector< T > Sequence::AlignStream< T >::Data | ( | void | ) | [inline, inherited] |
Returns the std::vector < T* > data
Definition at line 154 of file AlignStream.tcc.
| bool Sequence::AlignStream< T >::Gapped | ( | void | ) | [inline, inherited] |
Implemented by a call to Alignment::Gapped
Definition at line 98 of file AlignStream.tcc.
| bool Sequence::AlignStream< T >::IsAlignment | ( | void | ) | [inline, inherited] |
Implemented by a call to Alignment::IsAlignment
Definition at line 89 of file AlignStream.tcc.
| phylipData< T > & Sequence::phylipData< T >::operator= | ( | const AlignStream< T > & | rhs | ) | [inline] |
An "assignment operator" member function. If a phylipData object was constructed with a value of 0 for the sequence name length, this function will set _namelen to the max sequence name contained in rhs. If the object was constructed with a value k > 0, the sequence name length will remain unchanged.
Definition at line 147 of file phylipData.tcc.
| const_reference Sequence::AlignStream< T >::operator[] | ( | const size_type & | i | ) | const [inline, inherited] |
Returns the i-th object of type T in the vector data
Definition at line 96 of file AlignStream.hpp.
| reference Sequence::AlignStream< T >::operator[] | ( | const size_type & | i | ) | [inline, inherited] |
Returns the i-th object of type T in the vector data
Definition at line 88 of file AlignStream.hpp.
| std::ostream & Sequence::phylipData< T >::print | ( | std::ostream & | s | ) | const [inline, virtual] |
To define a non-abstract AlignStream, print must be defined
Implements Sequence::AlignStream< T >.
Definition at line 76 of file phylipData.tcc.
| std::istream & Sequence::phylipData< T >::read | ( | std::istream & | s | ) | [inline, virtual] |
To define a non-abstract AlignStream, read must be defined
Implements Sequence::AlignStream< T >.
Definition at line 36 of file phylipData.tcc.
| void Sequence::AlignStream< T >::RemoveGaps | ( | void | ) | [inline, inherited] |
Implemented by a call to Alignment::RemoveGaps
Definition at line 116 of file AlignStream.tcc.
| void Sequence::AlignStream< T >::RemoveTerminalGaps | ( | void | ) | [inline, inherited] |
Implemented by a call to Alignment::RemoveTerminalGaps
Definition at line 125 of file AlignStream.tcc.
| size_type Sequence::AlignStream< T >::size | ( | void | ) | const [inline, inherited] |
Returns data.size()
Definition at line 81 of file AlignStream.hpp.
| std::vector< T > Sequence::AlignStream< T >::Trim | ( | std::vector< int > | sites | ) | throw (Sequence::SeqException) [inline, inherited] |
Implemented by a call to Alignment::Trim
Definition at line 134 of file AlignStream.tcc.
| std::vector< T > Sequence::AlignStream< T >::TrimComplement | ( | std::vector< int > | sites | ) | throw (Sequence::SeqException) [inline, inherited] |
Implemented by a call to Alignment::TrimComplement
Definition at line 145 of file AlignStream.tcc.
| unsigned Sequence::AlignStream< T >::UnGappedLength | ( | void | ) | [inline, inherited] |
Implemented by a call to Alignment::UnGappedLength
Definition at line 107 of file AlignStream.tcc.
1.6.3