13 std::vector<bool> temp(
flagSize,
false);
20 throw std::runtime_error(
"Passed container does not match the container that created this TrigPassFlags. No flag bit set.");
22 if ( position >=
size() )
23 throw std::runtime_error(
"Specified flag position is larger than the size of the TrigPassFlags object. No flag bit set.");
26 throw std::runtime_error(
"Specified bitPosition is larger than the flag size. No flag bit set.");
33 throw std::runtime_error(
"Passed container does not match the container that created this TrigPassFlags. No flag set.");
35 if ( position >=
size() )
36 throw std::runtime_error(
"Specified flag position is larger than the size of the TrigPassFlags object. No flag set.");
39 throw std::runtime_error(
"Size of specified flag is different from the flag size of the TrigPassFlags object. No flag set.");
45 if ( position >=
size() )
46 throw std::runtime_error(
"Specified object position is larger than the size of the TrigPassFlags objects.");
49 throw std::runtime_error(
"Specified bitPosition is larger than the flag size.");
55 if ( position >=
size() )
56 throw std::runtime_error(
"Specified object position is larger than the size of the TrigPassFlags objects.");
unsigned int flagSize() const
gets size of the flag vector for the object at index
bool getFlagBit(const unsigned int position, const unsigned int bitPosition) const
Returns the bit 'bitPosition' of the flag at index position.
const std::vector< bool > & getFlag(const unsigned int position) const
Returns the flag (vector<bool>) at index position.
std::vector< std::vector< bool > > m_flagsPerObject
list of trainsient n-bit value (STL docu assures that a vector of booleans is efficient)
const void * m_container_ptr
unsigned int size() const
gets size of the container object vector
void setFlag(const unsigned int position, const std::vector< bool > &flag, const void *cont=0)
Set the flag at index position.
void setFlagBit(const unsigned int position, const unsigned int bitPosition, const bool bitValue, const void *cont=0)
Set bit of the flag at index position.