OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KeyReseter< K > Struct Template Reference

Public Member Functions

 KeyReseter (int8_t *out_base, const size_t stride, const K emp_key)
 
__host__ __device__ void operator() (const size_t index)
 

Public Attributes

int8_t * rows_base
 
const size_t key_stride
 
const K empty_key
 

Detailed Description

template<class K>
struct KeyReseter< K >

Definition at line 123 of file TopKSort.cu.

Constructor & Destructor Documentation

template<class K >
KeyReseter< K >::KeyReseter ( int8_t *  out_base,
const size_t  stride,
const K  emp_key 
)
inline

Definition at line 124 of file TopKSort.cu.

125  : rows_base(out_base), key_stride(stride), empty_key(emp_key) {}
const K empty_key
Definition: TopKSort.cu:133
int8_t * rows_base
Definition: TopKSort.cu:131
const size_t key_stride
Definition: TopKSort.cu:132

Member Function Documentation

template<class K >
__host__ __device__ void KeyReseter< K >::operator() ( const size_t  index)
inline

Definition at line 126 of file TopKSort.cu.

References KeyReseter< K >::empty_key, KeyReseter< K >::key_stride, and KeyReseter< K >::rows_base.

126  {
127  K* key_ptr = reinterpret_cast<K*>(rows_base + index * key_stride);
128  *key_ptr = empty_key;
129  }
const K empty_key
Definition: TopKSort.cu:133
int8_t * rows_base
Definition: TopKSort.cu:131
const size_t key_stride
Definition: TopKSort.cu:132

Member Data Documentation

template<class K >
const K KeyReseter< K >::empty_key

Definition at line 133 of file TopKSort.cu.

Referenced by KeyReseter< K >::operator()().

template<class K >
const size_t KeyReseter< K >::key_stride

Definition at line 132 of file TopKSort.cu.

Referenced by KeyReseter< K >::operator()().

template<class K >
int8_t* KeyReseter< K >::rows_base

Definition at line 131 of file TopKSort.cu.

Referenced by KeyReseter< K >::operator()().


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