ipfs-chromium
Functions
Down-casting to specific subclasses

I wish I had access to dynamic_cast, but Chromium. More...

Functions

virtual DnsLinkName const * ipfs::ipld::DagNode::as_dnslink () const
 
virtual DirShardipfs::ipld::DagNode::as_hamt ()
 
virtual IpnsName const * ipfs::ipld::DagNode::as_ipns () const
 

Detailed Description

I wish I had access to dynamic_cast, but Chromium.

Function Documentation

◆ as_dnslink()

virtual DnsLinkName const* ipfs::ipld::DagNode::as_dnslink ( ) const
inlinevirtual
Returns
this if this is a DNSLinkName, otherwise nullptr

◆ as_hamt()

virtual DirShard* ipfs::ipld::DagNode::as_hamt ( )
inlinevirtual
Returns
this if this is a DirShard, otherwise nullptr

◆ as_ipns()

virtual IpnsName const* ipfs::ipld::DagNode::as_ipns ( ) const
inlinevirtual
Returns
this if this is a IpnsName, otherwise nullptr