Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::testing::TestMemoryTree< HashingPolicy > Class Template Reference

#include <test_tree.hpp>

Public Member Functions

 TestMemoryTree (size_t depth, size_t total_depth)
 
fr_sibling_path get_sibling_path (size_t index)
 
FF update_element (size_t index, FF const &value)
 
FF root () const
 

Private Attributes

MemoryTree< HashingPolicy > real_tree
 
size_t total_depth
 
size_t depth
 

Detailed Description

template<typename HashingPolicy>
class bb::avm2::testing::TestMemoryTree< HashingPolicy >

Definition at line 12 of file test_tree.hpp.

Constructor & Destructor Documentation

◆ TestMemoryTree()

template<typename HashingPolicy >
bb::avm2::testing::TestMemoryTree< HashingPolicy >::TestMemoryTree ( size_t  depth,
size_t  total_depth 
)
inline

Definition at line 14 of file test_tree.hpp.

Member Function Documentation

◆ get_sibling_path()

template<typename HashingPolicy >
fr_sibling_path bb::avm2::testing::TestMemoryTree< HashingPolicy >::get_sibling_path ( size_t  index)

Definition at line 40 of file test_tree.hpp.

◆ root()

template<typename HashingPolicy >
FF bb::avm2::testing::TestMemoryTree< HashingPolicy >::root ( ) const

Definition at line 49 of file test_tree.hpp.

◆ update_element()

template<typename HashingPolicy >
FF bb::avm2::testing::TestMemoryTree< HashingPolicy >::update_element ( size_t  index,
FF const &  value 
)

Definition at line 32 of file test_tree.hpp.

Member Data Documentation

◆ depth

template<typename HashingPolicy >
size_t bb::avm2::testing::TestMemoryTree< HashingPolicy >::depth
private

Definition at line 29 of file test_tree.hpp.

◆ real_tree

template<typename HashingPolicy >
MemoryTree<HashingPolicy> bb::avm2::testing::TestMemoryTree< HashingPolicy >::real_tree
private

Definition at line 27 of file test_tree.hpp.

◆ total_depth

template<typename HashingPolicy >
size_t bb::avm2::testing::TestMemoryTree< HashingPolicy >::total_depth
private

Definition at line 28 of file test_tree.hpp.


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