Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
dummy-store-impl.hh
Go to the documentation of this file.
1#pragma once
3
6
7#include <boost/unordered/concurrent_flat_map.hpp>
8
9namespace nix {
10
12
16struct DummyStore : virtual Store
17{
18private:
19 void anchor() override;
20
21public:
22 using Config = DummyStoreConfig;
23
24 ref<const Config> config;
25
27 {
30
31 bool operator==(const PathInfoAndContents &) const;
32 };
33
38 boost::concurrent_flat_map<StorePath, PathInfoAndContents> contents;
39
44 boost::concurrent_flat_map<StorePath, Derivation> derivations;
45
56 boost::concurrent_flat_map<StorePath, std::map<std::string, UnkeyedRealisation>> buildTrace;
57
58 DummyStore(ref<const Config> config)
59 : Store{*config}
60 , config(config)
61 {
62 }
63
64 bool operator==(const DummyStore &) const;
65};
66
67template<>
68struct json_avoids_null<DummyStore::PathInfoAndContents> : std::true_type
69{};
70
71} // namespace nix
72
Definition ref.hh:58
Definition dummy-store.hh:14
Definition dummy-store-impl.hh:27
Definition dummy-store-impl.hh:17
boost::concurrent_flat_map< StorePath, PathInfoAndContents > contents
Definition dummy-store-impl.hh:38
boost::concurrent_flat_map< StorePath, std::map< std::string, UnkeyedRealisation > > buildTrace
Definition dummy-store-impl.hh:56
boost::concurrent_flat_map< StorePath, Derivation > derivations
Definition dummy-store-impl.hh:44
Definition memory-source-accessor.hh:110
Definition path-info.hh:58