OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 39 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 40 of file TopKSort.cu.

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

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 42 of file TopKSort.cu.

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

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

Member Data Documentation

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

Definition at line 45 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 46 of file TopKSort.cu.

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


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