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

Member Typedef Documentation

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

Definition at line 93 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 97 of file sqltypes.h.

98  : VarlenDatum(l, p.get(), n), data_ptr(p) {}
DEVICE VarlenDatum()
Definition: sqltypes.h:78
ManagedPtr data_ptr
Definition: sqltypes.h:115
HostArrayDatum::HostArrayDatum ( size_t const  l,
int8_t *  p,
bool const  n 
)
inline

Definition at line 100 of file sqltypes.h.

101  : VarlenDatum(l, p, n), data_ptr(p, FreeDeleter()){};
DEVICE VarlenDatum()
Definition: sqltypes.h:78
ManagedPtr data_ptr
Definition: sqltypes.h:115
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 106 of file sqltypes.h.

107  : VarlenDatum(l, p, 0 == l), data_ptr(p, custom_deleter) {}
DEVICE VarlenDatum()
Definition: sqltypes.h:78
ManagedPtr data_ptr
Definition: sqltypes.h:115
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 112 of file sqltypes.h.

113  : VarlenDatum(l, p, n), data_ptr(p, custom_deleter) {}
DEVICE VarlenDatum()
Definition: sqltypes.h:78
ManagedPtr data_ptr
Definition: sqltypes.h:115

Member Data Documentation

ManagedPtr HostArrayDatum::data_ptr

Definition at line 115 of file sqltypes.h.


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