19 #include <unordered_map> 59 bool hasData(
const std::string & name)
const;
WriteKey(const WriteKey &)
auto begin()
Begin and end iterators to the data.
Protected storage for restartable data.
RestartableDataMap::Data _data
The registered data.
Storage container that stores a vector of unique pointers of T, but represents most of the public fac...
const RestartableDataValue * findData(const std::string &name) const
Tries to find data with the name name; returns nullptr if not found.
RestartableDataValue & addData(std::unique_ptr< RestartableDataValue > data)
Adds the restartable data data to the map.
iterator begin()
Begin and end iterators to the underlying data.
RestartableDataValue & data(const std::string &name)
Storage for restartable data that is ordered based on insertion order.
bool hasData(const std::string &name) const
std::unordered_map< std::string, std::size_t > _name_to_data_index
Mapping from data name -> index in _data for quick indexing.
RestartableDataValue & addPointer(std::unique_ptr< RestartableDataValue > &&ptr, const WriteKey)
Abstract definition of a RestartableData value.
T & addPointer(std::unique_ptr< T > &&ptr)
Adds the given object in ptr to the storage.