Supports all classes in the xtd class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the xtd. It is the root of the type hierarchy.
point
type derived from the xtd::object class and overrides many of the virtual methods of the xtd::object class. In addition, the example shows how to call many of the static and instance methods of the xtd::object class. Public Constructors | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
Public Methods | |
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. | |
virtual xtd::string | to_string () const noexcept |
Returns a xtd::string that represents the current object. | |
Public Static Methods | |
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. | |
|
default |
Create a new instance of the ultimate base class object.
|
virtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
Reimplemented in xtd::configuration::file_settings, xtd::console_key_info, xtd::date_time, xtd::delegate< result_t()>, xtd::delegate< result_t(arguments_t...)>, xtd::delegate< result_t(arguments_t...)>< value_t >, xtd::diagnostics::stack_frame, xtd::diagnostics::switch_base, xtd::guid, xtd::media::system_sound, xtd::net::ip_address, xtd::net::sockets::socket, xtd::net::sockets::tcp_client, xtd::net::sockets::tcp_listener, xtd::net::sockets::udp_client, xtd::threading::cancellation_token, xtd::threading::event_wait_handle, xtd::threading::mutex, xtd::threading::semaphore, xtd::time_span, xtd::time_zone_info::transition_time, xtd::time_zone_info::adjustement_rule, xtd::time_zone_info, xtd::toolkit, xtd::type_object, xtd::uri, xtd::version, xtd::drawing::brush, xtd::drawing::color, xtd::drawing::drawing_2d::conical_gradient_brush, xtd::drawing::drawing_2d::graphics_path, xtd::drawing::drawing_2d::graphics_state, xtd::drawing::drawing_2d::hatch_brush, xtd::drawing::drawing_2d::linear_gradient_brush, xtd::drawing::drawing_2d::matrix, xtd::drawing::drawing_2d::radial_gradient_brush, xtd::drawing::font, xtd::drawing::font_family, xtd::drawing::icon, xtd::drawing::image, xtd::drawing::imaging::color_palette, xtd::drawing::imaging::encoder, xtd::drawing::imaging::encoder_parameter, xtd::drawing::imaging::encoder_parameters, xtd::drawing::imaging::frame_dimension, xtd::drawing::imaging::image_format, xtd::drawing::imaging::property_item, xtd::drawing::pen, xtd::drawing::point, xtd::drawing::point_f, xtd::drawing::rectangle, xtd::drawing::rectangle_f, xtd::drawing::region, xtd::drawing::size, xtd::drawing::size_f, xtd::drawing::solid_brush, xtd::drawing::texture_brush, xtd::forms::control, xtd::forms::control_layout_style, xtd::forms::country, xtd::forms::cursor, xtd::forms::domain_up_down::item, xtd::forms::emoticon, xtd::forms::enable_debug, xtd::forms::flat_button_appearance, xtd::forms::horizontal_control_layout_style, xtd::forms::image_list, xtd::forms::link, xtd::forms::link_area, xtd::forms::list_control::item, xtd::forms::menu, xtd::forms::message_notifier_button, xtd::forms::padding, xtd::forms::renderer, xtd::forms::shadow, xtd::forms::status_bar_panel, xtd::forms::style_sheets::background_image, xtd::forms::style_sheets::border_color, xtd::forms::style_sheets::border_radius, xtd::forms::style_sheets::border_style, xtd::forms::style_sheets::control, xtd::forms::style_sheets::length, xtd::forms::style_sheets::lengths, xtd::forms::style_sheets::shadow, xtd::forms::style_sheets::style_sheet, xtd::forms::style_sheets::system_colors, xtd::forms::style_sheets::theme, xtd::forms::tool_bar_button, xtd::forms::vertical_control_layout_style, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_string< char_t, traits_t, allocator_t >, xtd::box< type_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::text::basic_string_builder< char_t, traits_t, allocator_t >, xtd::any_object, and xtd::hash_code.
|
virtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented in xtd::any_object, xtd::basic_string< char_t, traits_t, allocator_t >, xtd::hash_code, and xtd::text::basic_string_builder< char_t, traits_t, allocator_t >.
|
virtualnoexcept |
Gets the type of the current instance.
|
inline |
Creates a shallow copy of the current object.
shallow_copy
method that calls the xtd::object::memberwise_clone method to perform a shallow copy operation on a person
object. It also defines a deep_copy
method that performs a deep copy operation on a person
object. person::id_info
property returns an id_info
object. As the output from the example shows, when a person
object is cloned by calling the xtd::object::memberwise_clone method, the cloned person
object is an independent copy of the original object, except that they share the same person::id_info
object reference. As a result, modifying the clone's person::id_info
property changes the original object's person::id_info
property. On the other hand, when a deep copy operation is performed, the cloned person
object, including its person::id_info
property, can be modified without affecting the original object. deep_copy
method in the example illustrates this approach.
|
virtualnoexcept |
Returns a xtd::string that represents the current object.
Reimplemented in xtd::any_object, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_string< char_t, traits_t, allocator_t >, xtd::box< type_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::compiler, xtd::configuration::file_settings, xtd::cpp_language, xtd::date_time, xtd::source_location, xtd::diagnostics::stack_frame, xtd::diagnostics::stack_trace, xtd::distribution, xtd::enum_object< enum_t >, xtd::environment::xtd_library, xtd::exception, xtd::guid, xtd::io::drive_info, xtd::io::file_system_info, xtd::io::string_writer, xtd::net::dns_end_point, xtd::net::end_point, xtd::net::ip_address, xtd::net::ip_end_point, xtd::net::socket_address, xtd::operating_system, xtd::processor, xtd::target_type, xtd::text::basic_string_builder< char_t, traits_t, allocator_t >, xtd::threading::thread_local_object< value_t >, xtd::time_span, xtd::time_zone_info, xtd::toolkit, xtd::type_object, xtd::uri, xtd::version, xtd::web::css::property, xtd::drawing::brush, xtd::drawing::color, xtd::drawing::drawing_2d::graphics_path, xtd::drawing::drawing_2d::matrix, xtd::drawing::font, xtd::drawing::font_family, xtd::drawing::graphics, xtd::drawing::icon, xtd::drawing::imaging::image_format, xtd::drawing::pen, xtd::drawing::point, xtd::drawing::point_f, xtd::drawing::rectangle, xtd::drawing::rectangle_f, xtd::drawing::size, xtd::drawing::size_f, xtd::forms::control, xtd::forms::control_layout_style, xtd::forms::country, xtd::forms::create_params, xtd::forms::cursor, xtd::forms::domain_up_down::item, xtd::forms::emoticon, xtd::forms::file_dialog, xtd::forms::horizontal_control_layout_style, xtd::forms::link_area, xtd::forms::list_control::item, xtd::forms::menu, xtd::forms::menu_item, xtd::forms::message, xtd::forms::month_calendar, xtd::forms::numeric_up_down, xtd::forms::padding, xtd::forms::progress_bar, xtd::forms::radio_button, xtd::forms::renderer, xtd::forms::selection_range, xtd::forms::status_bar_panel, xtd::forms::style_sheets::background_image, xtd::forms::style_sheets::length, xtd::forms::style_sheets::lengths, xtd::forms::style_sheets::theme, xtd::forms::tool_bar_button, xtd::forms::track_bar, xtd::forms::up_down_button, and xtd::forms::vertical_control_layout_style.
|
inlinestaticnoexcept |
Determines whether the specified object instances are considered equal.
object_a | The first object to compare. |
object_b | The second object to compare. |
|
inlinestaticnoexcept |
Determines whether the specified object instances are the same instance.
object_a | The first object to compare. |
object_b | The second object to compare. |