rippled
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | 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)
 
value_type value () const
 
value_type operator* () const
 
T const * operator-> () const
 

Protected Member Functions

T const * find () const
 
template<class U >
void assign (U &&u)
 

Protected Attributes

STObjectst_
 
SOEStyle style_
 
TypedField< T > const * f_
 

Private Types

using value_type = typename T::value_type
 

Private Member Functions

 ValueProxy (STObject *st, TypedField< T > const *f)
 

Friends

class STObject
 
template<typename U >
bool operator== (U const &lhs, STObject::ValueProxy< T > const &rhs)
 

Detailed Description

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

Definition at line 530 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 533 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+=() [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 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 778 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 787 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 796 of file STObject.h.

◆ value()

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

Definition at line 716 of file STObject.h.

◆ operator*()

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

Definition at line 735 of file STObject.h.

◆ operator->()

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

Definition at line 742 of file STObject.h.

◆ find()

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

Definition at line 749 of file STObject.h.

◆ assign()

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

Definition at line 757 of file STObject.h.

Friends And Related Symbol Documentation

◆ STObject

template<class T >
friend class STObject
friend

Definition at line 564 of file STObject.h.

◆ operator==

template<class T >
template<typename U >
bool operator== ( U const &  lhs,
STObject::ValueProxy< T > const &  rhs 
)
friend

Definition at line 558 of file STObject.h.

Member Data Documentation

◆ st_

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

Definition at line 508 of file STObject.h.

◆ style_

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

Definition at line 509 of file STObject.h.

◆ f_

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

Definition at line 510 of file STObject.h.