Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ContentAddressWithReferences Struct Reference

#include <content-address.hh>

Public Types

typedef std::variant< TextInfo, FixedOutputInfo > Raw

Public Member Functions

bool operator== (const ContentAddressWithReferences &) const =default
 MAKE_WRAPPER_CONSTRUCTOR (ContentAddressWithReferences)
ContentAddressMethod getMethod () const
Hash getHash () const

Static Public Member Functions

static ContentAddressWithReferences withoutRefs (const ContentAddress &) noexcept
static ContentAddressWithReferences fromParts (ContentAddressMethod method, Hash hash, StoreReferences refs)

Public Attributes

Raw raw

Detailed Description

Ways of content addressing but not a complete ContentAddress.

A ContentAddress without a Hash.

Member Function Documentation

◆ fromParts()

ContentAddressWithReferences nix::ContentAddressWithReferences::fromParts ( ContentAddressMethod method,
Hash hash,
StoreReferences refs )
static

Create a ContentAddressWithReferences from 3 parts:

Parameters
methodWay ingesting the file system data.
hashHash of ingested file system data.
refsReferences to other store objects or oneself.
Note
note that all combinations are supported. This is a partial function and exceptions will be thrown for invalid combinations.

◆ withoutRefs()

ContentAddressWithReferences nix::ContentAddressWithReferences::withoutRefs ( const ContentAddress & ca)
staticnoexcept

Create a ContentAddressWithReferences from a mere ContentAddress, by claiming no references.


The documentation for this struct was generated from the following files: