HOG2
Public Member Functions | Public Attributes | List of all members
TOHState< numDisks > Struct Template Reference

#include <TOH.h>

Public Member Functions

 TOHState ()
 
void Reset ()
 
void StandardStart ()
 
int GetDiskCountOnPeg (int whichPeg) const
 
int GetDiskOnPeg (int whichPeg, int whichDisk) const
 
int GetSmallestDiskOnPeg (int whichPeg) const
 

Public Attributes

uint8_t disks [4][numDisks]
 
uint8_t counts [4]
 

Detailed Description

template<int numDisks>
struct TOHState< numDisks >

Definition at line 26 of file TOH.h.

Constructor & Destructor Documentation

◆ TOHState()

template<int numDisks>
TOHState< numDisks >::TOHState ( )
inline

Definition at line 27 of file TOH.h.

Member Function Documentation

◆ GetDiskCountOnPeg()

template<int numDisks>
int TOHState< numDisks >::GetDiskCountOnPeg ( int  whichPeg) const
inline

◆ GetDiskOnPeg()

template<int numDisks>
int TOHState< numDisks >::GetDiskOnPeg ( int  whichPeg,
int  whichDisk 
) const
inline

◆ GetSmallestDiskOnPeg()

template<int numDisks>
int TOHState< numDisks >::GetSmallestDiskOnPeg ( int  whichPeg) const
inline

Definition at line 77 of file TOH.h.

Referenced by TOH< patternDisks >::GetActions(), and TOH< patternDisks >::OpenGLDraw().

◆ Reset()

template<int numDisks>
void TOHState< numDisks >::Reset ( )
inline

Definition at line 40 of file TOH.h.

◆ StandardStart()

template<int numDisks>
void TOHState< numDisks >::StandardStart ( )
inline

Definition at line 52 of file TOH.h.

Member Data Documentation

◆ counts

template<int numDisks>
uint8_t TOHState< numDisks >::counts[4]

◆ disks

template<int numDisks>
uint8_t TOHState< numDisks >::disks[4][numDisks]

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