コード例 #1
0
ファイル: observables.cpp プロジェクト: wangleiphy/ALPSCore
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);
}
コード例 #2
0
ファイル: chebyshev_mesh.hpp プロジェクト: ALPSCore/ALPSCore
 /// Load from HDF5
 void load(alps::hdf5::archive &ar) {
   load(ar, ar.get_context());
 }
コード例 #3
0
ファイル: chebyshev_mesh.hpp プロジェクト: ALPSCore/ALPSCore
 /// Save to HDF5
 void save(alps::hdf5::archive &ar) const {
   save(ar, ar.get_context());
 }
コード例 #4
0
ファイル: hdf5_variant.hpp プロジェクト: ALPSCore/ALPSCore
 from_archive(alps::hdf5::archive& ar)
     : ar_(ar), context_(ar.get_context())
 {}