xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
xtd::processor Class Referencefinal

#include <processor.h>

Definition

Represents information about a processor, such as the architecture. This class cannot be inherited.

Namespace
xtd
Library
xtd.core

Inherits xtd::object.

Public Member Functions

 processor (xtd::architecture_id architecture, bool is_64_bit, uint32_t core_count)
 
xtd::architecture_id architecture () const noexcept
 Gets a xtd::platform_id enumeration value that identifies the operating system platform.
 
xtd::ustring architecture_string () const noexcept
 
uint32_t core_count () const noexcept
 Gets the number of processors on the current machine.
 
bool is_64_bit () const noexcept
 Determines whether the current operating system is a 64-bit operating system.
 
xtd::ustring name () const noexcept
 Gets the concatenated string representation of the platform identifier.
 
xtd::ustring to_string () const noexcept
 Converts the value of this processor object to its equivalent string representation.
 
- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const
 Gets the type of the current instance.
 
virtual xtd::ustring to_string () const noexcept
 Returns a std::string that represents the current object.
 

Additional Inherited Members

- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Member Function Documentation

◆ architecture()

xtd::architecture_id xtd::processor::architecture ( ) const
inlinenoexcept

Gets a xtd::platform_id enumeration value that identifies the operating system platform.

Returns
xtd::platform_id One of the xtd::platform_id values.

◆ core_count()

uint32_t xtd::processor::core_count ( ) const
inlinenoexcept

Gets the number of processors on the current machine.

Returns
The 32-bit unsigned integer that specifies the number of processors on the current machine. There is no default. If the current machine contains multiple processor groups, this property returns the number of logical processors that are available for use.

◆ is_64_bit()

bool xtd::processor::is_64_bit ( ) const
inlinenoexcept

Determines whether the current operating system is a 64-bit operating system.

Returns
true if the operating system is 64-bit; otherwise, false.

◆ name()

xtd::ustring xtd::processor::name ( ) const
inlinenoexcept

Gets the concatenated string representation of the platform identifier.

Returns
The string representation of the values returned by the platform.

◆ to_string()

xtd::ustring xtd::processor::to_string ( ) const
inlinevirtualnoexcept

Converts the value of this processor object to its equivalent string representation.

Returns
The string representation of the values returned by the platform, version, and service_pack methods.

Reimplemented from xtd::object.


The documentation for this class was generated from the following file: