core/vsl/vsl_map_io.h
Go to the documentation of this file.
00001 // This is core/vsl/vsl_map_io.h
00002 #ifndef vsl_map_io_h_
00003 #define vsl_map_io_h_
00004 //:
00005 // \file
00006 // \brief binary IO functions for vcl_map<Key, T, Compare>
00007 // \author K.Y.McGaul
00008 
00009 #include <vcl_iosfwd.h>
00010 #include <vcl_map.h>
00011 
00012 class vsl_b_ostream;
00013 class vsl_b_istream;
00014 
00015 //: Write map to binary stream
00016 template <class Key, class T, class Compare>
00017 void vsl_b_write(vsl_b_ostream& s, const vcl_map<Key, T, Compare>& v);
00018 
00019 //: Read map from binary stream
00020 template <class Key, class T, class Compare>
00021 void vsl_b_read(vsl_b_istream& s, vcl_map<Key, T, Compare>& v);
00022 
00023 //: Print human readable summary of object to a stream
00024 template <class Key, class T, class Compare>
00025 void vsl_print_summary(vcl_ostream & os,const vcl_map<Key, T, Compare> &v);
00026 
00027 //: Write map to binary stream
00028 template <class Key, class T, class Compare>
00029 void vsl_b_write(vsl_b_ostream& s, const vcl_multimap<Key, T, Compare>& v);
00030 
00031 //: Read map from binary stream
00032 template <class Key, class T, class Compare>
00033 void vsl_b_read(vsl_b_istream& s, vcl_multimap<Key, T, Compare>& v);
00034 
00035 //: Print human readable summary of object to a stream
00036 template <class Key, class T, class Compare>
00037 void vsl_print_summary(vcl_ostream & os,const vcl_multimap<Key, T, Compare> &v);
00038 
00039 #endif // vsl_map_io_h_