36 return graph_registry;
44 std::lock_guard<std::mutex>
lock{graph_registry.
mutex};
46 .
lookup_or_add_cb(bmain, []() {
return std::make_unique<VectorSet<Depsgraph *>>(); })
55 std::lock_guard<std::mutex>
lock{graph_registry.
mutex};
60 if (graphs->is_empty()) {
68 std::lock_guard<std::mutex>
lock{graph_registry.
mutex};
const Value * lookup_ptr(const Key &key) const
const Value & lookup(const Key &key) const
Value & lookup_or_add_cb(const Key &key, const CreateValueF &create_value)
bool remove(const Key &key)
const Depsgraph * depsgraph
Span< Depsgraph * > get_all_registered_graphs(Main *bmain)
std::unique_ptr< VectorSet< Depsgraph * > > GraphSetPtr
static GraphRegistry & get_graph_registry()
void unregister_graph(Depsgraph *depsgraph)
void register_graph(Depsgraph *depsgraph)
Map< Main *, GraphSetPtr > map