Classes | Namespaces | Enumerations
BitWizard.h File Reference

Defines the BitWizard and BitMinion classes. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BitWizard< T >
 A class for conducting with bitwise operations on registers. More...

Namespaces

namespace  BitMinion
 

A helper class for BitWizard users that provides useful values for register indexing, masking and sizing.


Enumerations

enum  BitMinion::BitCountMaskEnumType {
  BitMinion::ONE_BIT_MASK = 0x00000001, BitMinion::TWO_BIT_MASK = 0x00000003, BitMinion::THREE_BIT_MASK = 0x00000007, BitMinion::FOUR_BIT_MASK = 0x0000000F,
  BitMinion::FIVE_BIT_MASK = 0x0000001F, BitMinion::SIX_BIT_MASK = 0x0000003F, BitMinion::SEVEN_BIT_MASK = 0x0000007F, BitMinion::EIGHT_BIT_MASK = 0x000000FF,
  BitMinion::NINE_BIT_MASK = 0x000001FF, BitMinion::TEN_BIT_MASK = 0x000003FF, BitMinion::ELEVEN_BIT_MASK = 0x000007FF, BitMinion::TWELVE_BIT_MASK = 0x00000FFF,
  BitMinion::THIRTEEN_BIT_MASK = 0x00001FFF, BitMinion::FOURTEEN_BIT_MASK = 0x00003FFF, BitMinion::FIFTEEN_BIT_MASK = 0x00007FFF, BitMinion::SIXTEEN_BIT_MASK = 0x0000FFFF,
  BitMinion::SEVENTEEN_BIT_MASK = 0x0001FFFF, BitMinion::EIGHTEEN_BIT_MASK = 0x0003FFFF, BitMinion::NINETEEN_BIT_MASK = 0x0007FFFF, BitMinion::TWENTY_BIT_MASK = 0x000FFFFF,
  BitMinion::TWENTYONE_BIT_MASK = 0x001FFFFF, BitMinion::TWENTYTWO_BIT_MASK = 0x003FFFFF, BitMinion::TWENTYTHREE_BIT_MASK = 0x007FFFFF, BitMinion::TWENTYFOUR_BIT_MASK = 0x00FFFFFF,
  BitMinion::TWENTYFIVE_BIT_MASK = 0x01FFFFFF, BitMinion::TWENTYSIX_BIT_MASK = 0x03FFFFFF, BitMinion::TWENTYSEVEN_BIT_MASK = 0x07FFFFFF, BitMinion::TWENTYEIGHT_BIT_MASK = 0x0FFFFFFF,
  BitMinion::TWENTYNINE_BIT_MASK = 0x1FFFFFFF, BitMinion::THIRTY_BIT_MASK = 0x3FFFFFFF, BitMinion::THIRTYONE_BIT_MASK = 0x7FFFFFFF, BitMinion::THIRTYTWO_BIT_MASK = 0xFFFFFFFF
}
 Provides a way to mask off a certain number of bits in a register. More...
enum  BitMinion::BitIndexEnumType {
  BitMinion::BIT_ZERO_INDEX = 0, BitMinion::BIT_ONE_INDEX = 1, BitMinion::BIT_TWO_INDEX = 2, BitMinion::BIT_THREE_INDEX = 3,
  BitMinion::BIT_FOUR_INDEX = 4, BitMinion::BIT_FIVE_INDEX = 5, BitMinion::BIT_SIX_INDEX = 6, BitMinion::BIT_SEVEN_INDEX = 7,
  BitMinion::BIT_EIGHT_INDEX = 8, BitMinion::BIT_NINE_INDEX = 9, BitMinion::BIT_TEN_INDEX = 10, BitMinion::BIT_ELEVEN_INDEX = 11,
  BitMinion::BIT_TWELVE_INDEX = 12, BitMinion::BIT_THIRTEEN_INDEX = 13, BitMinion::BIT_FOURTEEN_INDEX = 14, BitMinion::BIT_FIFTEEN_INDEX = 15,
  BitMinion::BIT_SIXTEEN_INDEX = 16, BitMinion::BIT_SEVENTEEN_INDEX = 17, BitMinion::BIT_EIGHTEEN_INDEX = 18, BitMinion::BIT_NINETEEN_INDEX = 19,
  BitMinion::BIT_TWENTY_INDEX = 20, BitMinion::BIT_TWENTYONE_INDEX = 21, BitMinion::BIT_TWENTYTWO_INDEX = 22, BitMinion::BIT_TWENTYTHREE_INDEX = 23,
  BitMinion::BIT_TWENTYFOUR_INDEX = 24, BitMinion::BIT_TWENTYFIVE_INDEX = 25, BitMinion::BIT_TWENTYSIX_INDEX = 26, BitMinion::BIT_TWENTYSEVEN_INDEX = 27,
  BitMinion::BIT_TWENTYEIGHT_INDEX = 28, BitMinion::BIT_TWENTYNINE_INDEX = 29, BitMinion::BIT_THIRTY_INDEX = 30, BitMinion::BIT_THIRTYONE_INDEX = 31
}
 Provides a way to refer to specific bit positions in a register, assuming a zero-based big-endian index. More...
enum  BitMinion::BitMaskEnumType {
  BitMinion::BIT_ZERO_MASK = (1 << BIT_ZERO_INDEX), BitMinion::BIT_ONE_MASK = (1 << BIT_ONE_INDEX), BitMinion::BIT_TWO_MASK = (1 << BIT_TWO_INDEX), BitMinion::BIT_THREE_MASK = (1 << BIT_THREE_INDEX),
  BitMinion::BIT_FOUR_MASK = (1 << BIT_FOUR_INDEX), BitMinion::BIT_FIVE_MASK = (1 << BIT_FIVE_INDEX), BitMinion::BIT_SIX_MASK = (1 << BIT_SIX_INDEX), BitMinion::BIT_SEVEN_MASK = (1 << BIT_SEVEN_INDEX),
  BitMinion::BIT_EIGHT_MASK = (1 << BIT_EIGHT_INDEX), BitMinion::BIT_NINE_MASK = (1 << BIT_NINE_INDEX), BitMinion::BIT_TEN_MASK = (1 << BIT_TEN_INDEX), BitMinion::BIT_ELEVEN_MASK = (1 << BIT_ELEVEN_INDEX),
  BitMinion::BIT_TWELVE_MASK = (1 << BIT_TWELVE_INDEX), BitMinion::BIT_THIRTEEN_MASK = (1 << BIT_THIRTEEN_INDEX), BitMinion::BIT_FOURTEEN_MASK = (1 << BIT_FOURTEEN_INDEX), BitMinion::BIT_FIFTEEN_MASK = (1 << BIT_FIFTEEN_INDEX),
  BitMinion::BIT_SIXTEEN_MASK = (1 << BIT_SIXTEEN_INDEX), BitMinion::BIT_SEVENTEEN_MASK = (1 << BIT_SEVENTEEN_INDEX), BitMinion::BIT_EIGHTEEN_MASK = (1 << BIT_EIGHTEEN_INDEX), BitMinion::BIT_NINETEEN_MASK = (1 << BIT_NINETEEN_INDEX),
  BitMinion::BIT_TWENTY_MASK = (1 << BIT_TWENTY_INDEX), BitMinion::BIT_TWENTYONE_MASK = (1 << BIT_TWENTYONE_INDEX), BitMinion::BIT_TWENTYTWO_MASK = (1 << BIT_TWENTYTWO_INDEX), BitMinion::BIT_TWENTYTHREE_MASK = (1 << BIT_TWENTYTHREE_INDEX),
  BitMinion::BIT_TWENTYFOUR_MASK = (1 << BIT_TWENTYFOUR_INDEX), BitMinion::BIT_TWENTYFIVE_MASK = (1 << BIT_TWENTYFIVE_INDEX), BitMinion::BIT_TWENTYSIX_MASK = (1 << BIT_TWENTYSIX_INDEX), BitMinion::BIT_TWENTYSEVEN_MASK = (1 << BIT_TWENTYSEVEN_INDEX),
  BitMinion::BIT_TWENTYEIGHT_MASK = (1 << BIT_TWENTYEIGHT_INDEX), BitMinion::BIT_TWENTYNINE_MASK = (1 << BIT_TWENTYNINE_INDEX), BitMinion::BIT_THIRTY_MASK = (1 << BIT_THIRTY_INDEX), BitMinion::BIT_THIRTYONE_MASK = (1 << BIT_THIRTYONE_INDEX)
}
 Provides a way to mask a specific bit in a register, assuming a zero-based big-endian index. More...

Detailed Description

Defines the BitWizard and BitMinion classes.

A header only utility that defines classes that help with bitwise operations on registers.

Definition in file BitWizard.h.



robot_instance
Author(s):
autogenerated on Sat Jun 8 2019 20:43:12