barretenberg
Loading...
Searching...
No Matches
Public Member Functions | List of all members
proof_system::PolynomialStore< Fr > Class Template Reference

Public Member Functions

void put (std::string const &key, Polynomial &&value)
 
Polynomial get (std::string const &key)
 Get a reference to a polynomial in the PolynomialStore; will throw exception if the key does not exist in the map.
 
void remove (std::string const &key)
 Erase the polynomial with the given key from the map if it exists. (ASSERT that it does)
 
size_t get_size_in_bytes () const
 Get the current size (bytes) of all polynomials in the PolynomialStore.
 
void print ()
 Print a summary of the PolynomialStore contents.
 
bool contains (std::string const &key)
 
size_t size ()
 
std::unordered_map< std::string, Polynomial >::const_iterator begin () const
 
std::unordered_map< std::string, Polynomial >::const_iterator end () const
 

Member Function Documentation

◆ get()

template<typename Fr >
barretenberg::Polynomial< Fr > proof_system::PolynomialStore< Fr >::get ( std::string const &  key)

Get a reference to a polynomial in the PolynomialStore; will throw exception if the key does not exist in the map.

Returns a polynomial by value. A shallow copy of the polynomial is taken, which the compiler will move to the caller.

Parameters
keystring ID of the polynomial
Returns
Polynomial&; a reference to the polynomial associated with the given key

◆ get_size_in_bytes()

template<typename Fr >
size_t proof_system::PolynomialStore< Fr >::get_size_in_bytes

Get the current size (bytes) of all polynomials in the PolynomialStore.

Returns
size_t

◆ print()

template<typename Fr >
void proof_system::PolynomialStore< Fr >::print

Print a summary of the PolynomialStore contents.

◆ put()

template<typename Fr >
void proof_system::PolynomialStore< Fr >::put ( std::string const &  key,
Polynomial &&  value 
)

Transfer ownership of a polynomial to the PolynomialStore.

◆ remove()

template<typename Fr >
void proof_system::PolynomialStore< Fr >::remove ( std::string const &  key)

Erase the polynomial with the given key from the map if it exists. (ASSERT that it does)

Parameters
key

The documentation for this class was generated from the following files: