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 348 of file types.hpp.

Member Function Documentation

◆ initialize_index_map()

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

Definition at line 389 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 395 of file types.hpp.

Member Data Documentation

◆ column_1

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

Definition at line 381 of file types.hpp.

◆ column_1_step_size

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

Definition at line 378 of file types.hpp.

◆ column_2

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

Definition at line 382 of file types.hpp.

◆ column_2_step_size

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

Definition at line 379 of file types.hpp.

◆ column_3

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

Definition at line 383 of file types.hpp.

◆ column_3_step_size

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

Definition at line 380 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 389 of file types.hpp.

◆ id

BasicTableId bb::plookup::BasicTable::id

Definition at line 373 of file types.hpp.

◆ index_map

LookupHashTable bb::plookup::BasicTable::index_map

Definition at line 387 of file types.hpp.

◆ lookup_gates

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

Definition at line 384 of file types.hpp.

◆ table_index

size_t bb::plookup::BasicTable::table_index

Definition at line 374 of file types.hpp.

◆ use_twin_keys

bool bb::plookup::BasicTable::use_twin_keys

Definition at line 376 of file types.hpp.


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