#include "amount.hpp"


Classes | |
| struct | Impl |
Public Member Functions | |
| Amount (const std::string &amount) | |
| int | sign () const |
| types::PrecisionType | precision () const |
| std::string | toStringRepr () const |
| 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 |
|
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 Amount::toStringRepr | ( | ) | const |
String representation.
