Project
Loading...
Searching...
No Matches
o2::mch::raw::BitSet Class Reference

#include <BitSet.h>

Public Member Functions

 BitSet ()
 
 BitSet (std::string_view s)
 
bool operator== (const BitSet &rhs) const
 
bool operator!= (const BitSet &rhs) const
 
bool any () const
 
int append (bool val)
 
int count () const
 
void clear ()
 
bool isEmpty () const
 
void set (int pos, bool val)
 
bool get (int pos) const
 
bool grow (int n)
 
BitSet last (int n) const
 
int size () const
 
int len () const
 
int maxlen () const
 
void pruneFirst (int n)
 
void setFast (int pos, bool val)
 
void setFromBytes (gsl::span< uint8_t > bytes)
 
void setRangeFromString (int a, int b, std::string_view s)
 
std::string stringLSBLeft () const
 
std::string stringLSBRight () const
 
BitSet subset (int a, int b) const
 
uint8_t uint8 (int a, int b) const
 
uint16_t uint16 (int a, int b) const
 
uint32_t uint32 (int a, int b) const
 
uint64_t uint64 (int a, int b) const
 
 BitSet (uint8_t v, int n=-1)
 
 BitSet (uint16_t v, int n=-1)
 
 BitSet (uint32_t v, int n=-1)
 
 BitSet (uint64_t v, int n=-1)
 
int append (uint8_t val, int n=-1)
 
int append (uint16_t val, int n=-1)
 
int append (uint32_t val, int n=-1)
 
int append (uint64_t val, int n=-1)
 
void setRangeFromUint (int a, int b, uint8_t v)
 
void setRangeFromUint (int a, int b, uint16_t v)
 
void setRangeFromUint (int a, int b, uint32_t v)
 
void setRangeFromUint (int a, int b, uint64_t v)
 

Static Public Member Functions

static int maxSize ()
 

Detailed Description

Definition at line 30 of file BitSet.h.

Constructor & Destructor Documentation

◆ BitSet() [1/6]

o2::mch::raw::BitSet::BitSet ( )

Definition at line 109 of file BitSet.cxx.

◆ BitSet() [2/6]

o2::mch::raw::BitSet::BitSet ( std::string_view  s)
explicit

Definition at line 149 of file BitSet.cxx.

◆ BitSet() [3/6]

o2::mch::raw::BitSet::BitSet ( uint8_t  v,
int  n = -1 
)
explicit

Definition at line 113 of file BitSet.cxx.

◆ BitSet() [4/6]

o2::mch::raw::BitSet::BitSet ( uint16_t  v,
int  n = -1 
)
explicit

Definition at line 122 of file BitSet.cxx.

◆ BitSet() [5/6]

o2::mch::raw::BitSet::BitSet ( uint32_t  v,
int  n = -1 
)
explicit

Definition at line 131 of file BitSet.cxx.

◆ BitSet() [6/6]

o2::mch::raw::BitSet::BitSet ( uint64_t  v,
int  n = -1 
)
explicit

Definition at line 140 of file BitSet.cxx.

Member Function Documentation

◆ any()

bool o2::mch::raw::BitSet::any ( ) const

Definition at line 198 of file BitSet.cxx.

◆ append() [1/5]

int o2::mch::raw::BitSet::append ( bool  val)

Definition at line 172 of file BitSet.cxx.

◆ append() [2/5]

int o2::mch::raw::BitSet::append ( uint16_t  val,
int  n = -1 
)

Definition at line 183 of file BitSet.cxx.

◆ append() [3/5]

int o2::mch::raw::BitSet::append ( uint32_t  val,
int  n = -1 
)

Definition at line 188 of file BitSet.cxx.

◆ append() [4/5]

int o2::mch::raw::BitSet::append ( uint64_t  val,
int  n = -1 
)

Definition at line 193 of file BitSet.cxx.

◆ append() [5/5]

int o2::mch::raw::BitSet::append ( uint8_t  val,
int  n = -1 
)

Definition at line 178 of file BitSet.cxx.

◆ clear()

void o2::mch::raw::BitSet::clear ( )

Definition at line 208 of file BitSet.cxx.

◆ count()

int o2::mch::raw::BitSet::count ( ) const

Definition at line 214 of file BitSet.cxx.

◆ get()

bool o2::mch::raw::BitSet::get ( int  pos) const

Definition at line 225 of file BitSet.cxx.

◆ grow()

bool o2::mch::raw::BitSet::grow ( int  n)

Definition at line 234 of file BitSet.cxx.

◆ isEmpty()

bool o2::mch::raw::BitSet::isEmpty ( ) const
inline

Definition at line 80 of file BitSet.h.

◆ last()

BitSet o2::mch::raw::BitSet::last ( int  n) const

Definition at line 254 of file BitSet.cxx.

◆ len()

int o2::mch::raw::BitSet::len ( ) const
inline

Definition at line 103 of file BitSet.h.

◆ maxlen()

int o2::mch::raw::BitSet::maxlen ( ) const
inline

Definition at line 106 of file BitSet.h.

◆ maxSize()

static int o2::mch::raw::BitSet::maxSize ( )
inlinestatic

Definition at line 100 of file BitSet.h.

◆ operator!=()

bool o2::mch::raw::BitSet::operator!= ( const BitSet rhs) const

Definition at line 167 of file BitSet.cxx.

◆ operator==()

bool o2::mch::raw::BitSet::operator== ( const BitSet rhs) const

Definition at line 154 of file BitSet.cxx.

◆ pruneFirst()

void o2::mch::raw::BitSet::pruneFirst ( int  n)

Definition at line 266 of file BitSet.cxx.

◆ set()

void o2::mch::raw::BitSet::set ( int  pos,
bool  val 
)

Definition at line 277 of file BitSet.cxx.

◆ setFast()

void o2::mch::raw::BitSet::setFast ( int  pos,
bool  val 
)

Definition at line 288 of file BitSet.cxx.

◆ setFromBytes()

void o2::mch::raw::BitSet::setFromBytes ( gsl::span< uint8_t >  bytes)

Definition at line 307 of file BitSet.cxx.

◆ setRangeFromString()

void o2::mch::raw::BitSet::setRangeFromString ( int  a,
int  b,
std::string_view  s 
)

Definition at line 320 of file BitSet.cxx.

◆ setRangeFromUint() [1/4]

void o2::mch::raw::BitSet::setRangeFromUint ( int  a,
int  b,
uint16_t  v 
)

Definition at line 342 of file BitSet.cxx.

◆ setRangeFromUint() [2/4]

void o2::mch::raw::BitSet::setRangeFromUint ( int  a,
int  b,
uint32_t  v 
)

Definition at line 347 of file BitSet.cxx.

◆ setRangeFromUint() [3/4]

void o2::mch::raw::BitSet::setRangeFromUint ( int  a,
int  b,
uint64_t  v 
)

Definition at line 352 of file BitSet.cxx.

◆ setRangeFromUint() [4/4]

void o2::mch::raw::BitSet::setRangeFromUint ( int  a,
int  b,
uint8_t  v 
)

Definition at line 337 of file BitSet.cxx.

◆ size()

int o2::mch::raw::BitSet::size ( ) const
inline

Definition at line 97 of file BitSet.h.

◆ stringLSBLeft()

std::string o2::mch::raw::BitSet::stringLSBLeft ( ) const

Definition at line 357 of file BitSet.cxx.

◆ stringLSBRight()

std::string o2::mch::raw::BitSet::stringLSBRight ( ) const

Definition at line 370 of file BitSet.cxx.

◆ subset()

BitSet o2::mch::raw::BitSet::subset ( int  a,
int  b 
) const

Definition at line 383 of file BitSet.cxx.

◆ uint16()

uint16_t o2::mch::raw::BitSet::uint16 ( int  a,
int  b 
) const

Definition at line 402 of file BitSet.cxx.

◆ uint32()

uint32_t o2::mch::raw::BitSet::uint32 ( int  a,
int  b 
) const

Definition at line 407 of file BitSet.cxx.

◆ uint64()

uint64_t o2::mch::raw::BitSet::uint64 ( int  a,
int  b 
) const

Definition at line 412 of file BitSet.cxx.

◆ uint8()

uint8_t o2::mch::raw::BitSet::uint8 ( int  a,
int  b 
) const

Definition at line 397 of file BitSet.cxx.


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