ipfs-chromium
Public Types | Public Member Functions | List of all members
ipfs::DagCborValue Class Referenceabstract

#include <library/include/ipfs_client/dag_cbor_value.h>

Inheritance diagram for ipfs::DagCborValue:
Inheritance graph
[legend]

Public Types

using MapElementCallback = std::function< void(std::string_view, DagCborValue const &)>
 
using ArrayElementCallback = std::function< void(DagCborValue const &)>
 

Public Member Functions

virtual std::unique_ptr< DagCborValueat (std::string_view) const =0
 
virtual std::optional< std::uint64_t > as_unsigned () const =0
 
virtual std::optional< std::int64_t > as_signed () const =0
 
virtual std::optional< double > as_float () const =0
 
virtual std::optional< std::string > as_string () const =0
 
virtual std::optional< std::vector< std::uint8_t > > as_bytes () const =0
 
virtual std::optional< bool > as_bool () const =0
 
virtual std::optional< Cidas_link () const =0
 
virtual bool is_map () const =0
 
virtual bool is_array () const =0
 
virtual void iterate_map (MapElementCallback) const =0
 
virtual void iterate_array (ArrayElementCallback) const =0
 
std::string html () const
 
void html (std::ostream &) const
 

Detailed Description

A single value in the DOM of a dag-cbor document


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