Public Member Functions | Private Types | Private Attributes | List of all members
RandomDataTest Class Reference

#include <random_data.h>

Public Member Functions

template<typename T >
getNext ()
 
template<typename T , size_t N>
std::bitset< N > getNext ()
 
BinParser getParser (bool skip=false)
 
 RandomDataTest (size_t n)
 
template<typename T >
void set (T data, size_t pos)
 
void skip (size_t n)
 
 ~RandomDataTest ()
 

Private Types

using random_bytes_engine = std::independent_bits_engine< std::default_random_engine, CHAR_BIT, uint8_t >
 

Private Attributes

BinParser bp_
 
uint8_t * buf_
 
size_t n_
 

Detailed Description

Definition at line 29 of file random_data.h.

Member Typedef Documentation

using RandomDataTest::random_bytes_engine = std::independent_bits_engine<std::default_random_engine, CHAR_BIT, uint8_t>
private

Definition at line 32 of file random_data.h.

Constructor & Destructor Documentation

RandomDataTest::RandomDataTest ( size_t  n)
inline

Definition at line 38 of file random_data.h.

RandomDataTest::~RandomDataTest ( )
inline

Definition at line 44 of file random_data.h.

Member Function Documentation

template<typename T >
T RandomDataTest::getNext ( )
inline

Definition at line 55 of file random_data.h.

template<typename T , size_t N>
std::bitset<N> RandomDataTest::getNext ( )
inline

Definition at line 63 of file random_data.h.

BinParser RandomDataTest::getParser ( bool  skip = false)
inline

Definition at line 49 of file random_data.h.

template<typename T >
void RandomDataTest::set ( data,
size_t  pos 
)
inline

Definition at line 71 of file random_data.h.

void RandomDataTest::skip ( size_t  n)
inline

Definition at line 76 of file random_data.h.

Member Data Documentation

BinParser RandomDataTest::bp_
private

Definition at line 34 of file random_data.h.

uint8_t* RandomDataTest::buf_
private

Definition at line 33 of file random_data.h.

size_t RandomDataTest::n_
private

Definition at line 35 of file random_data.h.


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


ur_modern_driver
Author(s): Thomas Timm Andersen, Simon Rasmussen
autogenerated on Fri Jun 26 2020 03:37:01