OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Geo::MultiPoint Struct Reference

#include <heavydbTypes.h>

+ Inheritance diagram for Geo::MultiPoint:
+ Collaboration diagram for Geo::MultiPoint:

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 2112 of file heavydbTypes.h.

Member Function Documentation

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

Definition at line 2113 of file heavydbTypes.h.

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

2113  {
2114  return getPoint(static_cast<int64_t>(index));
2115  }
DEVICE Point2D getPoint(const int64_t index) const

+ Here is the call graph for this function:

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

Definition at line 2122 of file heavydbTypes.h.

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

2122  {
2123  std::vector<CT> result;
2124  auto status = toCoords(result);
2125  if (status != FlatBufferManager::Status::Success) {
2126 #ifndef __CUDACC__
2127  throw std::runtime_error(::typeName(this) +
2128  " toCoords failed: " + ::toString(status));
2129 #endif
2130  }
2131  return result;
2132  }
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<double> Geo::MultiPoint::toCoords ( ) const
inline

Definition at line 2134 of file heavydbTypes.h.

2134  {
2135  return toCoords<double>();
2136  }

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