|
xrpld
|
#include <STObject.h>


Public Member Functions | |
| OptionalProxy (OptionalProxy const &)=default | |
| OptionalProxy & | operator= (OptionalProxy const &)=delete |
| operator bool () const noexcept | |
| Returns true if the field is set. | |
| operator optional_type () const | |
| optional_type | operator~ () const |
| Explicit conversion to std::optional. | |
| value_type | valueOr (value_type val) const |
| OptionalProxy & | operator= (std::nullopt_t const &) |
| OptionalProxy & | operator= (optional_type &&v) |
| OptionalProxy & | operator= (optional_type const &v) |
| template<class U> requires (std::is_assignable_v<T, U>) | |
| OptionalProxy & | operator= (U &&u) |
| template<class U> requires (std::is_assignable_v<T, U>) | |
| STObject::OptionalProxy< T > & | operator= (U &&u) |
| value_type | value () const |
| value_type | operator* () const |
| T const * | operator-> () const |
| Do not use operator->() unless the field is required, or you've checked that it's set. | |
Protected Member Functions | |
| T const * | find () const |
| template<class U> | |
| void | assign (U &&u) |
Protected Attributes | |
| STObject * | st_ |
| SOEStyle | style_ |
| TypedField< T > const * | f_ |
Private Types | |
| using | value_type = T::value_type |
| using | optional_type = std::optional<std::decay_t<value_type>> |
Private Member Functions | |
| OptionalProxy (STObject *st, TypedField< T > const *f) | |
| bool | engaged () const noexcept |
| void | disengage () |
| optional_type | optionalValue () const |
Friends | |
| class | STObject |
| bool | operator== (OptionalProxy const &lhs, std::nullopt_t) noexcept |
| bool | operator== (std::nullopt_t, OptionalProxy const &rhs) noexcept |
| bool | operator== (OptionalProxy const &lhs, optional_type const &rhs) noexcept |
| bool | operator== (optional_type const &lhs, OptionalProxy const &rhs) noexcept |
| bool | operator== (OptionalProxy const &lhs, OptionalProxy const &rhs) noexcept |
Definition at line 603 of file STObject.h.
|
private |
Definition at line 606 of file STObject.h.
|
private |
Definition at line 608 of file STObject.h.
|
default |
|
private |
Definition at line 905 of file STObject.h.
|
delete |
|
explicitnoexcept |
Returns true if the field is set.
Fields with soeDEFAULT and set to the default value will return true
Definition at line 834 of file STObject.h.
| xrpl::STObject::OptionalProxy< T >::operator optional_type | ( | ) | const |
| STObject::OptionalProxy< T >::optional_type xrpl::STObject::OptionalProxy< T >::operator~ | ( | ) | const |
Explicit conversion to std::optional.
Definition at line 849 of file STObject.h.
|
nodiscard |
Definition at line 943 of file STObject.h.
| auto xrpl::STObject::OptionalProxy< T >::operator= | ( | std::nullopt_t const & | ) |
Definition at line 856 of file STObject.h.
| auto xrpl::STObject::OptionalProxy< T >::operator= | ( | optional_type && | v | ) |
Definition at line 864 of file STObject.h.
| auto xrpl::STObject::OptionalProxy< T >::operator= | ( | optional_type const & | v | ) |
Definition at line 881 of file STObject.h.
| OptionalProxy & xrpl::STObject::OptionalProxy< T >::operator= | ( | U && | u | ) |
|
nodiscardprivatenoexcept |
Definition at line 911 of file STObject.h.
|
private |
Definition at line 918 of file STObject.h.
|
nodiscardprivate |
Definition at line 934 of file STObject.h.
| STObject::OptionalProxy< T > & xrpl::STObject::OptionalProxy< T >::operator= | ( | U && | u | ) |
Definition at line 897 of file STObject.h.
|
nodiscardinherited |
Definition at line 722 of file STObject.h.
|
inherited |
Definition at line 740 of file STObject.h.
|
inherited |
Do not use operator->() unless the field is required, or you've checked that it's set.
Definition at line 751 of file STObject.h.
|
nodiscardprotectedinherited |
Definition at line 758 of file STObject.h.
|
protectedinherited |
Definition at line 766 of file STObject.h.
|
friend |
Definition at line 685 of file STObject.h.
|
friend |
Definition at line 633 of file STObject.h.
|
friend |
Definition at line 639 of file STObject.h.
|
friend |
Definition at line 645 of file STObject.h.
|
friend |
Definition at line 655 of file STObject.h.
|
friend |
Definition at line 661 of file STObject.h.
|
protectedinherited |
Definition at line 520 of file STObject.h.
|
protectedinherited |
Definition at line 521 of file STObject.h.
|
protectedinherited |
Definition at line 522 of file STObject.h.