DASH
0.3.0
|
Public Types | |
typedef IOStreamMode< IOStreamMode > | ios_mode_type |
Public Member Functions | |
InputStream (dash::launch lpolicy, std::string filename) | |
Creates an HDF5 input stream using a launch policy. More... | |
InputStream (std::string filename) | |
Creates an HDF5 input stream using blocking IO. More... | |
InputStream (const self_t &other)=delete | |
InputStream (self_t &&other)=default | |
self_t & | operator= (const self_t &other)=delete |
self_t & | operator= (self_t &&other)=default |
InputStream & | flush () |
Synchronizes with the data source. More... | |
Friends | |
InputStream & | operator>> (InputStream &is, const dataset tbl) |
set name of dataset More... | |
InputStream & | operator>> (InputStream &is, setpattern_key pk) |
set metadata key at which the pattern will be stored More... | |
InputStream & | operator>> (InputStream &is, restore_pattern rs) |
set whether pattern layout should be restored from metadata More... | |
InputStream & | operator>> (InputStream &is, const type_converter conv) |
custom type converter function to convert native type to HDF5 type More... | |
template<typename Container_t > | |
InputStream & | operator>> (InputStream &is, Container_t &matrix) |
kicker which loads an container using the specified stream properties. More... | |
Definition at line 25 of file InputStream.h.
|
inline |
Creates an HDF5 input stream using a launch policy.
Support of dash::launch::async is still highly experimental and requires thread support in MPI. If multi-threaded access is not supported, blocking I/O is used as fallback. To wait for outstanding IO operations use flush()
. Until the stream is not flushed, no write accesses to the container, as well as no barriers are allowed. Otherwise the behavior is undefined.
Definition at line 50 of file InputStream.h.
References dash::async, dash::is_multithreaded(), and dash::sync.
|
inlineexplicit |
Creates an HDF5 input stream using blocking IO.
The stream takes an arbitrary number of modifiers and objects, where the objects are stored in the order of passing it to the stream.
The interface follows roughly the STL stream concept.
Example:
Definition at line 79 of file InputStream.h.
References dash::sync.
|
inline |
Synchronizes with the data source.
If dash::launch::async is used, waits until all data is read
Definition at line 99 of file InputStream.h.
|
friend |
set name of dataset
Definition at line 111 of file InputStream.h.
|
friend |
set metadata key at which the pattern will be stored
Definition at line 117 of file InputStream.h.
|
friend |
set whether pattern layout should be restored from metadata
Definition at line 123 of file InputStream.h.
|
friend |
custom type converter function to convert native type to HDF5 type
Definition at line 129 of file InputStream.h.
|
friend |
kicker which loads an container using the specified stream properties.