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

A DataBus column. More...

#include <databus.hpp>

Public Member Functions

void append (const uint32_t &idx)
 Add an element to the data defining this bus column.
 
size_t size () const
 
const uint32_t & operator[] (size_t idx) const
 
const uint32_t & get_read_count (size_t idx) const
 
void increment_read_count (size_t idx)
 

Static Public Attributes

static constexpr bb::fr DEFAULT_VALUE = 25
 

Private Attributes

std::vector< uint32_t > read_counts
 
std::vector< uint32_t > data
 

Detailed Description

A DataBus column.

Definition at line 24 of file databus.hpp.

Member Function Documentation

◆ append()

void bb::BusVector::append ( const uint32_t &  idx)
inline

Add an element to the data defining this bus column.

Parameters
idxIndex of the element in the variables vector of a builder

Definition at line 36 of file databus.hpp.

◆ get_read_count()

const uint32_t & bb::BusVector::get_read_count ( size_t  idx) const
inline

Definition at line 50 of file databus.hpp.

◆ increment_read_count()

void bb::BusVector::increment_read_count ( size_t  idx)
inline

Definition at line 56 of file databus.hpp.

◆ operator[]()

const uint32_t & bb::BusVector::operator[] ( size_t  idx) const
inline

Definition at line 44 of file databus.hpp.

◆ size()

size_t bb::BusVector::size ( ) const
inline

Definition at line 42 of file databus.hpp.

Member Data Documentation

◆ data

std::vector<uint32_t> bb::BusVector::data
private

Definition at line 64 of file databus.hpp.

◆ DEFAULT_VALUE

constexpr bb::fr bb::BusVector::DEFAULT_VALUE = 25
staticconstexpr

Definition at line 29 of file databus.hpp.

◆ read_counts

std::vector<uint32_t> bb::BusVector::read_counts
private

Definition at line 63 of file databus.hpp.


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