Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::plookup::BasicTable Struct Reference

A basic table from which we can perform lookups (for example, an xor table) More...

#include <types.hpp>

Classes

struct  LookupEntry
 

Public Member Functions

void initialize_index_map ()
 
bool operator== (const BasicTable &other) const =default
 
size_t size () const
 

Public Attributes

BasicTableId id
 
size_t table_index
 
bool use_twin_keys
 
bb::fr column_1_step_size = bb::fr(0)
 
bb::fr column_2_step_size = bb::fr(0)
 
bb::fr column_3_step_size = bb::fr(0)
 
std::vector< bb::frcolumn_1
 
std::vector< bb::frcolumn_2
 
std::vector< bb::frcolumn_3
 
std::vector< LookupEntrylookup_gates
 
LookupHashTable index_map
 
std::array< bb::fr, 2 >(* get_values_from_key )(const std::array< uint64_t, 2 >)
 

Detailed Description

A basic table from which we can perform lookups (for example, an xor table)

Also stores the lookup gate data for all lookups performed on this table

Definition at line 305 of file types.hpp.

Member Function Documentation

◆ initialize_index_map()

void bb::plookup::BasicTable::initialize_index_map ( )
inline

Definition at line 346 of file types.hpp.

◆ operator==()

bool bb::plookup::BasicTable::operator== ( const BasicTable other) const
default

◆ size()

size_t bb::plookup::BasicTable::size ( ) const
inline

Definition at line 352 of file types.hpp.

Member Data Documentation

◆ column_1

std::vector<bb::fr> bb::plookup::BasicTable::column_1

Definition at line 338 of file types.hpp.

◆ column_1_step_size

bb::fr bb::plookup::BasicTable::column_1_step_size = bb::fr(0)

Definition at line 335 of file types.hpp.

◆ column_2

std::vector<bb::fr> bb::plookup::BasicTable::column_2

Definition at line 339 of file types.hpp.

◆ column_2_step_size

bb::fr bb::plookup::BasicTable::column_2_step_size = bb::fr(0)

Definition at line 336 of file types.hpp.

◆ column_3

std::vector<bb::fr> bb::plookup::BasicTable::column_3

Definition at line 340 of file types.hpp.

◆ column_3_step_size

bb::fr bb::plookup::BasicTable::column_3_step_size = bb::fr(0)

Definition at line 337 of file types.hpp.

◆ get_values_from_key

std::array< bb::fr, 2 >(* bb::plookup::BasicTable::get_values_from_key) (const std::array< uint64_t, 2 >)

Definition at line 346 of file types.hpp.

◆ id

BasicTableId bb::plookup::BasicTable::id

Definition at line 330 of file types.hpp.

◆ index_map

LookupHashTable bb::plookup::BasicTable::index_map

Definition at line 344 of file types.hpp.

◆ lookup_gates

std::vector<LookupEntry> bb::plookup::BasicTable::lookup_gates

Definition at line 341 of file types.hpp.

◆ table_index

size_t bb::plookup::BasicTable::table_index

Definition at line 331 of file types.hpp.

◆ use_twin_keys

bool bb::plookup::BasicTable::use_twin_keys

Definition at line 333 of file types.hpp.


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