xtd 1.0.0
Loading...
Searching...
No Matches
xtd::toolkit Class Reference
Inheritance diagram for xtd::toolkit:
xtd::object xtd::iequatable< toolkit > xtd::interface xtd::extensions::equality_operators< toolkit, iequatable< toolkit > >

Definition

Represents a toolkit.

Namespace
xtd::forms
Library
xtd.forms

Public Constructors

 toolkit ()=default
 Initializes a new instance of the xtd::toolkit class.
 toolkit (const xtd::string &name, const xtd::version &version, const xtd::string &description)
 Initializes a new instance of the xtd::toolkit class with the specified name and version.

Public Properties

auto description () const noexcept -> const xtd::string &
 Gets the toolkit description.
auto name () const noexcept -> const xtd::string &
 Gets the toolkit name.
auto version () const noexcept -> const xtd::version &
 Gets the toolkit version.

Public Methods

auto equals (const object &obj) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
auto equals (const toolkit &other) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
auto get_hash_code () const noexcept -> xtd::usize override
 Serves as a hash function for a particular type.
auto to_string () const noexcept -> xtd::string override
 Returns a xtd::string that represents the current object.

Additional Inherited Members

 object ()=default
 Create a new instance of the ultimate base class object.
virtual auto get_type () const noexcept -> type_object
 Gets the type of the current instance.
template<typename object_t>
auto memberwise_clone () const -> xtd::unique_ptr_object< object_t >
 Creates a shallow copy of the current object.
template<typename object_a_t, typename object_b_t>
static auto equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are considered equal.
template<typename object_a_t, typename object_b_t>
static auto reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are the same instance.

Constructor & Destructor Documentation

◆ toolkit() [1/2]

xtd::toolkit::toolkit ( )
default

Initializes a new instance of the xtd::toolkit class.

Remarks
The xtd::toolkit class is used by xtd::system_information::toolkit_version method.

◆ toolkit() [2/2]

xtd::toolkit::toolkit ( const xtd::string & name,
const xtd::version & version,
const xtd::string & description )

Initializes a new instance of the xtd::toolkit class with the specified name and version.

Parameters
nameThe toolkit name.
versionThe toolkit version.
descriptionThe toolkit description.

Member Function Documentation

◆ description()

auto xtd::toolkit::description ( ) const -> const xtd::string &
nodiscardnoexcept

Gets the toolkit description.

Returns
The toolkit description.

◆ name()

auto xtd::toolkit::name ( ) const -> const xtd::string &
nodiscardnoexcept

Gets the toolkit name.

Returns
The toolkit name.

◆ version()

auto xtd::toolkit::version ( ) const -> const xtd::version &
nodiscardnoexcept

Gets the toolkit version.

Returns
The toolkit version.

◆ equals() [1/2]

auto xtd::toolkit::equals ( const object & obj) const -> bool
nodiscardoverridevirtualnoexcept

Determines whether the specified object is equal to the current object.

Parameters
objThe object to compare with the current object.
Returns
true if the specified object is equal to the current object. otherwise, false.

Reimplemented from xtd::object.

◆ equals() [2/2]

auto xtd::toolkit::equals ( const toolkit & other) const -> bool
nodiscardoverridevirtualnoexcept

Determines whether the specified object is equal to the current object.

Parameters
otherThe object to compare with the current object.
Returns
true if the specified object is equal to the current object. otherwise, false.

Implements xtd::iequatable< toolkit >.

◆ get_hash_code()

auto xtd::toolkit::get_hash_code ( ) const -> xtd::usize
nodiscardoverridevirtualnoexcept

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

Reimplemented from xtd::object.

◆ to_string()

auto xtd::toolkit::to_string ( ) const -> xtd::string
nodiscardoverridevirtualnoexcept

Returns a xtd::string that represents the current object.

Returns
A string that represents the current object.

Reimplemented from xtd::object.


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