OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{TypedDataAccessors.h}::NullSentinelSupplier Class Reference

#include <TypedDataAccessors.h>

Classes

struct  FPSelector
 
struct  IntSelector
 

Public Member Functions

template<typename TYPE_INFO , typename VAL >
auto operator() (TYPE_INFO const &ti, VAL const &) const
 

Private Member Functions

template<typename TYPE_INFO >
int64_t get_null_sentinel_for_type (TYPE_INFO const &ti, IntSelector const &) const
 
template<typename TYPE_INFO >
double get_null_sentinel_for_type (TYPE_INFO const &ti, FPSelector const &) const
 

Detailed Description

Definition at line 395 of file TypedDataAccessors.h.

Member Function Documentation

template<typename TYPE_INFO >
int64_t anonymous_namespace{TypedDataAccessors.h}::NullSentinelSupplier::get_null_sentinel_for_type ( TYPE_INFO const &  ti,
IntSelector const &   
) const
inlineprivate

Definition at line 411 of file TypedDataAccessors.h.

References get_logical_type_info(), and inline_int_null_val().

411  {
413  }
SQLTypeInfo get_logical_type_info(const SQLTypeInfo &type_info)
Definition: sqltypes.h:1472
int64_t inline_int_null_val(const SQL_TYPE_INFO &ti)

+ Here is the call graph for this function:

template<typename TYPE_INFO >
double anonymous_namespace{TypedDataAccessors.h}::NullSentinelSupplier::get_null_sentinel_for_type ( TYPE_INFO const &  ti,
FPSelector const &   
) const
inlineprivate

Definition at line 416 of file TypedDataAccessors.h.

References inline_fp_null_val().

416  {
417  return inline_fp_null_val(ti);
418  }
double inline_fp_null_val(const SQL_TYPE_INFO &ti)

+ Here is the call graph for this function:

template<typename TYPE_INFO , typename VAL >
auto anonymous_namespace{TypedDataAccessors.h}::NullSentinelSupplier::operator() ( TYPE_INFO const &  ti,
VAL const &   
) const
inline

Definition at line 398 of file TypedDataAccessors.h.

References run_benchmark_import::type.

398  {
399  using FloatOrIntSelector =
400  typename std::conditional<std::is_floating_point<std::decay_t<VAL> >::value,
401  FPSelector,
402  IntSelector>::type;
403  return get_null_sentinel_for_type(ti, FloatOrIntSelector());
404  }
int64_t get_null_sentinel_for_type(TYPE_INFO const &ti, IntSelector const &) const

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