xtd 0.2.0
Loading...
Searching...
No Matches
xtd::processor Class Referencefinal
Inheritance diagram for xtd::processor:
xtd::object

Definition

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

Namespace
xtd
Library
xtd.core

Public Constructors

 processor (xtd::architecture_id architecture, bool is_64_bit, uint32 core_count)
 Initialise a new instance oof xtd::processor class.
 

Public Properties

xtd::architecture_id architecture () const noexcept
 Gets a xtd::platform_id enumeration value that identifies the operating system platform.
 
xtd::string architecture_string () const noexcept
 Gets architecture string.
 
uint32 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::string name () const noexcept
 Gets the concatenated string representation of the platform identifier.
 

Public Methods

xtd::string to_string () const noexcept override
 Converts the value of this processor object to its equivalent string representation.
 

Additional Inherited Members

- 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.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Constructor & Destructor Documentation

◆ processor()

xtd::processor::processor ( xtd::architecture_id  architecture,
bool  is_64_bit,
uint32  core_count 
)

Initialise a new instance oof xtd::processor class.

Parameters
architectureOne of xtd::architectuure_id valuues.
is_64_bittrue if 64 bit architecture; otherwise false.
core_countTHe number of cores.

Member Function Documentation

◆ architecture()

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

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

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

◆ architecture_string()

xtd::string xtd::processor::architecture_string ( ) const
noexcept

Gets architecture string.

Returns
The architecture string.

◆ core_count()

uint32 xtd::processor::core_count ( ) const
noexcept

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
noexcept

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::string xtd::processor::name ( ) const
noexcept

Gets the concatenated string representation of the platform identifier.

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

◆ to_string()

xtd::string xtd::processor::to_string ( ) const
overridevirtualnoexcept

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: