Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
gt_event.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
barretenberg/numeric/uint128/uint128.hpp
"
4
5
namespace
bb::avm2::simulation
{
6
7
struct
GreaterThanEvent
{
8
uint128_t
a
;
9
uint128_t
b
;
10
bool
result
;
11
12
// To be used with deduplicating event emitters.
13
using
Key
=
std::tuple<uint128_t, uint128_t>
;
14
Key
get_key
()
const
{
return
{
a
,
b
}; }
15
16
bool
operator==
(
const
GreaterThanEvent
& other)
const
=
default
;
17
};
18
19
}
// namespace bb::avm2::simulation
bb::avm2::simulation
Definition
address_derivation.cpp:8
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
uint128_t
unsigned __int128 uint128_t
Definition
serialize.hpp:44
bb::avm2::simulation::GreaterThanEvent
Definition
gt_event.hpp:7
bb::avm2::simulation::GreaterThanEvent::a
uint128_t a
Definition
gt_event.hpp:8
bb::avm2::simulation::GreaterThanEvent::operator==
bool operator==(const GreaterThanEvent &other) const =default
bb::avm2::simulation::GreaterThanEvent::Key
std::tuple< uint128_t, uint128_t > Key
Definition
gt_event.hpp:13
bb::avm2::simulation::GreaterThanEvent::b
uint128_t b
Definition
gt_event.hpp:9
bb::avm2::simulation::GreaterThanEvent::result
bool result
Definition
gt_event.hpp:10
bb::avm2::simulation::GreaterThanEvent::get_key
Key get_key() const
Definition
gt_event.hpp:14
uint128.hpp
src
barretenberg
vm2
simulation
events
gt_event.hpp
Generated by
1.9.8