OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HostArrayDatum Struct Reference

#include <sqltypes.h>

+ Inheritance diagram for HostArrayDatum:
+ Collaboration diagram for HostArrayDatum:

Public Types

using ManagedPtr = std::shared_ptr< int8_t >
 

Public Member Functions

 HostArrayDatum ()=default
 
 HostArrayDatum (size_t const l, ManagedPtr p, bool const n)
 
 HostArrayDatum (size_t const l, int8_t *p, bool const n)
 
template<typename CUSTOM_DELETER , typename = std::enable_if_t< std::is_void<std::result_of_t<CUSTOM_DELETER(int8_t*)> >::value>>
 HostArrayDatum (size_t const l, int8_t *p, CUSTOM_DELETER custom_deleter)
 
template<typename CUSTOM_DELETER , typename = std::enable_if_t< std::is_void<std::result_of_t<CUSTOM_DELETER(int8_t*)> >::value>>
 HostArrayDatum (size_t const l, int8_t *p, bool const n, CUSTOM_DELETER custom_deleter)
 
- Public Member Functions inherited from VarlenDatum
DEVICE VarlenDatum ()
 
virtual DEVICE ~VarlenDatum ()
 
 VarlenDatum (const size_t l, int8_t *p, const bool n)
 

Public Attributes

ManagedPtr data_ptr
 
- Public Attributes inherited from VarlenDatum
size_t length
 
int8_t * pointer
 
bool is_null
 

Detailed Description

Definition at line 190 of file sqltypes.h.

Member Typedef Documentation

using HostArrayDatum::ManagedPtr = std::shared_ptr<int8_t>

Definition at line 191 of file sqltypes.h.

Constructor & Destructor Documentation

HostArrayDatum::HostArrayDatum ( )
default
HostArrayDatum::HostArrayDatum ( size_t const  l,
ManagedPtr  p,
bool const  n 
)
inline

Definition at line 195 of file sqltypes.h.

196  : VarlenDatum(l, p.get(), n), data_ptr(p) {}
DEVICE VarlenDatum()
Definition: Datum.h:61
ManagedPtr data_ptr
Definition: sqltypes.h:213
constexpr double n
Definition: Utm.h:38
HostArrayDatum::HostArrayDatum ( size_t const  l,
int8_t *  p,
bool const  n 
)
inline

Definition at line 198 of file sqltypes.h.

199  : VarlenDatum(l, p, n), data_ptr(p, FreeDeleter()){};
DEVICE VarlenDatum()
Definition: Datum.h:61
ManagedPtr data_ptr
Definition: sqltypes.h:213
constexpr double n
Definition: Utm.h:38
template<typename CUSTOM_DELETER , typename = std::enable_if_t< std::is_void<std::result_of_t<CUSTOM_DELETER(int8_t*)> >::value>>
HostArrayDatum::HostArrayDatum ( size_t const  l,
int8_t *  p,
CUSTOM_DELETER  custom_deleter 
)
inline

Definition at line 204 of file sqltypes.h.

205  : VarlenDatum(l, p, 0 == l), data_ptr(p, custom_deleter) {}
DEVICE VarlenDatum()
Definition: Datum.h:61
ManagedPtr data_ptr
Definition: sqltypes.h:213
template<typename CUSTOM_DELETER , typename = std::enable_if_t< std::is_void<std::result_of_t<CUSTOM_DELETER(int8_t*)> >::value>>
HostArrayDatum::HostArrayDatum ( size_t const  l,
int8_t *  p,
bool const  n,
CUSTOM_DELETER  custom_deleter 
)
inline

Definition at line 210 of file sqltypes.h.

211  : VarlenDatum(l, p, n), data_ptr(p, custom_deleter) {}
DEVICE VarlenDatum()
Definition: Datum.h:61
ManagedPtr data_ptr
Definition: sqltypes.h:213
constexpr double n
Definition: Utm.h:38

Member Data Documentation

ManagedPtr HostArrayDatum::data_ptr

Definition at line 213 of file sqltypes.h.


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