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

264  : dst_base(out_base), src_base(in_base), idx_base(indices), row_size(row_sz) {}
int8_t * dst_base
Definition: TopKSort.cu:269
const size_t row_size
Definition: TopKSort.cu:272
const int8_t * src_base
Definition: TopKSort.cu:270
const I * idx_base
Definition: TopKSort.cu:271

Member Function Documentation

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

Definition at line 265 of file TopKSort.cu.

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

265  {
266  memcpy(dst_base + index * row_size, src_base + idx_base[index] * row_size, row_size);
267  }
int8_t * dst_base
Definition: TopKSort.cu:269
const size_t row_size
Definition: TopKSort.cu:272
const int8_t * src_base
Definition: TopKSort.cu:270
const I * idx_base
Definition: TopKSort.cu:271

Member Data Documentation

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

Definition at line 269 of file TopKSort.cu.

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

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

Definition at line 271 of file TopKSort.cu.

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

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

Definition at line 272 of file TopKSort.cu.

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

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

Definition at line 270 of file TopKSort.cu.

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


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