ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
CPUInfo.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - CloudViewer: www.cloudViewer.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.cloudViewer.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#pragma once
9
10
#include <memory>
11
#include <string>
12
13
#include "
CVCoreLib.h
"
14
15
namespace
cloudViewer
{
16
namespace
utility {
17
19
class
CV_CORE_LIB_API
CPUInfo
{
20
public
:
21
struct
CV_CORE_LIB_API
Impl
{
22
int
num_cores_
;
23
int
num_threads_
;
24
std::string
model_name_
;
25
};
26
27
public
:
28
static
CPUInfo
&
GetInstance
();
29
30
~CPUInfo
() =
default
;
31
CPUInfo
(
const
CPUInfo
&) =
delete
;
32
void
operator=
(
const
CPUInfo
&) =
delete
;
33
36
int
NumCores()
const
;
37
41
int
NumThreads()
const
;
42
45
const
std::string& ModelName()
const
;
46
48
void
Print()
const
;
49
50
private
:
51
CPUInfo
();
52
std::unique_ptr<Impl> impl_;
53
};
54
55
}
// namespace utility
56
}
// namespace cloudViewer
CV_CORE_LIB_API
#define CV_CORE_LIB_API
Definition:
CVCoreLibWin.h:15
CVCoreLib.h
cloudViewer::utility::CPUInfo
CPU information.
Definition:
CPUInfo.h:19
cloudViewer::utility::CPUInfo::operator=
void operator=(const CPUInfo &)=delete
cloudViewer::utility::CPUInfo::CPUInfo
CPUInfo(const CPUInfo &)=delete
cloudViewer::utility::CPUInfo::~CPUInfo
~CPUInfo()=default
Runtime::GetInstance
ccGuiPythonInstance * GetInstance() noexcept
Definition:
Runtime.cpp:72
cloudViewer
Generic file read and write utility for python interface.
Definition:
AutoSegmentationTools.h:16
cloudViewer::utility::CPUInfo::Impl
Definition:
CPUInfo.h:21
cloudViewer::utility::CPUInfo::Impl::model_name_
std::string model_name_
Definition:
CPUInfo.h:24
cloudViewer::utility::CPUInfo::Impl::num_threads_
int num_threads_
Definition:
CPUInfo.h:23
cloudViewer::utility::CPUInfo::Impl::num_cores_
int num_cores_
Definition:
CPUInfo.h:22
core
include
CPUInfo.h
Generated on Wed Jan 28 2026 09:00:53 for ACloudViewer by
1.9.1