vg
tools for working with variation graphs
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
vg::ShuffledPairs::iterator Class Reference

#include <cluster.hpp>

Public Member Functions

iteratoroperator++ ()
 
pair< size_t, size_t > operator* () const
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 
 iterator (const iterator &other)=default
 

Private Member Functions

 iterator (const ShuffledPairs &iteratee, size_t start_at)
 

Private Attributes

size_t permutation_idx
 
size_t permuted
 
const ShuffledPairsiteratee
 

Friends

class ShuffledPairs
 

Detailed Description

Actual iterator class.

Constructor & Destructor Documentation

◆ iterator() [1/2]

vg::ShuffledPairs::iterator::iterator ( const iterator other)
default

◆ iterator() [2/2]

vg::ShuffledPairs::iterator::iterator ( const ShuffledPairs iteratee,
size_t  start_at 
)
private

Member Function Documentation

◆ operator!=()

bool vg::ShuffledPairs::iterator::operator!= ( const iterator other) const

see if two iterators are not equal.

◆ operator*()

pair< size_t, size_t > vg::ShuffledPairs::iterator::operator* ( ) const

Get the pair pointed to.

◆ operator++()

ShuffledPairs::iterator & vg::ShuffledPairs::iterator::operator++ ( )

Advance to the next pair.

◆ operator==()

bool vg::ShuffledPairs::iterator::operator== ( const iterator other) const

see if two iterators are equal.

Friends And Related Function Documentation

◆ ShuffledPairs

friend class ShuffledPairs
friend

Member Data Documentation

◆ iteratee

const ShuffledPairs& vg::ShuffledPairs::iterator::iteratee
private

◆ permutation_idx

size_t vg::ShuffledPairs::iterator::permutation_idx
private

◆ permuted

size_t vg::ShuffledPairs::iterator::permuted
private

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