Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
acir_format::GateCounter< Builder > Class Template Reference

Utility class for tracking the gate count of acir constraints. More...

#include <acir_format.hpp>

Public Member Functions

 GateCounter (Builder *builder, bool collect_gates_per_opcode)
 
size_t compute_diff ()
 
void track_diff (std::vector< size_t > &gates_per_opcode, size_t opcode_index)
 

Private Attributes

Builderbuilder
 
bool collect_gates_per_opcode
 
size_t prev_gate_count {}
 

Detailed Description

template<typename Builder>
class acir_format::GateCounter< Builder >

Utility class for tracking the gate count of acir constraints.

Definition at line 235 of file acir_format.hpp.

Constructor & Destructor Documentation

◆ GateCounter()

template<typename Builder >
acir_format::GateCounter< Builder >::GateCounter ( Builder builder,
bool  collect_gates_per_opcode 
)
inline

Definition at line 237 of file acir_format.hpp.

Member Function Documentation

◆ compute_diff()

template<typename Builder >
size_t acir_format::GateCounter< Builder >::compute_diff ( )
inline

Definition at line 242 of file acir_format.hpp.

◆ track_diff()

template<typename Builder >
void acir_format::GateCounter< Builder >::track_diff ( std::vector< size_t > &  gates_per_opcode,
size_t  opcode_index 
)
inline

Definition at line 253 of file acir_format.hpp.

Member Data Documentation

◆ builder

template<typename Builder >
Builder* acir_format::GateCounter< Builder >::builder
private

Definition at line 261 of file acir_format.hpp.

◆ collect_gates_per_opcode

template<typename Builder >
bool acir_format::GateCounter< Builder >::collect_gates_per_opcode
private

Definition at line 262 of file acir_format.hpp.

◆ prev_gate_count

template<typename Builder >
size_t acir_format::GateCounter< Builder >::prev_gate_count {}
private

Definition at line 263 of file acir_format.hpp.


The documentation for this class was generated from the following file: