OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 122 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 123 of file TopKSort.cu.

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

Member Function Documentation

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

Definition at line 125 of file TopKSort.cu.

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

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

Member Data Documentation

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

Definition at line 132 of file TopKSort.cu.

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

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

Definition at line 131 of file TopKSort.cu.

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

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

Definition at line 130 of file TopKSort.cu.

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


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