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::CachingEvaluator Class Reference

#include <eval-cache.hh>

Inheritance diagram for nix::eval_cache::CachingEvaluator:
[legend]
Collaboration diagram for nix::eval_cache::CachingEvaluator:
[legend]

Public Member Functions

ref< EvalCachegetCacheFor (Hash hash, RootLoader rootLoader)
 
 Evaluator (AsyncIoRoot &aio, const SearchPath &_searchPath, ref< Store > store, std::shared_ptr< Store > buildStore=nullptr, std::function< ReplExitStatus(EvalState &es, ValMap const &extraEnv)> debugRepl=nullptr)
 
 Evaluator (const Evaluator &)=delete
 
 Evaluator (Evaluator &&)=delete
 
- Public Member Functions inherited from nix::Evaluator
 Evaluator (AsyncIoRoot &aio, const SearchPath &_searchPath, ref< Store > store, std::shared_ptr< Store > buildStore=nullptr, std::function< ReplExitStatus(EvalState &es, ValMap const &extraEnv)> debugRepl=nullptr)
 
 Evaluator (const Evaluator &)=delete
 
 Evaluator (Evaluator &&)=delete
 
Evaluatoroperator= (const Evaluator &)=delete
 
Evaluatoroperator= (Evaluator &&)=delete
 
ExprparseExprFromFile (const CheckedSourcePath &path)
 
ExprparseExprFromFile (const CheckedSourcePath &path, std::shared_ptr< StaticEnv > &staticEnv)
 
ExprparseExprFromString (std::string s, const SourcePath &basePath, std::shared_ptr< StaticEnv > &staticEnv, const FeatureSettings &xpSettings=featureSettings)
 
ExprparseExprFromString (std::string s, const SourcePath &basePath, const FeatureSettings &xpSettings=featureSettings)
 
ExprparseStdin ()
 
void evalLazily (Expr &e, Value &v)
 
BindingsBuilder buildBindings (size_t capacity)
 
void maybePrintStats ()
 
void printStatistics ()
 
bool fullGC ()
 
box_ptr< EvalStatebegin (AsyncIoRoot &aio)
 

Additional Inherited Members

- Public Attributes inherited from nix::Evaluator
SymbolTable symbols
 
PosTable positions
 
const StaticSymbols s
 
EvalMemory mem
 
EvalRuntimeCaches caches
 
EvalPaths paths
 
EvalBuiltins builtins
 
EvalStatistics stats
 
RepairFlag repair
 
const ref< Storestore
 
ref< StorebuildStore
 
std::unique_ptr< DebugStatedebug
 
EvalErrorContext errors
 

Detailed Description

EvalState with caching support. Historically this was part of EvalState, but it was split out to make maintenance easier. This could've been just a pair of EvalState and the cache map, but doing so would currently hide the rather strong connection between EvalState and these caches. At some future time the cache interface should be changed to hide its EvalState.


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