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

#include <heavydbTypes.h>

Public Member Functions

DEVICE int64_t size () const
 
DEVICE int64_t numCols () const
 
DEVICE Column< Array< T > > operator[] (const int index) const
 
std::string toString () const
 

Public Attributes

int8_t ** ptrs_
 
int64_t num_cols_
 
int64_t num_rows_
 

Detailed Description

template<typename T>
struct ColumnList< Array< T > >

Definition at line 2518 of file heavydbTypes.h.

Member Function Documentation

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

Definition at line 2524 of file heavydbTypes.h.

2524 { return num_cols_; }
template<typename T >
DEVICE Column<Array<T> > ColumnList< Array< T > >::operator[] ( const int  index) const
inline

Definition at line 2525 of file heavydbTypes.h.

References run_benchmark_import::result.

2525  {
2526  int8_t* ptr = ((index >= 0 && index < num_cols_) ? ptrs_[index] : nullptr);
2527  int64_t num_rows = ((index >= 0 && index < num_cols_) ? num_rows_ : -1);
2528  Column<Array<T>> result(ptr, num_rows);
2529  return result;
2530  }
template<typename T >
DEVICE int64_t ColumnList< Array< T > >::size ( ) const
inline

Definition at line 2523 of file heavydbTypes.h.

2523 { return num_rows_; }
template<typename T >
std::string ColumnList< Array< T > >::toString ( ) const
inline

Definition at line 2534 of file heavydbTypes.h.

References run_benchmark_import::result, to_string(), toString(), and typeName().

2534  {
2535  std::string result = ::typeName(this) + "(ptrs=[";
2536  for (int64_t index = 0; index < num_cols_; index++) {
2537  result += ::toString(reinterpret_cast<void*>(ptrs_[index])) +
2538  (index < num_cols_ - 1 ? ", " : "");
2539  }
2540  result += "], num_cols=" + std::to_string(num_cols_) +
2541  ", num_rows=" + std::to_string(num_rows_) + ")";
2542  return result;
2543  }
std::string toString() const
std::string to_string(char const *&&v)
std::string typeName(const T *v)
Definition: toString.h:106

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 2520 of file heavydbTypes.h.

template<typename T >
int64_t ColumnList< Array< T > >::num_rows_

Definition at line 2521 of file heavydbTypes.h.

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

Definition at line 2519 of file heavydbTypes.h.


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