Cppinecone
A C++ client for the Pinecone vector database
pinecone::types::parser< T, Json > Struct Template Reference

Parses raw data from the Pinecone API into native C++ types. More...

#include <parser.hpp>

Public Types

using parsed_type = T
 

Public Member Functions

auto parse (std::vector< uint8_t > &data) const -> util::result< T >
 Attempts to parse a stream of bytes into the provided type. More...
 

Detailed Description

template<typename T, bool Json = !std::is_same_v<T, accepted>>
struct pinecone::types::parser< T, Json >

Parses raw data from the Pinecone API into native C++ types.

Template Parameters
Tthe type to parse
Jsonwhether the type in question should be parsed using JSON

Definition at line 27 of file parser.hpp.

Member Function Documentation

◆ parse()

template<typename T , bool Json = !std::is_same_v<T, accepted>>
auto pinecone::types::parser< T, Json >::parse ( std::vector< uint8_t > &  data) const -> util::result<T>
inline

Attempts to parse a stream of bytes into the provided type.

Parameters
datathe data to parse
Returns
the result of the operation

Definition at line 36 of file parser.hpp.


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