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

#include <cluster.hpp>

Classes

class  iterator
 

Public Types

using const_iterator = iterator
 

Public Member Functions

 ShuffledPairs (size_t num_items)
 
iterator begin () const
 
iterator end () const
 

Private Attributes

size_t num_items
 
size_t num_pairs
 
size_t larger_prime
 
size_t primitive_root
 

Detailed Description

Iterate over pairsets of integers in a pseudorandom but deterministic order. We use the same permutation every time for a given number of items to pair up.

Member Typedef Documentation

◆ const_iterator

Constructor & Destructor Documentation

◆ ShuffledPairs()

vg::ShuffledPairs::ShuffledPairs ( size_t  num_items)

Make a new iterable pairing up the given number of items.

Member Function Documentation

◆ begin()

ShuffledPairs::iterator vg::ShuffledPairs::begin ( ) const

Get an iterator to the first pair.

◆ end()

ShuffledPairs::iterator vg::ShuffledPairs::end ( ) const

Get an iterator to the past-the-end pair.

Member Data Documentation

◆ larger_prime

size_t vg::ShuffledPairs::larger_prime
private

◆ num_items

size_t vg::ShuffledPairs::num_items
private

◆ num_pairs

size_t vg::ShuffledPairs::num_pairs
private

◆ primitive_root

size_t vg::ShuffledPairs::primitive_root
private

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