FixedSizeBitSet< EXPONENT > Class Template Reference

#include <fixedsizebitset.h>

Public Types

using IntType = UInt
 

Public Member Functions

 FixedSizeBitSet ()
 
 FixedSizeBitSet (UInt index)
 
 FixedSizeBitSet (ENUM_DONT_INITIALIZE)
 
Bool Contains (UInt index) const
 
void Add (UInt index, Bool &added)
 
void Add (UInt index)
 
void Remove (UInt index)
 
void Add (const FixedSizeBitSet &b)
 
void Remove (const FixedSizeBitSet &b)
 
void Intersect (const FixedSizeBitSet &b)
 
void Invert ()
 
FixedSizeBitSetoperator|= (const FixedSizeBitSet &other)
 
FixedSizeBitSetoperator&= (const FixedSizeBitSet &other)
 
FixedSizeBitSet operator| (const FixedSizeBitSet &other) const
 
FixedSizeBitSet operator& (const FixedSizeBitSet &other) const
 
FixedSizeBitSet operator~ () const
 
Bool IsPopulated () const
 
Bool IsEmpty () const
 
void Reset ()
 
IntType GetBits (Int i) const
 
String ToString (const FormatStatement *fs=nullptr) const
 

Static Public Attributes

static const Int INT_WIDTH_EXPONENT
 
static const Int BIT_WIDTH
 
static const Bool SINGLE_INT
 
static const Int INT_COUNT
 
static const Int SIZE_EXPONENT
 
static const Int SIZE
 

Private Attributes

IntType _bits [INT_COUNT]
 

Member Typedef Documentation

◆ IntType

using IntType = UInt

Constructor & Destructor Documentation

◆ FixedSizeBitSet() [1/3]

◆ FixedSizeBitSet() [2/3]

FixedSizeBitSet ( UInt  index)
explicit

◆ FixedSizeBitSet() [3/3]

Member Function Documentation

◆ Contains()

Bool Contains ( UInt  index) const

◆ Add() [1/3]

void Add ( UInt  index,
Bool added 
)

◆ Add() [2/3]

void Add ( UInt  index)

◆ Remove() [1/2]

void Remove ( UInt  index)

◆ Add() [3/3]

void Add ( const FixedSizeBitSet< EXPONENT > &  b)

◆ Remove() [2/2]

void Remove ( const FixedSizeBitSet< EXPONENT > &  b)

◆ Intersect()

void Intersect ( const FixedSizeBitSet< EXPONENT > &  b)

◆ Invert()

void Invert ( )

◆ operator|=()

FixedSizeBitSet& operator|= ( const FixedSizeBitSet< EXPONENT > &  other)

◆ operator&=()

FixedSizeBitSet& operator&= ( const FixedSizeBitSet< EXPONENT > &  other)

◆ operator|()

FixedSizeBitSet operator| ( const FixedSizeBitSet< EXPONENT > &  other) const

◆ operator&()

FixedSizeBitSet operator& ( const FixedSizeBitSet< EXPONENT > &  other) const

◆ operator~()

FixedSizeBitSet operator~ ( ) const

◆ IsPopulated()

Bool IsPopulated ( void  ) const

◆ IsEmpty()

Bool IsEmpty ( ) const

◆ Reset()

void Reset ( void  )

◆ GetBits()

IntType GetBits ( Int  i) const

◆ ToString()

String ToString ( const FormatStatement fs = nullptr) const

Member Data Documentation

◆ INT_WIDTH_EXPONENT

const Int INT_WIDTH_EXPONENT
static

◆ BIT_WIDTH

const Int BIT_WIDTH
static

◆ SINGLE_INT

const Bool SINGLE_INT
static

◆ INT_COUNT

const Int INT_COUNT
static

◆ SIZE_EXPONENT

const Int SIZE_EXPONENT
static

◆ SIZE

const Int SIZE
static

◆ _bits

IntType _bits[INT_COUNT]
private