![]() |
mutable
A Database System for Research and Fast Prototyping
|
This class efficiently enumerates all subsets of a given size. More...
#include <ADT.hpp>
Public Member Functions | |
SubsetEnumerator (SmallBitset set, uint64_t size) | |
SubsetEnumerator & | operator++ () |
operator bool () const | |
SmallBitset | operator* () const |
Private Attributes | |
SmallBitset | set_ |
| |
GospersHack | GH_ |
| |
This class efficiently enumerates all subsets of a given size.
|
inline |
Definition at line 894 of file ADT.hpp.
References M_insist, and m::SmallBitset::size().
|
inline |
|
inline |
|
inline |
|
private |
used to enumerate the power set of numbers 0 to n-1
Definition at line 891 of file ADT.hpp.
Referenced by operator bool(), operator*(), and operator++().
|
private |
the set to compute the power set of
Definition at line 889 of file ADT.hpp.
Referenced by operator*().