|
barretenberg
|
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::KeyEntry > | key_entries |
Container type for lookup table reads.
| DataType | a 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.