OmniSciDB  ca0c39ec8f
 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 128 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 129 of file TopKSort.cu.

130  : rows_base(out_base), key_stride(stride), empty_key(emp_key) {}
const K empty_key
Definition: TopKSort.cu:138
int8_t * rows_base
Definition: TopKSort.cu:136
const size_t key_stride
Definition: TopKSort.cu:137

Member Function Documentation

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

Definition at line 131 of file TopKSort.cu.

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

131  {
132  K* key_ptr = reinterpret_cast<K*>(rows_base + index * key_stride);
133  *key_ptr = empty_key;
134  }
const K empty_key
Definition: TopKSort.cu:138
int8_t * rows_base
Definition: TopKSort.cu:136
const size_t key_stride
Definition: TopKSort.cu:137

Member Data Documentation

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

Definition at line 138 of file TopKSort.cu.

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

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

Definition at line 137 of file TopKSort.cu.

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

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

Definition at line 136 of file TopKSort.cu.

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


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