Macros | Functions
vsl_vector_io.hxx File Reference

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

#include <iostream>
#include "vsl_vector_io.h"
#include <vsl/vsl_binary_io.h>
#include <vsl/vsl_block_binary.h>
#include <vsl/vsl_b_read_block_old.h>
#include <cassert>
#include <vsl/vsl_indent.h>

Go to the source code of this file.

Macros

#define VSL_VECTOR_IO_INSTANTIATE(T)
 

Functions

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

Detailed Description

binary IO functions for std::vector<T>

Author
Tim Cootes

Definition in file vsl_vector_io.hxx.

Macro Definition Documentation

◆ VSL_VECTOR_IO_INSTANTIATE

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

Definition at line 124 of file vsl_vector_io.hxx.

Function Documentation

◆ vsl_b_read()

template<class T >
void vsl_b_read ( vsl_b_istream is,
std::vector< T > &  v 
)

Read vector from binary stream.

Definition at line 51 of file vsl_vector_io.hxx.

◆ vsl_b_write()

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

Write vector to binary stream.

Definition at line 23 of file vsl_vector_io.hxx.

◆ vsl_is_char() [1/3]

template<class T >
bool vsl_is_char ( const T &  )

Definition at line 46 of file vsl_vector_io.hxx.

◆ vsl_is_char() [2/3]

template<>
bool vsl_is_char ( const unsigned char &  )
inline

Definition at line 42 of file vsl_vector_io.hxx.

◆ vsl_is_char() [3/3]

template<>
bool vsl_is_char ( const signed char &  )
inline

Definition at line 44 of file vsl_vector_io.hxx.

◆ vsl_print_summary()

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

Output a human readable summary to the stream.

Print human readable summary of object to a stream.

Definition at line 108 of file vsl_vector_io.hxx.