2012-07-18 18:59:03 +00:00
|
|
|
#pragma once
|
2003-09-03 11:20:18 +00:00
|
|
|
|
2006-09-04 21:06:23 +00:00
|
|
|
#include "types.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
2003-09-03 11:20:18 +00:00
|
|
|
|
2016-02-04 13:48:42 +00:00
|
|
|
class Store;
|
Eliminate the "store" global variable
Also, move a few free-standing functions into StoreAPI and Derivation.
Also, introduce a non-nullable smart pointer, ref<T>, which is just a
wrapper around std::shared_ptr ensuring that the pointer is never
null. (For reference-counted values, this is better than passing a
"T&", because the latter doesn't maintain the refcount. Usually, the
caller will have a shared_ptr keeping the value alive, but that's not
always the case, e.g., when passing a reference to a std::thread via
std::bind.)
2016-02-04 13:28:26 +00:00
|
|
|
|
2016-02-04 13:48:42 +00:00
|
|
|
void printDotGraph(Store & store, const PathSet & roots);
|
2003-09-03 11:20:18 +00:00
|
|
|
|
2006-09-04 21:06:23 +00:00
|
|
|
}
|