15 bool getIntBit(
const UInt_t& position,
const UInt_t& value)
18 return (value & (1 << position));
25 void setIntBit(
const UInt_t& position, UInt_t& value,
const bool& state)
29 value |= (1 << position);
32 value &= (~(1 << position));
37 UInt_t
shiftBy(
const int& positions,
const UInt_t& value)
40 return (value >> (-positions));
42 else if (positions > 0) {
43 return (value << positions);
50 unsigned int getIteratorItemCount(
const std::map<std::string, TConfItem>::const_iterator& start,
const std::map<std::string, TConfItem>::const_iterator& stop)
52 std::map<std::string, TConfItem>::const_iterator iter;
53 unsigned int count = 0;
54 for (iter = start; iter != stop; ++iter) {
60 unsigned int getIteratorItemCount(
const std::map<std::string,std::map<std::string,TConfItem> >::const_iterator& start,
const std::map<std::string,std::map<std::string,TConfItem> >::const_iterator& stop)
62 unsigned int count = 0;
63 std::map<std::string, std::map<std::string, TConfItem> >::const_iterator iter;
64 std::map<std::string,TConfItem>::const_iterator iter2;
65 for (iter=start; iter!=stop; ++iter) {
66 for (iter2 = iter->second.begin(); iter2 != iter->second.end(); ++iter2) {
84 for (UInt_t bit = 1U << 31; bit > 1; bit >>= 1)
86 if (gray & bit) gray ^= bit >> 1;