3#include "barretenberg/common/assert.hpp"
4#include "barretenberg/polynomials/polynomial.hpp"
8#include <unordered_map>
10namespace proof_system {
15 std::unordered_map<std::string, Polynomial> polynomial_map;
29 void remove(std::string
const& key);
36 bool contains(std::string
const& key) {
return polynomial_map.contains(key); };
37 size_t size() {
return polynomial_map.size(); };
40 typename std::unordered_map<std::string, Polynomial>::const_iterator begin()
const
42 return polynomial_map.begin();
44 typename std::unordered_map<std::string, Polynomial>::const_iterator end()
const {
return polynomial_map.end(); }
Definition: polynomial.hpp:12
Definition: polynomial_store.hpp:12
size_t get_size_in_bytes() const
Get the current size (bytes) of all polynomials in the PolynomialStore.
Definition: polynomial_store.cpp:50
void put(std::string const &key, Polynomial &&value)
Definition: polynomial_store.cpp:11
void print()
Print a summary of the PolynomialStore contents.
Definition: polynomial_store.cpp:63
void remove(std::string const &key)
Erase the polynomial with the given key from the map if it exists. (ASSERT that it does)
Definition: polynomial_store.cpp:39
Polynomial get(std::string const &key)
Get a reference to a polynomial in the PolynomialStore; will throw exception if the key does not exis...
Definition: polynomial_store.cpp:25