Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
test_trace_container.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <vector>
4
5
#include "
barretenberg/vm2/constraining/full_row.hpp
"
6
#include "
barretenberg/vm2/generated/columns.hpp
"
7
#include "
barretenberg/vm2/tracegen/trace_container.hpp
"
8
9
namespace
bb::avm2::tracegen
{
10
11
class
TestTraceContainer
:
public
TraceContainer
{
12
public
:
13
using
Row
=
AvmFullRowConstRef
;
14
static
TestTraceContainer
from_rows
(
const
std::vector<AvmFullRow>
& rows);
15
16
TestTraceContainer
() =
default
;
17
virtual
~TestTraceContainer
() =
default
;
18
TestTraceContainer
(
const
std::vector<std::vector<
std::pair<Column, FF>
>>& values);
19
// Copy constructor. We allow copying for testing purposes.
20
TestTraceContainer
(
const
TestTraceContainer
&);
21
22
// Returns a row that can be used for accumulation, etc.
23
// You cannot refer to entities by name (e.g., row.column_name) using this type.
24
AvmFullRowProxy
get_row
(
uint32_t
row)
const
;
25
// Returns a trace in dense format with properly filled in shifted columns.
26
// The returned rows are lightweight references to the original trace.
27
// Therefore the original trace should outlive the returned rows.
28
std::vector<AvmFullRowConstRef>
as_rows
()
const
;
29
};
30
31
}
// namespace bb::avm2::tracegen
bb::avm2::tracegen::TestTraceContainer
Definition
test_trace_container.hpp:11
bb::avm2::tracegen::TestTraceContainer::TestTraceContainer
TestTraceContainer()=default
bb::avm2::tracegen::TestTraceContainer::as_rows
std::vector< AvmFullRowConstRef > as_rows() const
Definition
test_trace_container.cpp:41
bb::avm2::tracegen::TestTraceContainer::get_row
AvmFullRowProxy get_row(uint32_t row) const
Definition
test_trace_container.cpp:36
bb::avm2::tracegen::TestTraceContainer::~TestTraceContainer
virtual ~TestTraceContainer()=default
bb::avm2::tracegen::TestTraceContainer::from_rows
static TestTraceContainer from_rows(const std::vector< AvmFullRow > &rows)
Definition
test_trace_container.cpp:23
bb::avm2::tracegen::TraceContainer
Definition
trace_container.hpp:22
bb::avm2::tracegen::TraceContainer::get
const FF & get(Column col, uint32_t row) const
Definition
trace_container.cpp:20
columns.hpp
full_row.hpp
bb::avm2::tracegen
Definition
full_row.hpp:10
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
bb::avm2::AvmFullRowConstRef
Definition
full_row.hpp:27
bb::avm2::AvmFullRowProxy
Definition
full_row.hpp:33
trace_container.hpp
src
barretenberg
vm2
tracegen
test_trace_container.hpp
Generated by
1.9.8