Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
core
hashmap
CUDA
SlabTraits.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - Open3D: www.open3d.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.open3d.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
// Copyright 2019 Saman Ashkiani
9
//
10
// Licensed under the Apache License, Version 2.0 (the "License");
11
// you may not use this file except in compliance with the License.
12
// You may obtain a copy of the License at
13
//
14
// http://www.apache.org/licenses/LICENSE-2.0
15
//
16
// Unless required by applicable law or agreed to in writing, software
17
// distributed under the License is distributed on an "AS IS" BASIS,
18
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19
// implied. See the License for the specific language governing permissions
20
// and limitations under the License.
21
22
#pragma once
23
#include <cstdint>
24
25
#include "
open3d/core/CUDAUtils.h
"
26
27
namespace
open3d
{
28
namespace
core
{
29
30
struct
iterator_t
{
31
OPEN3D_HOST_DEVICE
iterator_t
() :
first
(nullptr),
second
(nullptr) {}
32
OPEN3D_HOST_DEVICE
iterator_t
(
void
* key_ptr,
void
* value_ptr)
33
:
first
(key_ptr),
second
(value_ptr) {}
34
35
void
*
first
;
36
void
*
second
;
37
};
38
39
template
<
typename
First,
typename
Second>
40
struct
Pair
{
41
First
first
;
42
Second
second
;
43
OPEN3D_HOST_DEVICE
Pair
() {}
44
OPEN3D_HOST_DEVICE
Pair
(
const
First& _first,
const
Second& _second)
45
:
first
(_first),
second
(_second) {}
46
};
47
48
template
<
typename
First,
typename
Second>
49
OPEN3D_HOST_DEVICE
Pair<First, Second>
make_pair
(
const
First& _first,
50
const
Second& _second) {
51
return
Pair<First, Second>
(_first, _second);
52
}
53
54
}
// namespace core
55
}
// namespace open3d
CUDAUtils.h
Common CUDA utilities.
OPEN3D_HOST_DEVICE
#define OPEN3D_HOST_DEVICE
Definition
CUDAUtils.h:44
open3d::core
Definition
AdvancedIndexing.cpp:15
open3d::core::make_pair
OPEN3D_HOST_DEVICE Pair< First, Second > make_pair(const First &_first, const Second &_second)
Definition
SlabTraits.h:49
open3d
Definition
PinholeCameraIntrinsic.cpp:16
open3d::core::Pair
Definition
SlabTraits.h:40
open3d::core::Pair::second
Second second
Definition
SlabTraits.h:42
open3d::core::Pair::first
First first
Definition
SlabTraits.h:41
open3d::core::Pair::Pair
OPEN3D_HOST_DEVICE Pair(const First &_first, const Second &_second)
Definition
SlabTraits.h:44
open3d::core::Pair::Pair
OPEN3D_HOST_DEVICE Pair()
Definition
SlabTraits.h:43
open3d::core::iterator_t::iterator_t
OPEN3D_HOST_DEVICE iterator_t()
Definition
SlabTraits.h:31
open3d::core::iterator_t::second
void * second
Definition
SlabTraits.h:36
open3d::core::iterator_t::iterator_t
OPEN3D_HOST_DEVICE iterator_t(void *key_ptr, void *value_ptr)
Definition
SlabTraits.h:32
open3d::core::iterator_t::first
void * first
Definition
SlabTraits.h:35
Generated by
1.17.0