Functions
vsl_vector_io.h File Reference

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

#include <iosfwd>
#include <vector>
#include <vsl/vsl_fwd.h>

Go to the source code of this file.

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 >
void vsl_b_read (vsl_b_istream &s, 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)
 Print human readable summary of object to a stream. More...
 
template<>
void vsl_b_write (vsl_b_ostream &s, const std::vector< bool > &v)
 Write vector<bool> to binary stream. More...
 
template<>
void vsl_b_read (vsl_b_istream &s, std::vector< bool > &v)
 Read vector<bool> from binary stream. More...
 
template<>
void vsl_print_summary (std::ostream &os, const std::vector< bool > &v)
 Print human readable summary of object to a stream. More...
 

Detailed Description

binary IO functions for std::vector<T>

Author
Tim Cootes

Definition in file vsl_vector_io.h.

Function Documentation

◆ vsl_b_read() [1/2]

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

Read vector from binary stream.

Definition at line 51 of file vsl_vector_io.hxx.

◆ vsl_b_read() [2/2]

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

Read vector<bool> from binary stream.

Read vector<bool> from binary stream.

Definition at line 30 of file vsl_vector_io_bool.cxx.

◆ vsl_b_write() [1/2]

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_b_write() [2/2]

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

Write vector<bool> to binary stream.

Write vector<bool> to binary stream.

Definition at line 17 of file vsl_vector_io_bool.cxx.

◆ vsl_print_summary() [1/2]

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

Print human readable summary of object to a stream.

Print human readable summary of object to a stream.

Definition at line 108 of file vsl_vector_io.hxx.

◆ vsl_print_summary() [2/2]

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

Print human readable summary of object to a stream.

Print human readable summary of object to a stream.

Definition at line 60 of file vsl_vector_io_bool.cxx.