Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CFGAS_Decimal Class Reference

#include <cfgas_decimal.h>

+ Collaboration diagram for CFGAS_Decimal:

Public Member Functions

 CFGAS_Decimal ()
 
 CFGAS_Decimal (uint32_t val)
 
 CFGAS_Decimal (uint64_t val)
 
 CFGAS_Decimal (int32_t val)
 
 CFGAS_Decimal (float val, uint8_t scale)
 
 CFGAS_Decimal (WideStringView str)
 
WideString ToWideString () const
 
float ToFloat () const
 
double ToDouble () const
 
CFGAS_Decimal operator* (const CFGAS_Decimal &val) const
 
CFGAS_Decimal operator/ (const CFGAS_Decimal &val) const
 
bool IsNotZero () const
 
uint8_t GetScale () const
 
void SetScale (uint8_t newScale)
 
void SetNegate ()
 

Detailed Description

Definition at line 12 of file cfgas_decimal.h.

Constructor & Destructor Documentation

◆ CFGAS_Decimal() [1/6]

CFGAS_Decimal::CFGAS_Decimal ( )
default

Referenced by operator/().

+ Here is the caller graph for this function:

◆ CFGAS_Decimal() [2/6]

CFGAS_Decimal::CFGAS_Decimal ( uint32_t val)
explicit

Definition at line 243 of file cfgas_decimal.cpp.

Referenced by CFGAS_Decimal(), and TEST().

+ Here is the caller graph for this function:

◆ CFGAS_Decimal() [3/6]

CFGAS_Decimal::CFGAS_Decimal ( uint64_t val)
explicit

Definition at line 239 of file cfgas_decimal.cpp.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ CFGAS_Decimal() [4/6]

CFGAS_Decimal::CFGAS_Decimal ( int32_t val)
explicit

Definition at line 257 of file cfgas_decimal.cpp.

References CFGAS_Decimal(), and SetNegate().

Referenced by CFGAS_StringFormatter::FormatNum(), CFGAS_StringFormatter::ParseNum(), and TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CFGAS_Decimal() [5/6]

CFGAS_Decimal::CFGAS_Decimal ( float val,
uint8_t scale )

Definition at line 269 of file cfgas_decimal.cpp.

References FXSYS_roundf(), and IsNotZero().

Referenced by CFGAS_StringFormatter::ParseNum(), CFXJSE_FormCalcContext::Round(), TEST(), and TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CFGAS_Decimal() [6/6]

CFGAS_Decimal::CFGAS_Decimal ( WideStringView str)
explicit

Definition at line 295 of file cfgas_decimal.cpp.

References FXSYS_IsDecimalDigit(), and IsNotZero().

+ Here is the call graph for this function:

Member Function Documentation

◆ GetScale()

uint8_t CFGAS_Decimal::GetScale ( ) const
inline

Definition at line 29 of file cfgas_decimal.h.

Referenced by CFGAS_StringFormatter::FormatNum().

+ Here is the caller graph for this function:

◆ IsNotZero()

bool CFGAS_Decimal::IsNotZero ( ) const
inline

Definition at line 28 of file cfgas_decimal.h.

Referenced by CFGAS_Decimal(), CFGAS_Decimal(), CFGAS_StringFormatter::FormatNum(), operator/(), SetNegate(), SetScale(), and ToWideString().

+ Here is the caller graph for this function:

◆ operator*()

CFGAS_Decimal CFGAS_Decimal::operator* ( const CFGAS_Decimal & val) const

Definition at line 408 of file cfgas_decimal.cpp.

Referenced by CFGAS_StringFormatter::FormatNum(), and CFGAS_StringFormatter::ParseNum().

+ Here is the caller graph for this function:

◆ operator/()

CFGAS_Decimal CFGAS_Decimal::operator/ ( const CFGAS_Decimal & val) const

Definition at line 420 of file cfgas_decimal.cpp.

References CFGAS_Decimal(), and IsNotZero().

Referenced by CFGAS_StringFormatter::FormatNum(), and CFGAS_StringFormatter::ParseNum().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetNegate()

void CFGAS_Decimal::SetNegate ( )

Definition at line 403 of file cfgas_decimal.cpp.

References IsNotZero().

Referenced by CFGAS_Decimal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetScale()

void CFGAS_Decimal::SetScale ( uint8_t newScale)

Definition at line 365 of file cfgas_decimal.cpp.

References IsNotZero().

Referenced by CFGAS_StringFormatter::FormatNum(), and CXFA_Node::NumericLimit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToDouble()

double CFGAS_Decimal::ToDouble ( ) const

Definition at line 358 of file cfgas_decimal.cpp.

Referenced by CFGAS_StringFormatter::FormatNum(), CFXJSE_FormCalcContext::Round(), TEST(), and ToFloat().

+ Here is the caller graph for this function:

◆ ToFloat()

float CFGAS_Decimal::ToFloat ( ) const

Definition at line 354 of file cfgas_decimal.cpp.

References ToDouble().

Referenced by TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToWideString()

WideString CFGAS_Decimal::ToWideString ( ) const

Definition at line 328 of file cfgas_decimal.cpp.

References IsNotZero(), fxcrt::WideString::operator+=(), and fxcrt::WideString::operator[]().

Referenced by CFGAS_StringFormatter::FormatNum(), CXFA_Node::NumericLimit(), CFGAS_StringFormatter::ParseNum(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: