A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Sequence Class Reference

#include <genesis/sequence/sequence.hpp>

Detailed Description

Definition at line 39 of file sequence/sequence.hpp.

Public Member Functions

 Sequence ()=default
 
 Sequence (std::string const &label, std::string const &sites)
 
 Sequence (Sequence const &)=default
 
 Sequence (Sequence &&)=default
 
 ~Sequence ()=default
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void clear ()
 
iterator end ()
 
const_iterator end () const
 
std::string const & label () const
 
void label (std::string const &value)
 
size_t length () const
 Return the length (number of sites) of this sequence. More...
 
Sequenceoperator= (Sequence const &)=default
 
Sequenceoperator= (Sequence &&)=default
 
char & operator[] (size_t index)
 
char operator[] (size_t index) const
 
char & site_at (size_t index)
 
char site_at (size_t index) const
 
std::string const & sites () const
 
void sites (std::string const &value)
 
void sites (std::string &&value)
 
std::string & sites ()
 
size_t size () const
 Alias for length(). More...
 
void swap (Sequence &other)
 

Public Types

typedef std::string::const_iterator const_iterator
 
typedef std::string::iterator iterator
 

Constructor & Destructor Documentation

Sequence ( )
default
Sequence ( std::string const &  label,
std::string const &  sites 
)
inline

Definition at line 56 of file sequence/sequence.hpp.

~Sequence ( )
default
Sequence ( Sequence const &  )
default
Sequence ( Sequence &&  )
default

Member Function Documentation

Sequence::iterator begin ( )

Definition at line 126 of file sequence.cpp.

Sequence::const_iterator begin ( ) const

Definition at line 136 of file sequence.cpp.

Sequence::const_iterator cbegin ( ) const

Definition at line 146 of file sequence.cpp.

Sequence::const_iterator cend ( ) const

Definition at line 151 of file sequence.cpp.

void clear ( )

Definition at line 82 of file sequence.cpp.

Definition at line 131 of file sequence.cpp.

Sequence::const_iterator end ( ) const

Definition at line 141 of file sequence.cpp.

std::string const & label ( ) const

Definition at line 44 of file sequence.cpp.

void label ( std::string const &  value)

Definition at line 49 of file sequence.cpp.

size_t length ( ) const

Return the length (number of sites) of this sequence.

Definition at line 92 of file sequence.cpp.

Sequence& operator= ( Sequence const &  )
default
Sequence& operator= ( Sequence &&  )
default
char & operator[] ( size_t  index)

Definition at line 112 of file sequence.cpp.

char operator[] ( size_t  index) const

Definition at line 117 of file sequence.cpp.

char & site_at ( size_t  index)

Definition at line 102 of file sequence.cpp.

char site_at ( size_t  index) const

Definition at line 107 of file sequence.cpp.

std::string const & sites ( ) const

Definition at line 58 of file sequence.cpp.

void sites ( std::string const &  value)

Definition at line 63 of file sequence.cpp.

void sites ( std::string &&  value)

Definition at line 68 of file sequence.cpp.

std::string & sites ( )

Definition at line 73 of file sequence.cpp.

size_t size ( ) const

Alias for length().

Definition at line 97 of file sequence.cpp.

void swap ( Sequence other)
inline

Definition at line 69 of file sequence/sequence.hpp.

Member Typedef Documentation

typedef std::string::const_iterator const_iterator

Definition at line 48 of file sequence/sequence.hpp.

typedef std::string::iterator iterator

Definition at line 47 of file sequence/sequence.hpp.


The documentation for this class was generated from the following files: