template<typename enum_t = std::nullptr_t>
struct xtd::enum_object< enum_t >
Provides the base class for enumerations.
template<typename enum_t = std::nullptr_t>
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:22
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
enum_object() noexcept=default
Initializes a new instance of the xtd::enum_object class.
- Inheritance
- xtd::object → xtd::enum_object<enum_t>
- Header
#include <xtd/enum_object>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- culture_info_culture_types.cpp, and sizeof.cpp.
|
| auto | compare_to (const enum_object &value) const noexcept -> xtd::int32 override |
| | Compares the current instance with another object of the same type.
|
| auto | equals (const object &obj) const noexcept -> bool override |
| | Determines whether the specified object is equal to the current object.
|
| auto | equals (const enum_object &value) const noexcept -> bool override |
| | Determines whether the specified object is equal to the current object.
|
| auto | equals (enum_type value) const noexcept -> bool |
| | Indicates whether the current object is equal to another object of the same type.
|
| template<typename attribute_t> |
| auto | equals (attribute_t value) const noexcept -> bool |
| | Indicates whether the current object is equal to another object with defferent type.
|
| auto | get_hash_code () const noexcept -> xtd::usize override |
| | Serves as a hash function for a particular type.
|
| auto | to_byte () const noexcept -> xtd::byte |
| | Converts this instance to byte.
|
| auto | to_int16 () const noexcept -> xtd::int16 |
| | Converts this instance to int16.
|
| auto | to_int32 () const noexcept -> xtd::int32 |
| | Converts this instance to int32.
|
| auto | to_int64 () const noexcept -> xtd::int64 |
| | Converts this instance to int64.
|
| auto | to_sbyte () const noexcept -> xtd::sbyte |
| | Converts this instance to signed byte.
|
| auto | to_uint16 () const noexcept -> xtd::uint16 |
| | Converts this instance to unsigned int16.
|
| auto | to_uint32 () const noexcept -> xtd::uint32 |
| | Converts this instance to unsigned int32.
|
| auto | to_uint64 () const noexcept -> xtd::uint64 |
| | Converts this instance to unsigned int64.
|
| auto | to_string () const noexcept -> xtd::string override |
| | Returns a xtd::string that represents the current object.
|
| auto | to_string (const xtd::string &format) const -> xtd::string |
| | Converts the value of this instance to its equivalent string representation using the specified format.
|
| auto | to_string (const xtd::string &format, const globalization::culture_info &culture) const -> xtd::string override |
| | Converts the value of this instance to its equivalent string representation using the specified format, and locale.
|
|
| | 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.
|
| virtual auto | compare_to (const enum_object< std::nullptr_t > &obj) const noexcept -> xtd::int32=0 |
| | Compares the current instance with another object of the same type.
|
| virtual auto | equals (const enum_object< std::nullptr_t > &) const noexcept -> bool=0 |
| | Indicates whether the current object is equal to another object of the same type.
|
| 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.
|