OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 231 of file sqltypes.h.

Member Function Documentation

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

Definition at line 244 of file sqltypes.h.

244  {
245  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
246  if (is_member_of_typeset<kDATE>(*derived)) {
247  return true;
248  }
249  return false;
250  }
template<typename CORE_TYPE >
constexpr auto DateTimeFacilities< CORE_TYPE >::is_date_in_days ( ) const
inline

Definition at line 233 of file sqltypes.h.

References kENCODING_DATE_IN_DAYS.

233  {
234  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
235  if (is_member_of_typeset<kDATE>(*derived)) {
236  auto comp_type(derived->get_compression());
237  if (comp_type == kENCODING_DATE_IN_DAYS) {
238  return true;
239  }
240  }
241  return false;
242  }
template<typename CORE_TYPE >
constexpr auto DateTimeFacilities< CORE_TYPE >::is_high_precision_timestamp ( ) const
inline

Definition at line 252 of file sqltypes.h.

252  {
253  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
254  if (is_member_of_typeset<kTIMESTAMP>(*derived)) {
255  auto dimension(derived->get_dimension());
256  if (dimension > 0) {
257  return true;
258  }
259  }
260  return false;
261  }
template<typename CORE_TYPE >
constexpr auto DateTimeFacilities< CORE_TYPE >::is_timestamp ( ) const
inline

Definition at line 263 of file sqltypes.h.

263  {
264  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
265  if (is_member_of_typeset<kTIMESTAMP>(*derived)) {
266  return true;
267  }
268  return false;
269  }

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