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

Public Member Functions

 RowFetcher (int8_t *out_base, const int8_t *in_base, const I *indices, const size_t row_sz)
 
__host__ __device__ void operator() (const I index)
 

Public Attributes

int8_t * dst_base
 
const int8_t * src_base
 
const I * idx_base
 
const size_t row_size
 

Detailed Description

template<class I>
struct RowFetcher< I >

Definition at line 237 of file TopKSort.cu.

Constructor & Destructor Documentation

template<class I >
RowFetcher< I >::RowFetcher ( int8_t *  out_base,
const int8_t *  in_base,
const I *  indices,
const size_t  row_sz 
)
inline

Definition at line 238 of file TopKSort.cu.

242  : dst_base(out_base), src_base(in_base), idx_base(indices), row_size(row_sz) {}
int8_t * dst_base
Definition: TopKSort.cu:247
const size_t row_size
Definition: TopKSort.cu:250
const int8_t * src_base
Definition: TopKSort.cu:248
const I * idx_base
Definition: TopKSort.cu:249

Member Function Documentation

template<class I >
__host__ __device__ void RowFetcher< I >::operator() ( const I  index)
inline

Definition at line 243 of file TopKSort.cu.

References RowFetcher< I >::dst_base, RowFetcher< I >::idx_base, RowFetcher< I >::row_size, and RowFetcher< I >::src_base.

243  {
244  memcpy(dst_base + index * row_size, src_base + idx_base[index] * row_size, row_size);
245  }
int8_t * dst_base
Definition: TopKSort.cu:247
const size_t row_size
Definition: TopKSort.cu:250
const int8_t * src_base
Definition: TopKSort.cu:248
const I * idx_base
Definition: TopKSort.cu:249

Member Data Documentation

template<class I >
int8_t* RowFetcher< I >::dst_base

Definition at line 247 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().

template<class I >
const I* RowFetcher< I >::idx_base

Definition at line 249 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().

template<class I >
const size_t RowFetcher< I >::row_size

Definition at line 250 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().

template<class I >
const int8_t* RowFetcher< I >::src_base

Definition at line 248 of file TopKSort.cu.

Referenced by RowFetcher< I >::operator()().


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