vg
tools for working with variation graphs
|
#include <phased_genome.hpp>
Public Types | |
using | value_type = NodeTraversal |
Public Member Functions | |
iterator () | |
Default constructor. More... | |
iterator (const iterator &other) | |
Copy constructor. More... | |
~iterator () | |
Destructor. More... | |
iterator & | operator= (const iterator &other) |
bool | operator== (const iterator &other) const |
bool | operator!= (const iterator &other) const |
iterator | operator++ () |
iterator | operator++ (int) |
NodeTraversal | operator* () |
int | which_haplotype () |
Private Member Functions | |
iterator (size_t rank, int haplotype_number, HaplotypeNode *haplo_node) | |
Private Attributes | |
size_t | rank |
Ordinal position along the haplotype (to distinguish the same node with multiple copies) More... | |
int | haplotype_number |
The ID of the haplotype. More... | |
HaplotypeNode * | haplo_node |
The position along the haplotype. More... | |
Friends | |
class | PhasedGenome |
class | Haplotype |
Unidirectional iterator to obtain the NodeTraversals of a haplotype. Can be come invalid if the PhasedGenome is edited while iterating.
|
private |
vg::PhasedGenome::iterator::iterator | ( | ) |
Default constructor.
vg::PhasedGenome::iterator::iterator | ( | const iterator & | other | ) |
Copy constructor.
vg::PhasedGenome::iterator::~iterator | ( | ) |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |
The position along the haplotype.
|
private |
The ID of the haplotype.
|
private |
Ordinal position along the haplotype (to distinguish the same node with multiple copies)