ipfs-chromium
Public Member Functions | List of all members
ipfs::ipld::Root Class Reference

#include <library/src/ipfs_client/ipld/root.h>

Inheritance diagram for ipfs::ipld::Root:
Inheritance graph
[legend]
Collaboration diagram for ipfs::ipld::Root:
Collaboration graph
[legend]

Public Member Functions

 Root (std::shared_ptr< DagNode > node)
 
- Public Member Functions inherited from ipfs::ipld::DagNode
ResolveResult Resolve (ResolutionState &params)
 
virtual DnsLinkName const * as_dnslink () const
 
virtual DirShardas_hamt ()
 
virtual IpnsName const * as_ipns () const
 
virtual bool PreferOver (DagNode const &another) const
 
void set_api (std::shared_ptr< Client > api)
 
void source (BlockSource src)
 

Additional Inherited Members

- Static Public Member Functions inherited from ipfs::ipld::DagNode
static NodePtr fromBytes (std::shared_ptr< Client > const &api, Cid const &, ByteView bytes)
 
static NodePtr fromBytes (std::shared_ptr< Client > const &api, Cid const &, std::string_view bytes)
 
static NodePtr fromBlock (PbDag const &)
 
- Protected Member Functions inherited from ipfs::ipld::DagNode
ResolveResult CallChild (ResolutionState &)
 As before, but it might be possible to create on the fly if not known.
 
ResolveResult CallChild (ResolutionState &, std::function< NodePtr(std::string_view)> gen_child)
 
ResolveResult CallChild (ResolutionState &, std::string_view link_key)
 Add the link if not present, then CallChild(ResolutionState)
 
ResolveResult CallChild (ResolutionState &, std::string_view link_key, std::string_view block_key)
 
- Protected Attributes inherited from ipfs::ipld::DagNode
std::vector< std::pair< std::string, Link > > links_
 
std::shared_ptr< Clientapi_
 

Detailed Description

Since some operations will behave differently if a given node is being treated as a DAG root, this proxy wraps around a node to give it those properties

Constructor & Destructor Documentation

◆ Root()

ipfs::ipld::Root::Root ( std::shared_ptr< DagNode node)
explicit

Construct

Parameters
nodeThe actual node being treated as a DAG root

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