The xtd::reference_wrapper_object is a reference wrapper as std::reference_wrapper.
Public Aliases | |
using | base_type |
Represents the base type (std::reference_wrapper<type_t>) | |
using | type |
Represent the referenced type. | |
using | reference_type |
Represent the referenced type. | |
Public Static Fields | |
static const reference_wrapper_object | empty |
Represents the empty xtd::reference_wrapper_object. This field is constant. | |
Public Operators | |
reference_wrapper_object & | operator= (const reference_wrapper_object &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object value. | |
reference_wrapper_object & | operator= (reference_wrapper_object &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object value. | |
reference_wrapper_object & | operator= (reference_wrapper_object &&value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object value. | |
template<class value_t> | |
reference_wrapper_object & | operator= (const reference_wrapper_object< value_t > &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object value. | |
template<class value_t> | |
reference_wrapper_object & | operator= (reference_wrapper_object< value_t > &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object value. | |
template<class value_t> | |
reference_wrapper_object & | operator= (reference_wrapper_object< value_t > &&value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object value. | |
template<class value_t> | |
reference_wrapper_object & | operator= (const std::reference_wrapper< value_t > &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
template<class value_t> | |
reference_wrapper_object & | operator= (std::reference_wrapper< value_t > &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
reference_wrapper_object & | operator= (const base_type &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
reference_wrapper_object & | operator= (base_type &value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
template<class value_t> | |
reference_wrapper_object & | operator= (value_t &&value) noexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
operator type & () const | |
Gets the stored object. | |
operator bool () const noexcept | |
Checks if the stored reference is not empty. | |
Public Constructors | |
reference_wrapper_object () noexcept=default | |
Initializes a new instance of the xtd::reference_wrapper_object class. | |
reference_wrapper_object (xtd::null_ptr null) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified null pointer. | |
template<class value_t> | |
reference_wrapper_object (value_t &&value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference. | |
reference_wrapper_object (reference_wrapper_object &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
reference_wrapper_object (const reference_wrapper_object &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
reference_wrapper_object (reference_wrapper_object &&value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
template<class value_t> | |
reference_wrapper_object (reference_wrapper_object< value_t > &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
template<class value_t> | |
reference_wrapper_object (const reference_wrapper_object< value_t > &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
template<class value_t> | |
reference_wrapper_object (reference_wrapper_object< value_t > &&value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
reference_wrapper_object (base_type &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
reference_wrapper_object (const base_type &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
reference_wrapper_object (base_type &&value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
template<class value_t> | |
reference_wrapper_object (std::reference_wrapper< value_t > &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
template<class value_t> | |
reference_wrapper_object (const std::reference_wrapper< value_t > &value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
template<class value_t> | |
reference_wrapper_object (std::reference_wrapper< value_t > &&value) noexcept | |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
Public Properties | |
bool | is_empty () const noexcept |
Checks if the stored reference is empty. | |
const base_type & | reference () const |
Returns the underlying base type reference. | |
base_type & | reference () |
Returns the underlying base type reference. | |
Public Methods | |
int32 | compare_to (const reference_wrapper_object &obj) const noexcept override |
Compares the current instance with another object of the same type. | |
bool | equals (const xtd::object &value) const noexcept override |
Determines whether the specified object is equal to the current object. | |
bool | equals (const reference_wrapper_object &value) const noexcept override |
Indicates whether the current object is equal to another object of the same type. | |
type & | get () const |
Gets the stored reference. | |
xtd::size | get_hash_code () const noexcept override |
Serves as a hash function for a particular type. | |
void | reset () noexcept |
Resets the current object. Set the current object to null. | |
template<class value_t> | |
void | reset (value_t &&value) noexcept |
Resets the current object. Set the current object with specified reference. | |
void | reset (xtd::null_ptr null) noexcept |
Resets the current object. Set the current object with specified null value. | |
void | swap (reference_wrapper_object &value) noexcept |
Swaps this current instance with specified reference object. | |
type_t & | to_object () const |
Gets the stored object. | |
template<typename target_t> | |
target_t | to_object () const |
Gets the stored object with specified target_t type. | |
type & | to_reference () const |
Gets the stored reference. | |
template<typename target_t> | |
target_t | to_reference () const |
Gets the stored reference with specified target_t type. | |
xtd::string | to_string () const noexcept override |
Returns a xtd::string that represents the current object. | |
Additional Inherited Members | |
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::unique_ptr_object< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
virtual int32 | compare_to (const type_t &obj) const noexcept=0 |
Compares the current instance with another object of the same type. | |
virtual bool | equals (const type_t &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. | |
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. | |
using xtd::reference_wrapper_object< type_t >::base_type |
Represents the base type (std::reference_wrapper<type_t>)
using xtd::reference_wrapper_object< type_t >::type |
Represent the referenced type.
using xtd::reference_wrapper_object< type_t >::reference_type |
Represent the referenced type.
|
defaultnoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class.
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified null pointer.
null | The null pointer. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference.
value | The reference. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
value | The reference object. |
|
inlinenoexcept |
Checks if the stored reference is empty.
true
if stored reference is empty; otherwise false
.
|
inline |
Returns the underlying base type reference.
|
inline |
Returns the underlying base type reference.
|
inlineoverridenoexcept |
Compares the current instance with another object of the same type.
obj | An object to compare with this instance. |
Value | Condition |
---|---|
Less than zero | This instance is less than obj. |
Zero | This instance is equal to obj. |
Greater than zero | This instance is greater than obj. |
|
inlineoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
true
if the specified object is equal to the current object. otherwise, false
. Reimplemented from xtd::object.
|
inlineoverridenoexcept |
Indicates whether the current object is equal to another object of the same type.
obj | An object to compare with this object. |
true
if the current object is equal to the other parameter; otherwise, false
.
|
inline |
Gets the stored reference.
xtd::null_pointer_exception | If xtd::reference_wrapper_object is empty. |
|
inlineoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
inlinenoexcept |
Resets the current object. Set the current object to null.
|
inlinenoexcept |
Resets the current object. Set the current object with specified reference.
value | The reference to assign the current object. It can be null. |
|
inlinenoexcept |
Resets the current object. Set the current object with specified null value.
null | The null value. |
|
inlinenoexcept |
Swaps this current instance with specified reference object.
value | The reference object to swap with this current instance. |
|
inline |
Gets the stored object.
xtd::null_pointer_exception | If xtd::reference_wrapper_object is empty. |
target_t xtd::reference_wrapper_object< type_t >::to_object | ( | ) | const |
Gets the stored object with specified target_t
type.
xtd::cast_exception | If the current object can't be casted in target_t. |
|
inline |
Gets the stored reference.
target_t xtd::reference_wrapper_object< type_t >::to_reference | ( | ) | const |
Gets the stored reference with specified target_t
type.
xtd::cast_exception | If the current object can't be casted in target_t. |
|
overridevirtualnoexcept |
Returns a xtd::string that represents the current object.
Reimplemented from xtd::object.
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
value | The value to assign. |
|
inline |
Gets the stored object.
xtd::null_pointer_exception | If xtd::reference_wrapper_object is empty. |
|
inlineexplicitnoexcept |
Checks if the stored reference is not empty.
true
if stored reference is not empty; otherwise false
.
|
static |
Represents the empty xtd::reference_wrapper_object. This field is constant.