7#ifndef PATCORE_ACCEPT_DATA_H
8#define PATCORE_ACCEPT_DATA_H
43 explicit inline operator bool()
const
73 return m_info->getCutPosition(cutName);
78 const std::string&
getCutName(
unsigned int cutPosition )
const
80 return m_info->getCutName (cutPosition);
87 return m_info->getCutDescription (cutName);
93 return m_info->getCutDescription (cutPosition);
148 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)
static const unsigned int NBITS
The number of bits for cuts.
const std::string & getCutName(unsigned int cutPosition) const
Get the name of a cut, based on the cut position (slow, avoid usage)
unsigned int getCutPosition(const std::string &cutName) const
Get the bit position of a cut.
std::bitset< NBITS > m_accept
The cut bits.
void clear()
Clear all bits.
const char * getName() const
Get the name of the class instance.
bool getCutResult(const std::string &cutName) const
Get the result of a cut, based on the cut name (safer)
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.