|
Public Member Functions |
| | uint_bitset () |
| bool | subseteq (const uint_bitset &) |
| | Test whether this is a subset of another set.
|
| bool | operator< (const uint_bitset &) |
| | We obtain a canonical order on subsets of [1:k] by considering such a set as a number between 0 and 2^k-1.
|
| bool | operator== (const uint_bitset &) |
| | Two sets are considered equivalent iff they contain the same elements, not regarding their weights.
|
| bool | subseteq (const uint_bitset &, const unsigned int &J) |
| int | cardinality () |
| | returns the number of elements contained in the multiset
|
| void | intersect (const uint_bitset &b) |
| | standard set intersection
|
| void | set (const int &j) |
| | add one element j to the multiset.
|
| void | remove (const int &j) |
| | remove ALL elements j from the multiset.
|
Static Public Attributes |
| int | k = 32 |
Friends |
| std::ostream & | operator<< (std::ostream &o, const uint_bitset &) |
This class particularly supports unweighted sets whose cardinality is limited to 32 elements; it supports neither weighing nor multiset capabilities, but is very memory efficient. In its current state, it is only suitable for the ancient footprint_detector rather than the featuristic weighted_footprint_detector.