OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KeyFetcher< K, I > Struct Template Reference

Public Member Functions

 KeyFetcher (K *out_base, const int8_t *src_oe_base, const size_t stride, const I *indices)
 
__host__ __device__ void operator() (const I index)
 

Public Attributes

K * key_base
 
const int8_t * oe_base
 
const size_t oe_stride
 
const I * idx_base
 

Detailed Description

template<class K, class I>
struct KeyFetcher< K, I >

Definition at line 106 of file TopKSort.cu.

Constructor & Destructor Documentation

template<class K , class I >
KeyFetcher< K, I >::KeyFetcher ( K *  out_base,
const int8_t *  src_oe_base,
const size_t  stride,
const I *  indices 
)
inline

Definition at line 107 of file TopKSort.cu.

111  : key_base(out_base), oe_base(src_oe_base), oe_stride(stride), idx_base(indices) {}
const I * idx_base
Definition: TopKSort.cu:119
const int8_t * oe_base
Definition: TopKSort.cu:117
const size_t oe_stride
Definition: TopKSort.cu:118
K * key_base
Definition: TopKSort.cu:116

Member Function Documentation

template<class K , class I >
__host__ __device__ void KeyFetcher< K, I >::operator() ( const I  index)
inline

Definition at line 112 of file TopKSort.cu.

References KeyFetcher< K, I >::idx_base, KeyFetcher< K, I >::key_base, KeyFetcher< K, I >::oe_base, and KeyFetcher< K, I >::oe_stride.

112  {
113  key_base[index] = *reinterpret_cast<const K*>(oe_base + idx_base[index] * oe_stride);
114  }
const I * idx_base
Definition: TopKSort.cu:119
const int8_t * oe_base
Definition: TopKSort.cu:117
const size_t oe_stride
Definition: TopKSort.cu:118
K * key_base
Definition: TopKSort.cu:116

Member Data Documentation

template<class K , class I >
const I* KeyFetcher< K, I >::idx_base

Definition at line 119 of file TopKSort.cu.

Referenced by KeyFetcher< K, I >::operator()().

template<class K , class I >
K* KeyFetcher< K, I >::key_base

Definition at line 116 of file TopKSort.cu.

Referenced by KeyFetcher< K, I >::operator()().

template<class K , class I >
const int8_t* KeyFetcher< K, I >::oe_base

Definition at line 117 of file TopKSort.cu.

Referenced by KeyFetcher< K, I >::operator()().

template<class K , class I >
const size_t KeyFetcher< K, I >::oe_stride

Definition at line 118 of file TopKSort.cu.

Referenced by KeyFetcher< K, I >::operator()().


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