Inherits tpie::bits::serialization_writer_base.
Classes | |
class | serializer |
Public Member Functions | |
void | open (std::string path) |
void | open (temp_file &tempFile) |
void | close () |
template<typename T > | |
void | serialize (const T &v) |
Serialize a serializable item and write it to the stream. More... | |
template<typename IT > | |
void | serialize (IT a, IT b) |
Serialize a sequence of serializable items and write them to the stream. More... | |
stream_size_type | file_size () |
Static Public Member Functions | |
static memory_size_type | block_size () |
static memory_size_type | memory_usage () |
Protected Member Functions | |
void | open (std::string path, bool reverse) |
void | open (temp_file &tempFile, bool reverse) |
void | write_block (const char *const s, const memory_size_type n) |
Write n bytes from memory area s to next block in stream. More... | |
void | close (bool reverse) |
Friends | |
class | serializer |
Definition at line 83 of file serialization_stream.h.
|
inline |
Serialize a serializable item and write it to the stream.
The code stream.serialize(v) just calls serialize(stream, v) via ADL.
Definition at line 135 of file serialization_stream.h.
References tpie::serialize().
Referenced by serialize().
|
inline |
Serialize a sequence of serializable items and write them to the stream.
The code stream.serialize(a, b) just calls serialize(stream, a, b) via ADL.
Definition at line 149 of file serialization_stream.h.
References tpie::serialize(), and serialize().
|
protectedinherited |
Write n bytes from memory area s to next block in stream.
n must be less or equal to block_size().
s | Memory area with data to write. |
n | Number of bytes to write. |