GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::iarchive_soft_fail Class Reference

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>

List of all members.

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

iarchiveiarc
bool mine

Detailed Description

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.


Constructor & Destructor Documentation

graphlab::iarchive_soft_fail::iarchive_soft_fail ( std::istream &  instream)
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.

graphlab::iarchive_soft_fail::iarchive_soft_fail ( iarchive iarc)
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.


Member Function Documentation

void graphlab::iarchive_soft_fail::read ( char *  c,
size_t  len 
)
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.


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