Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::crypto::merkle_tree::IndexedLeaf< LeafType > Struct Template Reference

#include <indexed_leaf.hpp>

Public Member Functions

 IndexedLeaf ()=default
 
 IndexedLeaf (const LeafType &leaf, const index_t &nextIdx, const fr &nextKey)
 
 IndexedLeaf (const IndexedLeaf< LeafType > &other)=default
 
 IndexedLeaf (IndexedLeaf< LeafType > &&other) noexcept=default
 
 ~IndexedLeaf ()=default
 
bool operator== (IndexedLeaf< LeafType > const &other) const
 
IndexedLeaf< LeafType > & operator= (IndexedLeaf< LeafType > const &other)
 
IndexedLeaf< LeafType > & operator= (IndexedLeaf< LeafType > &&other) noexcept
 
std::vector< frget_hash_inputs () const
 
bool is_empty ()
 

Static Public Member Functions

static bool is_updateable ()
 
static std::string name ()
 
static IndexedLeaf< LeafType > empty ()
 
static IndexedLeaf< LeafType > padding (index_t i)
 

Public Attributes

LeafType leaf
 
index_t nextIndex
 
fr nextKey
 

Friends

std::ostream & operator<< (std::ostream &os, const IndexedLeaf< LeafType > &leaf)
 

Detailed Description

template<typename LeafType>
struct bb::crypto::merkle_tree::IndexedLeaf< LeafType >

Definition at line 137 of file indexed_leaf.hpp.

Constructor & Destructor Documentation

◆ IndexedLeaf() [1/4]

template<typename LeafType >
bb::crypto::merkle_tree::IndexedLeaf< LeafType >::IndexedLeaf ( )
default

◆ IndexedLeaf() [2/4]

template<typename LeafType >
bb::crypto::merkle_tree::IndexedLeaf< LeafType >::IndexedLeaf ( const LeafType &  leaf,
const index_t nextIdx,
const fr nextKey 
)
inline

Definition at line 146 of file indexed_leaf.hpp.

◆ IndexedLeaf() [3/4]

template<typename LeafType >
bb::crypto::merkle_tree::IndexedLeaf< LeafType >::IndexedLeaf ( const IndexedLeaf< LeafType > &  other)
default

◆ IndexedLeaf() [4/4]

template<typename LeafType >
bb::crypto::merkle_tree::IndexedLeaf< LeafType >::IndexedLeaf ( IndexedLeaf< LeafType > &&  other)
defaultnoexcept

◆ ~IndexedLeaf()

template<typename LeafType >
bb::crypto::merkle_tree::IndexedLeaf< LeafType >::~IndexedLeaf ( )
default

Member Function Documentation

◆ empty()

template<typename LeafType >
static IndexedLeaf< LeafType > bb::crypto::merkle_tree::IndexedLeaf< LeafType >::empty ( )
inlinestatic

Definition at line 195 of file indexed_leaf.hpp.

◆ get_hash_inputs()

template<typename LeafType >
std::vector< fr > bb::crypto::merkle_tree::IndexedLeaf< LeafType >::get_hash_inputs ( ) const
inline

Definition at line 191 of file indexed_leaf.hpp.

◆ is_empty()

template<typename LeafType >
bool bb::crypto::merkle_tree::IndexedLeaf< LeafType >::is_empty ( )
inline

Definition at line 193 of file indexed_leaf.hpp.

◆ is_updateable()

template<typename LeafType >
static bool bb::crypto::merkle_tree::IndexedLeaf< LeafType >::is_updateable ( )
inlinestatic

Definition at line 156 of file indexed_leaf.hpp.

◆ name()

template<typename LeafType >
static std::string bb::crypto::merkle_tree::IndexedLeaf< LeafType >::name ( )
inlinestatic

Definition at line 158 of file indexed_leaf.hpp.

◆ operator=() [1/2]

template<typename LeafType >
IndexedLeaf< LeafType > & bb::crypto::merkle_tree::IndexedLeaf< LeafType >::operator= ( IndexedLeaf< LeafType > &&  other)
inlinenoexcept

Definition at line 175 of file indexed_leaf.hpp.

◆ operator=() [2/2]

template<typename LeafType >
IndexedLeaf< LeafType > & bb::crypto::merkle_tree::IndexedLeaf< LeafType >::operator= ( IndexedLeaf< LeafType > const &  other)
inline

Definition at line 165 of file indexed_leaf.hpp.

◆ operator==()

template<typename LeafType >
bool bb::crypto::merkle_tree::IndexedLeaf< LeafType >::operator== ( IndexedLeaf< LeafType > const &  other) const
inline

Definition at line 160 of file indexed_leaf.hpp.

◆ padding()

template<typename LeafType >
static IndexedLeaf< LeafType > bb::crypto::merkle_tree::IndexedLeaf< LeafType >::padding ( index_t  i)
inlinestatic

Definition at line 197 of file indexed_leaf.hpp.

Friends And Related Symbol Documentation

◆ operator<<

template<typename LeafType >
std::ostream & operator<< ( std::ostream &  os,
const IndexedLeaf< LeafType > &  leaf 
)
friend

Definition at line 185 of file indexed_leaf.hpp.

Member Data Documentation

◆ leaf

template<typename LeafType >
LeafType bb::crypto::merkle_tree::IndexedLeaf< LeafType >::leaf

Definition at line 138 of file indexed_leaf.hpp.

◆ nextIndex

template<typename LeafType >
index_t bb::crypto::merkle_tree::IndexedLeaf< LeafType >::nextIndex

Definition at line 139 of file indexed_leaf.hpp.

◆ nextKey

template<typename LeafType >
fr bb::crypto::merkle_tree::IndexedLeaf< LeafType >::nextKey

Definition at line 140 of file indexed_leaf.hpp.


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