ipfs-chromium
library
include
ipfs_client
ipld
link.h
1
#ifndef IPFS_LINK_H_
2
#define IPFS_LINK_H_
3
4
#include <memory>
5
#include <string>
6
7
namespace
ipfs::ipld {
8
9
class
DagNode;
10
using
Ptr = std::shared_ptr<DagNode>;
11
12
class
Link
{
13
public
:
16
std::string
cid
;
19
Ptr
node
;
20
24
explicit
Link
(std::string
cid
);
29
explicit
Link
(std::string
cid
, std::shared_ptr<DagNode>
node
);
30
};
31
}
// namespace ipfs::ipld
32
33
#endif
// IPFS_LINK_H_
ipfs::ipld::Link
Definition:
link.h:12
ipfs::ipld::Link::Link
Link(std::string cid)
ipfs::ipld::Link::Link
Link(std::string cid, std::shared_ptr< DagNode > node)
ipfs::ipld::Link::node
Ptr node
Definition:
link.h:19
ipfs::ipld::Link::cid
std::string cid
Definition:
link.h:16
Generated by
1.9.1