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

#include <heavydbTypes.h>

+ Inheritance diagram for Geo::Polygon:
+ Collaboration diagram for Geo::Polygon:

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 2164 of file heavydbTypes.h.

Member Function Documentation

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

Definition at line 2170 of file heavydbTypes.h.

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

2170  {
2171  std::vector<std::vector<CT>> result;
2172  auto status = toCoords(result);
2173  if (status != FlatBufferManager::Status::Success) {
2174  throw std::runtime_error(::typeName(this) +
2175  " toCoords failed: " + ::toString(status));
2176  }
2177  return result;
2178  }
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<double> > Geo::Polygon::toCoords ( ) const
inline

Definition at line 2180 of file heavydbTypes.h.

2180  {
2181  return toCoords<double>();
2182  }

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