27 std::shared_ptr<BlockAccessor>
extract_blocks(
const std::unordered_set<BlockName>& block_names)
const;
34 std::shared_ptr<BlockAccessor> local_input_cache_;
35 std::map<ParameterType, std::shared_ptr<Parameters>> local_instances_;
36 std::vector<ParameterType> parameter_types_;
Per-thread parameter runtime used to isolate Monte-Carlo workers.
std::shared_ptr< Parameters > get_parameters(ParameterType id)
std::unordered_set< BlockName > available_input_blocks() const
const std::vector< ParameterType > & parameter_types() const
ParameterRuntimeContext()
static ParameterRuntimeContext * current()
std::shared_ptr< BlockAccessor > extract_blocks(const std::unordered_set< BlockName > &block_names) const
RAII installer for a ParameterRuntimeContext on the current thread.
ScopedParameterRuntimeContext(const ScopedParameterRuntimeContext &)=delete
~ScopedParameterRuntimeContext()
ScopedParameterRuntimeContext & operator=(const ScopedParameterRuntimeContext &)=delete