CUB  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Methods | Public Members | List of all members
cub::ShiftDigitExtractor< KeyT > Struct Template Reference

Detailed description

template< typename KeyT>
struct cub::ShiftDigitExtractor< KeyT >

A wrapper type to extract digits. Uses a combination of shift and bitwise and to extract digits.

Inheritance diagram for cub::ShiftDigitExtractor< KeyT >:
cub::BaseDigitExtractor< KeyT >

Public Methods

__device__ __forceinline__ ShiftDigitExtractor (uint32_t bit_start=0, uint32_t num_bits=0)
 
__device__ __forceinline__ uint32_t Digit (UnsignedBits key)
 

Public Members

uint32_t bit_start
 
uint32_t mask
 

Additional Inherited Members

- Public Types inherited from cub::BaseDigitExtractor< KeyT >
enum  { FLOAT_KEY = TraitsT::CATEGORY == FLOATING_POINT }
 
typedef Traits< KeyT > TraitsT
 
typedef TraitsT::UnsignedBits UnsignedBits
 
- Static Public Methods inherited from cub::BaseDigitExtractor< KeyT >
static __device__
__forceinline__ UnsignedBits 
ProcessFloatMinusZero (UnsignedBits key)
 

Constructor & Destructor Documentation

template<typename KeyT >
__device__ __forceinline__ cub::ShiftDigitExtractor< KeyT >::ShiftDigitExtractor ( uint32_t  bit_start = 0,
uint32_t  num_bits = 0 
)
inlineexplicit

Member Function Documentation

template<typename KeyT >
__device__ __forceinline__ uint32_t cub::ShiftDigitExtractor< KeyT >::Digit ( UnsignedBits  key)
inline

Member Data Documentation

template<typename KeyT >
uint32_t cub::ShiftDigitExtractor< KeyT >::bit_start
template<typename KeyT >
uint32_t cub::ShiftDigitExtractor< KeyT >::mask

The documentation for this struct was generated from the following file: