Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
zip_view< S > Class Template Reference

#include <zip_view.hpp>

Public Member Functions

 zip_view (S... args)
 
 zip_view (ZipAllowDifferentSizes, S... args)
 
auto begin () const
 
auto end () const
 
std::size_t size () const
 

Private Types

using arg_indexes = std::make_index_sequence< sizeof...(S)>
 

Private Member Functions

template<std::size_t... I>
auto get_begins (std::index_sequence< I... >) const
 
template<std::size_t... I>
auto get_ends (std::index_sequence< I... >) const
 
template<std::size_t... I>
auto size_impl (std::index_sequence< I... >) const
 
template<std::size_t... I>
auto max_size_impl (std::index_sequence< I... >) const
 
template<class A , std::size_t... I>
bool if_any_impl (const A &t, std::index_sequence< I... >) const
 

Private Attributes

std::tuple< S... > args
 

Detailed Description

template<class... S>
class zip_view< S >
Examples
/opt/build/repo/barretenberg/cpp/src/barretenberg/common/zip_view.hpp.

Definition at line 166 of file zip_view.hpp.

Member Typedef Documentation

◆ arg_indexes

template<class... S>
using zip_view< S >::arg_indexes = std::make_index_sequence<sizeof...(S)>
private

Constructor & Destructor Documentation

◆ zip_view() [1/2]

template<class... S>
zip_view< S >::zip_view ( S...  args)
inline

Definition at line 170 of file zip_view.hpp.

◆ zip_view() [2/2]

template<class... S>
zip_view< S >::zip_view ( ZipAllowDifferentSizes  ,
S...  args 
)
inline

Definition at line 176 of file zip_view.hpp.

Member Function Documentation

◆ begin()

template<class... S>
auto zip_view< S >::begin ( ) const
inline

◆ end()

template<class... S>
auto zip_view< S >::end ( ) const
inline

◆ get_begins()

template<class... S>
template<std::size_t... I>
auto zip_view< S >::get_begins ( std::index_sequence< I... >  ) const
inlineprivate

◆ get_ends()

template<class... S>
template<std::size_t... I>
auto zip_view< S >::get_ends ( std::index_sequence< I... >  ) const
inlineprivate

◆ if_any_impl()

template<class... S>
template<class A , std::size_t... I>
bool zip_view< S >::if_any_impl ( const A &  t,
std::index_sequence< I... >   
) const
inlineprivate

◆ max_size_impl()

template<class... S>
template<std::size_t... I>
auto zip_view< S >::max_size_impl ( std::index_sequence< I... >  ) const
inlineprivate

◆ size()

template<class... S>
std::size_t zip_view< S >::size ( ) const
inline

◆ size_impl()

template<class... S>
template<std::size_t... I>
auto zip_view< S >::size_impl ( std::index_sequence< I... >  ) const
inlineprivate

Member Data Documentation

◆ args

template<class... S>
std::tuple<S...> zip_view< S >::args
private

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