initial upload
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
#include <bigmath/BigMath.hpp>
|
||||
|
||||
namespace bigmath {
|
||||
|
||||
/**
|
||||
* A segment contains a fixed amount of numbers.
|
||||
*/
|
||||
class segment {
|
||||
public:
|
||||
|
||||
static const dlen_t digit_count;
|
||||
static const dlen_t byte_count;
|
||||
|
||||
private:
|
||||
|
||||
digits_t digits;
|
||||
|
||||
public:
|
||||
|
||||
segment();
|
||||
|
||||
~segment();
|
||||
|
||||
public:
|
||||
|
||||
d10_t operator[](dlen_t i) const;
|
||||
|
||||
void set(dlen_t i, d10_t n);
|
||||
|
||||
public:
|
||||
|
||||
const digits_t bytes() const;
|
||||
|
||||
std::string describe() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user