5#ifndef GEOMODELUTILITIES_TRANSFORMMAP_H
6#define GEOMODELUTILITIES_TRANSFORMMAP_H
12#include <unordered_map>
13#include <shared_mutex>
45 bool setTransform(
const T *obj, std::shared_ptr<const X> xf)
const;
72 using CanonicalMap_t = std::unordered_map<const T*, std::shared_ptr<const X>>;
80 std::make_unique<ConCurrentMap_t>(
typename ConCurrentMap_t::Updater_t())};
Hash map from pointers/integers to arbitrary objects allowing concurrent, lockless reads.
Simple (non-deleting) Updater implementation.
Simple (non-deleting) Updater implementation.
ConcurrentToValMap(Updater_t &&updater, size_type capacity=64, const Context_t &ctx=Updater_t::defaultContext())
Hash map from pointers/integers to arbitrary objects allowing concurrent, lockless reads.