#include <genesis/population/format/frequency_table_input_stream.hpp>
Iterator over loci of the input sources.
This is the class that does the actual work of turning the underlying file data into our Variant and SampleCounts samples. Use the dereference operator*()
and operator->()
to get the Variant at the current locus of the iteration.
Definition at line 107 of file frequency_table_input_stream.hpp.
Public Member Functions | |
Iterator (self_type &&)=default | |
Iterator (self_type const &)=default | |
~Iterator ()=default | |
bool | operator!= (self_type const &it) const |
value_type const & | operator* () const |
self_type & | operator++ () |
value_type const * | operator-> () const |
Iterator & | operator= (self_type &&)=default |
Iterator & | operator= (self_type const &)=default |
bool | operator== (self_type const &it) const |
Compare two iterators for equality. More... | |
std::vector< std::string > | sample_names () const |
Return the sample names found in the header, in the order in which they are in the Variant of each iteration. More... | |
Public Types | |
using | iterator_category = std::input_iterator_tag |
using | pointer = value_type const * |
using | reference = value_type const & |
using | self_type = FrequencyTableInputStream::Iterator |
using | value_type = Variant |
Public Attributes | |
friend | FrequencyTableInputStream |
|
default |
|
inline |
Definition at line 261 of file frequency_table_input_stream.hpp.
|
inline |
Definition at line 219 of file frequency_table_input_stream.hpp.
|
inline |
Definition at line 234 of file frequency_table_input_stream.hpp.
|
inline |
Definition at line 208 of file frequency_table_input_stream.hpp.
|
inline |
Compare two iterators for equality.
Any two iterators that are created by calling begin() on the same FrequencyTableInputStream instance will compare equal, as long as neither of them is past-the-end. A valid (not past-the-end) iterator and an end() iterator will not compare equal; all past-the-end iterators compare equal, independently from which parent they were created.
Definition at line 256 of file frequency_table_input_stream.hpp.
std::vector< std::string > sample_names | ( | ) | const |
Return the sample names found in the header, in the order in which they are in the Variant of each iteration.
Definition at line 62 of file frequency_table_input_stream.cpp.
using iterator_category = std::input_iterator_tag |
Definition at line 119 of file frequency_table_input_stream.hpp.
using pointer = value_type const* |
Definition at line 117 of file frequency_table_input_stream.hpp.
using reference = value_type const& |
Definition at line 118 of file frequency_table_input_stream.hpp.
Definition at line 115 of file frequency_table_input_stream.hpp.
using value_type = Variant |
Definition at line 116 of file frequency_table_input_stream.hpp.
friend FrequencyTableInputStream |
Definition at line 202 of file frequency_table_input_stream.hpp.