Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::tracegen::SharedIndexCache Class Reference

#include <shared_index_cache.hpp>

Public Member Functions

 SharedIndexCache ()=default
 
 SharedIndexCache (const SharedIndexCache &)=delete
 
SharedIndexCacheoperator= (const SharedIndexCache &)=delete
 
 SharedIndexCache (SharedIndexCache &&)=delete
 
SharedIndexCacheoperator= (SharedIndexCache &&)=delete
 
void clear ()
 
const DstIndexget_or_build (Column outer_dst_selector, std::span< const ColumnAndShifts > dst_columns, const TraceContainer &trace, std::function< DstIndex(const TraceContainer &)> build_fn)
 

Private Attributes

std::mutex mutex_
 
unordered_flat_map< IndexKey, std::shared_future< std::shared_ptr< DstIndex > > > cache_
 

Detailed Description

Definition at line 35 of file shared_index_cache.hpp.

Constructor & Destructor Documentation

◆ SharedIndexCache() [1/3]

bb::avm2::tracegen::SharedIndexCache::SharedIndexCache ( )
default

◆ SharedIndexCache() [2/3]

bb::avm2::tracegen::SharedIndexCache::SharedIndexCache ( const SharedIndexCache )
delete

◆ SharedIndexCache() [3/3]

bb::avm2::tracegen::SharedIndexCache::SharedIndexCache ( SharedIndexCache &&  )
delete

Member Function Documentation

◆ clear()

void bb::avm2::tracegen::SharedIndexCache::clear ( )
inline

Definition at line 46 of file shared_index_cache.hpp.

◆ get_or_build()

const DstIndex & bb::avm2::tracegen::SharedIndexCache::get_or_build ( Column  outer_dst_selector,
std::span< const ColumnAndShifts dst_columns,
const TraceContainer trace,
std::function< DstIndex(const TraceContainer &)>  build_fn 
)
inline

Definition at line 55 of file shared_index_cache.hpp.

◆ operator=() [1/2]

SharedIndexCache & bb::avm2::tracegen::SharedIndexCache::operator= ( const SharedIndexCache )
delete

◆ operator=() [2/2]

SharedIndexCache & bb::avm2::tracegen::SharedIndexCache::operator= ( SharedIndexCache &&  )
delete

Member Data Documentation

◆ cache_

unordered_flat_map<IndexKey, std::shared_future<std::shared_ptr<DstIndex> > > bb::avm2::tracegen::SharedIndexCache::cache_
private

Definition at line 92 of file shared_index_cache.hpp.

◆ mutex_

std::mutex bb::avm2::tracegen::SharedIndexCache::mutex_
private

Definition at line 89 of file shared_index_cache.hpp.


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