ipfs-chromium
Public Member Functions | Public Attributes | List of all members
ipfs::ipld::Link Class Reference
Collaboration diagram for ipfs::ipld::Link:
Collaboration graph
[legend]

Public Member Functions

 Link (std::string cid)
 
 Link (std::string cid, std::shared_ptr< DagNode > node)
 

Public Attributes

std::string cid
 
Ptr node
 

Constructor & Destructor Documentation

◆ Link() [1/2]

ipfs::ipld::Link::Link ( std::string  cid)
explicit

Construct an unresolved IPLD link

Parameters
Thechild's CID

◆ Link() [2/2]

ipfs::ipld::Link::Link ( std::string  cid,
std::shared_ptr< DagNode node 
)
explicit

Construct a resolved IPLD link

Parameters
Thechild's CID
nodeThe node linked to if we already have it

Member Data Documentation

◆ cid

std::string ipfs::ipld::Link::cid

String representation of the CID

◆ node

Ptr ipfs::ipld::Link::node

The pointed-to node, or nullptr if not yet resolved


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