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

#include <Combinations.h>

Public Member Functions

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

Private Member Functions

uint64_t RankHelper (int *board, int count, int spaces, int offset) const
 
void UnrankHelper (uint64_t rank, int *board, int count, int spaces, int total) const
 

Detailed Description

template<int N>
class Combinations< N >

Definition at line 27 of file Combinations.h.

Member Function Documentation

◆ MaxRank()

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

Definition at line 29 of file Combinations.h.

References ConstChoose().

◆ Rank()

template<int N>
uint64_t Combinations< N >::Rank ( int *  items,
int  k 
) const
inline

Definition at line 30 of file Combinations.h.

References Combinations< N >::RankHelper().

◆ RankHelper()

template<int N>
uint64_t Combinations< N >::RankHelper ( int *  board,
int  count,
int  spaces,
int  offset 
) const
inlineprivate

Definition at line 33 of file Combinations.h.

References ConstChoose().

Referenced by Combinations< N >::Rank().

◆ Unrank()

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

Definition at line 31 of file Combinations.h.

References Combinations< N >::UnrankHelper().

◆ UnrankHelper()

template<int N>
void Combinations< N >::UnrankHelper ( uint64_t  rank,
int *  board,
int  count,
int  spaces,
int  total 
) const
inlineprivate

Definition at line 43 of file Combinations.h.

References ConstChoose().

Referenced by Combinations< N >::Unrank().


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