![]()  | 
  
    PandaRoot
    
   | 
 
Helper functions for single bit manipulations. More...
Functions | |
| bool | getIntBit (const UInt_t &position, const UInt_t &value) | 
| Retrieves a single bit from an integer value.  More... | |
| void | setIntBit (const UInt_t &position, UInt_t &value, const bool &state) | 
| Sets a single bit in an integer value.  More... | |
| UInt_t | shiftBy (const int &positions, const UInt_t &value) | 
| Shifts the bits in an integer value.  More... | |
| unsigned int | getIteratorItemCount (const std::map< std::string, TConfItem >::const_iterator &start, const std::map< std::string, TConfItem >::const_iterator &stop) | 
| 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) | 
| UInt_t | grayToBin (UInt_t gray) | 
| Converts gray encoded values to bianry values.  More... | |
Helper functions for single bit manipulations.
| bool mrftools::getIntBit | ( | const UInt_t & | position, | 
| const UInt_t & | value | ||
| ) | 
Retrieves a single bit from an integer value.
| position | Position of bit to investigate. | 
| value | Value whose bits are to be investigated. | 
| unsigned int mrftools::getIteratorItemCount | ( | const std::map< std::string, TConfItem >::const_iterator & | start, | 
| const std::map< std::string, TConfItem >::const_iterator & | stop | ||
| ) | 
| unsigned int mrftools::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 | ||
| ) | 
| UInt_t mrftools::grayToBin | ( | UInt_t | gray | ) | 
Converts gray encoded values to bianry values.
| gray | Gray encoded value. | 
| void mrftools::setIntBit | ( | const UInt_t & | position, | 
| UInt_t & | value, | ||
| const bool & | state | ||
| ) | 
Sets a single bit in an integer value.
| position | The positional index of the bit to be manipulated, 0 referring to the least significant bit. | 
| value | The integer value whose bits are to be manipulated. | 
| state | True sets the bit, False resets the bit. | 
| UInt_t mrftools::shiftBy | ( | const int & | positions, | 
| const UInt_t & | value | ||
| ) | 
Shifts the bits in an integer value.
| positions | Number of positions to be shifted. A positive value means shift to the MSB (left), negative means shift to the LSB (right). | 
| value | The integer value whose bits are to be shifted. |