atlas  0.6
Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
atlas::bitset::BitSetBase< 1 > Class Template Reference

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...
 

Detailed Description

template<>
class atlas::bitset::BitSetBase< 1 >

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>.

Constructor & Destructor Documentation

atlas::bitset::BitSetBase< 1 >::BitSetBase ( )
inlineprotected
atlas::bitset::BitSetBase< 1 >::BitSetBase ( unsigned long  b)
inlineexplicitprotected
template<size_t m>
atlas::bitset::BitSetBase< 1 >::BitSetBase ( const BitSet< m > &  b)
inlineexplicitprotected

Copies from another BitSet size (not BitSetBase) by copying the first word (there should not be more than one).

Member Function Documentation

void atlas::bitset::BitSetBase< 1 >::andnot ( const BitSetBase< 1 > &  b)
inlineprotected
bool atlas::bitset::BitSetBase< 1 >::any ( ) const
inline
bool atlas::bitset::BitSetBase< 1 >::any ( const BitSetBase< 1 > &  b) const
inline
BitSetBase< 1 >::iterator atlas::bitset::BitSetBase< 1 >::begin ( ) const
void atlas::bitset::BitSetBase< 1 >::complement ( unsigned int  limit)
inlineprotected
bool atlas::bitset::BitSetBase< 1 >::contains ( const BitSetBase< 1 > &  b) const
inline
unsigned int atlas::bitset::BitSetBase< 1 >::count ( ) const
inline
void atlas::bitset::BitSetBase< 1 >::fill ( unsigned int  limit)
inlineprotected
unsigned int atlas::bitset::BitSetBase< 1 >::firstBit ( ) const
inline
void atlas::bitset::BitSetBase< 1 >::flip ( unsigned int  j)
inlineprotected
unsigned int atlas::bitset::BitSetBase< 1 >::lastBit ( ) const
inline
bool atlas::bitset::BitSetBase< 1 >::none ( ) const
inline
bool atlas::bitset::BitSetBase< 1 >::operator!= ( const BitSetBase< 1 > &  b) const
inline
void atlas::bitset::BitSetBase< 1 >::operator&= ( const BitSetBase< 1 > &  b)
inlineprotected
bool atlas::bitset::BitSetBase< 1 >::operator< ( const BitSetBase< 1 > &  b) const
inline
void atlas::bitset::BitSetBase< 1 >::operator<<= ( unsigned int  c)
inlineprotected
bool atlas::bitset::BitSetBase< 1 >::operator== ( const BitSetBase< 1 > &  b) const
inline
void atlas::bitset::BitSetBase< 1 >::operator>>= ( unsigned int  c)
inlineprotected
void atlas::bitset::BitSetBase< 1 >::operator^= ( const BitSetBase< 1 > &  b)
inlineprotected
void atlas::bitset::BitSetBase< 1 >::operator|= ( const BitSetBase< 1 > &  b)
inlineprotected
unsigned int atlas::bitset::BitSetBase< 1 >::position ( unsigned int  j) const
inline
void atlas::bitset::BitSetBase< 1 >::reset ( )
inlineprotected
void atlas::bitset::BitSetBase< 1 >::reset ( unsigned int  j)
inlineprotected
bool atlas::bitset::BitSetBase< 1 >::scalarProduct ( const BitSetBase< 1 > &  b) const
inline
void atlas::bitset::BitSetBase< 1 >::set ( unsigned int  j)
inlineprotected
void atlas::bitset::BitSetBase< 1 >::slice ( const BitSetBase< 1 > &  c)
protected
void atlas::bitset::BitSetBase< 1 >::swap ( BitSetBase< 1 > &  source)
inlineprotected
bool atlas::bitset::BitSetBase< 1 >::test ( unsigned int  j) const
inline
unsigned long atlas::bitset::BitSetBase< 1 >::to_ulong ( ) const
inline
unsigned long atlas::bitset::BitSetBase< 1 >::to_ulong ( unsigned int  n) const
inline
void atlas::bitset::BitSetBase< 1 >::truncate ( unsigned int  limit)
inlineprotected
void atlas::bitset::BitSetBase< 1 >::unslice ( const BitSetBase< 1 > &  c)
protected

Member Data Documentation

unsigned long atlas::bitset::BitSetBase< 1 >::d_bits
private

Word that holds the BitSet.


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