HOG2
Public Member Functions | List of all members
Permutations< N > Class Template Reference

#include <Permutations.h>

Public Member Functions

uint64_t MaxRank () const
 
uint64_t Rank (const int *items) const
 
void Unrank (uint64_t hash, int *items) const
 

Detailed Description

template<int N>
class Permutations< N >

Definition at line 16 of file Permutations.h.

Member Function Documentation

◆ MaxRank()

template<int N>
uint64_t Permutations< N >::MaxRank ( ) const
inline

Definition at line 18 of file Permutations.h.

References ConstFactorial().

Referenced by PancakePuzzle< N >::GetMaxHash().

◆ Rank()

template<int N>
uint64_t Permutations< N >::Rank ( const int *  items) const
inline

Definition at line 19 of file Permutations.h.

References ConstFactorial().

Referenced by PancakePuzzle< N >::GetStateHash().

◆ Unrank()

template<int N>
void Permutations< N >::Unrank ( uint64_t  hash,
int *  items 
) const
inline

Definition at line 41 of file Permutations.h.

References ConstFactorial().

Referenced by PancakePuzzle< N >::GetStateFromHash().


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