OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ArrayContextTypeSizer< CORE_TYPE > Class Template Reference

#include <sqltypes.h>

Public Member Functions

int get_array_context_logical_size () const
 

Detailed Description

template<typename CORE_TYPE>
class ArrayContextTypeSizer< CORE_TYPE >

Definition at line 215 of file sqltypes.h.

Member Function Documentation

template<typename CORE_TYPE>
int ArrayContextTypeSizer< CORE_TYPE >::get_array_context_logical_size ( ) const
inline

Definition at line 217 of file sqltypes.h.

217  {
218  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
219  if (is_member_of_typeset<kCHAR, kTEXT, kVARCHAR>(*derived)) {
220  auto comp_type(derived->get_compression());
221  if (comp_type == kENCODING_DICT || comp_type == kENCODING_FIXED ||
222  comp_type == kENCODING_NONE) {
223  return sizeof(int32_t);
224  }
225  }
226  return derived->get_logical_size();
227  }

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