barretenberg
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
plookup::ReadData< DataType > Class Template Reference

Container type for lookup table reads. More...

#include <types.hpp>

Public Member Functions

std::vector< DataType > & operator[] (ColumnIdx idx)
 
const std::vector< DataType > & operator[] (ColumnIdx idx) const
 

Public Attributes

std::vector< BasicTable::KeyEntrykey_entries
 

Detailed Description

template<class DataType>
class plookup::ReadData< DataType >

Container type for lookup table reads.

Template Parameters
DataTypea native or stdlib field type, or the witness index type uint32_t

We us this approach to indexing, using enums, rather than to make member variables column_i, to minimize code changes; both non-const and const versions are in use.

The inner index, i.e., the index of each vector v in the array columns, could also be treated as an enum, but that might be messier. Note that v[0] represents a full accumulated sum, v[1] represents one step before that, and so on. See the documentation of the native version of get_lookup_accumulators.


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