rippled
Public Member Functions | Public Attributes | Friends | List of all members
ripple::EitherAmount Struct Reference
Collaboration diagram for ripple::EitherAmount:
Collaboration graph
[legend]

Public Member Functions

 EitherAmount ()=default
 
 EitherAmount (IOUAmount const &a)
 
 EitherAmount (XRPAmount const &a)
 
 EitherAmount (AmountSpec const &a)
 

Public Attributes

bool native = false
 
union {
   IOUAmount   iou = {}
 
   XRPAmount   xrp
 
}; 
 

Friends

std::ostreamoperator<< (std::ostream &stream, EitherAmount const &amt)
 

Detailed Description

Definition at line 59 of file AmountSpec.h.

Constructor & Destructor Documentation

◆ EitherAmount() [1/4]

ripple::EitherAmount::EitherAmount ( )
default

◆ EitherAmount() [2/4]

ripple::EitherAmount::EitherAmount ( IOUAmount const &  a)
explicit

Definition at line 73 of file AmountSpec.h.

◆ EitherAmount() [3/4]

ripple::EitherAmount::EitherAmount ( XRPAmount const &  a)
explicit

Definition at line 82 of file AmountSpec.h.

◆ EitherAmount() [4/4]

ripple::EitherAmount::EitherAmount ( AmountSpec const &  a)
explicit

Definition at line 92 of file AmountSpec.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream stream,
EitherAmount const &  amt 
)
friend

Definition at line 105 of file AmountSpec.h.

Member Data Documentation

◆ native

bool ripple::EitherAmount::native = false

Definition at line 62 of file AmountSpec.h.

◆ iou

IOUAmount ripple::EitherAmount::iou = {}

Definition at line 67 of file AmountSpec.h.

◆ xrp

XRPAmount ripple::EitherAmount::xrp

Definition at line 68 of file AmountSpec.h.

◆ @6

union { ... }