OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 203 of file OmniSciTypes.h.

Member Function Documentation

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

Definition at line 209 of file OmniSciTypes.h.

References ColumnList< T >::num_cols_.

Referenced by column_list_first_last(), and column_list_row_sum__cpu_().

209 { return num_cols_; }
int64_t num_cols_
Definition: OmniSciTypes.h:205

+ 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 210 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().

210  {
211  if (index >= 0 && index < num_cols_)
212  return {reinterpret_cast<T*>(ptrs_[index]), size_};
213  else
214  return {nullptr, -1};
215  }
int64_t size_
Definition: OmniSciTypes.h:206
int8_t ** ptrs_
Definition: OmniSciTypes.h:204
int64_t num_cols_
Definition: OmniSciTypes.h:205

+ Here is the call graph for this function:

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

Definition at line 208 of file OmniSciTypes.h.

References ColumnList< T >::size_.

208 { return size_; }
int64_t size_
Definition: OmniSciTypes.h:206

Member Data Documentation

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

Definition at line 205 of file OmniSciTypes.h.

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

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

Definition at line 204 of file OmniSciTypes.h.

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

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

Definition at line 206 of file OmniSciTypes.h.

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


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