atlas
0.6
|
Base for a non-empty BitSet that fits in one word. More...
#include <bitset.h>
Classes | |
class | iterator |
Iterator through the set bits (like |BitMap::iterator|) More... | |
Public Member Functions | |
bool | operator== (const BitSetBase< 1 > &b) const |
bool | operator!= (const BitSetBase< 1 > &b) const |
bool | operator< (const BitSetBase< 1 > &b) const |
bool | any () const |
bool | none () const |
bool | any (const BitSetBase< 1 > &b) const |
bool | contains (const BitSetBase< 1 > &b) const |
unsigned int | count () const |
unsigned int | firstBit () const |
unsigned int | lastBit () const |
bool | test (unsigned int j) const |
unsigned int | position (unsigned int j) const |
bool | scalarProduct (const BitSetBase< 1 > &b) const |
unsigned long | to_ulong () const |
unsigned long | to_ulong (unsigned int n) const |
iterator | begin () const |
Protected Member Functions | |
BitSetBase () | |
BitSetBase (unsigned long b) | |
template<size_t m> | |
BitSetBase (const BitSet< m > &b) | |
Copies from another BitSet size (not BitSetBase) by copying the first word (there should not be more than one). More... | |
void | operator^= (const BitSetBase< 1 > &b) |
void | operator|= (const BitSetBase< 1 > &b) |
void | operator&= (const BitSetBase< 1 > &b) |
void | andnot (const BitSetBase< 1 > &b) |
void | operator<<= (unsigned int c) |
void | operator>>= (unsigned int c) |
void | flip (unsigned int j) |
void | reset () |
void | reset (unsigned int j) |
void | set (unsigned int j) |
void | fill (unsigned int limit) |
void | complement (unsigned int limit) |
void | truncate (unsigned int limit) |
void | slice (const BitSetBase< 1 > &c) |
void | unslice (const BitSetBase< 1 > &c) |
void | swap (BitSetBase< 1 > &source) |
Private Attributes | |
unsigned long | d_bits |
Word that holds the BitSet. More... | |
Base for a non-empty BitSet that fits in one word.
With RANK_MAX=16, this template should be the only one instantiated on a 32-bit machine.
The BitSet class BitSet<n>, for n between 1 and the machine word length (more precisely, the constant longBits), is a derived class of BitSetBase<1>.
|
inlineprotected |
|
inlineexplicitprotected |
|
inlineexplicitprotected |
Copies from another BitSet size (not BitSetBase) by copying the first word (there should not be more than one).
|
inlineprotected |
|
inline |
|
inline |
BitSetBase< 1 >::iterator atlas::bitset::BitSetBase< 1 >::begin | ( | ) | const |
|
inlineprotected |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
protected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
protected |
|
private |
Word that holds the BitSet.