Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
full_row.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
#include "
barretenberg/vm2/common/field.hpp
"
6
#include "
barretenberg/vm2/constraining/entities.hpp
"
7
#include "
barretenberg/vm2/generated/columns.hpp
"
8
9
namespace
bb::avm2
{
10
namespace
tracegen {
11
// Forward declaration.
12
class
TraceContainer
;
13
}
// namespace tracegen
14
15
// A bulky full row, mostly for testing purposes.
16
struct
AvmFullRow
{
17
using
DataType
=
FF
;
18
FF
AVM2_ALL_ENTITIES
;
19
20
FF
&
get
(
ColumnAndShifts
col
);
21
const
FF
&
get
(
ColumnAndShifts
col
)
const
;
22
};
23
24
// A full row made up of references to fields.
25
// Currently only used in tracegen tests via trace.as_rows().
26
// Getters are not supported (however, they could be added).
27
struct
AvmFullRowConstRef
{
28
using
DataType
=
const
FF
;
29
const
FF
&
AVM2_ALL_ENTITIES
;
30
};
31
32
// A cheap proxy for a full row, which holds just a reference to a trace.
33
struct
AvmFullRowProxy
{
34
const
FF
&
get
(
ColumnAndShifts
col
)
const
;
35
uint32_t
row_index
;
36
const
tracegen::TraceContainer
&
trace
;
37
};
38
39
}
// namespace bb::avm2
bb::avm2::tracegen::TraceContainer
Definition
trace_container.hpp:22
columns.hpp
entities.hpp
bb::avm2
Definition
flavor.hpp:472
bb::avm2::ColumnAndShifts
ColumnAndShifts
Definition
columns.hpp:35
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
bb::avm2::AvmFullRowConstRef
Definition
full_row.hpp:27
bb::avm2::AvmFullRowConstRef::AVM2_ALL_ENTITIES
const FF & AVM2_ALL_ENTITIES
Definition
full_row.hpp:29
bb::avm2::AvmFullRowConstRef::DataType
const FF DataType
Definition
full_row.hpp:28
bb::avm2::AvmFullRow
Definition
full_row.hpp:16
bb::avm2::AvmFullRow::AVM2_ALL_ENTITIES
FF AVM2_ALL_ENTITIES
Definition
full_row.hpp:18
bb::avm2::AvmFullRow::DataType
FF DataType
Definition
full_row.hpp:17
bb::avm2::AvmFullRow::get
FF & get(ColumnAndShifts col)
Definition
full_row.cpp:7
bb::avm2::AvmFullRowProxy
Definition
full_row.hpp:33
bb::avm2::AvmFullRowProxy::get
const FF & get(ColumnAndShifts col) const
Definition
full_row.cpp:16
bb::avm2::AvmFullRowProxy::trace
const tracegen::TraceContainer & trace
Definition
full_row.hpp:36
bb::avm2::AvmFullRowProxy::row_index
uint32_t row_index
Definition
full_row.hpp:35
field.hpp
src
barretenberg
vm2
constraining
full_row.hpp
Generated by
1.9.8