Sorting Network Verify and Draw
Check Whether Comparator Networks Sort and Draw Them
Public Member Functions | Public Attributes | List of all members
CComparator Class Reference

A min-max or max-min comparator used in bitonic sort. More...

#include <Bitonic.h>

Public Member Functions

 CComparator (UINT nMin, UINT nMax)
 Constructor. More...
 

Public Attributes

UINT m_nMin = 0
 Channel index of minimum. More...
 
UINT m_nMax = 0
 Channel index of maximum. More...
 

Detailed Description

This can be either a min-max comparator (when the index of the min channel is less than the index of the max channel) or a max-min comparator (when the index of the min channel is greater than the index of the max channel). Max-min channels are necessary during the construction of the bitonic sorting network.

Definition at line 39 of file Bitonic.h.

Constructor & Destructor Documentation

◆ CComparator()

CComparator::CComparator ( UINT  nMin,
UINT  nMax 
)
inline
Parameters
nMinChannel index of minimum.
nMaxChannel index of maximum.

Definition at line 49 of file Bitonic.h.

Member Data Documentation

◆ m_nMax

UINT CComparator::m_nMax = 0

Definition at line 42 of file Bitonic.h.

◆ m_nMin

UINT CComparator::m_nMin = 0

Definition at line 41 of file Bitonic.h.