xrpld
Loading...
Searching...
No Matches
xrpl::STObject::Proxy< T > Class Template Reference

#include <STObject.h>

Inheritance diagram for xrpl::STObject::Proxy< T >:
Collaboration diagram for xrpl::STObject::Proxy< T >:

Public Types

using value_type = T::value_type

Public Member Functions

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

 Proxy (Proxy const &)=default
 Proxy (STObject *st, TypedField< T > const *f)
T const * find () const
template<class U>
void assign (U &&u)

Protected Attributes

STObjectst_
SOEStyle style_
TypedField< T > const * f_

Detailed Description

template<class T>
class xrpl::STObject::Proxy< T >

Definition at line 478 of file STObject.h.

Member Typedef Documentation

◆ value_type

template<class T>
using xrpl::STObject::Proxy< T >::value_type = T::value_type

Definition at line 481 of file STObject.h.

Constructor & Destructor Documentation

◆ Proxy() [1/2]

template<class T>
xrpl::STObject::Proxy< T >::Proxy ( Proxy< T > const & )
protecteddefault

◆ Proxy() [2/2]

template<class T>
xrpl::STObject::Proxy< T >::Proxy ( STObject * st,
TypedField< T > const * f )
protected

Definition at line 701 of file STObject.h.

Member Function Documentation

◆ value()

template<class T>
auto xrpl::STObject::Proxy< T >::value ( ) const
nodiscard

Definition at line 718 of file STObject.h.

◆ operator*()

template<class T>
auto xrpl::STObject::Proxy< T >::operator* ( ) const

Definition at line 736 of file STObject.h.

◆ operator->()

template<class T>
T const * xrpl::STObject::Proxy< T >::operator-> ( ) const

Do not use operator->() unless the field is required, or you've checked that it's set.

Definition at line 745 of file STObject.h.

◆ find()

template<class T>
T const * xrpl::STObject::Proxy< T >::find ( ) const
nodiscardprotected

Definition at line 752 of file STObject.h.

◆ assign()

template<class T>
template<class U>
void xrpl::STObject::Proxy< T >::assign ( U && u)
protected

Definition at line 760 of file STObject.h.

Member Data Documentation

◆ st_

template<class T>
STObject* xrpl::STObject::Proxy< T >::st_
protected

Definition at line 495 of file STObject.h.

◆ style_

template<class T>
SOEStyle xrpl::STObject::Proxy< T >::style_
protected

Definition at line 496 of file STObject.h.

◆ f_

template<class T>
TypedField<T> const* xrpl::STObject::Proxy< T >::f_
protected

Definition at line 497 of file STObject.h.