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/generated/columns.hpp
"
7
8
namespace
bb::avm2
{
9
namespace
tracegen {
10
// Forward declaration.
11
class
TraceContainer
;
12
}
// namespace tracegen
13
14
// A bulky full row, mostly for testing purposes.
15
struct
AvmFullRow
{
16
using
DataType
=
FF
;
17
FF
AVM2_ALL_ENTITIES
;
18
19
FF
&
get
(
ColumnAndShifts
col
);
20
const
FF
&
get
(
ColumnAndShifts
col
)
const
;
21
};
22
23
// A full row made up of references to fields.
24
// Currently only used in tracegen tests via trace.as_rows().
25
// Getters are not supported (however, they could be added).
26
struct
AvmFullRowConstRef
{
27
using
DataType
=
const
FF
;
28
const
FF
&
AVM2_ALL_ENTITIES
;
29
};
30
31
// A cheap proxy for a full row, which holds just a reference to a trace.
32
struct
AvmFullRowProxy
{
33
const
FF
&
get
(
ColumnAndShifts
col
)
const
;
34
uint32_t
row_index
;
35
const
tracegen::TraceContainer
&
trace
;
36
};
37
38
}
// namespace bb::avm2
bb::avm2::tracegen::TraceContainer
Definition
trace_container.hpp:22
columns.hpp
bb::avm2
Definition
flavor.hpp:581
bb::avm2::ColumnAndShifts
ColumnAndShifts
Definition
columns.hpp:34
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
bb::avm2::AvmFullRowConstRef
Definition
full_row.hpp:26
bb::avm2::AvmFullRowConstRef::AVM2_ALL_ENTITIES
const FF & AVM2_ALL_ENTITIES
Definition
full_row.hpp:28
bb::avm2::AvmFullRowConstRef::DataType
const FF DataType
Definition
full_row.hpp:27
bb::avm2::AvmFullRow
Definition
full_row.hpp:15
bb::avm2::AvmFullRow::AVM2_ALL_ENTITIES
FF AVM2_ALL_ENTITIES
Definition
full_row.hpp:17
bb::avm2::AvmFullRow::DataType
FF DataType
Definition
full_row.hpp:16
bb::avm2::AvmFullRow::get
FF & get(ColumnAndShifts col)
Definition
full_row.cpp:20
bb::avm2::AvmFullRowProxy
Definition
full_row.hpp:32
bb::avm2::AvmFullRowProxy::get
const FF & get(ColumnAndShifts col) const
Definition
full_row.cpp:29
bb::avm2::AvmFullRowProxy::trace
const tracegen::TraceContainer & trace
Definition
full_row.hpp:35
bb::avm2::AvmFullRowProxy::row_index
uint32_t row_index
Definition
full_row.hpp:34
field.hpp
src
barretenberg
vm2
constraining
full_row.hpp
Generated by
1.9.8