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

Definition

Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.

Header
#include <xtd/type_object>
Namespace
xtd
Library
xtd.core
Remarks
For more information about types, see Native types, boxing and unboxing.
xtd::string full_name () const noexcept
 Gets the fully qualified name of the type_object, including the namespace of the type_object.
 
xtd::string name () const noexcept
 Gets the name of the type_object.
 
xtd::string namespace_ () const noexcept
 Gets the namespace of the type_object.
 
bool equals (const object &obj) const noexcept override
 Determines whether the specified object is equal to the current object.
 
bool equals (const type_object &type) 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< type_object >
- 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.
 

Member Function Documentation

◆ full_name()

xtd::string xtd::type_object::full_name ( ) const
noexcept

Gets the fully qualified name of the type_object, including the namespace of the type_object.

Public Properties
Returns
The fully qualified name of the type_object, including the namespace of the type_object.
Remarks
For example, the fully qualified name of the xtd::string type is xtd::string.

◆ name()

xtd::string xtd::type_object::name ( ) const
noexcept

Gets the name of the type_object.

Returns
The name of the type_object.
Remarks
For example, the name of the xtd::string type is string.

◆ namespace_()

xtd::string xtd::type_object::namespace_ ( ) const
noexcept

Gets the namespace of the type_object.

Returns
The namespace of the type_object.
Remarks
For example, the namespace of the xtd::string type is xtd::

◆ equals() [1/2]

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

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

Public Methods
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::type_object::equals ( const type_object type) const
overridevirtualnoexcept

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

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

Implements xtd::iequatable< type_object >.

◆ get_hash_code()

xtd::size xtd::type_object::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::type_object::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: