Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
dummy-store-impl.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/dummy-store.hh
"
5
#include "
nix/store/derivations.hh
"
6
7
#include <boost/unordered/concurrent_flat_map.hpp>
8
9
namespace
nix {
10
11
struct
MemorySourceAccessor
;
12
16
struct
DummyStore :
virtual
Store
17
{
18
private
:
19
void
anchor()
override
;
20
21
public
:
22
using
Config =
DummyStoreConfig
;
23
24
ref<const Config>
config;
25
26
struct
PathInfoAndContents
27
{
28
UnkeyedValidPathInfo
info;
29
ref<MemorySourceAccessor>
contents;
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
67
template
<>
68
struct
json_avoids_null<DummyStore::PathInfoAndContents> : std::true_type
69
{};
70
71
}
// namespace nix
72
73
JSON_IMPL(
nix::DummyStore::PathInfoAndContents
)
nix::ref
Definition
ref.hh:58
derivations.hh
dummy-store.hh
nix::DummyStoreConfig
Definition
dummy-store.hh:14
nix::DummyStore::PathInfoAndContents
Definition
dummy-store-impl.hh:27
nix::DummyStore
Definition
dummy-store-impl.hh:17
nix::DummyStore::contents
boost::concurrent_flat_map< StorePath, PathInfoAndContents > contents
Definition
dummy-store-impl.hh:38
nix::DummyStore::buildTrace
boost::concurrent_flat_map< StorePath, std::map< std::string, UnkeyedRealisation > > buildTrace
Definition
dummy-store-impl.hh:56
nix::DummyStore::derivations
boost::concurrent_flat_map< StorePath, Derivation > derivations
Definition
dummy-store-impl.hh:44
nix::MemorySourceAccessor
Definition
memory-source-accessor.hh:110
nix::UnkeyedValidPathInfo
Definition
path-info.hh:58
libstore
include
nix
store
dummy-store-impl.hh
Generated by
1.18.0