Interface for the ternary reflected Gray code generator CTernaryGrayCode.
size_t m_nBit[MAXINPUTS+3]
Current code word.
virtual void Initialize()
Get first code word.
size_t m_nStack[MAXINPUTS+3]
Stack to remove recursion.
static size_t m_nWidth
Comparator network width.
int m_nDirection[MAXINPUTS+3]
Direction of ternary change.
void Initialize()
Get first code word.
size_t Next()
Get next code word.