Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
tree_with_store.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5namespace bb::world_state {
6
7template <typename Tree> struct TreeWithStore {
8 using TreeType = Tree;
9 std::unique_ptr<Tree> tree;
10
11 TreeWithStore(std::unique_ptr<Tree> t)
12 : tree(std::move(t))
13 {}
14
15 TreeWithStore(TreeWithStore&& other) noexcept
16 : tree(std::move(other.tree))
17 {}
18
19 TreeWithStore(const TreeWithStore& other) = delete;
20 ~TreeWithStore() = default;
21
23 TreeWithStore& operator=(const TreeWithStore& other) = delete;
24};
25
26} // namespace bb::world_state
std::variant< TreeWithStore< FrTree >, TreeWithStore< NullifierTree >, TreeWithStore< PublicDataTree > > Tree
Definition fork.hpp:25
STL namespace.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
std::unique_ptr< Tree > tree
TreeWithStore(TreeWithStore &&other) noexcept
TreeWithStore & operator=(const TreeWithStore &other)=delete
TreeWithStore(const TreeWithStore &other)=delete
TreeWithStore(std::unique_ptr< Tree > t)
TreeWithStore & operator=(TreeWithStore &&other)=delete