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
15
TestTraceContainer
() =
default
;
16
virtual
~TestTraceContainer
() =
default
;
17
TestTraceContainer
(
const
std::vector<std::vector<
std::pair<Column, FF>
>>& values);
18
// Copy constructor. We allow copying for testing purposes.
19
TestTraceContainer
(
const
TestTraceContainer
&);
20
21
// Returns a row that can be used for accumulation, etc.
22
// You cannot refer to entities by name (e.g., row.column_name) using this type.
23
AvmFullRowProxy
get_row
(
uint32_t
row)
const
;
24
// Returns a trace in dense format with properly filled in shifted columns.
25
// The returned rows are lightweight references to the original trace.
26
// Therefore the original trace should outlive the returned rows.
27
std::vector<AvmFullRowConstRef>
as_rows
()
const
;
28
};
29
30
}
// 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:28
bb::avm2::tracegen::TestTraceContainer::get_row
AvmFullRowProxy get_row(uint32_t row) const
Definition
test_trace_container.cpp:23
bb::avm2::tracegen::TestTraceContainer::~TestTraceContainer
virtual ~TestTraceContainer()=default
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:23
columns.hpp
full_row.hpp
bb::avm2::tracegen
Definition
full_row.hpp:9
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
bb::avm2::AvmFullRowConstRef
Definition
full_row.hpp:26
bb::avm2::AvmFullRowProxy
Definition
full_row.hpp:32
trace_container.hpp
src
barretenberg
vm2
tracegen
test_trace_container.hpp
Generated by
1.9.8