How zay15nab/lab_big_integer works
This is a small C++ arbitrary-precision signed-integer library. Its principal workflow is constructing or parsing a value, applying comparisons and arithmetic (including quotient and remainder), then formatting or streaming the result. The implementation uses a signed, least-significant-digit-first representation and private magnitude helpers. The README also documents this capability set. Tests and build machinery are excluded from this runtime map; edges reflect the sampled implementation and public interface.
Main entry points: big_integer.h BigInteger API · big_integer.cpp Arithmetic operators
Components 9
Public value API
- BigInteger API
big_integer.h
Integer implementation
- Construction
big_integer.cpp - Signed digit storage
big_integer.h - Magnitude helpers
big_integer.cpp - Arithmetic operators
big_integer.cpp - Comparisons and predicates
big_integer.cpp
Text conversion
- String conversion
big_integer.cpp - Stream I/O
big_integer.cpp
Other components
- Library caller
Connections 14
- Library caller → BigInteger API: uses
big_integer.h - BigInteger API → Construction: constructs
big_integer.h - BigInteger API → Arithmetic operators: applies operators
big_integer.h - BigInteger API → Comparisons and predicates: compares
big_integer.h - Construction → Signed digit storage: initializes
big_integer.cpp - Magnitude helpers → Signed digit storage: updates
big_integer.cpp - Arithmetic operators → Magnitude helpers: uses
big_integer.cpp - Arithmetic operators → Comparisons and predicates: tests magnitude
big_integer.cpp - Comparisons and predicates → Signed digit storage: reads
big_integer.cpp - BigInteger API → String conversion: formats
big_integer.h - String conversion → Signed digit storage: reads digits
big_integer.cpp - BigInteger API → Stream I/O: streams values
big_integer.h - Stream I/O → String conversion: formats output
big_integer.cpp - Stream I/O → Construction: parses input
big_integer.cpp