rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
xrpl::SOElement Class Reference

An element in a SOTemplate. More...

#include <SOTemplate.h>

Collaboration diagram for xrpl::SOElement:
Collaboration graph
[legend]

Public Member Functions

 SOElement (SField const &fieldName, SOEStyle style)
 
template<typename T >
requires (std::is_same_v<T, STAmount> || std::is_same_v<T, STIssue>)
 SOElement (TypedField< T > const &fieldName, SOEStyle style, SOETxMPTIssue supportMpt=soeMPTNotSupported)
 
SField const & sField () const
 
SOEStyle style () const
 
SOETxMPTIssue supportMPT () const
 

Private Member Functions

void init (SField const &fieldName) const
 

Private Attributes

std::reference_wrapper< SField const > sField_
 
SOEStyle style_
 
SOETxMPTIssue supportMpt_ = soeMPTNone
 

Detailed Description

An element in a SOTemplate.

Definition at line 28 of file SOTemplate.h.

Constructor & Destructor Documentation

◆ SOElement() [1/2]

xrpl::SOElement::SOElement ( SField const &  fieldName,
SOEStyle  style 
)

Definition at line 49 of file SOTemplate.h.

◆ SOElement() [2/2]

template<typename T >
requires (std::is_same_v<T, STAmount> || std::is_same_v<T, STIssue>)
xrpl::SOElement::SOElement ( TypedField< T > const &  fieldName,
SOEStyle  style,
SOETxMPTIssue  supportMpt = soeMPTNotSupported 
)

Definition at line 56 of file SOTemplate.h.

Member Function Documentation

◆ init()

void xrpl::SOElement::init ( SField const &  fieldName) const
private

Definition at line 37 of file SOTemplate.h.

◆ sField()

SField const & xrpl::SOElement::sField ( ) const

Definition at line 63 of file SOTemplate.h.

◆ style()

SOEStyle xrpl::SOElement::style ( ) const

Definition at line 69 of file SOTemplate.h.

◆ supportMPT()

SOETxMPTIssue xrpl::SOElement::supportMPT ( ) const

Definition at line 75 of file SOTemplate.h.

Member Data Documentation

◆ sField_

std::reference_wrapper<SField const> xrpl::SOElement::sField_
private

Definition at line 31 of file SOTemplate.h.

◆ style_

SOEStyle xrpl::SOElement::style_
private

Definition at line 32 of file SOTemplate.h.

◆ supportMpt_

SOETxMPTIssue xrpl::SOElement::supportMpt_ = soeMPTNone
private

Definition at line 33 of file SOTemplate.h.