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

#include <heavydbTypes.h>

+ Inheritance diagram for Geo::MultiPolygon:
+ Collaboration diagram for Geo::MultiPolygon:

Public Member Functions

template<typename CT >
std::vector< std::vector
< std::vector< CT > > > 
toCoords () const
 
std::vector< std::vector
< std::vector< double > > > 
toCoords () const
 
- Public Member Functions inherited from Geo::GeoNestedArray< Polygon >
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< Polygon >
size_t size () const
 
size_t size (const int64_t index) const
 
void getValuesBuffer (Polygon *&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
 
Polygon & getValue (const int64_t index) const
 
const Polygon operator[] (const int64_t index) const
 
const Polygon 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< Polygon > &other, bool assign=false)
 
NestedArray< Polygon > & operator= (const NestedArray< Polygon > &other)
 
NestedArray< Polygon > & operator+= (const NestedArray< Polygon > &other)
 
const SQLTypeInfoLitegetTypeInfo () const
 
std::string toString () const
 

Additional Inherited Members

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

Detailed Description

Definition at line 2187 of file heavydbTypes.h.

Member Function Documentation

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

Definition at line 2193 of file heavydbTypes.h.

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

2193  {
2194  std::vector<std::vector<std::vector<CT>>> result;
2195  auto status = toCoords(result);
2196  if (status != FlatBufferManager::Status::Success) {
2197  throw std::runtime_error(::typeName(this) +
2198  " toCoords failed: " + ::toString(status));
2199  }
2200  return result;
2201  }
std::vector< std::vector< std::vector< CT > > > toCoords() const
std::string typeName(const T *v)
Definition: toString.h:106

+ Here is the call graph for this function:

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

Definition at line 2203 of file heavydbTypes.h.

2203  {
2204  return toCoords<double>();
2205  }

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