Bit vector used by Track Trigger emulators. Mainly used to convert integers into arbitrary (within margin) sized two's complement string. More...
#include <TTBV.h>
Public Member Functions | |
TTBV & | abs () |
bool | all () const |
bool | any () const |
std::bitset< S > | bs () const |
int | count () const |
int | count (int begin, int end, bool b=true) const |
TTBV & | flip () |
TTBV & | flip (int pos) |
std::bitset< S >::reference | msb () |
bool | msb () const |
bool | none () const |
bool | operator!= (const TTBV &rhs) const |
TTBV & | operator&= (const TTBV &rhs) |
TTBV | operator+ (const TTBV &rhs) const |
TTBV & | operator++ () |
TTBV & | operator+= (const TTBV &rhs) |
TTBV | operator<< (int pos) const |
TTBV & | operator<<= (int pos) |
bool | operator== (const TTBV &rhs) const |
TTBV | operator>> (int pos) const |
TTBV & | operator>>= (int pos) |
std::bitset< S >::reference | operator[] (int pos) |
bool | operator[] (int pos) const |
TTBV & | operator^= (const TTBV &rhs) |
TTBV & | operator|= (const TTBV &rhs) |
TTBV | operator~ () const |
int | plEncode (bool b=true) const |
int | pmEncode (bool b=true) const |
TTBV & | reset () |
TTBV & | reset (int pos) |
TTBV & | resize (int size) |
TTBV & | set () |
TTBV & | set (int pos) |
int | size () const |
std::string | str () const |
std::string | str (int start, int end=0) const |
TTBV () | |
TTBV (const double d) | |
TTBV (const std::bitset< S > &bs, bool Signed=false) | |
TTBV (const std::string &str, bool Signed=false) | |
TTBV (double value, double base, int size, bool Signed=false) | |
TTBV (int value, int size, bool Signed=false) | |
TTBV (unsigned long long int value, int size) | |
bool | twos () const |
int | val () const |
int | val (bool Signed) const |
double | val (double base) const |
int | val (int start, int end=0, bool Signed=false) const |
Static Public Attributes | |
static constexpr int | S = 64 |
Private Member Functions | |
unsigned long long int | iMax () const |
constexpr std::array< unsigned long long int, S > | powersOfTwo () const |
Private Attributes | |
std::bitset< S > | bs_ |
int | size_ |
bool | twos_ |
Bit vector used by Track Trigger emulators. Mainly used to convert integers into arbitrary (within margin) sized two's complement string.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexprprivate |
|
inline |
|
inline |
|
inline |
Definition at line 195 of file TTBV.h.
References bs_, msb(), dqmiodumpmetadata::n, operator<<=(), size(), size_, and twos_.
Referenced by operator&=(), operator++(), operator^=(), and operator|=().
|
inline |
|
inline |
|
inline |
Definition at line 60 of file TTBV.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), operator&=(), operator+=(), operator^=(), operator|=(), and resize().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 25 of file TTBV.h.
Referenced by all(), any(), bs(), count(), flip(), msb(), none(), operator!=(), operator&=(), operator++(), operator+=(), operator<<=(), operator==(), operator>>=(), operator[](), operator^=(), operator|=(), plEncode(), pmEncode(), reset(), resize(), set(), TTBV(), and val().
|
staticconstexpr |
Definition at line 20 of file TTBV.h.
Referenced by trackerDTC::Setup::calculateConstants(), and powersOfTwo().
|
private |
Definition at line 24 of file TTBV.h.
Referenced by flip(), iMax(), msb(), operator&=(), operator+=(), operator<<=(), operator>>=(), operator^=(), operator|=(), plEncode(), pmEncode(), resize(), set(), size(), and str().