Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::stdlib::twin_rom_table< Builder > Class Template Reference

#include <twin_rom_table.hpp>

Public Member Functions

 twin_rom_table ()
 
 twin_rom_table (const std::vector< field_pair_pt > &table_entries)
 
 twin_rom_table (const twin_rom_table &other)
 
 twin_rom_table (twin_rom_table &&other)
 
void initialize_table () const
 
twin_rom_tableoperator= (const twin_rom_table &other)
 
twin_rom_tableoperator= (twin_rom_table &&other)
 
field_pair_pt operator[] (const size_t index) const
 
field_pair_pt operator[] (const field_pt &index) const
 
size_t size () const
 
Builderget_context () const
 

Private Types

typedef field_t< Builderfield_pt
 
typedef std::array< field_pt, 2 > field_pair_pt
 

Private Attributes

std::vector< field_pair_ptraw_entries
 
std::vector< field_pair_ptentries
 
std::vector< std::array< OriginTag, 2 > > tags
 
size_t length = 0
 
size_t rom_id = 0
 
bool initialized = false
 
Buildercontext = nullptr
 

Detailed Description

template<typename Builder>
class bb::stdlib::twin_rom_table< Builder >

Definition at line 17 of file twin_rom_table.hpp.

Member Typedef Documentation

◆ field_pair_pt

template<typename Builder >
typedef std::array<field_pt, 2> bb::stdlib::twin_rom_table< Builder >::field_pair_pt
private

Definition at line 20 of file twin_rom_table.hpp.

◆ field_pt

template<typename Builder >
typedef field_t<Builder> bb::stdlib::twin_rom_table< Builder >::field_pt
private

Definition at line 19 of file twin_rom_table.hpp.

Constructor & Destructor Documentation

◆ twin_rom_table() [1/4]

template<typename Builder >
bb::stdlib::twin_rom_table< Builder >::twin_rom_table ( )
inline

Definition at line 23 of file twin_rom_table.hpp.

◆ twin_rom_table() [2/4]

template<typename Builder >
bb::stdlib::twin_rom_table< Builder >::twin_rom_table ( const std::vector< field_pair_pt > &  table_entries)

◆ twin_rom_table() [3/4]

template<typename Builder >
bb::stdlib::twin_rom_table< Builder >::twin_rom_table ( const twin_rom_table< Builder > &  other)

Definition at line 87 of file twin_rom_table.cpp.

◆ twin_rom_table() [4/4]

template<typename Builder >
bb::stdlib::twin_rom_table< Builder >::twin_rom_table ( twin_rom_table< Builder > &&  other)

Definition at line 98 of file twin_rom_table.cpp.

Member Function Documentation

◆ get_context()

template<typename Builder >
Builder * bb::stdlib::twin_rom_table< Builder >::get_context ( ) const
inline

Definition at line 41 of file twin_rom_table.hpp.

◆ initialize_table()

template<typename Builder >
void bb::stdlib::twin_rom_table< Builder >::initialize_table ( ) const

Definition at line 49 of file twin_rom_table.cpp.

◆ operator=() [1/2]

template<typename Builder >
twin_rom_table< Builder > & bb::stdlib::twin_rom_table< Builder >::operator= ( const twin_rom_table< Builder > &  other)

Definition at line 108 of file twin_rom_table.cpp.

◆ operator=() [2/2]

template<typename Builder >
twin_rom_table< Builder > & bb::stdlib::twin_rom_table< Builder >::operator= ( twin_rom_table< Builder > &&  other)

Definition at line 120 of file twin_rom_table.cpp.

◆ operator[]() [1/2]

template<typename Builder >
std::array< field_t< Builder >, 2 > bb::stdlib::twin_rom_table< Builder >::operator[] ( const field_pt index) const

Definition at line 144 of file twin_rom_table.cpp.

◆ operator[]() [2/2]

template<typename Builder >
std::array< field_t< Builder >, 2 > bb::stdlib::twin_rom_table< Builder >::operator[] ( const size_t  index) const

Definition at line 133 of file twin_rom_table.cpp.

◆ size()

template<typename Builder >
size_t bb::stdlib::twin_rom_table< Builder >::size ( ) const
inline

Definition at line 39 of file twin_rom_table.hpp.

Member Data Documentation

◆ context

template<typename Builder >
Builder* bb::stdlib::twin_rom_table< Builder >::context = nullptr
mutableprivate

Definition at line 52 of file twin_rom_table.hpp.

◆ entries

template<typename Builder >
std::vector<field_pair_pt> bb::stdlib::twin_rom_table< Builder >::entries
mutableprivate

Definition at line 45 of file twin_rom_table.hpp.

◆ initialized

template<typename Builder >
bool bb::stdlib::twin_rom_table< Builder >::initialized = false
mutableprivate

Definition at line 51 of file twin_rom_table.hpp.

◆ length

template<typename Builder >
size_t bb::stdlib::twin_rom_table< Builder >::length = 0
private

Definition at line 49 of file twin_rom_table.hpp.

◆ raw_entries

template<typename Builder >
std::vector<field_pair_pt> bb::stdlib::twin_rom_table< Builder >::raw_entries
private

Definition at line 44 of file twin_rom_table.hpp.

◆ rom_id

template<typename Builder >
size_t bb::stdlib::twin_rom_table< Builder >::rom_id = 0
mutableprivate

Definition at line 50 of file twin_rom_table.hpp.

◆ tags

template<typename Builder >
std::vector<std::array<OriginTag, 2> > bb::stdlib::twin_rom_table< Builder >::tags
mutableprivate

Definition at line 48 of file twin_rom_table.hpp.


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