#include "amount.hpp"


Classes | |
| struct | Impl |
Public Member Functions | |
| Amount (std::string_view amount) | |
| Amount (types::PrecisionType precision) | |
| Amount (Amount const &other) | |
| Amount (Amount &&other) noexcept | |
| Amount & | operator= (Amount const &other) |
| Amount & | operator= (Amount &&other) noexcept |
| ~Amount () override | |
| int | sign () const |
| types::PrecisionType | precision () const |
| std::string const & | toStringRepr () const |
| Amount & | operator+= (Amount const &other) |
| Amount & | operator-= (Amount const &other) |
| bool | operator== (const ModelType &rhs) const override |
| std::string | toString () const override |
Public Member Functions inherited from shared_model::interface::ModelPrimitive< Amount > | |
| virtual bool | operator== (const ModelType &rhs) const=0 |
| virtual bool | operator!= (const ModelType &rhs) const |
| virtual | ~ModelPrimitive ()=default |
Additional Inherited Members | |
Public Types inherited from shared_model::interface::ModelPrimitive< Amount > | |
| using | ModelType = Amount |
Representation of fixed point number
|
explicit |

|
explicit |
| Amount::Amount | ( | Amount const & | other | ) |
|
noexcept |
|
overridedefault |

|
override |
Checks equality of objects inside
| rhs | - other wrapped value |
| types::PrecisionType Amount::precision | ( | ) | const |
Gets the position of precision

| int Amount::sign | ( | ) | const |
|
overridevirtual |
Stringify the data.
Reimplemented from shared_model::interface::ModelPrimitive< Amount >.


| std::string const & Amount::toStringRepr | ( | ) | const |
String representation.
