Nix 2.36.0
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={})
AttrPath getAttrPath () const
AttrPath getAttrPath (Symbol name) const
std::string getAttrPathStr () const
std::string getAttrPathStr (Symbol name) const
Suggestions getSuggestionsForAttr (Symbol name)
std::shared_ptr< AttrCursor > maybeGetAttr (Symbol name)
std::shared_ptr< AttrCursor > maybeGetAttr (std::string_view name)
ref< AttrCursor > getAttr (Symbol name)
ref< AttrCursor > getAttr (std::string_view name)
OrSuggestions< ref< AttrCursor > > findAlongAttrPath (const AttrPath &attrPath)
std::string getString ()
string_t getStringWithContext ()
bool getBool ()
NixInt getInt ()
std::vector< std::string > getListOfStrings ()
std::vector< Symbol > getAttrs ()
bool isDerivation ()
Value & forceValue ()
StorePath forceDerivation ()

Friends

class EvalCache
struct CachedEvalError

Member Function Documentation

◆ findAlongAttrPath()

OrSuggestions< ref< AttrCursor > > nix::eval_cache::AttrCursor::findAlongAttrPath ( const AttrPath & 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: