rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ripple::STObject::ValueProxy< T > Class Template Reference

#include <STObject.h>

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)
 
template<IsArithmetic U>
ValueProxyoperator+= (U const &u)
 
template<IsArithmetic U>
ValueProxyoperator-= (U const &u)
 
 operator value_type () const
 
template<class U >
std::enable_if_t< std::is_assignable_v< T, U >, STObject::ValueProxy< T > & > operator= (U &&u)
 
template<IsArithmetic U>
STObject::ValueProxy< T > & operator+= (U const &u)
 
template<IsArithmetic U>
STObject::ValueProxy< T > & operator-= (U const &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 515 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 518 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 782 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+=() [1/2]

template<class T >
template<IsArithmetic U>
ValueProxy & ripple::STObject::ValueProxy< T >::operator+= ( U const &  u)

◆ operator-=() [1/2]

template<class T >
template<IsArithmetic U>
ValueProxy & ripple::STObject::ValueProxy< T >::operator-= ( U const &  u)

◆ operator value_type()

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

Definition at line 776 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 751 of file STObject.h.

◆ operator+=() [2/2]

template<class T >
template<IsArithmetic U>
STObject::ValueProxy< T > & ripple::STObject::ValueProxy< T >::operator+= ( U const &  u)

Definition at line 760 of file STObject.h.

◆ operator-=() [2/2]

template<class T >
template<IsArithmetic U>
STObject::ValueProxy< T > & ripple::STObject::ValueProxy< T >::operator-= ( U const &  u)

Definition at line 769 of file STObject.h.

◆ value()

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

Definition at line 703 of file STObject.h.

◆ find()

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

Definition at line 722 of file STObject.h.

◆ assign()

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

Definition at line 730 of file STObject.h.

Friends And Related Function Documentation

◆ STObject

template<class T >
friend class STObject
friend

Definition at line 542 of file STObject.h.

Member Data Documentation

◆ st_

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

Definition at line 490 of file STObject.h.

◆ style_

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

Definition at line 491 of file STObject.h.

◆ f_

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

Definition at line 492 of file STObject.h.