OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 105 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 106 of file TopKSort.cu.

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

Member Function Documentation

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

Definition at line 111 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.

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

Member Data Documentation

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

Definition at line 118 of file TopKSort.cu.

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

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

Definition at line 115 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 116 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 117 of file TopKSort.cu.

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


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