void mcobservables_load(alps::mcobservables & self, alps::hdf5::archive & ar, std::string const & path) { std::string current = ar.get_context(); ar.set_context(path); self.load(ar); ar.set_context(current); }
void load(alps::hdf5::archive &ar) { using namespace alps; resize(ar.extent("")[0]); ar >> make_pvp("", &values_.front(), std::vector<std::size_t>(2, size1_,size2_)); }
/// Load from HDF5 void load(alps::hdf5::archive &ar) { load(ar, ar.get_context()); }
/// Save to HDF5 void save(alps::hdf5::archive &ar) const { save(ar, ar.get_context()); }
from_archive(alps::hdf5::archive& ar) : ar_(ar), context_(ar.get_context()) {}