OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColumnList< T > Struct Template Reference

#include <OmniSciTypes.h>

Public Member Functions

DEVICE int64_t size () const
 
DEVICE int64_t numCols () const
 
DEVICE Column< T > operator[] (const int index) const
 

Public Attributes

int8_t ** ptrs_
 
int64_t num_cols_
 
int64_t size_
 

Detailed Description

template<typename T>
struct ColumnList< T >

Definition at line 283 of file OmniSciTypes.h.

Member Function Documentation

template<typename T>
DEVICE int64_t ColumnList< T >::numCols ( ) const
inline

Definition at line 289 of file OmniSciTypes.h.

References ColumnList< T >::num_cols_.

Referenced by column_list_first_last(), column_list_row_sum__cpu_(), and column_list_safe_row_sum__cpu_template().

289 { return num_cols_; }
int64_t num_cols_
Definition: OmniSciTypes.h:285

+ Here is the caller graph for this function:

template<typename T>
DEVICE Column<T> ColumnList< T >::operator[] ( const int  index) const
inline

Definition at line 290 of file OmniSciTypes.h.

References ColumnList< T >::num_cols_, ColumnList< T >::ptrs_, run_benchmark_import::result, ColumnList< T >::size_, omnisci.dtypes::T, to_string(), toString(), and typeName().

290  {
291  if (index >= 0 && index < num_cols_)
292  return {reinterpret_cast<T*>(ptrs_[index]), size_};
293  else
294  return {nullptr, -1};
295  }
int64_t size_
Definition: OmniSciTypes.h:286
int8_t ** ptrs_
Definition: OmniSciTypes.h:284
int64_t num_cols_
Definition: OmniSciTypes.h:285

+ Here is the call graph for this function:

template<typename T>
DEVICE int64_t ColumnList< T >::size ( ) const
inline

Definition at line 288 of file OmniSciTypes.h.

References ColumnList< T >::size_.

Referenced by ct_binding_dict_encoded4__cpu_1(), ct_binding_dict_encoded5__cpu_1(), and ct_binding_dict_encoded6__cpu_1().

288 { return size_; }
int64_t size_
Definition: OmniSciTypes.h:286

+ Here is the caller graph for this function:

Member Data Documentation

template<typename T>
int64_t ColumnList< T >::num_cols_

Definition at line 285 of file OmniSciTypes.h.

Referenced by ColumnList< T >::numCols(), and ColumnList< T >::operator[]().

template<typename T>
int8_t** ColumnList< T >::ptrs_

Definition at line 284 of file OmniSciTypes.h.

Referenced by ColumnList< T >::operator[]().

template<typename T>
int64_t ColumnList< T >::size_

Definition at line 286 of file OmniSciTypes.h.

Referenced by ColumnList< T >::operator[](), and ColumnList< T >::size().


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