Sample SNPs
Fast ordered sampling of rows from large text or binary files. Special cases for DNA variant files (.bed, VCF, HapMap, etc).
Public Member Functions | Protected Member Functions | List of all members
sampFiles::Generate Class Referenceabstract

Abstract base random number class. More...

#include <random.hpp>

Inheritance diagram for sampFiles::Generate:
[legend]

Public Member Functions

virtual ~Generate ()
 Protected destructor.
 
virtual volatile uint64_t ranInt ()=0
 Generate a (pseudo-)random 64-bit unsigned integer. More...
 

Protected Member Functions

 Generate ()
 Protected default constructor.
 
 Generate (const Generate &old)
 Protected copy constructor. More...
 
 Generate (Generate &&old)
 Protected move constructor. More...
 
Generateoperator= (const Generate &old)=default
 Protected copy assignment operator. More...
 
Generateoperator= (Generate &&old)=default
 Protected move assignment. More...
 

Detailed Description

Abstract base random number class.

Provides the interface for random or pseudorandom (depending on derived class) generation. For internal use by the RanDraw interface class.

Constructor & Destructor Documentation

◆ Generate() [1/2]

sampFiles::Generate::Generate ( const Generate old)
inlineprotected

Protected copy constructor.

Parameters
[in]oldobject to copy

◆ Generate() [2/2]

sampFiles::Generate::Generate ( Generate &&  old)
inlineprotected

Protected move constructor.

Parameters
[in]oldobject to move

Member Function Documentation

◆ operator=() [1/2]

Generate& sampFiles::Generate::operator= ( const Generate old)
protecteddefault

Protected copy assignment operator.

Parameters
[in]oldobject to copy

◆ operator=() [2/2]

Generate& sampFiles::Generate::operator= ( Generate &&  old)
protecteddefault

Protected move assignment.

Parameters
[in]oldobject to move

◆ ranInt()

virtual volatile uint64_t sampFiles::Generate::ranInt ( )
pure virtual

Generate a (pseudo-)random 64-bit unsigned integer.

Returns
random or pseudo-random 64-bit unsigned integer

Implemented in sampFiles::GenerateMT, and sampFiles::GenerateHR.


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