xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::object Class Reference

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. More...

#include <object.h>

Inheritance diagram for xtd::object:
xtd::guid

Public Member Functions

 object ()=default
 Create a new instance of the ultimate base class object. More...
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object. More...
 
virtual int32_t get_hash_code () const noexcept
 Serves as a hash function for a particular type. More...
 
template<typename T >
std::shared_ptr< objectmemberwise_clone () const
 Gets the type of the current instance. More...
 
virtual std::string to_string () const noexcept
 Returns a std::string that represents the current object. More...
 

Static Public Member Functions

static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal. More...
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance. More...
 

Detailed Description

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.

Library
xtd.core
Examples
The following example defines a point type derived from the Oobject class and virtuals many of the virtual methods of the object class. In addition, the example shows how to call many of the static and instance methods of the object class.

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