|
A library for working with phylogenetic and population genetic data.
v0.27.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_SEQUENCE_SEQUENCE_SET_H_
2 #define GENESIS_SEQUENCE_SEQUENCE_SET_H_
46 void swap( SequenceSet& lhs, SequenceSet& rhs );
67 typedef std::vector<Sequence>::iterator
iterator;
125 void remove(
size_t index );
131 void remove(
size_t first_index,
size_t last_index );
168 std::vector<Sequence> sequences_;
174 #endif // include guard
void swap(SequenceSet &lhs, SequenceSet &rhs)
reference at(size_t index)
void clear()
Remove all Sequences from the SequenceSet, leaving it with a size() of 0.
std::vector< Sequence >::const_iterator const_iterator
std::vector< Sequence >::iterator iterator
const_iterator cbegin() const
reference operator[](size_t index)
void remove(size_t index)
Remove the Sequence at a given index from the SequenceSet.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Store a set of Sequences.
SequenceSet & operator=(SequenceSet const &)=default
reference add(Sequence const &s)
Add a Sequence to the SequenceSet by copying it, and return a reference to it.
Sequence const & const_reference
friend void swap(SequenceSet &lhs, SequenceSet &rhs)
const_iterator cend() const