FOSSredder 0.5.0
Loading...
Searching...
No Matches
core::domain::MoneyAmount Class Reference

#include <MoneyAmount.h>

Public Member Functions

double value () const noexcept
 MoneyAmount ()=default
 MoneyAmount (double value)
 Creates a monetary amount from a raw numeric value.

Static Public Member Functions

static bool isValid (double value) noexcept
 Checks whether a raw amount is finite.

Detailed Description

Definition at line 12 of file MoneyAmount.h.

Constructor & Destructor Documentation

◆ MoneyAmount() [1/2]

core::domain::MoneyAmount::MoneyAmount ( )
default
Here is the call graph for this function:

◆ MoneyAmount() [2/2]

core::domain::MoneyAmount::MoneyAmount ( double value)
explicit

Creates a monetary amount from a raw numeric value.

Parameters
valueRaw amount.

Definition at line 10 of file MoneyAmount.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ isValid()

bool core::domain::MoneyAmount::isValid ( double value)
inlinestaticnoexcept

Checks whether a raw amount is finite.

Parameters
valueRaw amount.
Returns
true when the amount is finite.

Definition at line 28 of file MoneyAmount.h.

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

◆ value()

double core::domain::MoneyAmount::value ( ) const
noexcept

Definition at line 13 of file MoneyAmount.cpp.

Here is the caller graph for this function:

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