Represents information about a processor, such as the architecture. This class cannot be inherited.
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::size | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type. | |
| xtd::string | to_string () const noexcept override |
| Converts the value of this processor object to its equivalent string representation. | |
Additional Inherited Members | |
| 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 type_object | get_type () const noexcept |
| Gets the type of the current instance. | |
| template<class object_t> | |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object. | |
| template<class object_a_t, class 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<class object_a_t, class 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. | |
| xtd::processor::processor | ( | xtd::architecture_id | architecture, |
| bool | is_64_bit, | ||
| uint32 | core_count ) |
Initialise a new instance oof xtd::processor class.
| architecture | One of xtd::architectuure_id valuues. |
| is_64_bit | true if 64 bit architecture; otherwise false. |
| core_count | THe number of cores. |
|
noexcept |
Gets a xtd::platform_id enumeration value that identifies the operating system platform.
|
noexcept |
Gets architecture string.
|
noexcept |
Gets the number of processors on the current machine.
|
noexcept |
Determines whether the current operating system is a 64-bit operating system.
true if the operating system is 64-bit; otherwise, false.
|
noexcept |
Gets the concatenated string representation of the platform identifier.
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
overridevirtualnoexcept |
Converts the value of this processor object to its equivalent string representation.
Reimplemented from xtd::object.