Macros | Functions
vsl_pair_io.hxx File Reference

binary IO functions for std::pair<T> More...

#include "vsl_pair_io.h"
#include <vsl/vsl_binary_io.h>

Go to the source code of this file.

Macros

#define VSL_PAIR_IO_INSTANTIATE(S, T)
 

Functions

template<class S , class T >
void vsl_b_write (vsl_b_ostream &s, const std::pair< S, T > &v)
 Write pair to binary stream. More...
 
template<class S , class T >
void vsl_b_read (vsl_b_istream &s, std::pair< S, T > &v)
 Read pair from binary stream. More...
 
template<class S , class T >
void vsl_print_summary (std::ostream &os, const std::pair< S, T > &v)
 Output a human readable summary to the stream. More...
 

Detailed Description

binary IO functions for std::pair<T>

Author
Ian Scott

Implementation

Definition in file vsl_pair_io.hxx.

Macro Definition Documentation

◆ VSL_PAIR_IO_INSTANTIATE

#define VSL_PAIR_IO_INSTANTIATE (   S,
 
)
Value:
template void vsl_print_summary(std::ostream& s, const std::pair<S, T >& v); \
template void vsl_b_write(vsl_b_ostream& s, const std::pair<S, T > & v); \
template void vsl_b_read(vsl_b_istream& s, std::pair<S, T > & v)
A binary output adaptor for any std::ostream.
Definition: vsl_binary_io.h:37
void vsl_print_summary(std::ostream &os, const std::pair< S, T > &v)
Output a human readable summary to the stream.
Definition: vsl_pair_io.hxx:38
void vsl_b_read(vsl_b_istream &s, std::pair< S, T > &v)
Read pair from binary stream.
Definition: vsl_pair_io.hxx:28
An adaptor for any std::istream to make it suitable for binary input.
void vsl_b_write(vsl_b_ostream &s, const std::pair< S, T > &v)
Write pair to binary stream.
Definition: vsl_pair_io.hxx:17

Definition at line 49 of file vsl_pair_io.hxx.

Function Documentation

◆ vsl_b_read()

template<class S , class T >
void vsl_b_read ( vsl_b_istream s,
std::pair< S, T > &  v 
)

Read pair from binary stream.

Definition at line 28 of file vsl_pair_io.hxx.

◆ vsl_b_write()

template<class S , class T >
void vsl_b_write ( vsl_b_ostream s,
const std::pair< S, T > &  v 
)

Write pair to binary stream.

Definition at line 17 of file vsl_pair_io.hxx.

◆ vsl_print_summary()

template<class S , class T >
void vsl_print_summary ( std::ostream &  os,
const std::pair< S, T > &  v 
)

Output a human readable summary to the stream.

Print human readable summary of object to a stream.

Definition at line 38 of file vsl_pair_io.hxx.