Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::eval_cache::AttrCursor Class Reference
Inheritance diagram for nix::eval_cache::AttrCursor:

Public Member Functions

 AttrCursor (ref< EvalCache > root, Parent parent, Value *value=nullptr, std::optional< std::pair< AttrId, AttrValue > > &&cachedValue={})
 
std::vector< SymbolgetAttrPath () const
 
std::vector< SymbolgetAttrPath (Symbol name) const
 
std::string getAttrPathStr () const
 
std::string getAttrPathStr (Symbol name) const
 
Suggestions getSuggestionsForAttr (Symbol name)
 
std::shared_ptr< AttrCursormaybeGetAttr (Symbol name)
 
std::shared_ptr< AttrCursormaybeGetAttr (std::string_view name)
 
ref< AttrCursorgetAttr (Symbol name)
 
ref< AttrCursorgetAttr (std::string_view name)
 
OrSuggestions< ref< AttrCursor > > findAlongAttrPath (const std::vector< Symbol > &attrPath)
 
std::string getString ()
 
string_t getStringWithContext ()
 
bool getBool ()
 
NixInt getInt ()
 
std::vector< std::string > getListOfStrings ()
 
std::vector< SymbolgetAttrs ()
 
bool isDerivation ()
 
ValueforceValue ()
 
StorePath forceDerivation ()
 

Friends

class EvalCache
 
struct CachedEvalError
 

Member Function Documentation

◆ findAlongAttrPath()

OrSuggestions< ref< AttrCursor > > nix::eval_cache::AttrCursor::findAlongAttrPath ( const std::vector< Symbol > & attrPath)

Get an attribute along a chain of attrsets. Note that this does not auto-call functors or functions.

◆ forceDerivation()

StorePath nix::eval_cache::AttrCursor::forceDerivation ( )

Force creation of the .drv file in the Nix store.


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