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

#include <content-address.hh>

Public Member Functions

bool empty () const
 
size_t size () const
 
bool operator== (const StoreReferences &) const =default
 

Public Attributes

StorePathSet others
 
bool self = false
 

Detailed Description

A set of references to other store objects.

References to other store objects are tracked with store paths, self references however are tracked with a boolean.

Member Function Documentation

◆ empty()

bool nix::StoreReferences::empty ( ) const
Returns
true iff no references, i.e. others is empty and self is false.

◆ size()

size_t nix::StoreReferences::size ( ) const

Returns the numbers of references, i.e. the size of others + 1 iff self is true.

Member Data Documentation

◆ others

StorePathSet nix::StoreReferences::others

References to other store objects

◆ self

bool nix::StoreReferences::self = false

Reference to this store object


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