Public Member Functions | |
AttrCursor (ref< EvalCache > root, Parent parent, Value *value=nullptr, std::optional< std::pair< AttrId, AttrValue > > &&cachedValue={}) | |
std::vector< Symbol > | getAttrPath () const |
std::vector< Symbol > | 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 std::vector< Symbol > &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 |
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.
StorePath nix::eval_cache::AttrCursor::forceDerivation | ( | ) |
Force creation of the .drv file in the Nix store.