4 #ifndef DJINNI_GENERATED_BIGINT_HPP 5 #define DJINNI_GENERATED_BIGINT_HPP 11 #ifndef LIBCORE_EXPORT 13 #include <libcore_export.h> 15 #define LIBCORE_EXPORT 19 namespace ledger {
namespace core {
namespace api {
31 virtual std::shared_ptr<BigInt> add(
const std::shared_ptr<BigInt> & i) = 0;
38 virtual std::shared_ptr<BigInt> subtract(
const std::shared_ptr<BigInt> & i) = 0;
45 virtual std::shared_ptr<BigInt> multiply(
const std::shared_ptr<BigInt> & i) = 0;
52 virtual std::shared_ptr<BigInt> divide(
const std::shared_ptr<BigInt> & i) = 0;
59 virtual std::vector<std::shared_ptr<BigInt>> divideAndRemainder(
const std::shared_ptr<BigInt> & i) = 0;
66 virtual std::shared_ptr<BigInt> pow(int32_t exponent) = 0;
75 virtual std::string toDecimalString(int32_t precision,
const std::string & decimalSeparator,
const std::string & thousandSeparator) = 0;
81 virtual std::string toString(int32_t radix) = 0;
88 virtual int32_t intValue() = 0;
95 virtual int32_t compare(
const std::shared_ptr<BigInt> & i) = 0;
105 static std::shared_ptr<BigInt> fromDecimalString(
const std::string & s, int32_t precision,
const std::string & decimalSeparator);
113 static std::shared_ptr<BigInt> fromIntegerString(
const std::string & s, int32_t radix);
120 static std::shared_ptr<BigInt> fromLong(int64_t l);
124 #endif //DJINNI_GENERATED_BIGINT_HPP Definition: BigInt.hpp:22
Definition: Account.cpp:8