Sequence::phylipData< T > Class Template Reference

#include <phylipData.hpp>

Inheritance diagram for Sequence::phylipData< T >:
Sequence::AlignStream< T >

List of all members.

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)

Detailed Description

template<typename T>
class Sequence::phylipData< T >

Input of phylip-format alignments

Definition at line 36 of file phylipData.hpp.


Member Typedef Documentation

template<typename T>
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.

template<typename T>
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.


Member Function Documentation

template<typename T >
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

Exceptions:
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.

template<typename T >
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.

template<typename T >
bool Sequence::AlignStream< T >::Gapped ( void   )  [inline, inherited]

Implemented by a call to Alignment::Gapped

Definition at line 98 of file AlignStream.tcc.

template<typename T >
bool Sequence::AlignStream< T >::IsAlignment ( void   )  [inline, inherited]

Implemented by a call to Alignment::IsAlignment

Definition at line 89 of file AlignStream.tcc.

template<typename T >
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.

template<typename T>
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.

template<typename T>
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.

template<typename T >
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.

template<typename T >
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.

template<typename T >
void Sequence::AlignStream< T >::RemoveGaps ( void   )  [inline, inherited]

Implemented by a call to Alignment::RemoveGaps

Definition at line 116 of file AlignStream.tcc.

template<typename T >
void Sequence::AlignStream< T >::RemoveTerminalGaps ( void   )  [inline, inherited]

Implemented by a call to Alignment::RemoveTerminalGaps

Definition at line 125 of file AlignStream.tcc.

template<typename T>
size_type Sequence::AlignStream< T >::size ( void   )  const [inline, inherited]

Returns data.size()

Definition at line 81 of file AlignStream.hpp.

template<typename T >
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.

template<typename T >
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.

template<typename T >
unsigned Sequence::AlignStream< T >::UnGappedLength ( void   )  [inline, inherited]

Implemented by a call to Alignment::UnGappedLength

Definition at line 107 of file AlignStream.tcc.


The documentation for this class was generated from the following files:
Generated on Thu Aug 11 13:22:02 2011 for libsequence by  doxygen 1.6.3