|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
A template class for a reference vector. Behaves as if std::vector<T&> was possible. More...
#include <ref_vector.hpp>
Classes | |
| class | iterator |
| Nested iterator class for RefVector, based on indexing into the pointer vector. Provides semantics similar to what would be expected if std::vector<T&, N> was possible. More... | |
Public Member Functions | |
| RefVector ()=default | |
| RefVector (const std::vector< T * > &ptr_vector) | |
| RefVector (std::vector< T > &vector) | |
| template<typename... Ts> | |
| RefVector (T &first, Ts &... refs) | |
| template<std::size_t N> | |
| RefVector (const RefArray< T, N > &ref_array) | |
| T & | operator[] (std::size_t idx) const |
| std::size_t | size () const |
| void | push_back (T &element) |
| iterator | begin () const |
| iterator | end () const |
| template<typename ConvertibleFromT > | |
| operator std::vector< ConvertibleFromT > () const | |
| std::vector< T * > & | get_storage () |
| const std::vector< T * > & | get_storage () const |
Static Public Member Functions | |
| static RefVector | from_span (const std::span< T > &span) |
Private Attributes | |
| std::vector< T * > | storage |
A template class for a reference vector. Behaves as if std::vector<T&> was possible.
This class provides a dynamic-size vector of pointers to elements of type T, exposed as references. It offers random access to its elements and provides an iterator class for traversal.
| T | The type of elements stored in the vector. |
Definition at line 24 of file ref_vector.hpp.
|
default |
|
inlineexplicit |
Definition at line 27 of file ref_vector.hpp.
|
inlineexplicit |
Definition at line 31 of file ref_vector.hpp.
|
inline |
Definition at line 40 of file ref_vector.hpp.
|
inline |
Definition at line 45 of file ref_vector.hpp.
|
inline |
Definition at line 112 of file ref_vector.hpp.
|
inline |
Definition at line 113 of file ref_vector.hpp.
|
inlinestatic |
Definition at line 54 of file ref_vector.hpp.
|
inline |
Definition at line 124 of file ref_vector.hpp.
|
inline |
Definition at line 125 of file ref_vector.hpp.
|
inline |
Definition at line 115 of file ref_vector.hpp.
|
inline |
Definition at line 63 of file ref_vector.hpp.
|
inline |
Definition at line 111 of file ref_vector.hpp.
|
inline |
Definition at line 109 of file ref_vector.hpp.
|
private |
Definition at line 128 of file ref_vector.hpp.