paul-rl / works-on-my-machine-ygm

A fork of YGM to be worked on by team Works on My Machine for CEN 5016
Other
1 stars 0 forks source link

File-Based Oversized Bag Changes #6

Open paul-rl opened 2 weeks ago

paul-rl commented 2 weeks ago

The part of the Oversized Bag implementation that requires interfacing with File I/O in order to store and retrieve data. This includes the functions:

@ryan-dozier same here 😅

ryan-dozier commented 2 weeks ago

The main changes we're making will be swapping the local storage from std::vector https://github.com/LLNL/ygm/blob/v0.7-dev/include/ygm/container/bag.hpp#L244 to using cereal archives to serialize values into the files. From some cursory investigating it looks like we can use the CerealBinaryArchive to do something similar to fstream << CerealBinaryArchive(Value); and the reverse to get the Value out of the file since all YGM types are required to be serializable.