Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
utility
CPUInfo.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
#pragma once
8
9
#include <memory>
10
11
namespace
open3d
{
12
namespace
utility
{
13
15
class
CPUInfo
{
16
public
:
17
static
CPUInfo
&
GetInstance
();
18
19
~CPUInfo
() =
default
;
20
CPUInfo
(
const
CPUInfo
&) =
delete
;
21
void
operator=
(
const
CPUInfo
&) =
delete
;
22
25
int
NumCores
()
const
;
26
30
int
NumThreads
()
const
;
31
33
void
Print
()
const
;
34
35
private
:
36
CPUInfo
();
37
struct
Impl
;
38
std::unique_ptr<Impl> impl_;
39
};
40
41
}
// namespace utility
42
}
// namespace open3d
open3d::utility::CPUInfo::operator=
void operator=(const CPUInfo &)=delete
open3d::utility::CPUInfo::NumCores
int NumCores() const
Definition
CPUInfo.cpp:126
open3d::utility::CPUInfo::NumThreads
int NumThreads() const
Definition
CPUInfo.cpp:128
open3d::utility::CPUInfo::~CPUInfo
~CPUInfo()=default
open3d::utility::CPUInfo::CPUInfo
CPUInfo(const CPUInfo &)=delete
open3d::utility::CPUInfo::GetInstance
static CPUInfo & GetInstance()
Definition
CPUInfo.cpp:121
open3d::utility::CPUInfo::Print
void Print() const
Prints CPUInfo in the console.
Definition
CPUInfo.cpp:130
open3d::utility
Definition
Dispatch.h:91
open3d
Definition
PinholeCameraIntrinsic.cpp:16
open3d::utility::CPUInfo::Impl
Definition
CPUInfo.cpp:32
Generated by
1.17.0