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

#include <heavydbTypes.h>

+ Inheritance diagram for Geo::LineString:
+ Collaboration diagram for Geo::LineString:

Public Member Functions

DEVICE Point2D operator[] (const unsigned int index) const
 
template<typename CT >
std::vector< CT > toCoords () const
 
std::vector< double > toCoords () const
 
- Public Member Functions inherited from Geo::GeoNestedArray< Point2D >
DEVICE Point2D getPoint (const int64_t index) const
 
FlatBufferManager::Status toCoordsWorker (std::vector< VT > &result) const
 
FlatBufferManager::Status toCoords (std::vector< CT > &result) const
 
FlatBufferManager::Status toCoords (std::vector< std::vector< CT >> &result) const
 
FlatBufferManager::Status toCoords (std::vector< std::vector< std::vector< CT >>> &result) const
 
FlatBufferManager::Status fromCoordsWorker (const VT &coords)
 
FlatBufferManager::Status fromCoords (const std::vector< CT > &coords)
 
FlatBufferManager::Status fromCoords (const std::vector< std::vector< CT >> &coords)
 
FlatBufferManager::Status fromCoords (const std::vector< std::vector< std::vector< CT >>> &coords)
 
- Public Member Functions inherited from flatbuffer::NestedArray< Point2D >
size_t size () const
 
size_t size (const int64_t index) const
 
void getValuesBuffer (Point2D *&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
 
Point2D & getValue (const int64_t index) const
 
const Point2D operator[] (const int64_t index) const
 
const Point2D 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< Point2D > &other, bool assign=false)
 
NestedArray< Point2D > & operator= (const NestedArray< Point2D > &other)
 
NestedArray< Point2D > & operator+= (const NestedArray< Point2D > &other)
 
const SQLTypeInfoLitegetTypeInfo () const
 
std::string toString () const
 

Additional Inherited Members

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

Detailed Description

Definition at line 2083 of file heavydbTypes.h.

Member Function Documentation

DEVICE Point2D Geo::LineString::operator[] ( const unsigned int  index) const
inline

Definition at line 2084 of file heavydbTypes.h.

References Geo::GeoNestedArray< Point2D >::getPoint().

2084  {
2085  return getPoint(static_cast<int64_t>(index));
2086  }
DEVICE Point2D getPoint(const int64_t index) const

+ Here is the call graph for this function:

template<typename CT >
std::vector<CT> Geo::LineString::toCoords ( ) const
inline

Definition at line 2093 of file heavydbTypes.h.

References run_benchmark_import::result, flatbuffer::NestedArray< Point2D >::toString(), and typeName().

Referenced by ct_make_multipolygon__cpu_(), and ct_make_polygon3__cpu_().

2093  {
2094  std::vector<CT> result;
2095  auto status = toCoords(result);
2096  if (status != FlatBufferManager::Status::Success) {
2097 #ifndef __CUDACC__
2098  throw std::runtime_error(::typeName(this) +
2099  " toCoords failed: " + ::toString(status));
2100 #endif
2101  }
2102  return result;
2103  }
std::vector< CT > toCoords() const
std::string typeName(const T *v)
Definition: toString.h:106

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector<double> Geo::LineString::toCoords ( ) const
inline

Definition at line 2105 of file heavydbTypes.h.

2105  {
2106  return toCoords<double>();
2107  }

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