libcuspatial
23.12.00
Loading...
Searching...
No Matches
include
cuspatial
column
geometry_column_view.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023, NVIDIA CORPORATION.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#pragma once
18
19
#include <
cuspatial/range/range.cuh
>
20
#include <
cuspatial/types.hpp
>
21
22
#include <cudf/lists/lists_column_view.hpp>
23
#include <cudf/types.hpp>
24
25
namespace
cuspatial {
26
38
class
geometry_column_view
:
private
cudf::lists_column_view {
39
public
:
40
geometry_column_view
(cudf::column_view
const
& column,
41
collection_type_id
collection_type,
42
geometry_type_id
geometry_type);
43
geometry_column_view
(
geometry_column_view
&&) =
default
;
44
geometry_column_view
(
const
geometry_column_view
&) =
default
;
45
~geometry_column_view
() =
default
;
46
47
geometry_column_view
& operator=(
geometry_column_view
const
&) =
default
;
48
49
geometry_column_view
& operator=(
geometry_column_view
&&) =
default
;
50
51
geometry_type_id
geometry_type()
const
{
return
_geometry_type; }
52
53
collection_type_id
collection_type()
const
{
return
_collection_type; }
54
55
cudf::data_type coordinate_type()
const
;
56
57
using
cudf::lists_column_view::child;
58
using
cudf::lists_column_view::offsets;
59
using
cudf::lists_column_view::size;
60
61
protected
:
62
collection_type_id
_collection_type;
63
geometry_type_id
_geometry_type;
64
};
65
66
}
// namespace cuspatial
cuspatial::geometry_column_view
A non-owning, immutable view of a geometry column.
Definition
geometry_column_view.hpp:38
range.cuh
types.hpp
cuspatial::geometry_type_id
geometry_type_id
The underlying geometry type of a geometry_column_view.
Definition
types.hpp:26
cuspatial::collection_type_id
collection_type_id
The underlying collection type of a geometry_column_view.
Definition
types.hpp:31
Generated by
1.9.8