Macros | Functions
vsl_map_io.hxx File Reference

Implementation binary IO functions for vcl_(multi)map<Key, T, Compare> More...

#include <iostream>
#include "vsl_map_io.h"
#include <vsl/vsl_binary_io.h>
#include <vsl/vsl_indent.h>
#include <vsl/vsl_pair_io.h>

Go to the source code of this file.

Macros

#define VSL_MAP_IO_INSTANTIATE(Key, T, Compare)
 
#define VSL_MULTIMAP_IO_INSTANTIATE(Key, T, Compare)
 

Functions

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

Detailed Description

Implementation binary IO functions for vcl_(multi)map<Key, T, Compare>

Author
K.Y.McGaul
  Modifications
   IMS - 22 June 2001 - Added IO for multimap

Definition in file vsl_map_io.hxx.

Macro Definition Documentation

◆ VSL_MAP_IO_INSTANTIATE

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

Definition at line 90 of file vsl_map_io.hxx.

◆ VSL_MULTIMAP_IO_INSTANTIATE

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

Definition at line 164 of file vsl_map_io.hxx.

Function Documentation

◆ vsl_b_read() [1/2]

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

Read map from binary stream.

Definition at line 38 of file vsl_map_io.hxx.

◆ vsl_b_read() [2/2]

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

Read multimap from binary stream.

Read map from binary stream.

Definition at line 114 of file vsl_map_io.hxx.

◆ vsl_b_write() [1/2]

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

Write map to binary stream.

Definition at line 23 of file vsl_map_io.hxx.

◆ vsl_b_write() [2/2]

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

Write multimap to binary stream.

Write map to binary stream.

Definition at line 98 of file vsl_map_io.hxx.

◆ vsl_print_summary() [1/2]

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

Output a human readable summary to the stream.

Print human readable summary of object to a stream.

Definition at line 70 of file vsl_map_io.hxx.

◆ vsl_print_summary() [2/2]

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

Output a human readable summary to the stream.

Print human readable summary of object to a stream.

Definition at line 146 of file vsl_map_io.hxx.