36 uint32_t
core_count() const noexcept {
return core_count_;}
40 bool is_64_bit() const noexcept {
return is_64_bit_;}
46 return processor_names[architecture_];
50 if (!architecture_string_.empty())
return architecture_string_;
54 architecture_string_ +=
"64";
56 return architecture_string_;
65 bool is_64_bit_ =
false;
66 uint32_t core_count_ = 1;
Contains xtd::architecture_id enum class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:26
Represents information about a processor, such as the architecture. This class cannot be inherited.
Definition processor.h:19
uint32_t core_count() const noexcept
Gets the number of processors on the current machine.
Definition processor.h:36
xtd::architecture_id architecture() const noexcept
Gets a xtd::platform_id enumeration value that identifies the operating system platform.
Definition processor.h:32
xtd::ustring name() const noexcept
Gets the concatenated string representation of the platform identifier.
Definition processor.h:44
xtd::ustring to_string() const noexcept
Converts the value of this processor object to its equivalent string representation.
Definition processor.h:61
bool is_64_bit() const noexcept
Determines whether the current operating system is a 64-bit operating system.
Definition processor.h:40
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:48
architecture_id
Identifies the processor architecture, supported by an assembly.
Definition architecture_id.h:16
@ x86
The processor architecture is x86 (Intel or amd).
@ unknown
The processor architecture is unknown.
@ arm
The processor architecture is ARM.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::object class.
Contains xtd::ustring class.