OpenMS
Bitset Struct Reference

Custom bitset which uses a 32-bit integer to store bits (instead of 8 bytes for std::bitset<32> on Clang/GCC). More...

#include <OpenMS/ANALYSIS/ID/AhoCorasickAmbiguous.h>

Collaboration diagram for Bitset:
[legend]

Public Member Functions

void set (int pos)
 
void clear (int pos)
 
bool test (int pos) const
 
Bitset operator<< (int n) const
 
Bitsetoperator<<= (int n)
 
int pop_count () const
 

Public Attributes

uint32_t bits = 0
 

Detailed Description

Custom bitset which uses a 32-bit integer to store bits (instead of 8 bytes for std::bitset<32> on Clang/GCC).

Member Function Documentation

◆ clear()

void clear ( int  pos)
inline

References Bitset::bits.

◆ operator<<()

Bitset operator<< ( int  n) const
inline

◆ operator<<=()

Bitset& operator<<= ( int  n)
inline

References Bitset::bits.

◆ pop_count()

int pop_count ( ) const
inline

References Bitset::bits.

◆ set()

void set ( int  pos)
inline

References Bitset::bits.

◆ test()

bool test ( int  pos) const
inline

References Bitset::bits.

Member Data Documentation

◆ bits