Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::eval_cache::AttrCursor Class Reference
Inheritance diagram for nix::eval_cache::AttrCursor:
[legend]
Collaboration diagram for nix::eval_cache::AttrCursor:
[legend]

Public Member Functions

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

Friends

class EvalCache
 

Member Function Documentation

◆ findAlongAttrPath()

OrSuggestions< ref< AttrCursor > > nix::eval_cache::AttrCursor::findAlongAttrPath ( EvalState & state,
const std::vector< std::string > & 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 ( EvalState & state)

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


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