Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
schema_impl.hpp File Reference
#include "barretenberg/serialize/msgpack.hpp"
#include "check_memory_span.hpp"
#include "concepts.hpp"
#include "schema_name.hpp"
#include <array>
#include <concepts>
#include <map>
#include <memory>
#include <optional>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

struct  MsgpackSchemaPacker
 

Namespaces

namespace  msgpack_concepts
 

Concepts

concept  msgpack_concepts::SchemaPackable
 
concept  msgpack_concepts::IpcBin32Alias
 

Functions

template<typename T >
void _msgpack_schema_pack (MsgpackSchemaPacker &packer, const T &obj)
 
void _schema_pack_map_content (MsgpackSchemaPacker &)
 
template<typename Value , typename... Rest>
void _schema_pack_map_content (MsgpackSchemaPacker &packer, std::string key, const Value &value, const Rest &... rest)
 
template<msgpack_concepts::IpcBin32Alias T>
void msgpack_schema_pack (MsgpackSchemaPacker &packer, T const &)
 
template<typename T >
requires (!msgpack_concepts::HasMsgPackSchema<T> && !msgpack_concepts::HasMsgPack<T> && !msgpack_concepts::IpcBin32Alias<T>)
void msgpack_schema_pack (MsgpackSchemaPacker &packer, T const &obj)
 
template<msgpack_concepts::HasMsgPack T>
requires (!msgpack_concepts::HasMsgPackSchema<T>)
void msgpack_schema_pack (MsgpackSchemaPacker &packer, T const &object)
 
template<typename... Args>
void msgpack_schema_pack (MsgpackSchemaPacker &packer, std::tuple< Args... > const &)
 
template<typename K , typename V >
void msgpack_schema_pack (MsgpackSchemaPacker &packer, std::map< K, V > const &)
 
template<typename T >
void msgpack_schema_pack (MsgpackSchemaPacker &packer, std::optional< T > const &)
 
template<typename T >
void msgpack_schema_pack (MsgpackSchemaPacker &packer, std::vector< T > const &)
 
template<typename... Args>
void msgpack_schema_pack (MsgpackSchemaPacker &packer, std::variant< Args... > const &)
 
template<typename T >
void msgpack_schema_pack (MsgpackSchemaPacker &packer, std::shared_ptr< T > const &)
 
template<typename T , std::size_t N>
void msgpack_schema_pack (MsgpackSchemaPacker &packer, std::array< T, N > const &)
 
std::string msgpack_schema_to_string (const auto &obj)
 

Function Documentation

◆ _msgpack_schema_pack()

template<typename T >
void _msgpack_schema_pack ( MsgpackSchemaPacker packer,
const T &  obj 
)
inline

Definition at line 130 of file schema_impl.hpp.

◆ _schema_pack_map_content() [1/2]

void _schema_pack_map_content ( MsgpackSchemaPacker )
inline

Definition at line 76 of file schema_impl.hpp.

◆ _schema_pack_map_content() [2/2]

template<typename Value , typename... Rest>
void _schema_pack_map_content ( MsgpackSchemaPacker packer,
std::string  key,
const Value &  value,
const Rest &...  rest 
)
inline

Definition at line 90 of file schema_impl.hpp.

◆ msgpack_schema_pack() [1/10]

template<typename T , std::size_t N>
void msgpack_schema_pack ( MsgpackSchemaPacker packer,
std::array< T, N > const &   
)
inline

Definition at line 168 of file schema_impl.hpp.

◆ msgpack_schema_pack() [2/10]

template<typename K , typename V >
void msgpack_schema_pack ( MsgpackSchemaPacker packer,
std::map< K, V > const &   
)
inline

Definition at line 142 of file schema_impl.hpp.

◆ msgpack_schema_pack() [3/10]

template<typename T >
void msgpack_schema_pack ( MsgpackSchemaPacker packer,
std::optional< T > const &   
)
inline

Definition at line 147 of file schema_impl.hpp.

◆ msgpack_schema_pack() [4/10]

template<typename T >
void msgpack_schema_pack ( MsgpackSchemaPacker packer,
std::shared_ptr< T > const &   
)
inline

Definition at line 162 of file schema_impl.hpp.

◆ msgpack_schema_pack() [5/10]

template<typename... Args>
void msgpack_schema_pack ( MsgpackSchemaPacker packer,
std::tuple< Args... > const &   
)
inline

Definition at line 137 of file schema_impl.hpp.

◆ msgpack_schema_pack() [6/10]

template<typename... Args>
void msgpack_schema_pack ( MsgpackSchemaPacker packer,
std::variant< Args... > const &   
)
inline

Definition at line 157 of file schema_impl.hpp.

◆ msgpack_schema_pack() [7/10]

template<typename T >
void msgpack_schema_pack ( MsgpackSchemaPacker packer,
std::vector< T > const &   
)
inline

Definition at line 152 of file schema_impl.hpp.

◆ msgpack_schema_pack() [8/10]

void msgpack_schema_pack ( MsgpackSchemaPacker packer,
T const &  obj 
)
inline

Definition at line 103 of file schema_impl.hpp.

◆ msgpack_schema_pack() [9/10]

void msgpack_schema_pack ( MsgpackSchemaPacker packer,
T const &  obj 
)
inline

Definition at line 111 of file schema_impl.hpp.

◆ msgpack_schema_pack() [10/10]

void msgpack_schema_pack ( MsgpackSchemaPacker packer,
T const &  object 
)
inline

Definition at line 124 of file schema_impl.hpp.

◆ msgpack_schema_to_string()

std::string msgpack_schema_to_string ( const auto &  obj)
inline

Definition at line 177 of file schema_impl.hpp.