rippled
Public Member Functions | Static Public Member Functions | List of all members
ripple::Quality_test Class Reference
Inheritance diagram for ripple::Quality_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::Quality_test:
Collaboration graph
[legend]

Public Member Functions

template<class In1 , class Out1 , class Int , class In2 , class Out2 >
void ceil_in (Quality const &q, In1 in, Out1 out, Int limit, In2 in_expected, Out2 out_expected)
 
template<class In1 , class Out1 , class Int , class In2 , class Out2 >
void ceil_out (Quality const &q, In1 in, Out1 out, Int limit, In2 in_expected, Out2 out_expected)
 
void test_ceil_in ()
 
void test_ceil_out ()
 
void test_raw ()
 
void test_round ()
 
void test_comparisons ()
 
void test_composition ()
 
void test_operations ()
 
void run () override
 

Static Public Member Functions

static STAmount raw (std::uint64_t mantissa, int exponent)
 
template<class Integer >
static STAmount amount (Integer integer, std::enable_if_t< std::is_signed< Integer >::value > *=0)
 
template<class Integer >
static STAmount amount (Integer integer, std::enable_if_t<!std::is_signed< Integer >::value > *=0)
 
template<class In , class Out >
static Amounts amounts (In in, Out out)
 

Detailed Description

Definition at line 26 of file Quality_test.cpp.

Member Function Documentation

◆ raw()

static STAmount ripple::Quality_test::raw ( std::uint64_t  mantissa,
int  exponent 
)
static

Definition at line 30 of file Quality_test.cpp.

◆ amount() [1/2]

template<class Integer >
static STAmount ripple::Quality_test::amount ( Integer  integer,
std::enable_if_t< std::is_signed< Integer >::value > *  = 0 
)
static

Definition at line 37 of file Quality_test.cpp.

◆ amount() [2/2]

template<class Integer >
static STAmount ripple::Quality_test::amount ( Integer  integer,
std::enable_if_t<!std::is_signed< Integer >::value > *  = 0 
)
static

Definition at line 47 of file Quality_test.cpp.

◆ amounts()

template<class In , class Out >
static Amounts ripple::Quality_test::amounts ( In  in,
Out  out 
)
static

Definition at line 59 of file Quality_test.cpp.

◆ ceil_in()

template<class In1 , class Out1 , class Int , class In2 , class Out2 >
void ripple::Quality_test::ceil_in ( Quality const &  q,
In1  in,
Out1  out,
Int  limit,
In2  in_expected,
Out2  out_expected 
)

Definition at line 66 of file Quality_test.cpp.

◆ ceil_out()

template<class In1 , class Out1 , class Int , class In2 , class Out2 >
void ripple::Quality_test::ceil_out ( Quality const &  q,
In1  in,
Out1  out,
Int  limit,
In2  in_expected,
Out2  out_expected 
)

Definition at line 82 of file Quality_test.cpp.

◆ test_ceil_in()

void ripple::Quality_test::test_ceil_in ( )

Definition at line 97 of file Quality_test.cpp.

◆ test_ceil_out()

void ripple::Quality_test::test_ceil_out ( )

Definition at line 190 of file Quality_test.cpp.

◆ test_raw()

void ripple::Quality_test::test_raw ( )

Definition at line 283 of file Quality_test.cpp.

◆ test_round()

void ripple::Quality_test::test_round ( )

Definition at line 300 of file Quality_test.cpp.

◆ test_comparisons()

void ripple::Quality_test::test_comparisons ( )

Definition at line 322 of file Quality_test.cpp.

◆ test_composition()

void ripple::Quality_test::test_composition ( )

Definition at line 359 of file Quality_test.cpp.

◆ test_operations()

void ripple::Quality_test::test_operations ( )

Definition at line 383 of file Quality_test.cpp.

◆ run()

void ripple::Quality_test::run ( )
override

Definition at line 405 of file Quality_test.cpp.