xtd 0.2.0
xtd::toolkit Class Reference
Inheritance diagram for xtd::toolkit:
xtd::object xtd::iequatable< toolkit > xtd::interface xtd::extensions::equality_operators< type_t, equatable_t >

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

const xtd::stringdescription () const noexcept
 Gets the toolkit description.
 
const xtd::stringname () const noexcept
 Gets the toolkit name.
 
const xtd::versionversion () const noexcept
 Gets the toolkit version.
 

Public Methods

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

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<class object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Public Member Functions inherited from xtd::iequatable< toolkit >
- Static Public Member Functions inherited from xtd::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.
 

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()

const xtd::string & xtd::toolkit::description ( ) const
noexcept

Gets the toolkit description.

Returns
The toolkit description.

◆ name()

const xtd::string & xtd::toolkit::name ( ) const
noexcept

Gets the toolkit name.

Returns
The toolkit name.

◆ version()

const xtd::version & xtd::toolkit::version ( ) const
noexcept

Gets the toolkit version.

Returns
The toolkit version.

◆ equals() [1/2]

bool xtd::toolkit::equals ( const object obj) const
overridevirtualnoexcept

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]

bool xtd::toolkit::equals ( const toolkit other) const
overridevirtualnoexcept

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()

xtd::size xtd::toolkit::get_hash_code ( ) const
overridevirtualnoexcept

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

Reimplemented from xtd::object.

◆ to_string()

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

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: