OmniSciDB  04ee39c94c
DateTimeFacilities< CORE_TYPE > Class Template Reference

#include <sqltypes.h>

Public Member Functions

constexpr auto is_date_in_days () const
 
constexpr auto is_date () const
 
constexpr auto is_high_precision_timestamp () const
 
constexpr auto is_timestamp () const
 

Detailed Description

template<typename CORE_TYPE>
class DateTimeFacilities< CORE_TYPE >

Definition at line 228 of file sqltypes.h.

Member Function Documentation

◆ is_date()

template<typename CORE_TYPE >
constexpr auto DateTimeFacilities< CORE_TYPE >::is_date ( ) const
inline

Definition at line 241 of file sqltypes.h.

241  {
242  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
243  if (is_member_of_typeset<kDATE>(*derived)) {
244  return true;
245  }
246  return false;
247  }

◆ is_date_in_days()

template<typename CORE_TYPE >
constexpr auto DateTimeFacilities< CORE_TYPE >::is_date_in_days ( ) const
inline

Definition at line 230 of file sqltypes.h.

References kENCODING_DATE_IN_DAYS.

230  {
231  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
232  if (is_member_of_typeset<kDATE>(*derived)) {
233  auto comp_type(derived->get_compression());
234  if (comp_type == kENCODING_DATE_IN_DAYS) {
235  return true;
236  }
237  }
238  return false;
239  }

◆ is_high_precision_timestamp()

template<typename CORE_TYPE >
constexpr auto DateTimeFacilities< CORE_TYPE >::is_high_precision_timestamp ( ) const
inline

Definition at line 249 of file sqltypes.h.

249  {
250  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
251  if (is_member_of_typeset<kTIMESTAMP>(*derived)) {
252  auto dimension(derived->get_dimension());
253  if (dimension > 0) {
254  return true;
255  }
256  }
257  return false;
258  }

◆ is_timestamp()

template<typename CORE_TYPE >
constexpr auto DateTimeFacilities< CORE_TYPE >::is_timestamp ( ) const
inline

Definition at line 260 of file sqltypes.h.

260  {
261  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
262  if (is_member_of_typeset<kTIMESTAMP>(*derived)) {
263  return true;
264  }
265  return false;
266  }

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