7#ifndef PATCORE_ACCEPT_DATA_H
8#define PATCORE_ACCEPT_DATA_H
44 explicit inline operator bool()
const
74 return m_info->getCutPosition(cutName);
79 const std::string&
getCutName(
unsigned int cutPosition )
const
81 return m_info->getCutName (cutPosition);
88 return m_info->getCutDescription (cutName);
94 return m_info->getCutDescription (cutPosition);
149 assert (
m_info == other.m_info);
AcceptData & operator|=(const AcceptData &other)
AcceptData(const AcceptInfo *val_info)
Standard constructor.
unsigned int getNCuts() const
Get the number of cuts defined.
std::bitset< NBITS > getCutResultInvertedBitSet() const
Get an inverted bitset of the cut result.
const AcceptInfo * m_info
the info structure describing us
const std::bitset< NBITS > & getCutResultBitSet() const
Get the cut result bitset.
void setCutResult(unsigned int cutPosition, bool cutResult)
Get the result of a cut, based on the cut position (faster).
std::bitset< NBITS > getCutMask() const
Get a bitmask for all cuts defined.
bool getCutResult(unsigned int cutPosition) const
Get the result of a cut, based on the cut position (faster).
void clearPositive()
Set all bits to true.
const std::string & getCutDescription(const std::string &cutName) const
Get the description of a cut, based on the cut name.
const std::string & getCutDescription(unsigned int cutPosition) const
Get the description of a cut, based on the cut position.
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer).
unsigned int getCutPosition(std::string_view cutName) const
Get the bit position of a cut.
static const unsigned int NBITS
The number of bits for cuts.
bool getCutResult(std::string_view cutName) const
Get the result of a cut, based on the cut name (safer).
const std::string & getCutName(unsigned int cutPosition) const
Get the name of a cut, based on the cut position (slow, avoid usage).
std::bitset< NBITS > m_accept
The cut bits.
void clear()
Clear all bits.
const char * getName() const
Get the name of the class instance.
unsigned int getCutResultInverted() const
Get an inverted bitset as an unsigned integer of the cut result.
static const unsigned int NBITS
The number of bits for cuts.