GraphLab: Distributed Graph-Parallel API
2.1
|
When this archive is used to deserialize an object, and the object does not support serialization, failure will only occur at runtime. Otherwise equivalent to graphlab::iarchive. More...
#include <graphlab/serialization/iarchive.hpp>
Public Member Functions | |
char | read_char () |
Directly reads a single character from the input stream. | |
void | read (char *c, size_t len) |
bool | fail () |
Returns true if the underlying stream is in a failure state. | |
iarchive_soft_fail (std::istream &instream) | |
iarchive_soft_fail (iarchive &iarc) |
Public Attributes | |
iarchive * | iarc |
bool | mine |
When this archive is used to deserialize an object, and the object does not support serialization, failure will only occur at runtime. Otherwise equivalent to graphlab::iarchive.
Definition at line 139 of file iarchive.hpp.
|
inline |
Constructs an iarchive_soft_fail object. Takes a reference to a generic std::istream object and associates the archive with it. Reads from the archive will read from the assiciated input stream.
Definition at line 169 of file iarchive.hpp.
|
inline |
Constructs an iarchive_soft_fail object from an iarchive. Both will share the same input stream
Definition at line 176 of file iarchive.hpp.
|
inline |
Directly reads a sequence of "len" bytes from the input stream into the location pointed to by "c"
Definition at line 154 of file iarchive.hpp.