OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
is_taken_entry< K, I > Struct Template Reference

Public Member Functions

 is_taken_entry (const int8_t *buff, const size_t stride)
 
__host__ __device__ bool operator() (const I index)
 

Public Attributes

const int8_t * buff_ptr
 
const size_t key_stride
 

Detailed Description

template<class K, class I = int32_t>
struct is_taken_entry< K, I >

Definition at line 38 of file TopKSort.cu.

Constructor & Destructor Documentation

template<class K , class I = int32_t>
is_taken_entry< K, I >::is_taken_entry ( const int8_t *  buff,
const size_t  stride 
)
inline

Definition at line 39 of file TopKSort.cu.

40  : buff_ptr(buff), key_stride(stride) {}
const int8_t * buff_ptr
Definition: TopKSort.cu:44
const size_t key_stride
Definition: TopKSort.cu:45

Member Function Documentation

template<class K , class I = int32_t>
__host__ __device__ bool is_taken_entry< K, I >::operator() ( const I  index)
inline

Definition at line 41 of file TopKSort.cu.

References is_taken_entry< K, I >::buff_ptr, and is_taken_entry< K, I >::key_stride.

41  {
42  return !is_empty_entry<K>(static_cast<size_t>(index), buff_ptr, key_stride);
43  }
const int8_t * buff_ptr
Definition: TopKSort.cu:44
const size_t key_stride
Definition: TopKSort.cu:45

Member Data Documentation

template<class K , class I = int32_t>
const int8_t* is_taken_entry< K, I >::buff_ptr

Definition at line 44 of file TopKSort.cu.

Referenced by is_taken_entry< K, I >::operator()().

template<class K , class I = int32_t>
const size_t is_taken_entry< K, I >::key_stride

Definition at line 45 of file TopKSort.cu.

Referenced by is_taken_entry< K, I >::operator()().


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