OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
flatbuffer::TextEncodingNone Struct Reference

#include <heavydbTypes.h>

+ Inheritance diagram for flatbuffer::TextEncodingNone:
+ Collaboration diagram for flatbuffer::TextEncodingNone:

Public Member Functions

char & operator[] (const int64_t index)
 
DEVICE TextEncodingNoneoperator= (const ::TextEncodingNone &other)
 
DEVICE TextEncodingNoneoperator+= (const ::TextEncodingNone &other)
 
std::string str () const
 
DEVICE TextEncodingNoneoperator= (const std::string &s)
 
DEVICE TextEncodingNoneoperator+= (const std::string &s)
 
std::string getString () const
 
- Public Member Functions inherited from flatbuffer::NestedArray< char >
size_t size () const
 
size_t size (const int64_t index) const
 
void getValuesBuffer (char *&values, int64_t &nof_values, bool &is_null, bool require_1d_item=true) const
 
void getRawBuffer (int8_t *&values, int64_t &nof_values, size_t &value_size, bool &is_null, bool require_1d_item=true) const
 
char & getValue (const int64_t index) const
 
const char operator[] (const int64_t index) const
 
const char getItem (const int64_t index) const
 
bool isNull () const
 
bool isNull (int64_t index) const
 
DEVICE void extend (const int8_t *data, const int32_t size, bool assign=false)
 
void extend (const NestedArray< char > &other, bool assign=false)
 
NestedArray< char > & operator= (const NestedArray< char > &other)
 
NestedArray< char > & operator+= (const NestedArray< char > &other)
 
const SQLTypeInfoLitegetTypeInfo () const
 
std::string toString () const
 

Additional Inherited Members

- Public Attributes inherited from flatbuffer::NestedArray< char >
int8_t * flatbuffer_
 
int64_t index_ [NESTED_ARRAY_NDIM]
 
size_t n_
 

Detailed Description

Definition at line 1607 of file heavydbTypes.h.

Member Function Documentation

std::string flatbuffer::TextEncodingNone::getString ( ) const
inline

Definition at line 1655 of file heavydbTypes.h.

References str().

1655  {
1656  return str();
1657  }
std::string str() const

+ Here is the call graph for this function:

DEVICE TextEncodingNone& flatbuffer::TextEncodingNone::operator+= ( const ::TextEncodingNone other)
inline

Definition at line 1620 of file heavydbTypes.h.

References flatbuffer::NestedArray< char >::extend().

1620  {
1621  extend(reinterpret_cast<const int8_t*>(other.data()),
1622  static_cast<int32_t>(other.size()),
1623  false);
1624  return *this;
1625  }
DEVICE ALWAYS_INLINE char * data() const
Definition: heavydbTypes.h:685
DEVICE ALWAYS_INLINE int64_t size() const
Definition: heavydbTypes.h:688
DEVICE void extend(const int8_t *data, const int32_t size, bool assign=false)

+ Here is the call graph for this function:

DEVICE TextEncodingNone& flatbuffer::TextEncodingNone::operator+= ( const std::string &  s)
inline

Definition at line 1649 of file heavydbTypes.h.

References flatbuffer::NestedArray< char >::extend().

1649  {
1650  extend(
1651  reinterpret_cast<const int8_t*>(s.data()), static_cast<int32_t>(s.size()), false);
1652  return *this;
1653  }
DEVICE void extend(const int8_t *data, const int32_t size, bool assign=false)

+ Here is the call graph for this function:

DEVICE TextEncodingNone& flatbuffer::TextEncodingNone::operator= ( const ::TextEncodingNone other)
inline

Definition at line 1613 of file heavydbTypes.h.

References flatbuffer::NestedArray< char >::extend().

1613  {
1614  extend(reinterpret_cast<const int8_t*>(other.data()),
1615  static_cast<int32_t>(other.size()),
1616  true);
1617  return *this;
1618  }
DEVICE ALWAYS_INLINE char * data() const
Definition: heavydbTypes.h:685
DEVICE ALWAYS_INLINE int64_t size() const
Definition: heavydbTypes.h:688
DEVICE void extend(const int8_t *data, const int32_t size, bool assign=false)

+ Here is the call graph for this function:

DEVICE TextEncodingNone& flatbuffer::TextEncodingNone::operator= ( const std::string &  s)
inline

Definition at line 1643 of file heavydbTypes.h.

References flatbuffer::NestedArray< char >::extend().

1643  {
1644  extend(
1645  reinterpret_cast<const int8_t*>(s.data()), static_cast<int32_t>(s.size()), true);
1646  return *this;
1647  }
DEVICE void extend(const int8_t *data, const int32_t size, bool assign=false)

+ Here is the call graph for this function:

char& flatbuffer::TextEncodingNone::operator[] ( const int64_t  index)
inline

Definition at line 1611 of file heavydbTypes.h.

References flatbuffer::NestedArray< char >::getValue().

1611 { return getValue(index); }
char & getValue(const int64_t index) const

+ Here is the call graph for this function:

std::string flatbuffer::TextEncodingNone::str ( ) const
inline

Definition at line 1630 of file heavydbTypes.h.

References flatbuffer::NestedArray< char >::getValuesBuffer(), is_null(), and run_benchmark_import::result.

Referenced by getString().

1630  {
1631  char* values;
1632  int64_t nof_values;
1633  bool is_null;
1634  getValuesBuffer(values, nof_values, is_null);
1635  if (is_null) {
1636  return {};
1637  }
1638  std::string result;
1639  result.assign(reinterpret_cast<const char*>(values), static_cast<size_t>(nof_values));
1640  return result;
1641  }
CONSTEXPR DEVICE bool is_null(const T &value)
void getValuesBuffer(char *&values, int64_t &nof_values, bool &is_null, bool require_1d_item=true) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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