Lumiera  0.pre.03
»edit your freedom«
steam::engine::test::anonymous_namespace{testframe.cpp} Namespace Reference

Typedefs

typedef TestFrameTable< INITIAL_CHAN, INITIAL_FRAMES > TestFrames
 

Classes

struct  TestFrameTable
 

Functions

TestFrameaccessAsTestFrame (void *memoryLocation)
 
TestFrameaccessTestFrame (uint seqNr, uint chanNr)
 
uint64_t generateDistinction (uint seq, uint family)
 

Variables

const uint INITIAL_CHAN = 20
 
const uint INITIAL_FRAMES = 100
 
std::unique_ptr< TestFramestestFrames
 

Function Documentation

◆ generateDistinction()

uint64_t steam::engine::test::anonymous_namespace{testframe.cpp}::generateDistinction ( uint  seq,
uint  family 
)

helper for generating unique test frames. This "discriminator" is used as a random seed when filling the test frame data buffers. It is generated to be different on adjacent frames of the same series, as well as to differ to all near by neighbouring channels.

Parameters
seqthe sequence number of the frame within the channel
familythe channel this frame belongs to

Definition at line 62 of file testframe.cpp.