26#ifndef __SortingNetwork_h__
27#define __SortingNetwork_h__
51 UINT
flipinput(UINT j,
const UINT firstlayer,
const UINT lastlayer);
52 void initValues(
const UINT firstlayer,
const UINT lastlayer);
Interface for the renderable comparator network CRenderableComparatorNet.
Interface for the ternary reflected Gray code generator class CTernaryGrayCode.
Interface for some helpful Windows-specific functions.
Binary reflected Gray code generator.
Renderable comparator network.
void initUsage()
Initialize usage array.
UINT flipinput(UINT j, const UINT firstlayer, const UINT lastlayer)
Recompute network values when a bit is changed.
const UINT GetUnused() const
Get number of unused comparators.
bool stillsorts(const int delta)
Does it still sort when a bit is changed?
UINT ** m_nValue
Values at each level when sorting.
bool Read(LPWSTR)
Read from file.
void initSortingTest()
Initialize the sorting test.
void initValues(const UINT firstlayer, const UINT lastlayer)
Initialize the network values to the all zero input.
bool sorts()
Does it sort?
void CreateUsageArray()
Make usage array.
void CreateValueArray()
Make value array.
~CSortingNetwork()
Destructor.
CBinaryGrayCode * m_pGrayCode
Gray code generator.