OmniSciDB  7bf56492aa
 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 90 of file sqltypes.h.

Member Typedef Documentation

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

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

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

Definition at line 98 of file sqltypes.h.

99  : VarlenDatum(l, p, n), data_ptr(p, FreeDeleter()){};
DEVICE VarlenDatum()
Definition: sqltypes.h:76
ManagedPtr data_ptr
Definition: sqltypes.h:113
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 104 of file sqltypes.h.

105  : VarlenDatum(l, p, 0 == l), data_ptr(p, custom_deleter) {}
DEVICE VarlenDatum()
Definition: sqltypes.h:76
ManagedPtr data_ptr
Definition: sqltypes.h:113
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 110 of file sqltypes.h.

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

Member Data Documentation

ManagedPtr HostArrayDatum::data_ptr

Definition at line 113 of file sqltypes.h.


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