OmniSciDB  ba1bac9284
 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 243 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 244 of file TopKSort.cu.

248  : dst_base(out_base), src_base(in_base), idx_base(indices), row_size(row_sz) {}
int8_t * dst_base
Definition: TopKSort.cu:253
const size_t row_size
Definition: TopKSort.cu:256
const int8_t * src_base
Definition: TopKSort.cu:254
const I * idx_base
Definition: TopKSort.cu:255

Member Function Documentation

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

Definition at line 249 of file TopKSort.cu.

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

249  {
250  memcpy(dst_base + index * row_size, src_base + idx_base[index] * row_size, row_size);
251  }
int8_t * dst_base
Definition: TopKSort.cu:253
const size_t row_size
Definition: TopKSort.cu:256
const int8_t * src_base
Definition: TopKSort.cu:254
const I * idx_base
Definition: TopKSort.cu:255

Member Data Documentation

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

Definition at line 253 of file TopKSort.cu.

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

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

Definition at line 255 of file TopKSort.cu.

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

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

Definition at line 256 of file TopKSort.cu.

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

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

Definition at line 254 of file TopKSort.cu.

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


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