rippled
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ripple::STObject::ValueProxy< T > Class Template Reference
Inheritance diagram for ripple::STObject::ValueProxy< T >:
Inheritance graph
[legend]
Collaboration diagram for ripple::STObject::ValueProxy< T >:
Collaboration graph
[legend]

Public Member Functions

 ValueProxy (ValueProxy const &)=default
 
ValueProxyoperator= (ValueProxy const &)=delete
 
template<class U >
std::enable_if_t< std::is_assignable_v< T, U >, ValueProxy & > operator= (U &&u)
 
 operator value_type () const
 
template<class U >
std::enable_if_t< std::is_assignable_v< T, U >, STObject::ValueProxy< T > & > operator= (U &&u)
 

Private Types

using value_type = typename T::value_type
 

Private Member Functions

 ValueProxy (STObject *st, TypedField< T > const *f)
 
value_type value () const
 
T const * find () const
 
template<class U >
void assign (U &&u)
 

Private Attributes

STObjectst_
 
SOEStyle style_
 
TypedField< T > const * f_
 

Friends

class STObject
 

Detailed Description

template<class T>
class ripple::STObject::ValueProxy< T >

Definition at line 78 of file STObject.h.

Member Typedef Documentation

◆ value_type

template<class T >
using ripple::STObject::ValueProxy< T >::value_type = typename T::value_type
private

Definition at line 81 of file STObject.h.

Constructor & Destructor Documentation

◆ ValueProxy() [1/2]

template<class T >
ripple::STObject::ValueProxy< T >::ValueProxy ( ValueProxy< T > const &  )
default

◆ ValueProxy() [2/2]

template<class T >
ripple::STObject::ValueProxy< T >::ValueProxy ( STObject st,
TypedField< T > const *  f 
)
private

Definition at line 809 of file STObject.h.

Member Function Documentation

◆ operator=() [1/3]

template<class T >
ValueProxy& ripple::STObject::ValueProxy< T >::operator= ( ValueProxy< T > const &  )
delete

◆ operator=() [2/3]

template<class T >
template<class U >
std::enable_if_t<std::is_assignable_v<T, U>, ValueProxy&> ripple::STObject::ValueProxy< T >::operator= ( U &&  u)

◆ operator value_type()

template<class T >
ripple::STObject::ValueProxy< T >::operator value_type ( ) const

Definition at line 803 of file STObject.h.

◆ operator=() [3/3]

template<class T >
template<class U >
std::enable_if_t<std::is_assignable_v<T, U>, STObject::ValueProxy<T>&> ripple::STObject::ValueProxy< T >::operator= ( U &&  u)

Definition at line 796 of file STObject.h.

◆ value()

template<class T >
auto ripple::STObject::Proxy< T >::value ( ) const
protectedinherited

Definition at line 754 of file STObject.h.

◆ find()

template<class T >
T const * ripple::STObject::Proxy< T >::find ( ) const
protectedinherited

Definition at line 767 of file STObject.h.

◆ assign()

template<class T >
template<class U >
void ripple::STObject::Proxy< T >::assign ( U &&  u)
protectedinherited

Definition at line 775 of file STObject.h.

Friends And Related Function Documentation

◆ STObject

template<class T >
friend class STObject
friend

Definition at line 95 of file STObject.h.

Member Data Documentation

◆ st_

template<class T >
STObject* ripple::STObject::Proxy< T >::st_
protectedinherited

Definition at line 61 of file STObject.h.

◆ style_

template<class T >
SOEStyle ripple::STObject::Proxy< T >::style_
protectedinherited

Definition at line 62 of file STObject.h.

◆ f_

template<class T >
TypedField<T> const* ripple::STObject::Proxy< T >::f_
protectedinherited

Definition at line 63 of file STObject.h.