OmniSciDB  f17484ade4
 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 1600 of file heavydbTypes.h.

Member Function Documentation

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

Definition at line 1648 of file heavydbTypes.h.

References str().

1648  {
1649  return str();
1650  }
std::string str() const

+ 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  false);
1617  return *this;
1618  }
DEVICE ALWAYS_INLINE char * data() const
Definition: heavydbTypes.h:683
DEVICE ALWAYS_INLINE int64_t size() const
Definition: heavydbTypes.h:686
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 1642 of file heavydbTypes.h.

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

1642  {
1643  extend(
1644  reinterpret_cast<const int8_t*>(s.data()), static_cast<int32_t>(s.size()), false);
1645  return *this;
1646  }
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 1606 of file heavydbTypes.h.

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

1606  {
1607  extend(reinterpret_cast<const int8_t*>(other.data()),
1608  static_cast<int32_t>(other.size()),
1609  true);
1610  return *this;
1611  }
DEVICE ALWAYS_INLINE char * data() const
Definition: heavydbTypes.h:683
DEVICE ALWAYS_INLINE int64_t size() const
Definition: heavydbTypes.h:686
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 1636 of file heavydbTypes.h.

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

1636  {
1637  extend(
1638  reinterpret_cast<const int8_t*>(s.data()), static_cast<int32_t>(s.size()), true);
1639  return *this;
1640  }
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 1604 of file heavydbTypes.h.

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

1604 { 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 1623 of file heavydbTypes.h.

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

Referenced by getString().

1623  {
1624  char* values;
1625  int64_t nof_values;
1626  bool is_null;
1627  getValuesBuffer(values, nof_values, is_null);
1628  if (is_null) {
1629  return {};
1630  }
1631  std::string result;
1632  result.assign(reinterpret_cast<const char*>(values), static_cast<size_t>(nof_values));
1633  return result;
1634  }
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: