QMCPACK
h5data_proxy< std::ostringstream > Struct Template Reference
+ Collaboration diagram for h5data_proxy< std::ostringstream >:

Public Types

using data_type = std::ostringstream
 

Public Member Functions

 h5data_proxy (const data_type &a)
 
bool read (data_type &ref, hid_t grp, char *name, hid_t xfer_plist=H5P_DEFAULT)
 
bool write (const data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT) const
 

Detailed Description

template<>
struct qmcplusplus::h5data_proxy< std::ostringstream >

Definition at line 265 of file hdf_stl.h.

Member Typedef Documentation

◆ data_type

using data_type = std::ostringstream

Definition at line 267 of file hdf_stl.h.

Constructor & Destructor Documentation

◆ h5data_proxy()

h5data_proxy ( const data_type a)
inline

Definition at line 269 of file hdf_stl.h.

269 {}

Member Function Documentation

◆ read()

bool read ( data_type ref,
hid_t  grp,
char *  name,
hid_t  xfer_plist = H5P_DEFAULT 
)
inline

Definition at line 271 of file hdf_stl.h.

271 { return false; }

◆ write()

bool write ( const data_type ref,
hid_t  grp,
const std::string &  aname,
hid_t  xfer_plist = H5P_DEFAULT 
) const
inline

Definition at line 273 of file hdf_stl.h.

References qmcplusplus::clone.

274  {
275  std::string clone(ref.str());
276  h5data_proxy<std::string> proxy(clone);
277  return proxy.write(clone, grp, aname);
278  }

The documentation for this struct was generated from the following file: